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

@@ -95,6 +95,23 @@ export const estimateFields: 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',
@@ -116,23 +133,6 @@ export const estimateFields: 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',
@@ -140,6 +140,15 @@ export const estimateFields: INodeProperties[] = [
type: 'number',
default: 1,
},
{
displayName: 'Tax Code Ref',
name: 'TaxCodeRef',
type: 'options',
default: [],
typeOptions: {
loadOptionsMethod: 'getTaxCodeRefs',
},
},
],
},
{
@@ -210,7 +219,7 @@ export const estimateFields: INodeProperties[] = [
type: 'boolean',
required: true,
default: false,
description: 'Download the estimate as a PDF file',
description: 'Whether to download the estimate as a PDF file',
displayOptions: {
show: {
resource: [
@@ -290,7 +299,7 @@ export const estimateFields: INodeProperties[] = [
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 5,
default: 50,
description: 'Max number of results to return',
typeOptions: {
minValue: 1,