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