mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-30 16:41:35 +00:00
Add functionality to create a new sales order shipment
- From the "New Shipment" button - As a secondary modal from the stock allocation dialgo
This commit is contained in:
InvenTree
@@ -913,7 +913,6 @@ class SalesOrderShipment(models.Model):
|
||||
|
||||
Attributes:
|
||||
order: SalesOrder reference
|
||||
status: Status of this shipment (see SalesOrderStatus)
|
||||
shipment_date: Date this shipment was "shipped" (or null)
|
||||
checked_by: User reference field indicating who checked this order
|
||||
reference: Custom reference text for this shipment (e.g. consignment number?)
|
||||
|
@@ -113,6 +113,16 @@
|
||||
order: {{ order.pk }},
|
||||
shipped: false,
|
||||
});
|
||||
|
||||
$('#new-shipment').click(function() {
|
||||
createSalesOrderShipment({
|
||||
order: {{ order.pk }},
|
||||
onSuccess: function(data) {
|
||||
$('#pending-shipments-table').bootstrapTable('refresh');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
{% endif %}
|
||||
|
||||
loadSalesOrderShipmentTable('#completed-shipments-table', {
|
||||
|
Reference in New Issue
Block a user