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

@@ -55,7 +55,7 @@ function EstimateForm({
const initialValues = useMemo(
() => ({
...(!isEmpty(estimate)
? { ...transformToEditForm(estimate) }
? { ...transformToEditForm(estimate), currency_code: baseCurrency }
: {
...defaultEstimate,
...(estimateIncrementMode && {