IO-1505 Resolve PST exempt exporting to QBO.

This commit is contained in:
Patrick Fic
2021-11-09 16:04:16 -08:00
parent f4ddb40bde
commit 6afcf82cc4
2 changed files with 14 additions and 8 deletions

View File

@@ -76,7 +76,12 @@ exports.default = function ({
{
local: false,
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
);
@@ -142,7 +147,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);
@@ -204,7 +209,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);
@@ -267,7 +272,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);
@@ -346,7 +351,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);
@@ -394,7 +399,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);
@@ -445,7 +450,7 @@ exports.default = function ({
{
local: false,
federal: true,
state: true,
state: jobs_by_pk.state_tax_rate === 0 ? false : true,
},
bodyshop.md_responsibility_centers.sales_tax_codes
);

View File

@@ -126,6 +126,7 @@ query QUERY_JOBS_FOR_RECEIVABLES_EXPORT($ids: [uuid!]!) {
towing_payable
storage_payable
adjustment_bottom_line
state_tax_rate
owner {
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!) {
jobs_by_pk(id: $id) {
id