mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
fix: edit mode sales & purchases.
This commit is contained in:
@@ -46,6 +46,7 @@ function BillForm({
|
||||
...(!isEmpty(bill)
|
||||
? {
|
||||
...transformToEditForm(bill),
|
||||
currency_code: baseCurrency,
|
||||
}
|
||||
: {
|
||||
...defaultBill,
|
||||
|
||||
@@ -55,7 +55,7 @@ function EstimateForm({
|
||||
const initialValues = useMemo(
|
||||
() => ({
|
||||
...(!isEmpty(estimate)
|
||||
? { ...transformToEditForm(estimate) }
|
||||
? { ...transformToEditForm(estimate), currency_code: baseCurrency }
|
||||
: {
|
||||
...defaultEstimate,
|
||||
...(estimateIncrementMode && {
|
||||
|
||||
@@ -59,7 +59,7 @@ function InvoiceForm({
|
||||
const initialValues = useMemo(
|
||||
() => ({
|
||||
...(!isEmpty(invoice)
|
||||
? transformToEditForm(invoice)
|
||||
? { ...transformToEditForm(invoice), currency_code: baseCurrency }
|
||||
: {
|
||||
...defaultInvoice,
|
||||
...(invoiceIncrementMode && {
|
||||
|
||||
@@ -60,7 +60,7 @@ function ReceiptForm({
|
||||
const initialValues = useMemo(
|
||||
() => ({
|
||||
...(!isEmpty(receipt)
|
||||
? transformToEditForm(receipt)
|
||||
? { ...transformToEditForm(receipt), currency_code: baseCurrency }
|
||||
: {
|
||||
...defaultReceipt,
|
||||
...(receiptAutoIncrement && {
|
||||
|
||||
Reference in New Issue
Block a user