From db0ade9791aa60493c4a72bd306291538f9503db Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Mon, 25 Apr 2022 14:40:23 -0700
Subject: [PATCH] IO-1680 Order as In House from Job View
---
bodyshop_translations.babel | 21 +++++++
.../job-detail-lines/job-lines.component.jsx | 61 +++++++++++++++++++
client/src/translations/en_us/common.json | 3 +-
client/src/translations/es/common.json | 3 +-
client/src/translations/fr/common.json | 3 +-
5 files changed, 88 insertions(+), 3 deletions(-)
diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index 8d90d4760..b656493ff 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -32395,6 +32395,27 @@
+
+ orderinhouse
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx
index e6bff1185..401a5bba6 100644
--- a/client/src/components/job-detail-lines/job-lines.component.jsx
+++ b/client/src/components/job-detail-lines/job-lines.component.jsx
@@ -6,6 +6,7 @@ import {
EditFilled,
PlusCircleTwoTone,
MinusCircleTwoTone,
+ HomeOutlined,
} from "@ant-design/icons";
import { useMutation } from "@apollo/client";
import {
@@ -42,6 +43,7 @@ import _ from "lodash";
import JobCreateIOU from "../job-create-iou/job-create-iou.component";
import JobLinesExpander from "./job-lines-expander.component";
import { selectBodyshop } from "../../redux/user/user.selectors";
+import moment from "moment";
const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop,
@@ -54,6 +56,8 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(setModalContext({ context: context, modal: "jobLineEdit" })),
setPartsOrderContext: (context) =>
dispatch(setModalContext({ context: context, modal: "partsOrder" })),
+ setBillEnterContext: (context) =>
+ dispatch(setModalContext({ context: context, modal: "billEnter" })),
});
export function JobLinesComponent({
@@ -68,6 +72,7 @@ export function JobLinesComponent({
job,
setJobLineEditContext,
form,
+ setBillEnterContext,
}) {
const [deleteJobLine] = useMutation(DELETE_JOB_LINE_BY_PK);
@@ -386,6 +391,62 @@ export function JobLinesComponent({
)}
+