mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08: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;
|
Contact?: IDataObject;
|
||||||
Date?: string;
|
Date?: string;
|
||||||
DueDate?: string;
|
DueDate?: string;
|
||||||
LineAmountType?: string;
|
LineAmountTypes?: string;
|
||||||
InvoiceNumber?: string;
|
InvoiceNumber?: string;
|
||||||
Reference?: string;
|
Reference?: string;
|
||||||
BrandingThemeID?: string;
|
BrandingThemeID?: string;
|
||||||
|
|
|
@ -291,7 +291,7 @@ export class Xero implements INodeType {
|
||||||
body.InvoiceNumber = additionalFields.invoiceNumber as string;
|
body.InvoiceNumber = additionalFields.invoiceNumber as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.lineAmountType) {
|
if (additionalFields.lineAmountType) {
|
||||||
body.LineAmountType = additionalFields.lineAmountType as string;
|
body.LineAmountTypes = additionalFields.lineAmountType as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.plannedPaymentDate) {
|
if (additionalFields.plannedPaymentDate) {
|
||||||
body.PlannedPaymentDate = additionalFields.plannedPaymentDate as string;
|
body.PlannedPaymentDate = additionalFields.plannedPaymentDate as string;
|
||||||
|
@ -388,7 +388,7 @@ export class Xero implements INodeType {
|
||||||
body.InvoiceNumber = updateFields.invoiceNumber as string;
|
body.InvoiceNumber = updateFields.invoiceNumber as string;
|
||||||
}
|
}
|
||||||
if (updateFields.lineAmountType) {
|
if (updateFields.lineAmountType) {
|
||||||
body.LineAmountType = updateFields.lineAmountType as string;
|
body.LineAmountTypes = updateFields.lineAmountType as string;
|
||||||
}
|
}
|
||||||
if (updateFields.plannedPaymentDate) {
|
if (updateFields.plannedPaymentDate) {
|
||||||
body.PlannedPaymentDate = updateFields.plannedPaymentDate as string;
|
body.PlannedPaymentDate = updateFields.plannedPaymentDate as string;
|
||||||
|
|
Loading…
Reference in a new issue