Template list additoins.
This commit is contained in:
@@ -165,7 +165,7 @@ export function PartsOrderListTableComponent({
|
||||
<PrintWrapper
|
||||
templateObject={{
|
||||
name: record.isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
? TemplateList("partsorder").parts_return_slip.key
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: { id: record.id },
|
||||
}}
|
||||
|
||||
@@ -165,7 +165,7 @@ export function PartsOrderModalContainer({
|
||||
GenerateDocument(
|
||||
{
|
||||
name: isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
? TemplateList("partsorder").parts_return_slip.key
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: {
|
||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||
@@ -182,7 +182,7 @@ export function PartsOrderModalContainer({
|
||||
GenerateDocument(
|
||||
{
|
||||
name: isReturn
|
||||
? TemplateList("partsorder").parts_return_confirmation.key
|
||||
? TemplateList("partsorder").parts_return_slip.key
|
||||
: TemplateList("partsorder").parts_order.key,
|
||||
variables: {
|
||||
id: insertResult.data.insert_parts_orders.returning[0].id,
|
||||
|
||||
@@ -1469,6 +1469,9 @@
|
||||
}
|
||||
},
|
||||
"printcenter": {
|
||||
"bills": {
|
||||
"inhouse_invoice": "In House Invoice"
|
||||
},
|
||||
"courtesycarcontract": {
|
||||
"courtesy_car_contract": "Courtesy Car Contract",
|
||||
"courtesy_car_terms": "Courtesy Car Terms"
|
||||
@@ -1505,6 +1508,8 @@
|
||||
"job_notes": "Job Notes",
|
||||
"parts_order": "Parts Order Confirmation",
|
||||
"parts_order_confirmation": "",
|
||||
"parts_order_history": "Parts Order History",
|
||||
"parts_return_slip": "Parts Return Slip",
|
||||
"payment_receipt": "Payment Receipt",
|
||||
"payment_request": "Payment Request",
|
||||
"payments_by_job": "Job Payments",
|
||||
@@ -1524,6 +1529,10 @@
|
||||
"reportcentermodal": "Report Center",
|
||||
"speedprint": "Speed Print",
|
||||
"title": "Print Center"
|
||||
},
|
||||
"vendors": {
|
||||
"purchases_by_vendor_detailed": "Purchases by Vendor - Detailed",
|
||||
"purchases_by_vendor_summary": "Purchases by Vendor - Summary"
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
@@ -1580,7 +1589,11 @@
|
||||
"key": "Report"
|
||||
},
|
||||
"templates": {
|
||||
"payments_by_date_type": "Payments by Date Range"
|
||||
"payments_by_date_type": "Payments by Date Range",
|
||||
"purchases_by_date_range_detail": "Purchases by Date - Detail",
|
||||
"purchases_by_date_range_summary": "Purchases by Date - Summary",
|
||||
"schedule": "Appointment Schedule",
|
||||
"timetickets": "Time Tickets"
|
||||
}
|
||||
},
|
||||
"scoreboard": {
|
||||
|
||||
@@ -1469,6 +1469,9 @@
|
||||
}
|
||||
},
|
||||
"printcenter": {
|
||||
"bills": {
|
||||
"inhouse_invoice": ""
|
||||
},
|
||||
"courtesycarcontract": {
|
||||
"courtesy_car_contract": "",
|
||||
"courtesy_car_terms": ""
|
||||
@@ -1505,6 +1508,8 @@
|
||||
"job_notes": "",
|
||||
"parts_order": "",
|
||||
"parts_order_confirmation": "",
|
||||
"parts_order_history": "",
|
||||
"parts_return_slip": "",
|
||||
"payment_receipt": "",
|
||||
"payment_request": "",
|
||||
"payments_by_job": "",
|
||||
@@ -1524,6 +1529,10 @@
|
||||
"reportcentermodal": "",
|
||||
"speedprint": "",
|
||||
"title": ""
|
||||
},
|
||||
"vendors": {
|
||||
"purchases_by_vendor_detailed": "",
|
||||
"purchases_by_vendor_summary": ""
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
@@ -1580,7 +1589,11 @@
|
||||
"key": ""
|
||||
},
|
||||
"templates": {
|
||||
"payments_by_date_type": ""
|
||||
"payments_by_date_type": "",
|
||||
"purchases_by_date_range_detail": "",
|
||||
"purchases_by_date_range_summary": "",
|
||||
"schedule": "",
|
||||
"timetickets": ""
|
||||
}
|
||||
},
|
||||
"scoreboard": {
|
||||
|
||||
@@ -1469,6 +1469,9 @@
|
||||
}
|
||||
},
|
||||
"printcenter": {
|
||||
"bills": {
|
||||
"inhouse_invoice": ""
|
||||
},
|
||||
"courtesycarcontract": {
|
||||
"courtesy_car_contract": "",
|
||||
"courtesy_car_terms": ""
|
||||
@@ -1505,6 +1508,8 @@
|
||||
"job_notes": "",
|
||||
"parts_order": "",
|
||||
"parts_order_confirmation": "",
|
||||
"parts_order_history": "",
|
||||
"parts_return_slip": "",
|
||||
"payment_receipt": "",
|
||||
"payment_request": "",
|
||||
"payments_by_job": "",
|
||||
@@ -1524,6 +1529,10 @@
|
||||
"reportcentermodal": "",
|
||||
"speedprint": "",
|
||||
"title": ""
|
||||
},
|
||||
"vendors": {
|
||||
"purchases_by_vendor_detailed": "",
|
||||
"purchases_by_vendor_summary": ""
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
@@ -1580,7 +1589,11 @@
|
||||
"key": ""
|
||||
},
|
||||
"templates": {
|
||||
"payments_by_date_type": ""
|
||||
"payments_by_date_type": "",
|
||||
"purchases_by_date_range_detail": "",
|
||||
"purchases_by_date_range_summary": "",
|
||||
"schedule": "",
|
||||
"timetickets": ""
|
||||
}
|
||||
},
|
||||
"scoreboard": {
|
||||
|
||||
@@ -169,6 +169,15 @@ export const TemplateList = (type, context) => {
|
||||
key: "invoice_customer_payable",
|
||||
disabled: false,
|
||||
},
|
||||
parts_order_history: {
|
||||
title: i18n.t("printcenter.jobs.parts_order_history"),
|
||||
description: "All Jobs Notes",
|
||||
subject: `${i18n.t("printcenter.jobs.parts_order_history")} - ${
|
||||
context && context.job && context.job.ro_number
|
||||
}`,
|
||||
key: "parts_order_history",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "job_special"
|
||||
@@ -212,10 +221,10 @@ export const TemplateList = (type, context) => {
|
||||
}`,
|
||||
disabled: false,
|
||||
},
|
||||
parts_return_confirmation: {
|
||||
title: i18n.t("printcenter.jobs.parts_return_confirmation"),
|
||||
parts_return_slip: {
|
||||
title: i18n.t("printcenter.jobs.parts_return_slip"),
|
||||
description: "Parts Return",
|
||||
key: "parts_return_confirmation",
|
||||
key: "parts_return_slip",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
@@ -251,6 +260,46 @@ export const TemplateList = (type, context) => {
|
||||
key: "payments_by_date_type",
|
||||
disabled: false,
|
||||
},
|
||||
purchases_by_date_range_detail: {
|
||||
title: i18n.t(
|
||||
"reportcenter.templates.purchases_by_date_range_detail"
|
||||
),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t(
|
||||
"reportcenter.templates.purchases_by_date_range_detail"
|
||||
)} - ${context && context.job && context.job.ro_number}`,
|
||||
key: "purchases_by_date_range_detail",
|
||||
disabled: false,
|
||||
},
|
||||
purchases_by_date_range_summary: {
|
||||
title: i18n.t(
|
||||
"reportcenter.templates.purchases_by_date_range_summary"
|
||||
),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t(
|
||||
"reportcenter.templates.purchases_by_date_range_summary"
|
||||
)} - ${context && context.job && context.job.ro_number}`,
|
||||
key: "purchases_by_date_range_summary",
|
||||
disabled: false,
|
||||
},
|
||||
schedule: {
|
||||
title: i18n.t("reportcenter.templates.schedule"),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t("reportcenter.templates.schedule")} - ${
|
||||
context && context.job && context.job.ro_number
|
||||
}`,
|
||||
key: "schedule",
|
||||
disabled: false,
|
||||
},
|
||||
timetickets: {
|
||||
title: i18n.t("printcenter.timetickets.timetickets"),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t("printcenter.timetickets.timetickets")} - ${
|
||||
context && context.job && context.job.ro_number
|
||||
}`,
|
||||
key: "timetickets",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "courtesycarcontract"
|
||||
@@ -277,5 +326,53 @@ export const TemplateList = (type, context) => {
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "bill"
|
||||
? {
|
||||
inhouse_invoice: {
|
||||
title: i18n.t("printcenter.bills.inhouse_invoice"),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t("printcenter.bills.inhouse_invoice")} - ${
|
||||
context && context.job && context.job.ro_number
|
||||
}`,
|
||||
key: "inhouse_invoice",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "timeticket"
|
||||
? {
|
||||
// timetickets: {
|
||||
// title: i18n.t("printcenter.timetickets.timetickets"),
|
||||
// description: "Est Detail",
|
||||
// subject: `${i18n.t("printcenter.timetickets.timetickets")} - ${
|
||||
// context && context.job && context.job.ro_number
|
||||
// }`,
|
||||
// key: "timetickets",
|
||||
// disabled: false,
|
||||
// },
|
||||
}
|
||||
: {}),
|
||||
...(!type || type === "vendor"
|
||||
? {
|
||||
purchases_by_vendor_detailed: {
|
||||
title: i18n.t("printcenter.vendors.purchases_by_vendor_detailed"),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t(
|
||||
"printcenter.vendors.purchases_by_vendor_detailed"
|
||||
)} - ${context && context.job && context.job.ro_number}`,
|
||||
key: "purchases_by_vendor_detailed",
|
||||
disabled: false,
|
||||
},
|
||||
purchases_by_vendor_summary: {
|
||||
title: i18n.t("printcenter.vendors.purchases_by_vendor_summary"),
|
||||
description: "Est Detail",
|
||||
subject: `${i18n.t(
|
||||
"printcenter.vendors.purchases_by_vendor_summary"
|
||||
)} - ${context && context.job && context.job.ro_number}`,
|
||||
key: "purchases_by_vendor_summary",
|
||||
disabled: false,
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user