fix(webapp): assign currency code of customer/vendor to the transaction form.

This commit is contained in:
Ahmed Bouhuolia
2023-07-18 20:02:45 +02:00
parent da514403a1
commit f22dc9a18b
8 changed files with 8 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ function CreditNoteCustomersSelect() {
name={'customer_id'}
items={customers}
placeholder={<T id={'select_customer_account'} />}
onItemChange={(customer) => {
onItemSelect={(customer) => {
setFieldValue('customer_id', customer.id);
setFieldValue('currency_code', customer?.currency_code);
}}