IO-256 Resolve no invoice on CM QBO export.
This commit is contained in:
@@ -384,7 +384,9 @@ async function InsertCreditMemo(
|
|||||||
},
|
},
|
||||||
TxnDate: moment(payment.date).format("YYYY-MM-DD"),
|
TxnDate: moment(payment.date).format("YYYY-MM-DD"),
|
||||||
DocNumber: payment.paymentnum,
|
DocNumber: payment.paymentnum,
|
||||||
...(invoices[0] ? { InvoiceRef: { value: invoices[0].Id } } : {}),
|
...(invoices && invoices[0]
|
||||||
|
? { InvoiceRef: { value: invoices[0].Id } }
|
||||||
|
: {}),
|
||||||
Line: [
|
Line: [
|
||||||
{
|
{
|
||||||
DetailType: "SalesItemLineDetail",
|
DetailType: "SalesItemLineDetail",
|
||||||
|
|||||||
Reference in New Issue
Block a user