Commit graph

2622 commits

Author SHA1 Message Date
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
Lance Edgar a60b4f3700 Add "truck dump status" fields for purchase batch, row
this is a separate concern really, from common "status code" fields.  although
we can keep using existing enum values
2019-03-01 11:54:16 -06:00
Lance Edgar 277334e8e8 Add improved logic for finding/updating row children for truck dump
i.e. during the "receive row" process on the parent
2019-03-01 10:46:15 -06:00
Lance Edgar 5cff218bb8 Add first implementation of receive_row() for purchase batch handler
this logic *should* be a copy/paste essentially, from tailbone
2019-02-28 15:53:36 -06:00
Lance Edgar f44a8216f0 Fix start year for copyright in docs 2019-02-28 12:59:10 -06:00
Lance Edgar cf512e7229 Bump copyright year, "short" version for docs 2019-02-28 12:58:21 -06:00
Lance Edgar 67d801e344 Add some basic docs for "product receiving" features
pretty sure more detail is needed, but a decent starting point
2019-02-28 12:42:13 -06:00
Lance Edgar 396a48eb49 Add mark_complete() and mark_incomplete() methods for batch handler 2019-02-26 17:59:40 -06:00
Lance Edgar 7bfed95b73 Refresh receiving batch after "auto-receiving" all items 2019-02-26 17:46:55 -06:00
Lance Edgar 0ab553cc4b Tweak how we create config parser object, for python 3 vs. 2
per some deprecation warnings
2019-02-25 20:09:33 -06:00
Lance Edgar dc322cc40f Update changelog 2019-02-25 18:16:15 -06:00
Lance Edgar bc96bce260 Tweak CSV parsing for new handheld batch, per python3 2019-02-25 18:15:35 -06:00
Lance Edgar dbb42a3858 Update changelog 2019-02-22 16:01:45 -06:00
Lance Edgar b4942c4b93 Add setting for whether 'vendor' fields should use autocomplete or dropdown 2019-02-19 21:10:49 -06:00
Lance Edgar 4b884dc782 Add CustomerNote and Customer.notes
might as well take advantage of this notes table...
2019-02-19 20:13:44 -06:00
Lance Edgar 4da37f67f3 Add Customer.add_mailing_address() convenience method
probably need to add these to other "contact" models also...
2019-02-19 18:08:53 -06:00
Lance Edgar 874cbc4462 Clean up Rattail <-> Rattail import/export handlers a bit 2019-02-18 21:27:57 -06:00
Lance Edgar 3336da3db0 Aggregate when adding truck dump child row already present in parent 2019-02-18 18:19:11 -06:00
Lance Edgar 0bf04a7272 Update changelog 2019-02-14 10:35:30 -06:00
Lance Edgar f9bf01be5a Add include_fields() and exclude_fields() importer methods
for convenience, to tweak field list at runtime
2019-02-14 10:34:29 -06:00
Lance Edgar 8ae12ca1dc Remove some old handler-less logic for emails
pretty sure this was only referenced by tailbone, which has been updated
2019-02-13 20:52:14 -06:00
Lance Edgar 332cc6db26 Refactor datasync consumer logic, for prettier email and retry support
hopefully i didn't even break anything!
2019-02-13 14:33:34 -06:00