feat(Sales & Purchases ): add currency code in edit mode.

This commit is contained in:
elforjani13
2022-03-01 15:57:47 +02:00
parent 151e72a76d
commit 0923c69c16
23 changed files with 21 additions and 22 deletions

View File

@@ -153,7 +153,6 @@ function PaymentReceiveHeaderFields({
onContactSelected={(customer) => {
form.setFieldValue('customer_id', customer.id);
form.setFieldValue('full_amount', '');
form.setFieldValue('exchange_rate', '');
form.setFieldValue('currency_code', customer?.currency_code);
setSelectCustomer(customer);
}}

View File

@@ -34,7 +34,7 @@ export const defaultPaymentReceive = {
full_amount: '',
currency_code: '',
branch_id: '',
exchange_rate:'',
exchange_rate: 1,
entries: [],
};