Commit graph

209 commits

Author SHA1 Message Date
Lance Edgar
be92075abb Allow "auto-receive all items" batch feature in production
but require a dedicated permission
2021-12-08 20:26:31 -06:00
Lance Edgar
10e34b83ed Refactor "receive row" and "declare credit" tools per buefy theme 2021-12-08 19:44:50 -06:00
Lance Edgar
60222c4977 Assume default receiving workflow if there is only one 2021-12-07 19:58:11 -06:00
Lance Edgar
03dad82663 Add basic support for receiving from PO with invoice 2021-11-25 16:50:13 -06:00
Lance Edgar
b8f1b7bd84 Show ordered quantity when viewing costing batch row 2021-11-17 14:57:10 -06:00
Lance Edgar
fec7c3b3ee Cleanup grid columns for receiving batches 2021-11-07 18:10:28 -06:00
Lance Edgar
23d38604c4 Let handler restrict available invoice parser options 2021-11-07 17:10:33 -06:00
Lance Edgar
2d87ce5c29 Highlight the "did not receive" rows for purchase batch
also add some row grid links
2021-10-22 21:53:46 -05:00
Lance Edgar
2d0a922cff Show case qty by default for costing batch rows 2021-10-22 21:24:08 -05:00
Lance Edgar
7fabef6004 Stop rounding case/unit cost fields to 2 places for purchase batch 2021-10-10 20:08:52 -04:00
Lance Edgar
9b6113a4c8 Show shipped quantities when viewing costing batch row
for lines which came from invoice, we should know those quantities,
but possibly *not* the received quantities, if e.g. the line item
wasn't matched w/ PO
2021-10-05 16:20:08 -04:00
Lance Edgar
def8ea7c15 Some tweaks for invoice costing batch views 2021-10-05 16:12:48 -04:00
Lance Edgar
bbfffd45fc Initial (basic) views for invoice costing batches
still a bit of feature preview at the moment, but maybe is mostly done?
2021-09-29 17:27:20 -04:00
Lance Edgar
97bdc3f785 Improve error handling for purchase batch
so error will display in browser when applicable
2021-09-09 12:00:13 -05:00
Lance Edgar
329e75ee82 Add initial "scanning" feature for Ordering Batches 2021-01-31 21:51:46 -06:00
Lance Edgar
801c56f06e More tweaks for receiving batch workflows
now first step requires choice of vendor and workflow.  supports receiving from
PO at least for native use case.
2021-01-31 12:10:44 -06:00
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
fac00e6ecd Misc. improvements for ordering batches, purchases
also we now show handler's description when executing batch
2021-01-30 13:17:08 -06:00
Lance Edgar
b3867d9c89 Tweak how vendor link is rendered for readonly field 2021-01-27 22:24:23 -06:00
Lance Edgar
fdcf23f65f Stop including 'complete' filter by default for purchasing batches 2020-09-04 20:30:33 -05:00
Lance Edgar
7f8271e215 Don't require department by default, for new purchasing batch 2020-08-21 12:28:01 -05:00
Lance Edgar
58362ae858 Add buefy theme support for ordering worksheet 2020-08-20 17:56:19 -05: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
ad9c193061 Clean up some purchasing views 2020-03-19 14:36:43 -05:00
Lance Edgar
12b0ac1037 Move logic for Order Form worksheet into purchase batch handler
i.e. get it out of Tailbone!
2020-03-06 19:53:03 -06:00
Lance Edgar
2b70ed1407 Fix "edit row" logic for ordering batch
previous logic allowed `colander.null` to be passed to batch handler, which
caused an error.  also it allowed editing "all" fields for the row, which we
really don't need to do, so now we just support the order quantities
2020-02-24 13:38:58 -06:00
Lance Edgar
fc830f60e8 Tweak worksheet_update() of ordering batch view, to leverage handler
specifically this is to make use of handler's `update_row_quantity()` method,
when user enters new order quantities via worksheet
2020-02-24 12:36:47 -06:00
Lance Edgar
c3f4a3d9ea Tweak save_edit_row_form() of purchase batch view, to leverage handler
specifically this is to make use of handler's `update_row_quantity()` method,
when editing a row for ordering batches
2020-02-24 12:27:26 -06: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
a9b740dcaa Add basic support for "eligible purchases" for receiving batch API 2019-11-12 17:46:18 -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
5cfe69d24b Hopefully fix "single store" behavior when make a new ordering batch
this does seem to fix for this use case, but previous commit for this code
implied that it was fixing something for the receiving use case...
2019-08-23 22:05:09 -05:00
Lance Edgar
355a49e463 Fix PO total calculation bug for mobile ordering
also fix currency formatting for PO calculated total
2019-06-21 15:18:41 -05:00
Lance Edgar
d7e19865de Update calculated PO totals for purchasing batch, when editing row 2019-06-08 13:16:57 -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