IO-1708 Remove timezone from date fields on server calcuations.

This commit is contained in:
Patrick Fic
2022-02-09 16:29:16 -08:00
parent 4c70351429
commit f8695972a3
5 changed files with 15 additions and 12 deletions

View File

@@ -207,7 +207,8 @@ async function InsertPayment(
CustomerRef: {
value: parentRef.Id,
},
TxnDate: moment(payment.date).tz(bodyshop.timezone).format("YYYY-MM-DD"),
TxnDate: moment(payment.date) //.tz(bodyshop.timezone)
.format("YYYY-MM-DD"),
//DueDate: bill.due_date && moment(bill.due_date).format("YYYY-MM-DD"),
DocNumber: payment.paymentnum,
TotalAmt: Dinero({
@@ -392,7 +393,9 @@ async function InsertCreditMemo(
CustomerRef: {
value: parentRef.Id,
},
TxnDate: moment(payment.date).tz(bodyshop.timezone).format("YYYY-MM-DD"),
TxnDate: moment(payment.date)
//.tz(bodyshop.timezone)
.format("YYYY-MM-DD"),
DocNumber: payment.paymentnum,
...(invoices && invoices[0]
? { InvoiceRef: { value: invoices[0].Id } }