fix(xero Node): fix line amount types being ignored when creating new invoices (#4146)

This commit is contained in:
Jonathan Bennetts 2022-09-20 14:33:29 +01:00 committed by GitHub
parent a8030dbda5
commit 3e2e9e6009
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ export interface IInvoice extends ITenantId {
Contact?: IDataObject;
Date?: string;
DueDate?: string;
LineAmountType?: string;
LineAmountTypes?: string;
InvoiceNumber?: string;
Reference?: string;
BrandingThemeID?: string;

View file

@ -291,7 +291,7 @@ export class Xero implements INodeType {
body.InvoiceNumber = additionalFields.invoiceNumber as string;
}
if (additionalFields.lineAmountType) {
body.LineAmountType = additionalFields.lineAmountType as string;
body.LineAmountTypes = additionalFields.lineAmountType as string;
}
if (additionalFields.plannedPaymentDate) {
body.PlannedPaymentDate = additionalFields.plannedPaymentDate as string;
@ -388,7 +388,7 @@ export class Xero implements INodeType {
body.InvoiceNumber = updateFields.invoiceNumber as string;
}
if (updateFields.lineAmountType) {
body.LineAmountType = updateFields.lineAmountType as string;
body.LineAmountTypes = updateFields.lineAmountType as string;
}
if (updateFields.plannedPaymentDate) {
body.PlannedPaymentDate = updateFields.plannedPaymentDate as string;