Commit graph

1862 commits

Author SHA1 Message Date
Lance Edgar 82afc53fb8 Add rattail.time.get_monday() convenience function 2018-06-18 15:22:20 -05:00
Lance Edgar 8711c331bf Update changelog 2018-06-14 12:17:40 -05:00
Lance Edgar 1d8ca3bce3 Add exempt_from_gross_sales flag for department and trainwreck line item 2018-06-14 12:03:59 -05:00
Lance Edgar 2f78be1d38 Add ExcelWriter.auto_resize() method
tries to auto-size all column widths according to simple data length
2018-06-13 20:59:35 -05:00
Lance Edgar 790c41165d Add docstrings for Category table 2018-06-13 20:37:13 -05:00
Lance Edgar 870fac5798 Cache categories by code instead of number
only one place which i know is affected... most code should just cache their
own data instead of using these classes anyway
2018-06-13 20:30:14 -05:00
Lance Edgar 2bf88727c5 Fix bug when --max-delete used for importer commands
when limit is reached, command should stop but should not fail
2018-06-11 12:42:03 -05:00
Lance Edgar 1bb58ce571 Update changelog 2018-06-09 16:57:48 -05:00
Lance Edgar cc5e1c9b8d Add Customer.one_person() convenience method 2018-06-09 16:38:39 -05:00
Lance Edgar 1a786c6557 Add update-costs command for making future costs become current
this just assumes any future cost which starts "before now" is game
2018-06-07 16:47:03 -05:00
Lance Edgar 99787d19c8 Update changelog 2018-06-07 14:31:03 -05:00
Lance Edgar 065b0312bb Add versioning workaround support for batch actions
* commands accept `--versioning`, `--no-versioning` args
* use `finish()` progress method when ending a loop
* add `SocketProgress` (and `FileProgress`)
* commands accept `--progress-socket` arg
* add `do_*()` handler methods, for wrapping main actions
* populate, refresh, execute of batch may be done via command line
* handler declares which action(s) may (not) be done with versioning
* handler declares which version models to catch-up after execute
2018-06-07 12:37:39 -05:00
Lance Edgar bac7ebab7e Don't record changes for any model ending in 'Version' 2018-06-07 12:35:00 -05:00
Lance Edgar 0effd0b3b8 Allow config to force the To: address for all generated emails
useful for demo, dev etc.
2018-06-04 19:07:17 -05:00
Lance Edgar 38d0f10ad9 Set continuum username for all datasync watchers, if present 2018-06-04 18:23:34 -05:00
Lance Edgar 175a5ff330 Update changelog 2018-06-04 14:07:53 -05:00
Lance Edgar 17f61dec13 Make some importers smarter when dealing with NULL primary key values 2018-06-01 15:03:21 -05:00
Lance Edgar 35e05d385b Add normalize_lastrun() convenience method for datasync watchers 2018-06-01 15:02:59 -05:00
Lance Edgar d6c8aff9e7 Add "null" datasync consumer
can sometimes be useful for testing new watchers...
2018-06-01 15:02:35 -05:00
Lance Edgar 5230d38176 Add Vendor.abbreviation to schema 2018-06-01 15:02:21 -05:00
Lance Edgar 9683d4d978 Add 'hidden' flag for inventory adjustment reasons
don't show those when prompting user for a reason
2018-06-01 13:00:42 -05:00
Lance Edgar 579ef8b519 Update changelog 2018-05-30 16:34:39 -05:00
Lance Edgar 35a415566b Add initial support for "variance" inventory batch mode
probably still incomplete at this point..?
2018-05-30 11:47:18 -05:00
Lance Edgar 436b38c396 Update changelog 2018-05-25 13:18:14 -05:00
Lance Edgar 8323d2a6f8 Add --key arg for importer commands
so user may override primary key used for a particular import
2018-05-25 13:13:59 -05:00
Lance Edgar 41da3e6ae8 Add runsql command, mostly for dev use
at least for now?  kind of in a rush at the moment
2018-05-23 20:35:32 -05:00
Lance Edgar ddca6b7d9b Fix assertion bug 2018-05-18 16:06:15 -05:00
Lance Edgar 225a0ba380 Add "most of" support for truck dump receiving 2018-05-18 15:44:02 -05:00
Lance Edgar d3662fe55d Add BatchHandler.remove_row() method
also tweak default refresh/remove row methods for purchase batch
2018-05-14 16:17:36 -05:00
Lance Edgar 3fdd880f0a Tweak schema for receiving batch, to allow for truck dump scenario
probably not quite done with required changes yet, but this much seems ready
2018-05-14 16:16:41 -05:00
Lance Edgar 80f84d2a95 Improve default handler logic for purchase batches
add support for receiving into inventory (and reducing "on order") etc.
2018-05-03 18:12:14 -05:00
Lance Edgar 2c7e7c0e8c Add RattailConfig.single_store() convenience method
for determining if system is associated with a single store
2018-05-03 10:53:30 -05:00
Lance Edgar 316903e890 Update changelog 2018-04-12 19:28:39 -07:00
Lance Edgar 35f66e9018 Add ProductFutureCost table, future mode for vendor catalog batch 2018-04-10 09:06:20 -07:00
Lance Edgar 4a46439f2b Update changelog 2018-04-09 13:13:37 -07:00
Lance Edgar d8cb7cea83 Add new status options for vendor catalog rows, tie back to existing cost
i.e. where relevant, keep a reference to the cost record each row should be
updating when the batch executes
2018-04-06 09:49:17 -07:00
Lance Edgar c3543b6537 Use common product mixin for VendorCatalogRow model 2018-04-05 20:17:51 -07:00
Lance Edgar aa7315c0e4 Add a bit of docs for ExcelReader 2018-04-05 15:20:55 -07:00
Lance Edgar 07d6bc08d5 small change to test buildbot 2018-04-03 09:04:33 -07:00
Lance Edgar 9e4155eff1 Add Email.dynamic_to flag, to improve admin config UI 2018-04-01 17:13:21 -07:00
Lance Edgar 88ea97455e Prevent aggressive flush when making purchase from ordering batch 2018-03-30 14:43:26 -05:00
Lance Edgar c81c7e8ddf Add strip_fieldnames kwarg to ExcelReader constructor
off by default, but can be used to remove leading/trailing whitespace from
column names for cleaner referencing
2018-03-21 17:50:38 -05:00
Lance Edgar 837f863840 Tweak how product cost is imported, when new records involved 2018-03-21 17:50:21 -05:00
Lance Edgar a886b21291 Tweak some product relationships so can delete a product 2018-03-21 17:49:55 -05:00
Lance Edgar 2359539cb7 Update changelog 2018-03-12 17:53:25 -05:00
Lance Edgar fb4c0323ce Make rattail.csvutil.UnicodeReader => csv.reader for python3 2018-03-06 22:06:24 -06:00
Lance Edgar 21b71cabfe Add vendor_item_code field to purchase credit records 2018-03-01 15:16:11 -06:00
Lance Edgar aaad1d328f Update changelog 2018-02-27 18:54:02 -06:00
Lance Edgar 73710d6039 Tweak util.hours_as_decimal() for python 3 behavior
i.e. make it match python 2 behavior
2018-02-26 16:20:07 -06:00
Lance Edgar 17f0979395 Test commit 2018-02-26 00:20:59 -06:00