mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Sales Order Allocation Improvements (#4556)
* Do not remove sales order allocations when returning an item against a return order * Also do not clear allocations when returning manually * stock item display tweaks * Add extra column to sales order allocation table * Improve methods for introspecting sales order allocations for stockitems * Only display "active" sales order allocations on a stock item detail page - All allocations are still visible in the allocation table * Can't have available quantity if you're not available tap's side of nose
This commit is contained in:
@ -1387,6 +1387,7 @@ function loadSalesOrderAllocationTable(table, options={}) {
|
||||
},
|
||||
{
|
||||
field: 'item',
|
||||
switchable: false,
|
||||
title: '{% trans "Stock Item" %}',
|
||||
formatter: function(value, row) {
|
||||
// Render a link to the particular stock item
|
||||
@ -1409,6 +1410,18 @@ function loadSalesOrderAllocationTable(table, options={}) {
|
||||
title: '{% trans "Quantity" %}',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
field: 'shipment_date',
|
||||
title: '{% trans "Shipped" %}',
|
||||
sortable: true,
|
||||
formatter: function(value, row) {
|
||||
if (value) {
|
||||
return renderDate(value);
|
||||
} else {
|
||||
return `<em>{% trans "Not shipped" %}</em>`;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user