From 1258843f3d29a5a853928f65f855f764e4f6d7bf Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Thu, 2 Jun 2022 10:09:01 -0700
Subject: [PATCH] IO-1913 Add Rental Reservation key
---
bodyshop_translations.babel | 21 +++++++++++++++++++++
client/src/translations/en_us/common.json | 1 +
client/src/translations/es/common.json | 1 +
client/src/translations/fr/common.json | 1 +
client/src/utils/TemplateConstants.js | 8 ++++++++
server/job/job-totals.js | 2 +-
6 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index eac8b6536..a6b7d0456 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -36514,6 +36514,27 @@
+
+ rental_reservation
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
ro_totals
false
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index 22faa81ea..9f42c9251 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -2166,6 +2166,7 @@
"purchases_by_ro_detail": "Purchases - Detail",
"purchases_by_ro_summary": "Purchases - Summary",
"qc_sheet": "Quality Control Sheet",
+ "rental_reservation": "Rental Reservation",
"ro_totals": "RO Totals",
"ro_with_description": "RO Summary with Descriptions",
"sgi_certificate_of_repairs": "SGI - Certificate of Repairs",
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index e1fab299e..2c26b4a3b 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -2166,6 +2166,7 @@
"purchases_by_ro_detail": "",
"purchases_by_ro_summary": "",
"qc_sheet": "",
+ "rental_reservation": "",
"ro_totals": "",
"ro_with_description": "",
"sgi_certificate_of_repairs": "",
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 9edfc5aac..2f2547393 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -2166,6 +2166,7 @@
"purchases_by_ro_detail": "",
"purchases_by_ro_summary": "",
"qc_sheet": "",
+ "rental_reservation": "",
"ro_totals": "",
"ro_with_description": "",
"sgi_certificate_of_repairs": "",
diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js
index 861a752ea..ee91dd02c 100644
--- a/client/src/utils/TemplateConstants.js
+++ b/client/src/utils/TemplateConstants.js
@@ -480,6 +480,14 @@ export const TemplateList = (type, context) => {
disabled: false,
group: "ro",
},
+ rental_reservation: {
+ title: i18n.t("printcenter.jobs.rental_reservation"),
+ description: "CASL Authorization",
+ subject: i18n.t("printcenter.jobs.rental_reservation"),
+ key: "rental_reservation",
+ disabled: false,
+ group: "pre",
+ },
}
: {}),
...(!type || type === "job_special"
diff --git a/server/job/job-totals.js b/server/job/job-totals.js
index b61259fe2..54b30a9d6 100644
--- a/server/job/job-totals.js
+++ b/server/job/job-totals.js
@@ -37,7 +37,7 @@ exports.totalsSsu = async function (req, res) {
clm_total: newTotals.totals.total_repairs.toFormat("0.00"),
owner_owing: newTotals.totals.custPayable.total.toFormat("0.00"),
job_totals: newTotals,
- queued_for_parts: true,
+ //queued_for_parts: true,
},
});