mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-31 00:37:10 +02:00
fix(xero Node): fix line amount types being ignored when creating new invoices (#4146)
This commit is contained in:
parent
a8030dbda5
commit
3e2e9e6009
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user