US Portal

  • Status Assigned
  • Percent Complete
    80%
  • Task Type Enhancement
  • Category Backend / Core
  • Assigned To
    Owen
  • Operating System Linux
  • Severity Medium
  • Priority Critical
  • Reported Version 1.0
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: US Portal
Opened by FS_admin - 23.10.2025

FS#240 - Add compulsary reason drop down to batch stock adjustment

Initial reasons
- Returns
- Partial Arrival
Admin
Kat commented on 23.10.2025 11:41
Here I am! :) Can we add: "stock correction"?
Admin
Drop down added to code running on dev server with the following options:

Returns
Partial Inbound
Shopify
Staff Purchase
Stock Correction

It is not permitted to leave this field blank when editing a batch. The blank / empty option is allowed for backwards compatibility. If the stock adjust code is being called from elsewhere in the code it will not have a reason. For the next step I can explore seeing if it's possible to use the call stack as the reason to see where it was being called from.
Admin
Along with the above changes there are a few more enhancements to make life a bit easier.

- the colour of blocks on the Historic Stock Levels has been overhauled to correctly show
. - black on yellow for reductions
. - yellow on dark green for same or increased values
. - black on light green where there is only one entry for the IGN, no way of knowing if it's up or down

- colours are now used on the Historic Sales and Historic Restocks, yellow on green for positive numbers and black on red for negative.
Admin
The changes for this introduced a new feature of a standard drop down with options and no text entry field.

The list with entry field, as found on the inbound and orders pages now clear on clicking in edit mode. If an option is selected the complete drop down list can be viewed again by double clicking in the field. A single click just reveals what was in there before,

This is as good as I can get it at the moment, will keep looking.
Admin
First version now published
Admin
Had an incidence today of a stock batch level update with no reason. Have asked if anyone knows hos this was achieved
Admin
Above incidence down to user not doing Ctrl F5 to get latest scripts

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing