feat(QuickBooks Node): Add optional Tax item field (#3404)

* Added tax refs

* Nodelinter fixes
This commit is contained in:
Jonathan Bennetts
2022-06-03 19:35:24 +01:00
committed by GitHub
parent f02421b5f3
commit c341b45396
12 changed files with 117 additions and 88 deletions

View File

@@ -99,6 +99,23 @@ export const invoiceFields: INodeProperties[] = [
},
},
options: [
{
displayName: 'Amount',
name: 'Amount',
description: 'Monetary amount of the line item',
type: 'number',
default: 0,
},
{
displayName: 'Description',
name: 'Description',
description: 'Textual description of the line item',
type: 'string',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
},
{
displayName: 'Detail Type',
name: 'DetailType',
@@ -120,23 +137,6 @@ export const invoiceFields: INodeProperties[] = [
loadOptionsMethod: 'getItems',
},
},
{
displayName: 'Amount',
name: 'Amount',
description: 'Monetary amount of the line item',
type: 'number',
default: 0,
},
{
displayName: 'Description',
name: 'Description',
description: 'Textual description of the line item',
type: 'string',
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
},
{
displayName: 'Position',
name: 'LineNum',
@@ -144,6 +144,15 @@ export const invoiceFields: INodeProperties[] = [
type: 'number',
default: 1,
},
{
displayName: 'Tax Code Ref',
name: 'TaxCodeRef',
type: 'options',
default: [],
typeOptions: {
loadOptionsMethod: 'getTaxCodeRefs',
},
},
],
},
{
@@ -214,7 +223,7 @@ export const invoiceFields: INodeProperties[] = [
type: 'boolean',
required: true,
default: false,
description: 'Download the invoice as a PDF file',
description: 'Whether to download the invoice as a PDF file',
displayOptions: {
show: {
resource: [
@@ -294,7 +303,7 @@ export const invoiceFields: INodeProperties[] = [
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,