Commit graph

2463 commits

Author SHA1 Message Date
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
Lance Edgar ab591a2343 Update changelog 2019-02-12 14:05:25 -06:00
Lance Edgar 9a26b06952 Add convenience method Person.only_customer() 2019-02-12 14:04:10 -06:00
Lance Edgar 26a9d1c7ed Add --year arg for importer subcommands
use is of course optional, but seemed to make more sense to have a shared
command line arg for it
2019-02-11 18:09:07 -06:00
Lance Edgar 1719351495 Add time.first_of_year() convenience function 2019-02-11 17:43:26 -06:00
Lance Edgar 4323fde854 Fix help bug for export-rattail command
can't assume we have a config object
2019-02-08 15:43:36 -06:00
Lance Edgar 559d14eb21 Update changelog 2019-02-08 13:55:20 -06:00
Lance Edgar e0ed547dfd Don't overwrite PO, invoice cost for purchase batch row upon refresh
once a value has been provided, it will stick, until e.g. edit occurs
2019-02-08 13:40:17 -06:00
Lance Edgar fd1093c01f Introduce some new logic for "children first" truck dump receiving
needs more testing yet to see what's left...
2019-02-06 16:44:24 -06:00
Lance Edgar 09eba3e7df Allow suppression of stderr from pip freeze when running upgrade
to cut down on overnight noise, until can upgrade to python3
2019-02-06 14:29:06 -06:00