Commit graph

148 commits

Author SHA1 Message Date
Lance Edgar
a2b7f882bc Split "new receiving batch" process into 2 steps: choose, create
so that the form used to create the batch can be made custom per-workflow, and
it won't have to think about any other workflows since we just use one form at
a time for that
2021-01-30 19:54:38 -06:00
Lance Edgar
ff2e39f67a Make handler responsible for possible receiving modes 2021-01-30 16:56:30 -06:00
Lance Edgar
708641a8f1 Purge things for legacy (jquery) mobile, and unused template themes
gosh it feels good to get rid of this stuff...  fingers crossed that nothing
was broken, but am thinking it's safe
2021-01-30 15:52:47 -06:00
Lance Edgar
d9f6a7201e Let config totally disable the old/legacy jQuery mobile app 2020-04-04 20:51:49 -05:00
Lance Edgar
a721ec4a43 Misc. API improvements for sake of mobile receiving 2020-03-20 13:51:34 -05:00
Lance Edgar
675660e130 Expose catalog cost, allow updating, for receiving batch rows 2019-11-26 11:19:55 -06:00
Lance Edgar
3e1409afc5 Show vendor item code in receiving batch row grid 2019-11-22 20:12:51 -06:00
Lance Edgar
c14cf3022c Allow update of row unit cost directly from receiving batch view 2019-11-22 20:12:48 -06:00
Lance Edgar
0715bd6321 Add basic "receive" handler logic for receiving API 2019-11-15 16:16:56 -06:00
Lance Edgar
d42c2fabb9 Move "quick entry" logic for purchase batch, into rattail handler 2019-11-13 14:04:11 -06:00
Lance Edgar
ff9700e23a Add core View.make_progress() method
so callers no longer need to import `SessionProgress` and create directly
2019-09-25 00:32:41 -05:00
Lance Edgar
0d2f6e060f Use simple_error() from rattail, for showing some error messages
just trying to standardize a little
2019-09-19 20:19:26 -05:00
Lance Edgar
bf189bb704 Use shipped instead of ordered, for receiving authority
i.e. compare receiving quantities to shipped quantities instead of ordered
2019-04-01 13:32:43 -05:00
Lance Edgar
49017fda39 Make sure user sees "receive row" page on mobile, after scanning UPC
was still redirecting to "view row" which is sort of deprecated now...
2019-04-01 13:31:57 -05:00
Lance Edgar
53917e9bf5 Require invoice parser selection for new truck dump child from invoice 2019-04-01 12:32:35 -05:00
Lance Edgar
18ad664acb Add validation when "declaring credit" for receiving batch row
i.e. don't just blindly attempt, when it isn't supported
2019-03-27 21:06:23 -05:00
Lance Edgar
d60679adfd Don't allow deletion of some receiving data rows on mobile
specifically, rows on a truck dump parent, which originated from a child
batch (and therefore presumably, an invoice)
2019-03-27 20:11:32 -05:00
Lance Edgar
5b9e97b4eb Add "declare credit" UI for receiving batch rows 2019-03-13 19:15:53 -05:00
Lance Edgar
c869516449 Add basic "receive row" desktop view for receiving batches
not terribly polished yet, but works
2019-03-13 18:31:57 -05:00
Lance Edgar
7fab472fc4 Add "time ago" for "product already receieved" alert on mobile 2019-03-13 12:49:54 -05:00
Lance Edgar
43122381f5 Add mobile alert when receiving product for 2nd time
optional per config.  idea is to alert user so they don't accidentally
double-receive a given item
2019-03-12 14:25:40 -05:00
Lance Edgar
d337defb09 Expose new "calculated" invoice totals for receiving batch, rows 2019-03-07 17:05:25 -06:00
Lance Edgar
d5efc51d61 Tweak the "incomplete" row filter for mobile receiving batch
this really is not ideal...hopefully good enough to limp along for a while yet
2019-03-05 11:03:24 -06:00
Lance Edgar
006a7096ed Add ability to sort by Credits? column for receiving batch rows 2019-03-02 18:07:07 -06:00
Lance Edgar
b7a026a7e8 Add "truck dump status" fields to receiving batch views
also refactor some code to use e.g. `batch.is_truck_dump_parent()` for clarity
2019-03-01 12:12:00 -06:00
Lance Edgar
a2965d83af Remove 'truck_dump' field from mobile receiving batch view
not needed, and a bit redundant
2019-03-01 09:39:40 -06:00
Lance Edgar
05481f7828 Add new "receive row" view for mobile receiving
this frees us up to dumb-down the "view row" which thus far has been tasked
with actual receiving
2019-02-28 16:21:13 -06:00
Lance Edgar
b1c77afc81 Remove logic for "receiving a row" and invoke handler instead
i.e. for receiving batch
2019-02-28 15:54:31 -06:00
Lance Edgar
145e7f5529 Allow vendor field to be dropdown, for mobile ordering/receiving
based on config.  useful for apps which have very few vendors
2019-02-19 21:11:49 -06:00
Lance Edgar
a45ce2ced2 Introduce support for "children first" truck dump receiving
still needs more testing to see what's left...
2019-02-06 16:50:40 -06:00
Lance Edgar
9daefed9b3 Detect non-numeric entry when locating row for purchase batch
i.e. don't try to convert to GPC if non-numeric
2018-11-07 13:08:59 -06:00
Lance Edgar
05c33a4b34 Add ability to "transform" TD parent row from pack to unit item
to make "claiming" more straightforward
2018-10-24 18:52:49 -05:00
Lance Edgar
848b727b11 Tweak how receiving rows are looked up when adding to the batch
i.e. locate the product first, and then try to find an existing row to match.
previously we looked for a row based on product key match only, and it could
cause new rows to be created for a product we already had in the batch (i.e. if
the product was located via some secondary lookup other than product key)
2018-09-29 14:24:03 -05:00
Lance Edgar
878486cdab Capture user input for mobile receiving, and move some lookup logic
i.e. most of the logic responsible for looking up an item from e.g. scanner
entry, now lives in the handler for easier customization
2018-09-25 17:50:16 -05:00
Lance Edgar
ed5455089e Expose item_entry field for receiving batch row 2018-09-22 20:18:52 -05:00
Lance Edgar
d7863c2572 Add speedbump by default when deleting any "row" record
also, allow deleting rows for truck dump child batch
2018-09-22 19:27:17 -05:00
Lance Edgar
4a610ba2e6 Misc. UI improvements for truck dump receiving on desktop
links back and forth between parent/child rows, a little help text etc.
2018-09-22 18:33:01 -05:00
Lance Edgar
66f1ed0e41 Do quick lookup by vendor item code, alt code for mobile receiving
at least until we have to make that configurable etc.
2018-09-19 18:22:59 -05:00
Lance Edgar
acd8c97afc Fix how we check config for mobile "quick receive" feature
at least hopefully this fixes it, and doesn't break anybody..
2018-09-19 17:16:15 -05:00
Lance Edgar
6fb78c5dde Add setting to show/hide product image for mobile purchasing/receiving 2018-09-19 16:42:50 -05:00
Lance Edgar
5b2f4127ea Fix bug when editing truck dump child batch row quantities
sometimes we need to "add" to an existing claim which has qty None
2018-09-19 11:00:10 -05:00
Lance Edgar
a6a7d22ec1 Honor view logic when displaying Delete Row button for mobile receiving
also do not allow quick receive if receiving from scratch
2018-08-17 12:41:48 -05:00
Lance Edgar
56392ccdd0 Add "quick receive all" support for mobile receiving
i.e. quick receive button can now receive all/remainder of the ordered qty
2018-08-16 22:21:58 -05:00
Lance Edgar
950af8b5e0 Add "quick lookup" for mobile Products page
only if enabled, otherwise just shows the normal grid
2018-08-09 22:11:44 -05:00
Lance Edgar
21740ea2fd Show links to claiming rows for truck dump parent row 2018-08-09 15:59:57 -05:00
Lance Edgar
6ef5677dc5 Use invoice total, PO total as fallback, for mobile receiving list 2018-08-07 21:41:43 -05:00
Lance Edgar
ac451757b4 Add support for editing "claim" quantities for truck dump child row
at least i think this gets it all...guess we'll see
2018-08-07 15:19:38 -05:00
Lance Edgar
a348755be2 Hide 'ordered' columns for truck dump parent row grid
since that batch type is only concerned with receiving
2018-08-07 13:09:13 -05:00
Lance Edgar
a24076f0ce Make sure we refresh batch status when adding a new row
b/c whether or not it has a product will affect batch status.

this also changes how we interpret UPC for unknown product, i.e. by default we
now assume it does *not* have a check digit and that we should calculate that.
probably just a matter of time before someone needs the opposite though..
2018-08-02 16:58:38 -05:00
Lance Edgar
d145ce5f6d Assign purchase to new receiving batch via uuid instead of object ref
the latter was apparently causing session flush and would create the "dummy"
batch in addition to the "real" one...
2018-07-25 12:46:51 -05:00