mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat(Sales & Purchases ): add currency code in edit mode.
This commit is contained in:
@@ -75,6 +75,7 @@ function VendorCreditNoteForm({
|
||||
vendor_credit_number: vendorCreditNumber,
|
||||
}),
|
||||
...newVendorCredit,
|
||||
currency_code: base_currency,
|
||||
}),
|
||||
}),
|
||||
[vendorCredit, base_currency],
|
||||
|
||||
@@ -107,7 +107,6 @@ function VendorCreditNoteFormHeaderFields({
|
||||
defaultSelectText={<T id={'select_vender_account'} />}
|
||||
onContactSelected={(contact) => {
|
||||
form.setFieldValue('vendor_id', contact.id);
|
||||
form.setFieldValue('exchange_rate', '');
|
||||
form.setFieldValue('currency_code', contact?.currency_code);
|
||||
setSelectVendor(contact);
|
||||
}}
|
||||
|
||||
@@ -41,7 +41,8 @@ export const defaultVendorsCreditNote = {
|
||||
note: '',
|
||||
branch_id: '',
|
||||
warehouse_id: '',
|
||||
exchange_rate: '',
|
||||
exchange_rate: 1,
|
||||
currency_code: '',
|
||||
entries: [...repeatValue(defaultCreditNoteEntry, MIN_LINES_NUMBER)],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user