Use company currency for purchase order

This commit is contained in:
Hillel Coren 2022-10-04 12:15:11 +03:00
parent 31963ca7aa
commit e2cda20f5c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class InvoiceEditFooter extends StatelessWidget {
final total = formatNumber(
invoice.calculateTotal(precision: precisionForInvoice(state, invoice)),
context,
clientId: invoice.clientId);
clientId: invoice.isPurchaseOrder ? null : invoice.clientId);
final useSidebarEditor =
state.prefState.useSidebarEditor[EntityType.invoice] ?? false;
final showLayoutToggle = isDesktop(context);