2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

Fix currency rendering (#9308) (#9310)

- 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:
github-actions[bot] 2025-03-16 08:56:57 +11:00 committed by GitHub
parent 2f1e3817f1
commit 3ffbb1cfc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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