Resolve returnfrombill relationship issue.

This commit is contained in:
Patrick Fic
2021-02-15 18:49:19 -08:00
parent 99b652e078
commit 2587903ccc
10 changed files with 717 additions and 14 deletions

View File

@@ -33,6 +33,38 @@ exports.default = async (req, res) => {
});
const { payments } = result;
if (isThreeTier) {
QbXmlToExecute.push({
id: jobs_by_pk.id,
okStatusCodes: ["0", "3100"],
qbxml: generateSourceCustomerQbxml(jobs_by_pk, bodyshop), // Create the source customer.
});
}
QbXmlToExecute.push({
id: jobs_by_pk.id,
okStatusCodes: ["0", "3100"],
qbxml: generateJobQbxml(
jobs_by_pk,
bodyshop,
isThreeTier,
2,
twoTierPref
),
});
QbXmlToExecute.push({
id: jobs_by_pk.id,
okStatusCodes: ["0", "3100"],
qbxml: generateJobQbxml(
jobs_by_pk,
bodyshop,
isThreeTier,
3,
twoTierPref
),
});
const QbXmlToExecute = [];
payments.map((i) => {
QbXmlToExecute.push({

View File

@@ -154,7 +154,15 @@ exports.QUERY_PAYMENTS_FOR_EXPORT = `
job {
id
ro_number
ownerid
ownr_ln
ownr_fn
ownr_addr1
ownr_addr2
ownr_zip
ownr_city
ownr_st
ins_co_nm
owner{
accountingid