fix: update financial forms to use new formatted amount utilities and add adjustment fields

This commit is contained in:
Ahmed Bouhuolia
2024-12-03 17:53:37 +02:00
parent 542763ddf5
commit 3a19518440
21 changed files with 128 additions and 133 deletions

View File

@@ -21,6 +21,7 @@ export default function CreditNoteDetailTableFooter() {
<TotalLine
title={<T id={'credit_note.drawer.label_subtotal'} />}
value={creditNote.formatted_subtotal}
borderStyle={TotalLineBorderStyle.SingleDark}
/>
{creditNote.discount_amount > 0 && (
<TotalLine
@@ -30,7 +31,12 @@ export default function CreditNoteDetailTableFooter() {
: 'Discount'
}
value={creditNote.discount_amount_formatted}
borderStyle={TotalLineBorderStyle.Dark}
/>
)}
{creditNote.adjustment > 0 && (
<TotalLine
title={'Adjustment'}
value={creditNote.adjustment_formatted}
/>
)}
<TotalLine