2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add total cost column to purchase order list (#4445)

* add total price column to purchase order list

* bump API version
This commit is contained in:
simonkuehling
2023-03-04 00:09:40 +01:00
committed by GitHub
parent 575d62bff4
commit c0f405243a
3 changed files with 15 additions and 2 deletions

View File

@ -2151,11 +2151,20 @@ function loadPurchaseOrderTable(table, options) {
title: '{% trans "Items" %}',
sortable: true,
},
{
field: 'total_price',
title: '{% trans "Total Cost" %}',
switchable: true,
sortable: false,
formatter: function(value, row) {
return formatCurrency(value);
},
},
{
field: 'responsible',
title: '{% trans "Responsible" %}',
switchable: true,
sortable: false,
sortable: true,
formatter: function(value, row) {
if (!row.responsible_detail) {