mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +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');
|
const amount = sumBy(entries, 'amount');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...formatDateFields(billDTO, ['bill_date', 'due_date']),
|
...formatDateFields(billDTO, ['billDate', 'dueDate']),
|
||||||
amount,
|
amount,
|
||||||
invLotNumber,
|
invLotNumber,
|
||||||
entries,
|
entries,
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export default class SaleInvoicesService extends SalesInvoicesCost {
|
|||||||
const invLotNumber = 1;
|
const invLotNumber = 1;
|
||||||
|
|
||||||
const saleInvoiceObj: ISaleInvoice = {
|
const saleInvoiceObj: ISaleInvoice = {
|
||||||
...formatDateFields(saleInvoiceDTO, ['invoice_date', 'due_date']),
|
...formatDateFields(saleInvoiceDTO, ['invoiceDate', 'dueDate']),
|
||||||
balance,
|
balance,
|
||||||
paymentAmount: 0,
|
paymentAmount: 0,
|
||||||
// invLotNumber,
|
// invLotNumber,
|
||||||
@@ -166,7 +166,7 @@ export default class SaleInvoicesService extends SalesInvoicesCost {
|
|||||||
const oldSaleInvoice = await this.getInvoiceOrThrowError(tenantId, saleInvoiceId);
|
const oldSaleInvoice = await this.getInvoiceOrThrowError(tenantId, saleInvoiceId);
|
||||||
|
|
||||||
const saleInvoiceObj = {
|
const saleInvoiceObj = {
|
||||||
...formatDateFields(saleInvoiceDTO, ['invoice_date', 'due_date']),
|
...formatDateFields(saleInvoiceDTO, ['invoiceDate', 'dueDate']),
|
||||||
balance,
|
balance,
|
||||||
// invLotNumber: oldSaleInvoice.invLotNumber,
|
// invLotNumber: oldSaleInvoice.invLotNumber,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user