mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Shipment date edit (#3050)
* Allow user to select shipment date when shipping a salesorder - Defaults to 'today' * Retain the tracking number information through the from * JS linting * Add unit testing for the SalesOrderShipmentComplete serializer / API endpoint
This commit is contained in:
@ -129,7 +129,12 @@ function completeShipment(shipment_id, options={}) {
|
||||
method: 'POST',
|
||||
title: `{% trans "Complete Shipment" %} ${shipment.reference}`,
|
||||
fields: {
|
||||
tracking_number: {},
|
||||
tracking_number: {
|
||||
value: shipment.tracking_number,
|
||||
},
|
||||
shipment_date: {
|
||||
value: moment().format('YYYY-MM-DD'),
|
||||
}
|
||||
},
|
||||
preFormContent: html,
|
||||
confirm: true,
|
||||
|
Reference in New Issue
Block a user