diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index f5be627cc..6a9284d09 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -4283,6 +4283,27 @@
+
+ md_ded_notes
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
md_hour_split
@@ -19779,6 +19800,27 @@
+
+ ded_note
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
ded_status
false
diff --git a/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx b/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx
index 3ced4e25e..2ebac1994 100644
--- a/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx
+++ b/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx
@@ -56,6 +56,13 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
+
+
+
diff --git a/client/src/components/shop-info/shop-info.general.component.jsx b/client/src/components/shop-info/shop-info.general.component.jsx
index 1204aff92..867148a3b 100644
--- a/client/src/components/shop-info/shop-info.general.component.jsx
+++ b/client/src/components/shop-info/shop-info.general.component.jsx
@@ -474,6 +474,19 @@ export default function ShopInfoGeneral({ form }) {
>
+
+
+
diff --git a/client/src/components/shop-info/shop-info.rostatus.component.jsx b/client/src/components/shop-info/shop-info.rostatus.component.jsx
index d735d7522..5c3d89049 100644
--- a/client/src/components/shop-info/shop-info.rostatus.component.jsx
+++ b/client/src/components/shop-info/shop-info.rostatus.component.jsx
@@ -4,7 +4,6 @@ import React, { useState } from "react";
import { ChromePicker } from "react-color";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
-import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component";
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
const SelectorDiv = styled.div`
diff --git a/client/src/graphql/bodyshop.queries.js b/client/src/graphql/bodyshop.queries.js
index b9502b9b4..0c98968bc 100644
--- a/client/src/graphql/bodyshop.queries.js
+++ b/client/src/graphql/bodyshop.queries.js
@@ -95,6 +95,7 @@ export const QUERY_BODYSHOP = gql`
tt_allow_post_to_invoiced
cdk_configuration
md_estimators
+ md_ded_notes
employees {
id
active
@@ -186,6 +187,7 @@ export const UPDATE_SHOP = gql`
tt_allow_post_to_invoiced
cdk_configuration
md_estimators
+ md_ded_notes
employees {
id
first_name
diff --git a/client/src/graphql/jobs.queries.js b/client/src/graphql/jobs.queries.js
index 5fe0d1b7c..84d3341c4 100644
--- a/client/src/graphql/jobs.queries.js
+++ b/client/src/graphql/jobs.queries.js
@@ -464,6 +464,7 @@ export const GET_JOB_BY_PK = gql`
production_vars
ca_gst_registrant
ownerid
+ ded_note
owner {
id
ownr_fn
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index 7aae60089..b960d0aa3 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -270,6 +270,7 @@
"md_categories": "Categories",
"md_ccc_rates": "Courtesy Car Contract Rate Presets",
"md_classes": "Classes",
+ "md_ded_notes": "Deductible Notes",
"md_hour_split": {
"paint": "Paint Hour Split",
"prep": "Prep Hour Split"
@@ -1207,6 +1208,7 @@
"date_open": "Open",
"date_scheduled": "Scheduled",
"ded_amt": "Deductible",
+ "ded_note": "Deductible Note",
"ded_status": "Deductible Status",
"depreciation_taxes": "Depreciation/Taxes",
"dms": {
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index f47b7e44f..eb330f129 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -270,6 +270,7 @@
"md_categories": "",
"md_ccc_rates": "",
"md_classes": "",
+ "md_ded_notes": "",
"md_hour_split": {
"paint": "",
"prep": ""
@@ -1207,6 +1208,7 @@
"date_open": "Abierto",
"date_scheduled": "Programado",
"ded_amt": "Deducible",
+ "ded_note": "",
"ded_status": "Estado deducible",
"depreciation_taxes": "Depreciación / Impuestos",
"dms": {
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 8172babb7..5ef8e24c0 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -270,6 +270,7 @@
"md_categories": "",
"md_ccc_rates": "",
"md_classes": "",
+ "md_ded_notes": "",
"md_hour_split": {
"paint": "",
"prep": ""
@@ -1207,6 +1208,7 @@
"date_open": "Ouvrir",
"date_scheduled": "Prévu",
"ded_amt": "Déductible",
+ "ded_note": "",
"ded_status": "Statut de franchise",
"depreciation_taxes": "Amortissement / taxes",
"dms": {
diff --git a/hasura/metadata/tables.yaml b/hasura/metadata/tables.yaml
index f49c65402..940cd021d 100644
--- a/hasura/metadata/tables.yaml
+++ b/hasura/metadata/tables.yaml
@@ -824,6 +824,7 @@
- md_categories
- md_ccc_rates
- md_classes
+ - md_ded_notes
- md_estimators
- md_hour_split
- md_ins_cos
@@ -901,6 +902,7 @@
- md_categories
- md_ccc_rates
- md_classes
+ - md_ded_notes
- md_estimators
- md_hour_split
- md_ins_cos
@@ -2589,6 +2591,7 @@
- date_open
- date_scheduled
- ded_amt
+ - ded_note
- ded_status
- deliverchecklist
- depreciation_taxes
@@ -2839,6 +2842,7 @@
- date_open
- date_scheduled
- ded_amt
+ - ded_note
- ded_status
- deliverchecklist
- depreciation_taxes
@@ -3099,6 +3103,7 @@
- date_open
- date_scheduled
- ded_amt
+ - ded_note
- ded_status
- deliverchecklist
- depreciation_taxes
diff --git a/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/down.sql b/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/down.sql
new file mode 100644
index 000000000..dc1fa003e
--- /dev/null
+++ b/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/down.sql
@@ -0,0 +1,4 @@
+-- Could not auto-generate a down migration.
+-- Please write an appropriate down migration for the SQL below:
+-- alter table "public"."jobs" add column "ded_note" text
+-- null;
diff --git a/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/up.sql b/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/up.sql
new file mode 100644
index 000000000..88d9ca037
--- /dev/null
+++ b/hasura/migrations/1634619218756_alter_table_public_jobs_add_column_ded_note/up.sql
@@ -0,0 +1,2 @@
+alter table "public"."jobs" add column "ded_note" text
+ null;
diff --git a/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/down.sql b/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/down.sql
new file mode 100644
index 000000000..37bec3188
--- /dev/null
+++ b/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/down.sql
@@ -0,0 +1,4 @@
+-- Could not auto-generate a down migration.
+-- Please write an appropriate down migration for the SQL below:
+-- alter table "public"."bodyshops" add column "md_ded_notes" jsonb
+-- null default jsonb_build_array();
diff --git a/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/up.sql b/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/up.sql
new file mode 100644
index 000000000..24e05e694
--- /dev/null
+++ b/hasura/migrations/1634619355603_alter_table_public_bodyshops_add_column_md_ded_notes/up.sql
@@ -0,0 +1,2 @@
+alter table "public"."bodyshops" add column "md_ded_notes" jsonb
+ null default jsonb_build_array();