mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: currency_code in Expense.
This commit is contained in:
@@ -187,7 +187,7 @@ function ExpensesDataTable({
|
||||
{
|
||||
id: 'total_amount',
|
||||
Header: formatMessage({ id: 'full_amount' }),
|
||||
accessor: (r) => <Money amount={r.total_amount} currency={'USD'} />,
|
||||
accessor: (r) => <Money amount={r.total_amount} currency={r.currency_code} />,
|
||||
className: 'total_amount',
|
||||
width: 150,
|
||||
},
|
||||
@@ -209,7 +209,7 @@ function ExpensesDataTable({
|
||||
id: 'publish',
|
||||
Header: formatMessage({ id: 'publish' }),
|
||||
accessor: (r) => {
|
||||
return !!r.is_published ? (
|
||||
return r.is_published ? (
|
||||
<Tag minimal={true}>
|
||||
<T id={'published'} />
|
||||
</Tag>
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function ExpenseFormHeader() {
|
||||
<PageFormBigNumber
|
||||
label={'Expense Amount'}
|
||||
amount={totalExpenseAmount}
|
||||
currencyCode={'LYD'}
|
||||
currencyCode={values?.currency_code}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user