IO-1505 Resolve PST exempt exporting to QBO.
This commit is contained in:
@@ -76,7 +76,12 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: (jobline.db_ref === "900511" || jobline.db_ref === "900510") ? true: jobline.tax_part,
|
state:
|
||||||
|
jobs_by_pk.state_tax_rate === 0
|
||||||
|
? false
|
||||||
|
: jobline.db_ref === "900511" || jobline.db_ref === "900510"
|
||||||
|
? true
|
||||||
|
: jobline.tax_part,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -142,7 +147,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -204,7 +209,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -267,7 +272,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -346,7 +351,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -394,7 +399,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
@@ -445,7 +450,7 @@ exports.default = function ({
|
|||||||
{
|
{
|
||||||
local: false,
|
local: false,
|
||||||
federal: true,
|
federal: true,
|
||||||
state: true,
|
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
|
||||||
},
|
},
|
||||||
bodyshop.md_responsibility_centers.sales_tax_codes
|
bodyshop.md_responsibility_centers.sales_tax_codes
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ query QUERY_JOBS_FOR_RECEIVABLES_EXPORT($ids: [uuid!]!) {
|
|||||||
towing_payable
|
towing_payable
|
||||||
storage_payable
|
storage_payable
|
||||||
adjustment_bottom_line
|
adjustment_bottom_line
|
||||||
|
state_tax_rate
|
||||||
owner {
|
owner {
|
||||||
accountingid
|
accountingid
|
||||||
}
|
}
|
||||||
@@ -242,7 +243,7 @@ query QUERY_JOBS_FOR_CDK_EXPORT($id: uuid!) {
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports.QUERY_JOBS_FOR_PBS_EXPORT = `
|
exports.QUERY_JOBS_FOR_PBS_EXPORT = `
|
||||||
query QUERY_JOBS_FOR_PBS_EXPORT($id: uuid!) {
|
query QUERY_JOBS_FOR_PBS_EXPORT($id: uuid!) {
|
||||||
jobs_by_pk(id: $id) {
|
jobs_by_pk(id: $id) {
|
||||||
id
|
id
|
||||||
|
|||||||
Reference in New Issue
Block a user