mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: sale invoices and bills date formating.
This commit is contained in:
@@ -149,7 +149,7 @@ export default class BillsService extends SalesInvoicesCost {
|
||||
const amount = sumBy(entries, 'amount');
|
||||
|
||||
return {
|
||||
...formatDateFields(billDTO, ['bill_date', 'due_date']),
|
||||
...formatDateFields(billDTO, ['billDate', 'dueDate']),
|
||||
amount,
|
||||
invLotNumber,
|
||||
entries,
|
||||
|
||||
@@ -116,7 +116,7 @@ export default class SaleInvoicesService extends SalesInvoicesCost {
|
||||
const invLotNumber = 1;
|
||||
|
||||
const saleInvoiceObj: ISaleInvoice = {
|
||||
...formatDateFields(saleInvoiceDTO, ['invoice_date', 'due_date']),
|
||||
...formatDateFields(saleInvoiceDTO, ['invoiceDate', 'dueDate']),
|
||||
balance,
|
||||
paymentAmount: 0,
|
||||
// invLotNumber,
|
||||
@@ -166,7 +166,7 @@ export default class SaleInvoicesService extends SalesInvoicesCost {
|
||||
const oldSaleInvoice = await this.getInvoiceOrThrowError(tenantId, saleInvoiceId);
|
||||
|
||||
const saleInvoiceObj = {
|
||||
...formatDateFields(saleInvoiceDTO, ['invoice_date', 'due_date']),
|
||||
...formatDateFields(saleInvoiceDTO, ['invoiceDate', 'dueDate']),
|
||||
balance,
|
||||
// invLotNumber: oldSaleInvoice.invLotNumber,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user