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

@@ -176,7 +176,7 @@ function BillFormVendorField() {
name={'vendor_id'}
items={vendors}
placeholder={<T id={'select_vender_account'} />}
onItemChange={(contact) => {
onItemSelect={(contact) => {
setFieldValue('vendor_id', contact.id);
setFieldValue('currency_code', contact?.currency_code);
}}