From 41bc4f00dcd7c86a7e9989fb293fcf680edd7d21 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 15 Apr 2021 14:22:24 -0700 Subject: [PATCH] Template additions. --- bodyshop_translations.babel | 210 ++++++++++++++++++++++ client/src/translations/en_us/common.json | 12 +- client/src/translations/es/common.json | 12 +- client/src/translations/fr/common.json | 12 +- client/src/utils/TemplateConstants.js | 105 +++++++++-- 5 files changed, 336 insertions(+), 15 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 018208459..0af751568 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -27523,6 +27523,27 @@ + + job_costing_ro + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + job_notes false @@ -29110,6 +29131,69 @@ + + gsr_by_estimator + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + gsr_by_make + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + gsr_labor_only + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + hours_sold_detail_closed false @@ -29278,6 +29362,111 @@ + + job_costing_estimator + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + job_costing_ro_date_detail + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + job_costing_ro_date_summary + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + job_costing_ro_source + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + open_orders + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + payments_by_date_type false @@ -29488,6 +29677,27 @@ + + void_ros + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 6de2ea967..ad73f095f 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -1648,6 +1648,7 @@ "guarantee": "Repair Guarantee", "invoice_customer_payable": "Invoice (Customer Payable)", "invoice_total_payable": "Invoice (Total Payable)", + "job_costing_ro": "Job Costing", "job_notes": "Job Notes", "parts_list": "Parts List", "parts_order": "Parts Order Confirmation", @@ -1750,6 +1751,9 @@ "credits_not_received_date": "Credits not Received by Date", "estimator_detail": "Jobs by Estimator (Detail)", "estimator_summary": "Jobs by Estimator (Summary)", + "gsr_by_estimator": "Gross Sales by Estimator", + "gsr_by_make": "Gross Sales by Vehicle Make", + "gsr_labor_only": "Gross Sales - Labor Only", "hours_sold_detail_closed": "Hours Sold Detail - Closed", "hours_sold_detail_closed_source": "Hours Sold Detail - Closed by Source", "hours_sold_detail_open": "Hours Sold Detail - Open", @@ -1758,6 +1762,11 @@ "hours_sold_summary_closed_source": "Hours Sold Summary - Closed by Source", "hours_sold_summary_open": "Hours Sold Summary - Open", "hours_sold_summary_open_source": "Hours Sold Summary - Open by Source", + "job_costing_estimator": "Job Costing by Estimator", + "job_costing_ro_date_detail": "Job Costing by RO - Detail", + "job_costing_ro_date_summary": "Job Costing by RO - Summary", + "job_costing_ro_source": "Job Costing by RO Source", + "open_orders": "Open Orders by Date", "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", @@ -1767,7 +1776,8 @@ "supplement_ratio_source": "Supplement Ratio by Source", "timetickets": "Time Tickets", "timetickets_employee": "Employee Time Tickets", - "timetickets_summary": "Time Tickets Summary" + "timetickets_summary": "Time Tickets Summary", + "void_ros": "Void ROs" } }, "scoreboard": { diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 47c8d00e0..9db847d65 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -1648,6 +1648,7 @@ "guarantee": "", "invoice_customer_payable": "", "invoice_total_payable": "", + "job_costing_ro": "", "job_notes": "", "parts_list": "", "parts_order": "", @@ -1750,6 +1751,9 @@ "credits_not_received_date": "", "estimator_detail": "", "estimator_summary": "", + "gsr_by_estimator": "", + "gsr_by_make": "", + "gsr_labor_only": "", "hours_sold_detail_closed": "", "hours_sold_detail_closed_source": "", "hours_sold_detail_open": "", @@ -1758,6 +1762,11 @@ "hours_sold_summary_closed_source": "", "hours_sold_summary_open": "", "hours_sold_summary_open_source": "", + "job_costing_estimator": "", + "job_costing_ro_date_detail": "", + "job_costing_ro_date_summary": "", + "job_costing_ro_source": "", + "open_orders": "", "payments_by_date_type": "", "purchases_by_date_range_detail": "", "purchases_by_date_range_summary": "", @@ -1767,7 +1776,8 @@ "supplement_ratio_source": "", "timetickets": "", "timetickets_employee": "", - "timetickets_summary": "" + "timetickets_summary": "", + "void_ros": "" } }, "scoreboard": { diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 75fc6ce7c..0c6fdb681 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -1648,6 +1648,7 @@ "guarantee": "", "invoice_customer_payable": "", "invoice_total_payable": "", + "job_costing_ro": "", "job_notes": "", "parts_list": "", "parts_order": "", @@ -1750,6 +1751,9 @@ "credits_not_received_date": "", "estimator_detail": "", "estimator_summary": "", + "gsr_by_estimator": "", + "gsr_by_make": "", + "gsr_labor_only": "", "hours_sold_detail_closed": "", "hours_sold_detail_closed_source": "", "hours_sold_detail_open": "", @@ -1758,6 +1762,11 @@ "hours_sold_summary_closed_source": "", "hours_sold_summary_open": "", "hours_sold_summary_open_source": "", + "job_costing_estimator": "", + "job_costing_ro_date_detail": "", + "job_costing_ro_date_summary": "", + "job_costing_ro_source": "", + "open_orders": "", "payments_by_date_type": "", "purchases_by_date_range_detail": "", "purchases_by_date_range_summary": "", @@ -1767,7 +1776,8 @@ "supplement_ratio_source": "", "timetickets": "", "timetickets_employee": "", - "timetickets_summary": "" + "timetickets_summary": "", + "void_ros": "" } }, "scoreboard": { diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index 57569dc2b..a4be6abcf 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -221,7 +221,14 @@ export const TemplateList = (type, context) => { disabled: false, group: "financial", }, - + job_costing_ro: { + title: i18n.t("printcenter.jobs.job_costing_ro"), + description: "All Jobs Notes", + subject: i18n.t("printcenter.jobs.job_costing_ro"), + key: "job_costing_ro", + disabled: false, + group: "financial", + }, filing_coversheet_portrait: { title: i18n.t("printcenter.jobs.filing_coversheet_portrait"), description: "All Jobs Notes", @@ -256,6 +263,14 @@ export const TemplateList = (type, context) => { disabled: false, group: "post", }, + csi_invitation: { + title: i18n.t("printcenter.jobs.csi_invitation"), + description: "CSI invite", + key: "csi_invitation", + subject: i18n.t("printcenter.jobs.csi_invitation"), + disabled: false, + group: "post", + }, } : {}), ...(!type || type === "job_special" @@ -310,17 +325,7 @@ export const TemplateList = (type, context) => { }, } : {}), - ...(!type || type === "csi" - ? { - csi_invitation: { - title: i18n.t("printcenter.jobs.csi_invitation"), - description: "CSI invite", - key: "csi_invitation", - subject: i18n.t("printcenter.jobs.csi_invitation"), - disabled: false, - }, - } - : {}), + ...(!type || type === "csi" ? {} : {}), ...(!type || type === "report_center" ? { payments_by_date_type: { @@ -537,6 +542,82 @@ export const TemplateList = (type, context) => { //idtype: "vendor", disabled: false, }, + job_costing_ro_date_summary: { + title: i18n.t("reportcenter.templates.job_costing_ro_date_summary"), + description: "", + subject: i18n.t( + "reportcenter.templates.job_costing_ro_date_summary" + ), + key: "job_costing_ro_date_summary", + //idtype: "vendor", + disabled: false, + }, + job_costing_ro_source: { + title: i18n.t("reportcenter.templates.job_costing_ro_source"), + description: "", + subject: i18n.t("reportcenter.templates.job_costing_ro_source"), + key: "job_costing_ro_source", + //idtype: "vendor", + disabled: false, + }, + job_costing_ro_date_detail: { + title: i18n.t("reportcenter.templates.job_costing_ro_date_detail"), + description: "", + subject: i18n.t( + "reportcenter.templates.job_costing_ro_date_detail" + ), + key: "job_costing_ro_date_detail", + //idtype: "vendor", + disabled: false, + }, + job_costing_estimator: { + title: i18n.t("reportcenter.templates.job_costing_estimator"), + description: "", + subject: i18n.t("reportcenter.templates.job_costing_estimator"), + key: "job_costing_estimator", + //idtype: "vendor", + disabled: false, + }, + void_ros: { + title: i18n.t("reportcenter.templates.void_ros"), + description: "", + subject: i18n.t("reportcenter.templates.void_ros"), + key: "void_ros", + //idtype: "vendor", + disabled: false, + }, + gsr_by_make: { + title: i18n.t("reportcenter.templates.gsr_by_make"), + description: "", + subject: i18n.t("reportcenter.templates.gsr_by_make"), + key: "gsr_by_make", + //idtype: "vendor", + disabled: false, + }, + gsr_by_estimator: { + title: i18n.t("reportcenter.templates.gsr_by_estimator"), + description: "", + subject: i18n.t("reportcenter.templates.gsr_by_estimator"), + key: "gsr_by_estimator", + //idtype: "vendor", + disabled: false, + }, + gsr_labor_only: { + title: i18n.t("reportcenter.templates.gsr_labor_only"), + description: "", + subject: i18n.t("reportcenter.templates.gsr_labor_only"), + key: "gsr_labor_only", + //idtype: "vendor", + disabled: false, + }, + open_orders: { + title: i18n.t("reportcenter.templates.open_orders"), + description: "", + subject: i18n.t("reportcenter.templates.open_orders"), + key: "open_orders", + //idtype: "vendor", + disabled: false, + }, } : {}), ...(!type || type === "courtesycarcontract"