Commit graph

2610 commits

Author SHA1 Message Date
Lance Edgar 11a5070a9c Update changelog 2019-05-09 12:31:52 -05:00
Lance Edgar 90797a64b1 Add support for "totals" row to basic Excel report output
also reorganizes the code a little, for clarity
2019-05-07 17:49:37 -05:00
Lance Edgar ad90449d51 Store report type key and params when generating new report 2019-05-07 17:13:27 -05:00
Lance Edgar 641ba5ab96 Update changelog 2019-05-07 15:00:33 -05:00
Lance Edgar ecf23fd3be Add generic ExcelReport base class 2019-05-06 15:26:09 -05:00
Lance Edgar 2523949825 Update changelog 2019-05-05 20:15:00 -05:00
Lance Edgar 1a0d45dcd7 Add basic support for custom number formats, in Excel writer 2019-05-05 15:07:28 -05:00
Lance Edgar 217efdb94a Update changelog 2019-04-30 20:37:44 -05:00
Lance Edgar e3344ea141 Remove debug print statement 2019-04-29 09:24:19 -05:00
Lance Edgar 42585a9052 Add --kwargs argument for batch execution command line
for passing extra options to the handler when executing
2019-04-29 09:05:58 -05:00
Lance Edgar cafba6f218 Update changelog 2019-04-26 17:04:44 -05:00
Lance Edgar a43d46220a Assign continuum versioning author when executing any batch 2019-04-26 16:58:57 -05:00
Lance Edgar 79c1dee63f Remove redundant setup when populating vendor catalog batch
handler now invokes this via `do_populate()`
2019-04-26 10:36:08 -05:00
Lance Edgar e350245d4e Update changelog 2019-04-25 14:47:42 -05:00
Lance Edgar c2154b9f91 Add category, family, report code for generic product batch 2019-04-23 22:50:32 -05:00
Lance Edgar 0b926197dc Fix data encoding when writing to progress socket for python3 2019-04-19 17:28:16 -05:00
Lance Edgar 437230b958 Add generic "products" batch type, can convert to labels or pricing batch 2019-04-19 13:21:31 -05:00
Lance Edgar 8fa7c6e732 Add vendor item code, family code etc. for pricing batch
sometimes folks need to see all of that
2019-04-18 18:21:08 -05:00
Lance Edgar 1d10114327 Add "allowance" fields for Vendor Catalog batches
default handler doesn't do anything with these, yet at least
2019-04-18 17:01:45 -05:00
Lance Edgar 1b047286ec Add 'newproduct' batch for importing new items from e.g. spreadsheet 2019-04-17 21:48:04 -05:00
Lance Edgar c798e04864 Comment out app_title in base_meta for new project template 2019-04-17 14:48:07 -05:00
Lance Edgar f03413b8b1 Update changelog 2019-04-12 15:59:29 -05:00
Lance Edgar 96322461ec Add Employee.get_current_history() convenience method
should return the "currently active" history record, or the most "recent" one
if none is currently active
2019-04-12 12:54:02 -05:00
Lance Edgar db251fafba Update changelog 2019-04-04 16:57:28 -05:00
Lance Edgar fdddbda138 Let handler create importers for datasync consumer
turns out the "bug" wasn't in rattail
2019-04-04 16:40:41 -05:00
Lance Edgar 76f4a457b3 Update changelog 2019-04-04 13:35:16 -05:00
Lance Edgar dd51e74e5c Make sure importer knows "direction" when used within datasync
i.e. set importer direction to match handler, when first instantiating

ideally we could just let the handler itself create the importer, i.e. in the
same way as is done for command line imports, but for some reason when
i (briefly) tried that it prevented datasync from starting up properly...
2019-04-04 13:33:14 -05:00
Lance Edgar 7ed5ebc07c Update changelog 2019-04-03 22:12:42 -05:00
Lance Edgar cea7e94508 Set importer direction early, in case supported_fields needs it
sometimes the supported field list may depend on target system, e.g. not all
data needs to go to all nodes
2019-04-03 22:11:06 -05:00
Lance Edgar 883df8fa77 Remove deprecated web menu template in new project template
we always use "simple" menus by default now
2019-04-02 21:55:25 -05:00
Lance Edgar 15d110a8f9 Update changelog 2019-04-02 15:14:32 -05:00
Lance Edgar aa74623e05 Use shipped instead of ordered, for setting purchase batch row status
i.e. when "shipped vs. received differ"
2019-04-01 13:30:26 -05:00
Lance Edgar 1d05f73bfe Use "shipped" instead of "ordered" for truck dump child row "claims"
i.e. if 1 CS is received, that should count against the *shipped* quantity and
not the "ordered" quantity.  if shipped is not explicitly stated on the
invoice, its value should be copied from the ordered quantity
2019-04-01 13:18:40 -05:00
Lance Edgar 850c197834 Update changelog 2019-03-29 12:49:27 -05:00
Lance Edgar 7447357321 Add can_declare_credit() method for purchase batch handler
only relevant for receiving batches? anyway needed for validating such an
action, prior to actually taking it
2019-03-27 21:04:19 -05:00
Lance Edgar 3746c1b510 Allow "loose" product matching between truck dump parent and child
i.e. for sake of claiming rows between the two
2019-03-27 19:57:09 -05:00
Lance Edgar 50768ed573 Add new 'reporting' mini-framework
just does some basic stuff, but useful nonetheless to consolidate logic
2019-03-27 18:36:52 -05:00
Lance Edgar 86c3621d4d Some improvements to basic project template 2019-03-24 17:19:26 -05:00
Lance Edgar e9c2ed8e4b Update changelog 2019-03-21 19:33:35 -05:00
Lance Edgar 95d55f49bf Add simple JSONTextDict data type for SQLAlchemy columns
for basic JSON awareness/conversion
2019-03-20 16:48:38 -05:00
Lance Edgar 20beaf0fc8 Update changelog 2019-03-14 13:36:35 -05:00
Lance Edgar e2dc6012f1 Add declare_credit() method for purchase batch handler
meant to allow for a simpler UI in tailbone
2019-03-13 19:15:17 -05:00
Lance Edgar 68b643c471 Add todo comment 2019-03-13 15:24:57 -05:00
Lance Edgar 80130f34fa Add debug logging when "stale changes" detected for datasync
printing to stderr is useful for shinken, but need to be able to reference same
events within the log file
2019-03-13 14:34:46 -05:00
Lance Edgar 6b616b01dd Add direction attribute for ImportHandler and Importer
plus various related doc updates
2019-03-12 19:58:55 -05:00
Lance Edgar 8a0d62f9b0 Omit deprecated kwarg for session.is_modified()
when checking for pending changes, to be recorded to stub table.  apparently
this could have been done a long time ago but only recently did warnings bring
my attention to it
2019-03-12 13:47:39 -05:00
Lance Edgar 25684be645 Add BatchHandler.do_remove_row() caller method
also delete row outright, when removing row from purchase batch
2019-03-11 19:31:29 -05:00
Lance Edgar fb5d6952d9 Update changelog 2019-03-11 12:58:39 -05:00
Lance Edgar 93daa31584 Tweak pretty_hours() to better handle negative values 2019-03-08 17:58:36 -06:00
Lance Edgar de18e41f68 Add basic API doc for "products" db model 2019-03-08 14:58:48 -06:00