fix: edit mode sales & purchases.

This commit is contained in:
elforjani3
2021-04-21 01:07:08 +02:00
parent fcc95d9e01
commit 38bd6fe6a6
4 changed files with 4 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ function InvoiceForm({
const initialValues = useMemo(
() => ({
...(!isEmpty(invoice)
? transformToEditForm(invoice)
? { ...transformToEditForm(invoice), currency_code: baseCurrency }
: {
...defaultInvoice,
...(invoiceIncrementMode && {