Fix: initial numeric values.

This commit is contained in:
elforjani3
2020-11-22 15:44:01 +02:00
parent 229eeaf142
commit bd3c539f9e
4 changed files with 13 additions and 13 deletions

View File

@@ -37,10 +37,10 @@ const MIN_LINES_NUMBER = 4;
const defaultEstimate = {
index: 0,
item_id: null,
rate: null,
item_id: '',
rate: '',
discount: 0,
quantity: null,
quantity: '',
description: '',
};

View File

@@ -37,10 +37,10 @@ const MIN_LINES_NUMBER = 4;
const defaultInvoice = {
index: 0,
item_id: null,
rate: null,
item_id: '',
rate: '',
discount: 0,
quantity: null,
quantity: '',
description: '',
};

View File

@@ -106,10 +106,10 @@ function PaymentReceiveForm({
// Default payment receive entry.
const defaultPaymentReceiveEntry = {
id: null,
payment_amount: null,
invoice_id: null,
due_amount: null,
id: '',
payment_amount: '',
invoice_id: '',
due_amount: '',
};
// Form initial values.

View File

@@ -38,10 +38,10 @@ const MIN_LINES_NUMBER = 4;
const defaultReceipt = {
index: 0,
item_id: null,
rate: null,
item_id: '',
rate: '',
discount: 0,
quantity: null,
quantity: '',
description: '',
};