2
0
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:
Oliver
2023-04-02 21:43:05 +10:00
committed by GitHub
parent 847d49a42d
commit 4d8cfd77ff
5 changed files with 56 additions and 18 deletions

View File

@ -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>`;
}
}
}
]
});
}