2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix currency rendering (#9308)

- Closes https://github.com/inventree/InvenTree/issues/9300
This commit is contained in:
Oliver 2025-03-16 07:42:34 +11:00 committed by GitHub
parent e1ac1c77c0
commit 4eaa5880c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -191,7 +191,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
});
}
}

View File

@ -155,7 +155,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
});
}
}

View File

@ -135,7 +135,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
});
}
},

View File

@ -144,7 +144,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
});
}
}

View File

@ -179,7 +179,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
});
}
}