Commit graph

2493 commits

Author SHA1 Message Date
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
Lance Edgar 2f408c1873 Add ProductVolatile model, for "volatile" product attributes
at least that's the idea...hopefully this table "wins the war" for this concept
2019-03-08 14:33:01 -06:00
Lance Edgar 6ca0e9ca3c Add percentage kwarg to pricing.gross_margin() function
so it can return the "industry standard" value instead
2019-03-08 14:02:13 -06:00
Lance Edgar 9afdb7419a Fix progress bar construction
previous fix was not correct
2019-03-08 14:01:06 -06:00
Lance Edgar 33296a40b2 Update changelog 2019-03-08 11:48:23 -06:00
Lance Edgar 405a50bc4b Expand UPC-E to UPC-A when doing product receiving lookup 2019-03-07 20:00:47 -06:00
Lance Edgar 1242a5e88d Fix how some "receive row" logic worked, for aggregated product rows
also fix the batch invoice total aggregation, hopefully
2019-03-07 18:57:04 -06:00
Lance Edgar 7b4d418177 Add "calculated" invoice total for receiving row, batch
so then `invoice_total` is meant to reflect the "original" total as obtained
from the invoice proper, whereas `invoice_total_calculated` is up to us
2019-03-07 17:04:20 -06:00
Lance Edgar 6927d74660 Fix logic for calculating "credit total"
also copy receiving date from truck dump parent to child, and fix output of
`str(PurchaseCredit)`
2019-03-07 12:20:33 -06:00
Lance Edgar 2cb67ebf69 Update changelog 2019-03-07 10:24:23 -06:00
Lance Edgar 1087d7ee6c Fix progress bar error, as of progress==1.5 package 2019-03-06 20:51:56 -06:00
Lance Edgar 16757ae1c0 Update changelog 2019-03-06 13:18:47 -06:00
Lance Edgar bdfaff6e7a Prefer null over zero, for empty amounts in credit record 2019-03-05 11:10:11 -06:00
Lance Edgar 8a535b6cf5 Auto-create "missing" credits for product not accounted for, when receiving
i.e. at batch execution time, anything "ordered" but not accounted for will be
turned into a credit record
2019-03-05 11:02:00 -06:00
Lance Edgar 9df0f004a5 Don't raise error if "removing" a batch row which was already "removed"
just let caller assume the row was removed okay
2019-03-02 18:33:03 -06:00
Lance Edgar ed6ef1efe9 Make "auto receive all" logic smarter, to handle split cases
also fix a bug within `receive_row()` logic, for split case calculation
2019-03-02 18:09:40 -06:00
Lance Edgar 0b889423b5 Update receiving batch logic to leverage new truck_dump_status
missed some things in recent commit(s)...
2019-03-02 18:08:52 -06:00
Lance Edgar 57d142773f Account for split cases in claimed/pending tallies for truck dump children 2019-03-01 12:06:27 -06:00