mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
- Closes https://github.com/inventree/InvenTree/issues/9300 (cherry picked from commit 4eaa5880c113032cbdbfcbf5dfc25597082cc2f5) Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
2f1e3817f1
commit
3ffbb1cfc7
@ -182,7 +182,7 @@ export default function PurchaseOrderDetail() {
|
||||
label: t`Total Cost`,
|
||||
value_formatter: () => {
|
||||
return formatCurrency(order?.total_price, {
|
||||
currency: order?.order_currency ?? order?.supplier_detail?.currency
|
||||
currency: order?.order_currency || order?.supplier_detail?.currency
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ export default function ReturnOrderDetail() {
|
||||
label: t`Total Cost`,
|
||||
value_formatter: () => {
|
||||
return formatCurrency(order?.total_price, {
|
||||
currency: order?.order_currency ?? order?.customer_detail?.currency
|
||||
currency: order?.order_currency || order?.customer_detail?.currency
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ export function PurchaseOrderTable({
|
||||
sortable: true,
|
||||
render: (record: any) => {
|
||||
return formatCurrency(record.total_price, {
|
||||
currency: record.order_currency ?? record.supplier_detail?.currency
|
||||
currency: record.order_currency || record.supplier_detail?.currency
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -139,7 +139,7 @@ export function ReturnOrderTable({
|
||||
sortable: true,
|
||||
render: (record: any) => {
|
||||
return formatCurrency(record.total_price, {
|
||||
currency: record.order_currency ?? record.customer_detail?.currency
|
||||
currency: record.order_currency || record.customer_detail?.currency
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ export function SalesOrderTable({
|
||||
sortable: true,
|
||||
render: (record: any) => {
|
||||
return formatCurrency(record.total_price, {
|
||||
currency: record.order_currency ?? record.customer_detail?.currency
|
||||
currency: record.order_currency || record.customer_detail?.currency
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user