Merged in release/2022-05-06 (pull request #462)
release/2022-05-06 Approved-by: Patrick Fic
This commit is contained in:
@@ -256,8 +256,7 @@ export const GenerateDocument = async (
|
|||||||
} else if (sendType === "x") {
|
} else if (sendType === "x") {
|
||||||
console.log("excel");
|
console.log("excel");
|
||||||
await RenderTemplate(template, bodyshop, false, true);
|
await RenderTemplate(template, bodyshop, false, true);
|
||||||
} else if (sendType === "x") {
|
} else if (sendType === "text") {
|
||||||
console.log("text");
|
|
||||||
await RenderTemplate(template, bodyshop, false, false, true);
|
await RenderTemplate(template, bodyshop, false, false, true);
|
||||||
} else {
|
} else {
|
||||||
await RenderTemplate(template, bodyshop);
|
await RenderTemplate(template, bodyshop);
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ async function InsertInsuranceCo(oauthClient, qbo_realmId, req, job, bodyshop) {
|
|||||||
|
|
||||||
const Customer = {
|
const Customer = {
|
||||||
DisplayName: job.ins_co_nm,
|
DisplayName: job.ins_co_nm,
|
||||||
|
BillWithParent: true,
|
||||||
BillAddr: {
|
BillAddr: {
|
||||||
City: job.ownr_city,
|
City: job.ownr_city,
|
||||||
Line1: insCo.street1,
|
Line1: insCo.street1,
|
||||||
@@ -302,6 +303,7 @@ async function InsertOwner(
|
|||||||
const ownerName = generateOwnerTier(job, true, null);
|
const ownerName = generateOwnerTier(job, true, null);
|
||||||
const Customer = {
|
const Customer = {
|
||||||
DisplayName: ownerName,
|
DisplayName: ownerName,
|
||||||
|
BillWithParent: true,
|
||||||
BillAddr: {
|
BillAddr: {
|
||||||
City: job.ownr_city,
|
City: job.ownr_city,
|
||||||
Line1: job.ownr_addr1,
|
Line1: job.ownr_addr1,
|
||||||
@@ -362,6 +364,7 @@ exports.QueryJob = QueryJob;
|
|||||||
async function InsertJob(oauthClient, qbo_realmId, req, job, parentTierRef) {
|
async function InsertJob(oauthClient, qbo_realmId, req, job, parentTierRef) {
|
||||||
const Customer = {
|
const Customer = {
|
||||||
DisplayName: job.ro_number,
|
DisplayName: job.ro_number,
|
||||||
|
BillWithParent: true,
|
||||||
BillAddr: {
|
BillAddr: {
|
||||||
City: job.ownr_city,
|
City: job.ownr_city,
|
||||||
Line1: job.ownr_addr1,
|
Line1: job.ownr_addr1,
|
||||||
|
|||||||
Reference in New Issue
Block a user