Compare commits
148 Commits
feature/IO
...
feature/IO
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33cfa531b8 | ||
|
|
de62e994bd | ||
|
|
d0d8354395 | ||
|
|
6d2c3c81c7 | ||
|
|
e2e02945cc | ||
|
|
404efcaf05 | ||
|
|
9b96460e4f | ||
|
|
618eff4973 | ||
|
|
109c34bebd | ||
|
|
1aab5aa740 | ||
|
|
484cb8e39e | ||
|
|
1ca483d4b0 | ||
|
|
094160ebf3 | ||
|
|
e7be4c6e61 | ||
|
|
708fe63852 | ||
|
|
3f579f49b9 | ||
|
|
c15e69f079 | ||
|
|
ddb919e2cc | ||
|
|
27e0f497bb | ||
|
|
3a06e813a8 | ||
|
|
c2aaf8844f | ||
|
|
488f79ddc8 | ||
|
|
5704e54e48 | ||
|
|
3c4902f71f | ||
|
|
5fb62aa16b | ||
|
|
dd469bad12 | ||
|
|
a716535795 | ||
|
|
c2ec476324 | ||
|
|
3ecd29c640 | ||
|
|
01443c478d | ||
|
|
209245187f | ||
|
|
3a9e989d70 | ||
|
|
8839fc0293 | ||
|
|
028bf3c7a0 | ||
|
|
ed05754368 | ||
|
|
7c3043988b | ||
|
|
a16f0df7de | ||
|
|
2562151f6e | ||
|
|
44f2287b07 | ||
|
|
5e96ccdd99 | ||
|
|
8f91416623 | ||
|
|
a18dbbb6c4 | ||
|
|
57d8ca5829 | ||
|
|
4c6a2d6d63 | ||
|
|
c5c47e9bfc | ||
|
|
d66fdfb2e0 | ||
|
|
5861d0e9b6 | ||
|
|
e36904794b | ||
|
|
1c89d12034 | ||
|
|
5e36a4ae89 | ||
|
|
f553307587 | ||
|
|
2c80c81197 | ||
|
|
9d865cf130 | ||
|
|
8e119ce0dd | ||
|
|
fe49161718 | ||
|
|
040e366335 | ||
|
|
4655663dd8 | ||
|
|
6e1fbda79b | ||
|
|
b2f616f1eb | ||
|
|
4bc8ff26d2 | ||
|
|
76eec7bebc | ||
|
|
aa5f405e1b | ||
|
|
ca9752d119 | ||
|
|
45b4af5225 | ||
|
|
d2d310cf57 | ||
|
|
5d1a7657a9 | ||
|
|
5cb17994cd | ||
|
|
dab78e3dc9 | ||
|
|
1232f28b3d | ||
|
|
8e8d40d4b0 | ||
|
|
7fae408454 | ||
|
|
1cdafaa2cc | ||
|
|
b9ca7ef2e3 | ||
|
|
b0ddb62ac0 | ||
|
|
584322819f | ||
|
|
acf1b387de | ||
|
|
42702ef015 | ||
|
|
492032c1e2 | ||
|
|
91476c7ad3 | ||
|
|
561bcf10d9 | ||
|
|
088faf152c | ||
|
|
239dc5c62d | ||
|
|
1c5c403d65 | ||
|
|
1c63aa39c4 | ||
|
|
6db68b76db | ||
|
|
23fcdd6375 | ||
|
|
329bdbe22d | ||
|
|
66b3fb6988 | ||
|
|
3d26c2e94e | ||
|
|
ad42dd1295 | ||
|
|
2938b9c94c | ||
|
|
bde17446ad | ||
|
|
fe60538acf | ||
|
|
7461e58000 | ||
|
|
1afda01d34 | ||
|
|
59f71d53cd | ||
|
|
0cad64ff6d | ||
|
|
3a83160b33 | ||
|
|
701c532e48 | ||
|
|
c0d9bacf1d | ||
|
|
357f40bdc2 | ||
|
|
30689a8ca6 | ||
|
|
554ec37ace | ||
|
|
3fc7af9780 | ||
|
|
a1b6ccc23d | ||
|
|
dde6f17029 | ||
|
|
1aceef9153 | ||
|
|
678892d134 | ||
|
|
dc187bbf24 | ||
|
|
09aae78715 | ||
|
|
c42276ab3a | ||
|
|
41d25cbc52 | ||
|
|
085c27ad20 | ||
|
|
38e6b5010e | ||
|
|
242c275e7d | ||
|
|
1dc6130fdf | ||
|
|
910afbf48d | ||
|
|
9d9edfd674 | ||
|
|
62a5b49836 | ||
|
|
e93e138f78 | ||
|
|
4639e31e55 | ||
|
|
e8fde14f9b | ||
|
|
90e87adc34 | ||
|
|
81053b3cbf | ||
|
|
f4290bf20c | ||
|
|
5371657aa4 | ||
|
|
599f4e143c | ||
|
|
94440e5c48 | ||
|
|
aa5d6f2090 | ||
|
|
6bde1b1baf | ||
|
|
fc404b1f3b | ||
|
|
c6ba3fd8f0 | ||
|
|
119904ca2b | ||
|
|
f7e1b023df | ||
|
|
5855569194 | ||
|
|
4f852e7493 | ||
|
|
deec40a89c | ||
|
|
145dd9bec6 | ||
|
|
b8e5d4412f | ||
|
|
277fb8f839 | ||
|
|
d3d5485846 | ||
|
|
55091d61d6 | ||
|
|
5b5df8a3a1 | ||
|
|
ccf48cfcf1 | ||
|
|
c89342b6ef | ||
|
|
e97ceb7cbe | ||
|
|
de34cbd937 | ||
|
|
cf7a1b0168 |
File diff suppressed because it is too large
Load Diff
@@ -51,6 +51,7 @@
|
|||||||
"react-i18next": "^12.2.0",
|
"react-i18next": "^12.2.0",
|
||||||
"react-icons": "^4.7.1",
|
"react-icons": "^4.7.1",
|
||||||
"react-image-lightbox": "^5.1.4",
|
"react-image-lightbox": "^5.1.4",
|
||||||
|
"react-intersection-observer": "^9.4.3",
|
||||||
"react-number-format": "^5.1.3",
|
"react-number-format": "^5.1.3",
|
||||||
"react-redux": "^8.0.5",
|
"react-redux": "^8.0.5",
|
||||||
"react-resizable": "^3.0.4",
|
"react-resizable": "^3.0.4",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Badge, List, Tag } from "antd";
|
import { Badge, List, Tag } from "antd";
|
||||||
import React from "react";
|
import React, { useEffect } from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import { setSelectedConversation } from "../../redux/messaging/messaging.actions";
|
import { setSelectedConversation } from "../../redux/messaging/messaging.actions";
|
||||||
@@ -7,6 +7,8 @@ import { selectSelectedConversation } from "../../redux/messaging/messaging.sele
|
|||||||
import { TimeAgoFormatter } from "../../utils/DateFormatter";
|
import { TimeAgoFormatter } from "../../utils/DateFormatter";
|
||||||
import PhoneFormatter from "../../utils/PhoneFormatter";
|
import PhoneFormatter from "../../utils/PhoneFormatter";
|
||||||
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
|
import OwnerNameDisplay from "../owner-name-display/owner-name-display.component";
|
||||||
|
import { List as VirtualizedList, AutoSizer } from "react-virtualized";
|
||||||
|
|
||||||
import "./chat-conversation-list.styles.scss";
|
import "./chat-conversation-list.styles.scss";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
@@ -18,59 +20,86 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
dispatch(setSelectedConversation(conversationId)),
|
dispatch(setSelectedConversation(conversationId)),
|
||||||
});
|
});
|
||||||
|
|
||||||
export function ChatConversationListComponent({
|
function ChatConversationListComponent({
|
||||||
conversationList,
|
conversationList,
|
||||||
selectedConversation,
|
selectedConversation,
|
||||||
setSelectedConversation,
|
setSelectedConversation,
|
||||||
|
subscribeToMoreConversations,
|
||||||
|
loadMoreConversations,
|
||||||
}) {
|
}) {
|
||||||
|
useEffect(
|
||||||
|
() => subscribeToMoreConversations(),
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
const rowRenderer = ({ index, key, style }) => {
|
||||||
|
const item = conversationList[index];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<List.Item
|
||||||
|
key={key}
|
||||||
|
onClick={() => setSelectedConversation(item.id)}
|
||||||
|
className={`chat-list-item ${
|
||||||
|
item.id === selectedConversation
|
||||||
|
? "chat-list-selected-conversation"
|
||||||
|
: null
|
||||||
|
}`}
|
||||||
|
style={style}
|
||||||
|
>
|
||||||
|
<div sryle={{ display: "inline-block" }}>
|
||||||
|
{item.label && <div className="chat-name">{item.label}</div>}
|
||||||
|
{item.job_conversations.length > 0 ? (
|
||||||
|
<div className="chat-name">
|
||||||
|
{item.job_conversations.map((j, idx) => (
|
||||||
|
<div key={idx}>
|
||||||
|
<OwnerNameDisplay ownerObject={j.job} />
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<PhoneFormatter>{item.phone_num}</PhoneFormatter>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div sryle={{ display: "inline-block" }}>
|
||||||
|
<div>
|
||||||
|
{item.job_conversations.length > 0
|
||||||
|
? item.job_conversations.map((j, idx) => (
|
||||||
|
<Tag key={idx} className="ro-number-tag">
|
||||||
|
{j.job.ro_number}
|
||||||
|
</Tag>
|
||||||
|
))
|
||||||
|
: null}
|
||||||
|
</div>
|
||||||
|
<TimeAgoFormatter>{item.updated_at}</TimeAgoFormatter>
|
||||||
|
</div>
|
||||||
|
<Badge count={item.messages_aggregate.aggregate.count || 0} />
|
||||||
|
</List.Item>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="chat-list-container">
|
<div className="chat-list-container">
|
||||||
<List
|
<AutoSizer>
|
||||||
bordered
|
{({ height, width }) => (
|
||||||
dataSource={conversationList}
|
<VirtualizedList
|
||||||
renderItem={(item) => (
|
height={height}
|
||||||
<List.Item
|
width={width}
|
||||||
key={item.id}
|
rowCount={conversationList.length}
|
||||||
onClick={() => setSelectedConversation(item.id)}
|
rowHeight={60}
|
||||||
className={`chat-list-item ${
|
rowRenderer={rowRenderer}
|
||||||
item.id === selectedConversation
|
onScroll={({ scrollTop, scrollHeight, clientHeight }) => {
|
||||||
? "chat-list-selected-conversation"
|
if (scrollTop + clientHeight === scrollHeight) {
|
||||||
: null
|
loadMoreConversations();
|
||||||
}`}
|
}
|
||||||
>
|
}}
|
||||||
<div sryle={{ display: "inline-block" }}>
|
/>
|
||||||
{item.label && <div className="chat-name">{item.label}</div>}
|
|
||||||
{item.job_conversations.length > 0 ? (
|
|
||||||
<div className="chat-name">
|
|
||||||
{item.job_conversations.map((j, idx) => (
|
|
||||||
<div key={idx}>
|
|
||||||
<OwnerNameDisplay ownerObject={j.job} />
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<PhoneFormatter>{item.phone_num}</PhoneFormatter>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
<div sryle={{ display: "inline-block" }}>
|
|
||||||
<div>
|
|
||||||
{item.job_conversations.length > 0
|
|
||||||
? item.job_conversations.map((j, idx) => (
|
|
||||||
<Tag key={idx} className="ro-number-tag">
|
|
||||||
{j.job.ro_number}
|
|
||||||
</Tag>
|
|
||||||
))
|
|
||||||
: null}
|
|
||||||
</div>
|
|
||||||
<TimeAgoFormatter>{item.updated_at}</TimeAgoFormatter>
|
|
||||||
</div>
|
|
||||||
<Badge count={item.messages_aggregate.aggregate.count || 0} />
|
|
||||||
</List.Item>
|
|
||||||
)}
|
)}
|
||||||
/>
|
</AutoSizer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
}
|
}
|
||||||
.chat-list-container {
|
.chat-list-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
border: 1px solid gainsboro;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-list-item {
|
.chat-list-item {
|
||||||
@@ -21,4 +22,6 @@
|
|||||||
.ro-number-tag {
|
.ro-number-tag {
|
||||||
align-self: baseline;
|
align-self: baseline;
|
||||||
}
|
}
|
||||||
|
padding: 12px 24px;
|
||||||
|
border-bottom: 1px solid gainsboro;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,15 +4,16 @@ import {
|
|||||||
ShrinkOutlined,
|
ShrinkOutlined,
|
||||||
SyncOutlined,
|
SyncOutlined,
|
||||||
} from "@ant-design/icons";
|
} from "@ant-design/icons";
|
||||||
import { useQuery } from "@apollo/client";
|
import { useLazyQuery, useSubscription } from "@apollo/client";
|
||||||
import { Badge, Card, Col, Row, Space, Tag, Tooltip, Typography } from "antd";
|
import { Badge, Card, Col, Row, Space, Tag, Tooltip, Typography } from "antd";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useCallback, useEffect, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import {
|
import {
|
||||||
CONVERSATION_LIST_QUERY,
|
CONVERSATION_LIST_QUERY,
|
||||||
UNREAD_CONVERSATION_COUNT,
|
CONVERSATION_LIST_SUBSCRIPTION,
|
||||||
|
UNREAD_CONVERSATION_COUNT_SUBSCRIPTION,
|
||||||
} from "../../graphql/conversations.queries";
|
} from "../../graphql/conversations.queries";
|
||||||
import { toggleChatVisible } from "../../redux/messaging/messaging.actions";
|
import { toggleChatVisible } from "../../redux/messaging/messaging.actions";
|
||||||
import {
|
import {
|
||||||
@@ -41,17 +42,17 @@ export function ChatPopupComponent({
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [pollInterval, setpollInterval] = useState(0);
|
const [pollInterval, setpollInterval] = useState(0);
|
||||||
|
|
||||||
const { data: unreadData } = useQuery(UNREAD_CONVERSATION_COUNT, {
|
const { data: unreadData } = useSubscription(
|
||||||
fetchPolicy: "network-only",
|
UNREAD_CONVERSATION_COUNT_SUBSCRIPTION
|
||||||
nextFetchPolicy: "network-only",
|
);
|
||||||
...(pollInterval > 0 ? { pollInterval } : {}),
|
|
||||||
});
|
|
||||||
|
|
||||||
const { loading, data, refetch, called } = useQuery(CONVERSATION_LIST_QUERY, {
|
const [
|
||||||
|
getConversations,
|
||||||
|
{ loading, data, called, refetch, fetchMore, subscribeToMore },
|
||||||
|
] = useLazyQuery(CONVERSATION_LIST_QUERY, {
|
||||||
fetchPolicy: "network-only",
|
fetchPolicy: "network-only",
|
||||||
nextFetchPolicy: "network-only",
|
nextFetchPolicy: "network-only",
|
||||||
skip: !chatVisible,
|
skip: !chatVisible,
|
||||||
...(pollInterval > 0 ? { pollInterval } : {}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const fcmToken = sessionStorage.getItem("fcmtoken");
|
const fcmToken = sessionStorage.getItem("fcmtoken");
|
||||||
@@ -65,15 +66,22 @@ export function ChatPopupComponent({
|
|||||||
}, [fcmToken]);
|
}, [fcmToken]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (called && chatVisible) refetch();
|
if (called && chatVisible)
|
||||||
}, [chatVisible, called, refetch]);
|
getConversations({
|
||||||
|
variables: {
|
||||||
|
offset: 0,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}, [chatVisible, called, getConversations]);
|
||||||
|
|
||||||
// const unreadCount = data
|
const loadMoreConversations = useCallback(() => {
|
||||||
// ? data.conversations.reduce(
|
if (data)
|
||||||
// (acc, val) => val.messages_aggregate.aggregate.count + acc,
|
fetchMore({
|
||||||
// 0
|
variables: {
|
||||||
// )
|
offset: data.conversations.length,
|
||||||
// : 0;
|
},
|
||||||
|
});
|
||||||
|
}, [data, fetchMore]);
|
||||||
|
|
||||||
const unreadCount = unreadData?.messages_aggregate.aggregate.count || 0;
|
const unreadCount = unreadData?.messages_aggregate.aggregate.count || 0;
|
||||||
|
|
||||||
@@ -110,6 +118,44 @@ export function ChatPopupComponent({
|
|||||||
) : (
|
) : (
|
||||||
<ChatConversationListComponent
|
<ChatConversationListComponent
|
||||||
conversationList={data ? data.conversations : []}
|
conversationList={data ? data.conversations : []}
|
||||||
|
loadMoreConversations={loadMoreConversations}
|
||||||
|
subscribeToMoreConversations={() =>
|
||||||
|
subscribeToMore({
|
||||||
|
document: CONVERSATION_LIST_SUBSCRIPTION,
|
||||||
|
variables: { offset: 0 },
|
||||||
|
updateQuery: (prev, { subscriptionData }) => {
|
||||||
|
if (
|
||||||
|
!subscriptionData.data ||
|
||||||
|
subscriptionData.data.conversations.length === 0
|
||||||
|
)
|
||||||
|
return prev;
|
||||||
|
|
||||||
|
let conversations = [...prev.conversations];
|
||||||
|
const newConversations =
|
||||||
|
subscriptionData.data.conversations;
|
||||||
|
|
||||||
|
for (const conversation of newConversations) {
|
||||||
|
const index = conversations.findIndex(
|
||||||
|
(prevConversation) =>
|
||||||
|
prevConversation.id === conversation.id
|
||||||
|
);
|
||||||
|
|
||||||
|
if (index !== -1) {
|
||||||
|
conversations.splice(index, 1);
|
||||||
|
conversations.unshift(conversation);
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
conversations.unshift(conversation);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Object.assign({}, prev, {
|
||||||
|
conversations: conversations,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
import { UploadOutlined, UserAddOutlined } from "@ant-design/icons";
|
import { UploadOutlined, UserAddOutlined } from "@ant-design/icons";
|
||||||
import {
|
import {
|
||||||
|
Button,
|
||||||
Divider,
|
Divider,
|
||||||
|
Dropdown,
|
||||||
Form,
|
Form,
|
||||||
Input,
|
Input,
|
||||||
|
Menu,
|
||||||
Select,
|
Select,
|
||||||
|
Space,
|
||||||
Tabs,
|
Tabs,
|
||||||
Upload,
|
Upload,
|
||||||
Space,
|
|
||||||
Menu,
|
|
||||||
Dropdown,
|
|
||||||
Button,
|
|
||||||
} from "antd";
|
} from "antd";
|
||||||
|
import _ from "lodash";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import EmailDocumentsComponent from "../email-documents/email-documents.component";
|
|
||||||
import _ from "lodash";
|
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import { selectEmailConfig } from "../../redux/email/email.selectors";
|
||||||
import {
|
import {
|
||||||
selectBodyshop,
|
selectBodyshop,
|
||||||
selectCurrentUser,
|
selectCurrentUser,
|
||||||
} from "../../redux/user/user.selectors";
|
} from "../../redux/user/user.selectors";
|
||||||
import { CreateExplorerLinkForJob } from "../../utils/localmedia";
|
import { CreateExplorerLinkForJob } from "../../utils/localmedia";
|
||||||
import { selectEmailConfig } from "../../redux/email/email.selectors";
|
import EmailDocumentsComponent from "../email-documents/email-documents.component";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
@@ -54,6 +54,15 @@ export function EmailOverlayComponent({
|
|||||||
]),
|
]),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
const handle_CC_Click = ({ item, key, keyPath }) => {
|
||||||
|
const email = item.props.value;
|
||||||
|
form.setFieldsValue({
|
||||||
|
cc: _.uniq([
|
||||||
|
...(form.getFieldValue("cc") || ""),
|
||||||
|
...(typeof email === "string" ? [email] : email),
|
||||||
|
]),
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const menu = (
|
const menu = (
|
||||||
<div>
|
<div>
|
||||||
@@ -74,6 +83,25 @@ export function EmailOverlayComponent({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const menuCC = (
|
||||||
|
<div>
|
||||||
|
<Menu onClick={handle_CC_Click}>
|
||||||
|
{bodyshop.employees
|
||||||
|
.filter((e) => e.user_email)
|
||||||
|
.map((e, idx) => (
|
||||||
|
<Menu.Item value={e.user_email} key={idx}>
|
||||||
|
{`${e.first_name} ${e.last_name}`}
|
||||||
|
</Menu.Item>
|
||||||
|
))}
|
||||||
|
{bodyshop.md_to_emails.map((e, idx) => (
|
||||||
|
<Menu.Item value={e.emails} key={idx + "group"}>
|
||||||
|
{e.label}
|
||||||
|
</Menu.Item>
|
||||||
|
))}
|
||||||
|
</Menu>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@@ -122,7 +150,23 @@ export function EmailOverlayComponent({
|
|||||||
>
|
>
|
||||||
<Select mode="tags" tokenSeparators={[",", ";"]} />
|
<Select mode="tags" tokenSeparators={[",", ";"]} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("emails.fields.cc")} name="cc">
|
<Form.Item
|
||||||
|
label={
|
||||||
|
<Space>
|
||||||
|
{t("emails.fields.cc")}
|
||||||
|
<Dropdown overlay={menuCC}>
|
||||||
|
<a
|
||||||
|
className="ant-dropdown-link"
|
||||||
|
href=" #"
|
||||||
|
onClick={(e) => e.preventDefault()}
|
||||||
|
>
|
||||||
|
<UserAddOutlined />
|
||||||
|
</a>
|
||||||
|
</Dropdown>
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
name="cc"
|
||||||
|
>
|
||||||
<Select mode="tags" tokenSeparators={[",", ";"]} />
|
<Select mode="tags" tokenSeparators={[",", ";"]} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export function JobPayments({
|
|||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
disabled={record.exportedat}
|
// disabled={record.exportedat}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPaymentContext({
|
setPaymentContext({
|
||||||
actions: { refetch: refetch },
|
actions: { refetch: refetch },
|
||||||
|
|||||||
@@ -219,13 +219,15 @@ export function JobsConvertButton({
|
|||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
<Form.Item
|
{bodyshop.region_config.toLowerCase().startsWith("ca") && (
|
||||||
label={t("jobs.fields.ca_gst_registrant")}
|
<Form.Item
|
||||||
name="ca_gst_registrant"
|
label={t("jobs.fields.ca_gst_registrant")}
|
||||||
valuePropName="checked"
|
name="ca_gst_registrant"
|
||||||
>
|
valuePropName="checked"
|
||||||
<Switch />
|
>
|
||||||
</Form.Item>
|
<Switch />
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.driveable")}
|
label={t("jobs.fields.driveable")}
|
||||||
name="driveable"
|
name="driveable"
|
||||||
|
|||||||
@@ -224,13 +224,15 @@ export function JobsCreateJobsInfo({ bodyshop, form, selected }) {
|
|||||||
>
|
>
|
||||||
<CurrencyInput />
|
<CurrencyInput />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
{bodyshop.region_config.toLowerCase().startsWith("ca") && (
|
||||||
label={t("jobs.fields.ca_gst_registrant")}
|
<Form.Item
|
||||||
name="ca_gst_registrant"
|
label={t("jobs.fields.ca_gst_registrant")}
|
||||||
valuePropName="checked"
|
name="ca_gst_registrant"
|
||||||
>
|
valuePropName="checked"
|
||||||
<Switch />
|
>
|
||||||
</Form.Item>
|
<Switch />
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.other_amount_payable")}
|
label={t("jobs.fields.other_amount_payable")}
|
||||||
name="other_amount_payable"
|
name="other_amount_payable"
|
||||||
|
|||||||
@@ -40,24 +40,26 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO} min={0} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Tooltip title={t("jobs.labels.ca_gst_all_if_null")}>
|
{bodyshop.region_config.toLowerCase().startsWith("ca") && (
|
||||||
<Form.Item
|
<Tooltip title={t("jobs.labels.ca_gst_all_if_null")}>
|
||||||
label={t("jobs.fields.ca_customer_gst")}
|
<Form.Item
|
||||||
name="ca_customer_gst"
|
label={t("jobs.fields.ca_customer_gst")}
|
||||||
>
|
name="ca_customer_gst"
|
||||||
<CurrencyInput
|
>
|
||||||
disabled={jobRO}
|
<CurrencyInput
|
||||||
min={0}
|
disabled={jobRO}
|
||||||
max={
|
min={0}
|
||||||
Math.round(
|
max={
|
||||||
(job.job_totals &&
|
Math.round(
|
||||||
job.job_totals.totals.federal_tax.amount) ||
|
(job.job_totals &&
|
||||||
0
|
job.job_totals.totals.federal_tax.amount) ||
|
||||||
) / 100
|
0
|
||||||
}
|
) / 100
|
||||||
/>
|
}
|
||||||
</Form.Item>
|
/>
|
||||||
</Tooltip>
|
</Form.Item>
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.other_amount_payable")}
|
label={t("jobs.fields.other_amount_payable")}
|
||||||
name="other_amount_payable"
|
name="other_amount_payable"
|
||||||
@@ -82,12 +84,14 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO || bodyshop.cdk_dealerid} />
|
<CurrencyInput disabled={jobRO || bodyshop.cdk_dealerid} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Space align="center">
|
{bodyshop.region_config === "CA_BC" && (
|
||||||
<Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt">
|
<Space align="center">
|
||||||
<CurrencyInput disabled={jobRO} min={0} />
|
<Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt">
|
||||||
</Form.Item>
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
<CABCpvrtCalculator form={form} disabled={jobRO} />
|
</Form.Item>
|
||||||
</Space>
|
<CABCpvrtCalculator form={form} disabled={jobRO} />
|
||||||
|
</Space>
|
||||||
|
)}
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.auto_add_ats")}
|
label={t("jobs.fields.auto_add_ats")}
|
||||||
name="auto_add_ats"
|
name="auto_add_ats"
|
||||||
@@ -141,13 +145,15 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<InputNumber min={0} max={1} precision={2} disabled={jobRO} />
|
<InputNumber min={0} max={1} precision={2} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
{bodyshop.region_config.toLowerCase().startsWith("ca") && (
|
||||||
label={t("jobs.fields.ca_gst_registrant")}
|
<Form.Item
|
||||||
name="ca_gst_registrant"
|
label={t("jobs.fields.ca_gst_registrant")}
|
||||||
valuePropName="checked"
|
name="ca_gst_registrant"
|
||||||
>
|
valuePropName="checked"
|
||||||
<Switch disabled={jobRO} />
|
>
|
||||||
</Form.Item>
|
<Switch disabled={jobRO} />
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
</FormRow>
|
</FormRow>
|
||||||
<Divider
|
<Divider
|
||||||
orientation="left"
|
orientation="left"
|
||||||
|
|||||||
@@ -75,6 +75,27 @@ export function JobNotesComponent({
|
|||||||
</span>
|
</span>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: t("notes.fields.type"),
|
||||||
|
dataIndex: "type",
|
||||||
|
key: "type",
|
||||||
|
width: 120,
|
||||||
|
filteredValue: filter?.type || null,
|
||||||
|
filters: [
|
||||||
|
{ value: "general", text: t("notes.fields.types.general") },
|
||||||
|
{ value: "customer", text: t("notes.fields.types.customer") },
|
||||||
|
{ value: "shop", text: t("notes.fields.types.shop") },
|
||||||
|
{ value: "office", text: t("notes.fields.types.office") },
|
||||||
|
{ value: "parts", text: t("notes.fields.types.parts") },
|
||||||
|
{ value: "paint", text: t("notes.fields.types.paint") },
|
||||||
|
{
|
||||||
|
value: "supplement",
|
||||||
|
text: t("notes.fields.types.supplement"),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
onFilter: (value, record) => value.includes(record.type),
|
||||||
|
render: (text, record) => t(`notes.fields.types.${record.type}`),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: t("notes.fields.text"),
|
title: t("notes.fields.text"),
|
||||||
dataIndex: "text",
|
dataIndex: "text",
|
||||||
@@ -106,7 +127,7 @@ export function JobNotesComponent({
|
|||||||
title: t("notes.actions.actions"),
|
title: t("notes.actions.actions"),
|
||||||
dataIndex: "actions",
|
dataIndex: "actions",
|
||||||
key: "actions",
|
key: "actions",
|
||||||
width: 150,
|
width: 200,
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ export function LaborAllocationsTable({
|
|||||||
<Card title={t("jobs.labels.laborallocations")}>
|
<Card title={t("jobs.labels.laborallocations")}>
|
||||||
<Table
|
<Table
|
||||||
columns={columns}
|
columns={columns}
|
||||||
rowKey="cost_center"
|
rowKey={(record) => `${record.cost_center} ${record.mod_lbr_ty}`}
|
||||||
pagination={false}
|
pagination={false}
|
||||||
onChange={handleTableChange}
|
onChange={handleTableChange}
|
||||||
dataSource={totals}
|
dataSource={totals}
|
||||||
|
|||||||
@@ -1,4 +1,14 @@
|
|||||||
import { Checkbox, Col, Form, Input, Row, Space, Switch, Tag } from "antd";
|
import {
|
||||||
|
Checkbox,
|
||||||
|
Col,
|
||||||
|
Form,
|
||||||
|
Input,
|
||||||
|
Row,
|
||||||
|
Select,
|
||||||
|
Space,
|
||||||
|
Switch,
|
||||||
|
Tag,
|
||||||
|
} from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -46,6 +56,28 @@ export function NoteUpsertModalComponent({ form, noteUpsertModal }) {
|
|||||||
<Switch />
|
<Switch />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
</Col>
|
||||||
|
<Col span={8}>
|
||||||
|
<Form.Item
|
||||||
|
label={t("notes.fields.type")}
|
||||||
|
name="type"
|
||||||
|
initialValue="general"
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
options={[
|
||||||
|
{ value: "general", label: t("notes.fields.types.general") },
|
||||||
|
{ value: "customer", label: t("notes.fields.types.customer") },
|
||||||
|
{ value: "shop", label: t("notes.fields.types.shop") },
|
||||||
|
{ value: "office", label: t("notes.fields.types.office") },
|
||||||
|
{ value: "parts", label: t("notes.fields.types.parts") },
|
||||||
|
{ value: "paint", label: t("notes.fields.types.paint") },
|
||||||
|
{
|
||||||
|
value: "supplement",
|
||||||
|
label: t("notes.fields.types.supplement"),
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<NotesPresetButton form={form} />
|
<NotesPresetButton form={form} />
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
@@ -0,0 +1,100 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { Button, notification } from "antd";
|
||||||
|
import { useMutation } from "@apollo/client";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { INSERT_EXPORT_LOG } from "../../graphql/accounting.queries";
|
||||||
|
import { setModalContext } from "../../redux/modals/modals.actions";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { UPDATE_PAYMENT } from "../../graphql/payments.queries";
|
||||||
|
import { selectCurrentUser } from "../../redux/user/user.selectors";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
|
||||||
|
const mapStateToProps = createStructuredSelector({
|
||||||
|
currentUser: selectCurrentUser,
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
setPaymentContext: (context) =>
|
||||||
|
dispatch(setModalContext({ context: context, modal: "payment" })),
|
||||||
|
});
|
||||||
|
|
||||||
|
const PaymentMarkForExportButton = ({
|
||||||
|
bodyshop,
|
||||||
|
payment,
|
||||||
|
refetch,
|
||||||
|
setPaymentContext,
|
||||||
|
currentUser,
|
||||||
|
}) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [insertExportLog, { loading: exportLogLoading }] =
|
||||||
|
useMutation(INSERT_EXPORT_LOG);
|
||||||
|
const [updatePayment, { loading: updatePaymentLoading }] =
|
||||||
|
useMutation(UPDATE_PAYMENT);
|
||||||
|
|
||||||
|
const handleClick = async () => {
|
||||||
|
const today = new Date();
|
||||||
|
|
||||||
|
await insertExportLog({
|
||||||
|
variables: {
|
||||||
|
logs: [
|
||||||
|
{
|
||||||
|
bodyshopid: bodyshop.id,
|
||||||
|
paymentid: payment.id,
|
||||||
|
successful: true,
|
||||||
|
useremail: currentUser.email,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const paymentUpdateResponse = await updatePayment({
|
||||||
|
variables: {
|
||||||
|
paymentId: payment.id,
|
||||||
|
payment: {
|
||||||
|
exportedat: today,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!!!paymentUpdateResponse.errors) {
|
||||||
|
notification.open({
|
||||||
|
type: "success",
|
||||||
|
key: "paymentsuccessmarkforexport",
|
||||||
|
message: t("payments.successes.markexported"),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (refetch) refetch();
|
||||||
|
|
||||||
|
setPaymentContext({
|
||||||
|
actions: {
|
||||||
|
refetch,
|
||||||
|
},
|
||||||
|
context: {
|
||||||
|
...payment,
|
||||||
|
exportedat: today,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
notification["error"]({
|
||||||
|
message: t("payments.errors.exporting", {
|
||||||
|
error: JSON.stringify(paymentUpdateResponse.error),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Button
|
||||||
|
onClick={handleClick}
|
||||||
|
loading={exportLogLoading || updatePaymentLoading}
|
||||||
|
disabled={!!payment.exportedat}
|
||||||
|
>
|
||||||
|
{t("payments.labels.markexported")}
|
||||||
|
</Button>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default connect(
|
||||||
|
mapStateToProps,
|
||||||
|
mapDispatchToProps
|
||||||
|
)(PaymentMarkForExportButton);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMutation } from "@apollo/client";
|
import { useMutation } from "@apollo/client";
|
||||||
|
|
||||||
import { Button, Form, Modal, notification } from "antd";
|
import { Button, Form, Modal, notification, Space } from "antd";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -19,6 +19,8 @@ import {
|
|||||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||||
import { TemplateList } from "../../utils/TemplateConstants";
|
import { TemplateList } from "../../utils/TemplateConstants";
|
||||||
import PaymentForm from "../payment-form/payment-form.component";
|
import PaymentForm from "../payment-form/payment-form.component";
|
||||||
|
import PaymentReexportButton from "../payment-reexport-button/payment-reexport-button.component";
|
||||||
|
import PaymentMarkForExportButton from "../payment-mark-export-button/payment-mark-export-button-component";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
paymentModal: selectPayment,
|
paymentModal: selectPayment,
|
||||||
@@ -52,7 +54,7 @@ function PaymentModalContainer({
|
|||||||
const { useStripe, sendby, ...paymentObj } = values;
|
const { useStripe, sendby, ...paymentObj } = values;
|
||||||
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
let updatedPayment; //Moved up from if statement for greater scope.
|
||||||
try {
|
try {
|
||||||
if (!context || (context && !context.id)) {
|
if (!context || (context && !context.id)) {
|
||||||
const newPayment = await insertPayment({
|
const newPayment = await insertPayment({
|
||||||
@@ -87,7 +89,7 @@ function PaymentModalContainer({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const updatedPayment = await updatePayment({
|
updatedPayment = await updatePayment({
|
||||||
variables: {
|
variables: {
|
||||||
paymentId: context.id,
|
paymentId: context.id,
|
||||||
payment: paymentObj,
|
payment: paymentObj,
|
||||||
@@ -101,7 +103,11 @@ function PaymentModalContainer({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (actions.refetch) actions.refetch();
|
if (actions.refetch)
|
||||||
|
actions.refetch(
|
||||||
|
updatedPayment && updatedPayment.data.update_payments.returning[0]
|
||||||
|
);
|
||||||
|
|
||||||
if (enterAgain) {
|
if (enterAgain) {
|
||||||
const prev = form.getFieldsValue(["date"]);
|
const prev = form.getFieldsValue(["date"]);
|
||||||
|
|
||||||
@@ -172,12 +178,24 @@ function PaymentModalContainer({
|
|||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
{!context || (context && !context.id) ? null : (
|
||||||
|
<Space>
|
||||||
|
<PaymentReexportButton payment={context} refetch={actions.refetch} />
|
||||||
|
<PaymentMarkForExportButton
|
||||||
|
bodyshop={bodyshop}
|
||||||
|
payment={context}
|
||||||
|
refetch={actions.refetch}
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
|
)}
|
||||||
|
|
||||||
<Form
|
<Form
|
||||||
onFinish={handleFinish}
|
onFinish={handleFinish}
|
||||||
autoComplete={"off"}
|
autoComplete={"off"}
|
||||||
form={form}
|
form={form}
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
initialValues={context || {}}
|
initialValues={context || {}}
|
||||||
|
disabled={context?.exportedat}
|
||||||
>
|
>
|
||||||
<PaymentForm form={form} />
|
<PaymentForm form={form} />
|
||||||
</Form>
|
</Form>
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { Button, notification } from "antd";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { UPDATE_PAYMENT } from "../../graphql/payments.queries";
|
||||||
|
import { useMutation } from "@apollo/client";
|
||||||
|
import { setModalContext } from "../../redux/modals/modals.actions";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
setPaymentContext: (context) =>
|
||||||
|
dispatch(setModalContext({ context: context, modal: "payment" })),
|
||||||
|
});
|
||||||
|
|
||||||
|
const PaymentReexportButton = ({ payment, refetch, setPaymentContext }) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [updatePayment, { loading }] = useMutation(UPDATE_PAYMENT);
|
||||||
|
|
||||||
|
const handleClick = async () => {
|
||||||
|
const paymentUpdateResponse = await updatePayment({
|
||||||
|
variables: {
|
||||||
|
paymentId: payment.id,
|
||||||
|
payment: {
|
||||||
|
exportedat: null,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!!!paymentUpdateResponse.errors) {
|
||||||
|
notification.open({
|
||||||
|
type: "success",
|
||||||
|
key: "paymentsuccessexport",
|
||||||
|
message: t("payments.successes.markreexported"),
|
||||||
|
});
|
||||||
|
|
||||||
|
if (refetch) refetch();
|
||||||
|
|
||||||
|
setPaymentContext({
|
||||||
|
actions: {
|
||||||
|
refetch,
|
||||||
|
},
|
||||||
|
context: {
|
||||||
|
...payment,
|
||||||
|
exportedat: null,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
notification["error"]({
|
||||||
|
message: t("payments.errors.exporting", {
|
||||||
|
error: JSON.stringify(paymentUpdateResponse.error),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Button
|
||||||
|
onClick={handleClick}
|
||||||
|
loading={loading}
|
||||||
|
disabled={!payment.exportedat}
|
||||||
|
>
|
||||||
|
{t("payments.labels.markforreexport")}
|
||||||
|
</Button>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default connect(null, mapDispatchToProps)(PaymentReexportButton);
|
||||||
@@ -156,7 +156,7 @@ export function PaymentsListPaginated({
|
|||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
<Button
|
<Button
|
||||||
disabled={record.exportedat}
|
// disabled={record.exportedat}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
let apolloResults;
|
let apolloResults;
|
||||||
if (search.search) {
|
if (search.search) {
|
||||||
@@ -169,7 +169,20 @@ export function PaymentsListPaginated({
|
|||||||
apolloResults = data.payments_by_pk;
|
apolloResults = data.payments_by_pk;
|
||||||
}
|
}
|
||||||
setPaymentContext({
|
setPaymentContext({
|
||||||
actions: { refetch: refetch },
|
actions: {
|
||||||
|
refetch: apolloResults
|
||||||
|
? (updatedRecord) => {
|
||||||
|
setOpenSearchResults((results) =>
|
||||||
|
results.map((result) => {
|
||||||
|
if (result.id !== record.id) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return updatedRecord;
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
: refetch,
|
||||||
|
},
|
||||||
context: apolloResults ? apolloResults : record,
|
context: apolloResults ? apolloResults : record,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export default function ProductionListDate({
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
//e.stopPropagation();
|
//e.stopPropagation();
|
||||||
|
|
||||||
updateAlert({
|
updateAlert({
|
||||||
variables: {
|
variables: {
|
||||||
jobId: record.id,
|
jobId: record.id,
|
||||||
@@ -32,6 +33,11 @@ export default function ProductionListDate({
|
|||||||
[field]: date,
|
[field]: date,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimisticResponse: {
|
||||||
|
update_jobs: {
|
||||||
|
[field]: date,
|
||||||
|
},
|
||||||
|
},
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
if (record.refetch) record.refetch();
|
if (record.refetch) record.refetch();
|
||||||
if (!time) {
|
if (!time) {
|
||||||
@@ -49,9 +55,11 @@ export default function ProductionListDate({
|
|||||||
(moment().add(1, "day").isSame(moment(record[field]), "day") &&
|
(moment().add(1, "day").isSame(moment(record[field]), "day") &&
|
||||||
"production-completion-soon"));
|
"production-completion-soon"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
//trigger={["click"]}
|
trigger={["click"]}
|
||||||
|
onVisibleChange={(v) => setVisible(v)}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
style={{
|
style={{
|
||||||
height: "19px",
|
height: "19px",
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import ScheduleVerifyIntegrity from "../schedule-verify-integrity/schedule-verif
|
|||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
|
import _ from "lodash";
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
});
|
});
|
||||||
@@ -39,9 +40,39 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
|||||||
employeevacation: true,
|
employeevacation: true,
|
||||||
ins_co_nm: null,
|
ins_co_nm: null,
|
||||||
});
|
});
|
||||||
|
const [estimatorsFilter, setEstimatiorsFilter] = useLocalStorage(
|
||||||
|
"estimators",
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
const estimators = useMemo(() => {
|
||||||
|
return _.uniq([
|
||||||
|
...data
|
||||||
|
.filter((d) => d.__typename === "appointments")
|
||||||
|
.map((app) =>
|
||||||
|
`${app.job?.est_ct_fn || ""} ${app.job?.est_ct_ln || ""}`.trim()
|
||||||
|
)
|
||||||
|
.filter((e) => e.length > 0),
|
||||||
|
...bodyshop.md_estimators.map((e) =>
|
||||||
|
`${e.est_ct_fn || ""} ${e.est_ct_ln || ""}`.trim()
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
}, [data, bodyshop.md_estimators]);
|
||||||
|
|
||||||
const filteredData = useMemo(() => {
|
const filteredData = useMemo(() => {
|
||||||
return data.filter(
|
return data.filter((d) => {
|
||||||
(d) =>
|
const estFilter =
|
||||||
|
d.__typename === "appointments"
|
||||||
|
? estimatorsFilter.length === 0
|
||||||
|
? true
|
||||||
|
: !!estimatorsFilter.find(
|
||||||
|
(e) =>
|
||||||
|
e ===
|
||||||
|
`${d.job?.est_ct_fn || ""} ${d.job?.est_ct_ln || ""}`.trim()
|
||||||
|
)
|
||||||
|
: true;
|
||||||
|
|
||||||
|
return (
|
||||||
(d.block ||
|
(d.block ||
|
||||||
(filter.intake && d.isintake) ||
|
(filter.intake && d.isintake) ||
|
||||||
(filter.manual && !d.isintake && d.block === false) ||
|
(filter.manual && !d.isintake && d.block === false) ||
|
||||||
@@ -50,9 +81,11 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
|||||||
!!d.employee)) &&
|
!!d.employee)) &&
|
||||||
(filter.ins_co_nm && filter.ins_co_nm.length > 0
|
(filter.ins_co_nm && filter.ins_co_nm.length > 0
|
||||||
? filter.ins_co_nm.includes(d.job?.ins_co_nm)
|
? filter.ins_co_nm.includes(d.job?.ins_co_nm)
|
||||||
: true)
|
: true) &&
|
||||||
);
|
estFilter
|
||||||
}, [data, filter]);
|
);
|
||||||
|
});
|
||||||
|
}, [data, filter, estimatorsFilter]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
@@ -63,6 +96,21 @@ export function ScheduleCalendarComponent({ data, refetch, bodyshop }) {
|
|||||||
extra={
|
extra={
|
||||||
<Space wrap>
|
<Space wrap>
|
||||||
<ScheduleAtsSummary appointments={filteredData} />
|
<ScheduleAtsSummary appointments={filteredData} />
|
||||||
|
<Select
|
||||||
|
style={{ minWidth: "15rem" }}
|
||||||
|
mode="multiple"
|
||||||
|
placeholder={t("schedule.labels.estimators")}
|
||||||
|
allowClear
|
||||||
|
onClear={() => setEstimatiorsFilter([])}
|
||||||
|
value={[...estimatorsFilter]}
|
||||||
|
onChange={(e) => {
|
||||||
|
setEstimatiorsFilter(e);
|
||||||
|
}}
|
||||||
|
options={estimators.map((e) => ({
|
||||||
|
label: e,
|
||||||
|
value: e,
|
||||||
|
}))}
|
||||||
|
/>
|
||||||
<Select
|
<Select
|
||||||
style={{ minWidth: "15rem" }}
|
style={{ minWidth: "15rem" }}
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Dinero from "dinero.js";
|
|
||||||
import { Card } from "antd";
|
import { Card } from "antd";
|
||||||
|
import Dinero from "dinero.js";
|
||||||
|
import _ from "lodash";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -18,7 +19,6 @@ import {
|
|||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
import * as Utils from "../scoreboard-targets-table/scoreboard-targets-table.util";
|
import * as Utils from "../scoreboard-targets-table/scoreboard-targets-table.util";
|
||||||
import _ from "lodash";
|
|
||||||
import CustomTooltip from "./chart-custom-tooltip";
|
import CustomTooltip from "./chart-custom-tooltip";
|
||||||
|
|
||||||
const graphProps = {
|
const graphProps = {
|
||||||
@@ -71,7 +71,9 @@ export function ScoreboardChart({ sbEntriesByDate, bodyshop }) {
|
|||||||
bodyshop.scoreboard_target.dailyBodyTarget +
|
bodyshop.scoreboard_target.dailyBodyTarget +
|
||||||
bodyshop.scoreboard_target.dailyPaintTarget,
|
bodyshop.scoreboard_target.dailyPaintTarget,
|
||||||
val
|
val
|
||||||
),
|
) +
|
||||||
|
bodyshop.scoreboard_target.dailyBodyTarget +
|
||||||
|
bodyshop.scoreboard_target.dailyPaintTarget,
|
||||||
1
|
1
|
||||||
),
|
),
|
||||||
accHrs: _.round(
|
accHrs: _.round(
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import ShopInfoResponsibilityCenterComponent from "./shop-info.responsibilitycen
|
|||||||
import ShopInfoROStatusComponent from "./shop-info.rostatus.component";
|
import ShopInfoROStatusComponent from "./shop-info.rostatus.component";
|
||||||
import ShopInfoSchedulingComponent from "./shop-info.scheduling.component";
|
import ShopInfoSchedulingComponent from "./shop-info.scheduling.component";
|
||||||
import ShopInfoSpeedPrint from "./shop-info.speedprint.component";
|
import ShopInfoSpeedPrint from "./shop-info.speedprint.component";
|
||||||
|
import { useHistory, useLocation } from "react-router-dom";
|
||||||
|
import queryString from "query-string";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
@@ -31,6 +33,10 @@ export function ShopInfoComponent({ bodyshop, form, saveLoading }) {
|
|||||||
bodyshop.imexshopid
|
bodyshop.imexshopid
|
||||||
);
|
);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const history = useHistory();
|
||||||
|
const location = useLocation();
|
||||||
|
const search = queryString.parse(location.search);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
extra={
|
extra={
|
||||||
@@ -43,7 +49,12 @@ export function ShopInfoComponent({ bodyshop, form, saveLoading }) {
|
|||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Tabs>
|
<Tabs
|
||||||
|
defaultActiveKey={search.subtab}
|
||||||
|
onChange={(key) =>
|
||||||
|
history.push({ search: `?tab=${search.tab}&subtab=${key}` })
|
||||||
|
}
|
||||||
|
>
|
||||||
<Tabs.TabPane key="general" tab={t("bodyshop.labels.shopinfo")}>
|
<Tabs.TabPane key="general" tab={t("bodyshop.labels.shopinfo")}>
|
||||||
<ShopInfoGeneral form={form} />
|
<ShopInfoGeneral form={form} />
|
||||||
</Tabs.TabPane>
|
</Tabs.TabPane>
|
||||||
|
|||||||
@@ -24,9 +24,13 @@ const timeZonesList = momentTZ.tz.names();
|
|||||||
|
|
||||||
export default function ShopInfoGeneral({ form }) {
|
export default function ShopInfoGeneral({ form }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.businessinformation")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.businessinformation")}
|
||||||
|
id="businessinformation"
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.shopname")}
|
label={t("bodyshop.fields.shopname")}
|
||||||
name="shopname"
|
name="shopname"
|
||||||
@@ -155,7 +159,10 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
<InputNumber min={0} />
|
<InputNumber min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.accountingsetup")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.accountingsetup")}
|
||||||
|
id="accountingsetup"
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.labels.qbo")}
|
label={t("bodyshop.labels.qbo")}
|
||||||
valuePropName="checked"
|
valuePropName="checked"
|
||||||
@@ -386,7 +393,10 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
<Select mode="tags" />
|
<Select mode="tags" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.scoreboardsetup")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.scoreboardsetup")}
|
||||||
|
id="scoreboardsetup"
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.dailypainttarget")}
|
label={t("bodyshop.fields.dailypainttarget")}
|
||||||
name={["scoreboard_target", "dailyPaintTarget"]}
|
name={["scoreboard_target", "dailyPaintTarget"]}
|
||||||
@@ -445,7 +455,10 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
<InputNumber min={1} precision={1} />
|
<InputNumber min={1} precision={1} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.systemsettings")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.systemsettings")}
|
||||||
|
id="systemsettings"
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={["md_referral_sources"]}
|
name={["md_referral_sources"]}
|
||||||
label={t("bodyshop.fields.md_referral_sources")}
|
label={t("bodyshop.fields.md_referral_sources")}
|
||||||
@@ -655,7 +668,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.messagingpresets")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.messagingpresets")}
|
||||||
|
id="messagingpresets"
|
||||||
|
>
|
||||||
<Form.List name={["md_messaging_presets"]}>
|
<Form.List name={["md_messaging_presets"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -720,7 +737,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.notespresets")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.notespresets")}
|
||||||
|
id="notespresets"
|
||||||
|
>
|
||||||
<Form.List name={["md_notes_presets"]}>
|
<Form.List name={["md_notes_presets"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -785,7 +806,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.partslocations")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.partslocations")}
|
||||||
|
id="partslocations"
|
||||||
|
>
|
||||||
<Form.List name={["md_parts_locations"]}>
|
<Form.List name={["md_parts_locations"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -839,7 +864,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.insurancecos")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.insurancecos")}
|
||||||
|
id="insurancecos"
|
||||||
|
>
|
||||||
<Form.List name={["md_ins_cos"]}>
|
<Form.List name={["md_ins_cos"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -935,7 +964,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.estimators")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.estimators")}
|
||||||
|
id="estimators"
|
||||||
|
>
|
||||||
<Form.List name={["md_estimators"]}>
|
<Form.List name={["md_estimators"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -1024,7 +1057,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.filehandlers")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.filehandlers")}
|
||||||
|
id="filehandlers"
|
||||||
|
>
|
||||||
<Form.List name={["md_filehandlers"]}>
|
<Form.List name={["md_filehandlers"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -1106,7 +1143,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.fields.md_ccc_rates")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.fields.md_ccc_rates")}
|
||||||
|
id="md_ccc_rates"
|
||||||
|
>
|
||||||
<Form.List name={["md_ccc_rates"]}>
|
<Form.List name={["md_ccc_rates"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -1223,7 +1264,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.fields.md_jobline_presets")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.fields.md_jobline_presets")}
|
||||||
|
id="md_jobline_presets"
|
||||||
|
>
|
||||||
<Form.List name={["md_jobline_presets"]}>
|
<Form.List name={["md_jobline_presets"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -1404,7 +1449,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.fields.md_parts_order_comment")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.fields.md_parts_order_comment")}
|
||||||
|
id="md_parts_order_comment"
|
||||||
|
>
|
||||||
<Form.List name={["md_parts_order_comment"]}>
|
<Form.List name={["md_parts_order_comment"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -1470,7 +1519,11 @@ export default function ShopInfoGeneral({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow grow header={t("bodyshop.labels.md_to_emails")}>
|
<LayoutFormRow
|
||||||
|
grow
|
||||||
|
header={t("bodyshop.labels.md_to_emails")}
|
||||||
|
id="md_to_emails"
|
||||||
|
>
|
||||||
<Form.List name={["md_to_emails"]}>
|
<Form.List name={["md_to_emails"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -20,7 +20,10 @@ export default function ShopInfoIntakeChecklistComponent({ form }) {
|
|||||||
const TemplateListGenerated = TemplateList();
|
const TemplateListGenerated = TemplateList();
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.intakechecklist")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.intakechecklist")}
|
||||||
|
id="intakechecklist"
|
||||||
|
>
|
||||||
<Form.List name={["intakechecklist", "form"]}>
|
<Form.List name={["intakechecklist", "form"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -188,7 +191,10 @@ export default function ShopInfoIntakeChecklistComponent({ form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</SelectorDiv>
|
</SelectorDiv>
|
||||||
|
|
||||||
<LayoutFormRow header={t("bodyshop.labels.deliverchecklist")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.deliverchecklist")}
|
||||||
|
id="deliverchecklist"
|
||||||
|
>
|
||||||
<Form.List name={["deliverchecklist", "form"]}>
|
<Form.List name={["deliverchecklist", "form"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
{form.getFieldValue("pbs_serialnumber")}
|
{form.getFieldValue("pbs_serialnumber")}
|
||||||
</DataLabel>
|
</DataLabel>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<LayoutFormRow>
|
<LayoutFormRow>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.dms.default_journal")}
|
label={t("bodyshop.fields.dms.default_journal")}
|
||||||
@@ -315,7 +314,10 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</DataLabel>
|
</DataLabel>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<LayoutFormRow header={t("bodyshop.labels.responsibilitycenters.costs")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.labels.responsibilitycenters.costs")}
|
||||||
|
id="costs"
|
||||||
|
>
|
||||||
<Form.List name={["md_responsibility_centers", "costs"]}>
|
<Form.List name={["md_responsibility_centers", "costs"]}>
|
||||||
{(fields, { add, remove }) => {
|
{(fields, { add, remove }) => {
|
||||||
return (
|
return (
|
||||||
@@ -462,6 +464,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
|
|
||||||
<LayoutFormRow
|
<LayoutFormRow
|
||||||
header={t("bodyshop.labels.responsibilitycenters.profits")}
|
header={t("bodyshop.labels.responsibilitycenters.profits")}
|
||||||
|
id="profits"
|
||||||
>
|
>
|
||||||
<Form.List name={["md_responsibility_centers", "profits"]}>
|
<Form.List name={["md_responsibility_centers", "profits"]}>
|
||||||
{(fields, { add, remove }) => {
|
{(fields, { add, remove }) => {
|
||||||
@@ -601,7 +604,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
{fields.map((field, index) => (
|
{fields.map((field, index) => (
|
||||||
<Form.Item key={field.key}>
|
<Form.Item key={field.key}>
|
||||||
<div>
|
<div>
|
||||||
<LayoutFormRow>
|
<LayoutFormRow id="mappingname">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.dms.mappingname")}
|
label={t("bodyshop.fields.dms.mappingname")}
|
||||||
key={`${index}name`}
|
key={`${index}name`}
|
||||||
@@ -631,6 +634,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow
|
<LayoutFormRow
|
||||||
header={t("bodyshop.labels.defaultcostsmapping")}
|
header={t("bodyshop.labels.defaultcostsmapping")}
|
||||||
|
id="defaultcostsmapping"
|
||||||
>
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t(
|
label={t(
|
||||||
@@ -4088,6 +4092,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
|
|
||||||
<LayoutFormRow
|
<LayoutFormRow
|
||||||
header={t("bodyshop.labels.responsibilitycenters.tax_accounts")}
|
header={t("bodyshop.labels.responsibilitycenters.tax_accounts")}
|
||||||
|
id="tax_accounts"
|
||||||
>
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.federal_tax")}
|
label={t("bodyshop.fields.responsibilitycenters.federal_tax")}
|
||||||
@@ -4202,7 +4207,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
{DmsAp.treatment === "on" && (
|
{DmsAp.treatment === "on" && (
|
||||||
<LayoutFormRow>
|
<LayoutFormRow id="federal_tax_itc">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.federal_tax_itc")}
|
label={t("bodyshop.fields.responsibilitycenters.federal_tax_itc")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4316,7 +4321,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
)}
|
)}
|
||||||
<LayoutFormRow>
|
<LayoutFormRow id="state_tax">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.state_tax")}
|
label={t("bodyshop.fields.responsibilitycenters.state_tax")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4414,7 +4419,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
<InputNumber precision={2} />
|
<InputNumber precision={2} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow>
|
<LayoutFormRow id="local_tax">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.local_tax")}
|
label={t("bodyshop.fields.responsibilitycenters.local_tax")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4512,7 +4517,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
<InputNumber precision={2} />
|
<InputNumber precision={2} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={<div>AR</div>}>
|
<LayoutFormRow header={<div>AR</div>} id="AR">
|
||||||
{/* <Form.Item
|
{/* <Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.ar")}
|
label={t("bodyshop.fields.responsibilitycenters.ar")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4576,7 +4581,10 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
|
|
||||||
{DmsAp.treatment === "on" && (
|
{DmsAp.treatment === "on" && (
|
||||||
<LayoutFormRow header={t("bodyshop.fields.responsibilitycenters.ap")}>
|
<LayoutFormRow
|
||||||
|
header={t("bodyshop.fields.responsibilitycenters.ap")}
|
||||||
|
id="ap"
|
||||||
|
>
|
||||||
{/* <Form.Item
|
{/* <Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.ap")}
|
label={t("bodyshop.fields.responsibilitycenters.ap")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4639,7 +4647,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
)}
|
)}
|
||||||
<LayoutFormRow header={<div>Refund</div>}>
|
<LayoutFormRow header={<div>Refund</div>} id="refund">
|
||||||
{/* <Form.Item
|
{/* <Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenters.refund")}
|
label={t("bodyshop.fields.responsibilitycenters.refund")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4702,7 +4710,10 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
{Qb_Multi_Ar.treatment === "on" && (
|
{Qb_Multi_Ar.treatment === "on" && (
|
||||||
<LayoutFormRow header={<div>Multiple Payers Item</div>}>
|
<LayoutFormRow
|
||||||
|
header={<div>Multiple Payers Item</div>}
|
||||||
|
id="accountitem"
|
||||||
|
>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
||||||
rules={[
|
rules={[
|
||||||
@@ -4730,7 +4741,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
<div>
|
<div>
|
||||||
{fields.map((field, index) => (
|
{fields.map((field, index) => (
|
||||||
<Form.Item key={field.key}>
|
<Form.Item key={field.key}>
|
||||||
<LayoutFormRow>
|
<LayoutFormRow id="sales_tax_codes">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t(
|
label={t(
|
||||||
"bodyshop.fields.responsibilitycenters.sales_tax_codes.description"
|
"bodyshop.fields.responsibilitycenters.sales_tax_codes.description"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function ShopInfoROStatusComponent({ bodyshop, form }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SelectorDiv>
|
<SelectorDiv id="jobstatus">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={["md_ro_statuses", "statuses"]}
|
name={["md_ro_statuses", "statuses"]}
|
||||||
label={t("bodyshop.labels.alljobstatuses")}
|
label={t("bodyshop.labels.alljobstatuses")}
|
||||||
@@ -322,6 +322,7 @@ export function ShopInfoROStatusComponent({ bodyshop, form }) {
|
|||||||
<LayoutFormRow
|
<LayoutFormRow
|
||||||
grow
|
grow
|
||||||
header={t("bodyshop.fields.statuses.production_colors")}
|
header={t("bodyshop.fields.statuses.production_colors")}
|
||||||
|
id="production_colors"
|
||||||
>
|
>
|
||||||
<Form.List name={["md_ro_statuses", "production_colors"]}>
|
<Form.List name={["md_ro_statuses", "production_colors"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default function ShopInfoSchedulingComponent({ form }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<Divider orientation="left">{t("bodyshop.labels.workingdays")}</Divider>
|
<Divider orientation="left">{t("bodyshop.labels.workingdays")}</Divider>
|
||||||
<Space wrap size="large">
|
<Space wrap size="large" id="workingdays">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("general.labels.sunday")}
|
label={t("general.labels.sunday")}
|
||||||
name={["workingdays", "sunday"]}
|
name={["workingdays", "sunday"]}
|
||||||
@@ -143,7 +143,7 @@ export default function ShopInfoSchedulingComponent({ form }) {
|
|||||||
<Switch />
|
<Switch />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Space>
|
</Space>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.apptcolors")}>
|
<LayoutFormRow header={t("bodyshop.labels.apptcolors")} id="apptcolors">
|
||||||
<Form.List name={["appt_colors"]}>
|
<Form.List name={["appt_colors"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
@@ -208,7 +208,7 @@ export default function ShopInfoSchedulingComponent({ form }) {
|
|||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={t("bodyshop.labels.ssbuckets")}>
|
<LayoutFormRow header={t("bodyshop.labels.ssbuckets")} id="ssbuckets">
|
||||||
<Form.List name={["ssbuckets"]}>
|
<Form.List name={["ssbuckets"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -96,8 +96,9 @@ export function TimeTicketModalComponent({
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<JobSearchSelect
|
<JobSearchSelect
|
||||||
convertedOnly={!bodyshop.tt_allow_post_to_invoiced}
|
convertedOnly={true}
|
||||||
notExported={!bodyshop.tt_allow_post_to_invoiced}
|
notExported={!bodyshop.tt_allow_post_to_invoiced}
|
||||||
|
notInvoiced={!bodyshop.tt_allow_post_to_invoiced}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
|||||||
v_model_yr
|
v_model_yr
|
||||||
v_make_desc
|
v_make_desc
|
||||||
v_model_desc
|
v_model_desc
|
||||||
|
est_ct_fn
|
||||||
|
est_ct_ln
|
||||||
labhrs: joblines_aggregate(
|
labhrs: joblines_aggregate(
|
||||||
where: { mod_lbr_ty: { _neq: "LAR" }, removed: { _eq: false } }
|
where: { mod_lbr_ty: { _neq: "LAR" }, removed: { _eq: false } }
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -1,35 +1,36 @@
|
|||||||
import { gql } from "@apollo/client";
|
import { gql } from "@apollo/client";
|
||||||
|
|
||||||
// export const CONVERSATION_LIST_SUBSCRIPTION = gql`
|
export const CONVERSATION_LIST_SUBSCRIPTION = gql`
|
||||||
// subscription CONVERSATION_LIST_SUBSCRIPTION {
|
subscription CONVERSATION_LIST_SUBSCRIPTION($offset: Int!) {
|
||||||
// conversations(
|
conversations(
|
||||||
// order_by: { updated_at: desc }
|
order_by: { updated_at: desc }
|
||||||
// limit: 50
|
limit: 1
|
||||||
// where: { archived: { _eq: false } }
|
offset: $offset
|
||||||
// ) {
|
where: { archived: { _eq: false } }
|
||||||
// phone_num
|
) {
|
||||||
// id
|
phone_num
|
||||||
// updated_at
|
id
|
||||||
// unreadcnt
|
updated_at
|
||||||
// messages_aggregate(
|
unreadcnt
|
||||||
// where: { read: { _eq: false }, isoutbound: { _eq: false } }
|
messages_aggregate(
|
||||||
// ) {
|
where: { read: { _eq: false }, isoutbound: { _eq: false } }
|
||||||
// aggregate {
|
) {
|
||||||
// count
|
aggregate {
|
||||||
// }
|
count
|
||||||
// }
|
}
|
||||||
// job_conversations {
|
}
|
||||||
// job {
|
job_conversations {
|
||||||
// id
|
job {
|
||||||
// ro_number
|
id
|
||||||
// ownr_fn
|
ro_number
|
||||||
// ownr_ln
|
ownr_fn
|
||||||
// ownr_co_nm
|
ownr_ln
|
||||||
// }
|
ownr_co_nm
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// `;
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const UNREAD_CONVERSATION_COUNT = gql`
|
export const UNREAD_CONVERSATION_COUNT = gql`
|
||||||
query UNREAD_CONVERSATION_COUNT {
|
query UNREAD_CONVERSATION_COUNT {
|
||||||
@@ -43,11 +44,24 @@ export const UNREAD_CONVERSATION_COUNT = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const UNREAD_CONVERSATION_COUNT_SUBSCRIPTION = gql`
|
||||||
|
subscription UNREAD_CONVERSATION_COUNT_SUBSCRIPTION {
|
||||||
|
messages_aggregate(
|
||||||
|
where: { read: { _eq: false }, isoutbound: { _eq: false } }
|
||||||
|
) {
|
||||||
|
aggregate {
|
||||||
|
count
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const CONVERSATION_LIST_QUERY = gql`
|
export const CONVERSATION_LIST_QUERY = gql`
|
||||||
query CONVERSATION_LIST_QUERY {
|
query CONVERSATION_LIST_QUERY($offset: Int!) {
|
||||||
conversations(
|
conversations(
|
||||||
order_by: { updated_at: desc }
|
order_by: { updated_at: desc }
|
||||||
limit: 50
|
limit: 50
|
||||||
|
offset: $offset
|
||||||
where: { archived: { _eq: false } }
|
where: { archived: { _eq: false } }
|
||||||
) {
|
) {
|
||||||
phone_num
|
phone_num
|
||||||
|
|||||||
@@ -1075,6 +1075,9 @@ export const UPDATE_JOB = gql`
|
|||||||
lbr_adjustments
|
lbr_adjustments
|
||||||
suspended
|
suspended
|
||||||
queued_for_parts
|
queued_for_parts
|
||||||
|
scheduled_completion
|
||||||
|
actual_in
|
||||||
|
date_repairstarted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export const INSERT_NEW_NOTE = gql`
|
|||||||
text
|
text
|
||||||
updated_at
|
updated_at
|
||||||
audit
|
audit
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -41,6 +42,7 @@ export const QUERY_NOTES_BY_JOB_PK = gql`
|
|||||||
text
|
text
|
||||||
updated_at
|
updated_at
|
||||||
audit
|
audit
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,6 +62,7 @@ export const UPDATE_NOTE = gql`
|
|||||||
text
|
text
|
||||||
updated_at
|
updated_at
|
||||||
audit
|
audit
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,19 +16,15 @@ export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
|
|||||||
$limit: Int
|
$limit: Int
|
||||||
$order: [payments_order_by!]!
|
$order: [payments_order_by!]!
|
||||||
) {
|
) {
|
||||||
payments(
|
payments(offset: $offset, limit: $limit, order_by: $order) {
|
||||||
offset: $offset
|
|
||||||
limit: $limit
|
|
||||||
order_by: $order
|
|
||||||
) {
|
|
||||||
id
|
id
|
||||||
|
amount
|
||||||
created_at
|
created_at
|
||||||
jobid
|
|
||||||
paymentnum
|
|
||||||
date
|
date
|
||||||
|
exportedat
|
||||||
|
jobid
|
||||||
job {
|
job {
|
||||||
id
|
id
|
||||||
ro_number
|
|
||||||
ownerid
|
ownerid
|
||||||
ownr_co_nm
|
ownr_co_nm
|
||||||
ownr_fn
|
ownr_fn
|
||||||
@@ -39,15 +35,14 @@ export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
|
|||||||
ownr_fn
|
ownr_fn
|
||||||
ownr_ln
|
ownr_ln
|
||||||
}
|
}
|
||||||
|
ro_number
|
||||||
}
|
}
|
||||||
transactionid
|
|
||||||
memo
|
memo
|
||||||
type
|
|
||||||
amount
|
|
||||||
stripeid
|
|
||||||
exportedat
|
|
||||||
stripeid
|
|
||||||
payer
|
payer
|
||||||
|
paymentnum
|
||||||
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
payments_aggregate {
|
payments_aggregate {
|
||||||
aggregate {
|
aggregate {
|
||||||
@@ -62,16 +57,31 @@ export const UPDATE_PAYMENT = gql`
|
|||||||
update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) {
|
update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) {
|
||||||
returning {
|
returning {
|
||||||
id
|
id
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
amount
|
||||||
stripeid
|
created_at
|
||||||
|
date
|
||||||
exportedat
|
exportedat
|
||||||
stripeid
|
jobid
|
||||||
|
job {
|
||||||
|
id
|
||||||
|
ownerid
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
}
|
||||||
|
ro_number
|
||||||
|
}
|
||||||
|
memo
|
||||||
payer
|
payer
|
||||||
paymentnum
|
paymentnum
|
||||||
date
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,17 +95,31 @@ export const UPDATE_PAYMENTS = gql`
|
|||||||
update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) {
|
update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) {
|
||||||
returning {
|
returning {
|
||||||
id
|
id
|
||||||
exportedat
|
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
amount
|
||||||
stripeid
|
created_at
|
||||||
|
date
|
||||||
exportedat
|
exportedat
|
||||||
stripeid
|
jobid
|
||||||
|
job {
|
||||||
|
id
|
||||||
|
ownerid
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
}
|
||||||
|
ro_number
|
||||||
|
}
|
||||||
|
memo
|
||||||
payer
|
payer
|
||||||
paymentnum
|
paymentnum
|
||||||
date
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -115,36 +139,35 @@ export const QUERY_JOB_PAYMENT_TOTALS = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const QUERY_PAYMENT_BY_ID = gql`
|
||||||
export const QUERY_PAYMENT_BY_ID = gql`query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
|
query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
|
||||||
payments_by_pk(id: $paymentId) {
|
payments_by_pk(id: $paymentId) {
|
||||||
id
|
|
||||||
created_at
|
|
||||||
jobid
|
|
||||||
paymentnum
|
|
||||||
date
|
|
||||||
job {
|
|
||||||
id
|
id
|
||||||
ro_number
|
amount
|
||||||
ownerid
|
created_at
|
||||||
ownr_co_nm
|
exportedat
|
||||||
ownr_fn
|
date
|
||||||
ownr_ln
|
jobid
|
||||||
owner {
|
job {
|
||||||
id
|
id
|
||||||
|
ownerid
|
||||||
ownr_co_nm
|
ownr_co_nm
|
||||||
ownr_fn
|
ownr_fn
|
||||||
ownr_ln
|
ownr_ln
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
}
|
||||||
|
ro_number
|
||||||
}
|
}
|
||||||
|
memo
|
||||||
|
payer
|
||||||
|
paymentnum
|
||||||
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
|
||||||
stripeid
|
|
||||||
exportedat
|
|
||||||
stripeid
|
|
||||||
payer
|
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { Tabs } from "antd";
|
import { Tabs } from "antd";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
|
import { useHistory, useLocation } from "react-router-dom";
|
||||||
|
import queryString from "query-string";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import ShopEmployeesContainer from "../../components/shop-employees/shop-employees.container";
|
import ShopEmployeesContainer from "../../components/shop-employees/shop-employees.container";
|
||||||
import ShopInfoContainer from "../../components/shop-info/shop-info.container";
|
import ShopInfoContainer from "../../components/shop-info/shop-info.container";
|
||||||
@@ -24,6 +26,9 @@ const mapDispatchToProps = (dispatch) => ({
|
|||||||
|
|
||||||
export function ShopPage({ bodyshop, setSelectedHeader, setBreadcrumbs }) {
|
export function ShopPage({ bodyshop, setSelectedHeader, setBreadcrumbs }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const history = useHistory();
|
||||||
|
const search = queryString.parse(useLocation().search);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = t("titles.shop");
|
document.title = t("titles.shop");
|
||||||
setSelectedHeader("shop");
|
setSelectedHeader("shop");
|
||||||
@@ -37,7 +42,10 @@ export function ShopPage({ bodyshop, setSelectedHeader, setBreadcrumbs }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<RbacWrapper action="shop:config">
|
<RbacWrapper action="shop:config">
|
||||||
<Tabs>
|
<Tabs
|
||||||
|
defaultActiveKey={search.tab}
|
||||||
|
onChange={(key) => history.push({ search: `?tab=${key}` })}
|
||||||
|
>
|
||||||
<Tabs.TabPane tab={t("bodyshop.labels.shopinfo")} key="info">
|
<Tabs.TabPane tab={t("bodyshop.labels.shopinfo")} key="info">
|
||||||
<ShopInfoContainer />
|
<ShopInfoContainer />
|
||||||
</Tabs.TabPane>
|
</Tabs.TabPane>
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
"scheduledfor": "Scheduled appointment for: ",
|
"scheduledfor": "Scheduled appointment for: ",
|
||||||
"severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.",
|
"severalerrorsfound": "Several jobs have issues which may prevent accurate smart scheduling. Click to expand.",
|
||||||
"smartscheduling": "Smart Scheduling",
|
"smartscheduling": "Smart Scheduling",
|
||||||
|
"smspaymentreminder": "",
|
||||||
"suggesteddates": "Suggested Dates"
|
"suggesteddates": "Suggested Dates"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -103,6 +104,7 @@
|
|||||||
"admin_jobunvoid": "ADMIN: Job has been unvoided.",
|
"admin_jobunvoid": "ADMIN: Job has been unvoided.",
|
||||||
"billposted": "Bill with invoice number {{invoice_number}} posted.",
|
"billposted": "Bill with invoice number {{invoice_number}} posted.",
|
||||||
"billupdated": "Bill with invoice number {{invoice_number}} updated.",
|
"billupdated": "Bill with invoice number {{invoice_number}} updated.",
|
||||||
|
"failedpayment": "",
|
||||||
"jobassignmentchange": "Employee {{name}} assigned to {{operation}}",
|
"jobassignmentchange": "Employee {{name}} assigned to {{operation}}",
|
||||||
"jobassignmentremoved": "Employee assignment removed for {{operation}}",
|
"jobassignmentremoved": "Employee assignment removed for {{operation}}",
|
||||||
"jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.",
|
"jobchecklist": "Checklist type \"{{type}}\" completed. In production set to {{inproduction}}. Status set to {{status}}.",
|
||||||
@@ -227,6 +229,7 @@
|
|||||||
},
|
},
|
||||||
"bodyshop": {
|
"bodyshop": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"add_task_preset": "",
|
||||||
"addapptcolor": "Add Appointment Color",
|
"addapptcolor": "Add Appointment Color",
|
||||||
"addbucket": "Add Definition",
|
"addbucket": "Add Definition",
|
||||||
"addpartslocation": "Add Parts Location",
|
"addpartslocation": "Add Parts Location",
|
||||||
@@ -339,6 +342,12 @@
|
|||||||
},
|
},
|
||||||
"md_payment_types": "Payment Types",
|
"md_payment_types": "Payment Types",
|
||||||
"md_referral_sources": "Referral Sources",
|
"md_referral_sources": "Referral Sources",
|
||||||
|
"md_tasks_presets": {
|
||||||
|
"hourstype": "",
|
||||||
|
"memo": "",
|
||||||
|
"name": "",
|
||||||
|
"percent": ""
|
||||||
|
},
|
||||||
"messaginglabel": "Messaging Preset Label",
|
"messaginglabel": "Messaging Preset Label",
|
||||||
"messagingtext": "Messaging Preset Text",
|
"messagingtext": "Messaging Preset Text",
|
||||||
"noteslabel": "Note Label",
|
"noteslabel": "Note Label",
|
||||||
@@ -374,6 +383,9 @@
|
|||||||
"export": "CSI -> Export",
|
"export": "CSI -> Export",
|
||||||
"page": "CSI -> Page"
|
"page": "CSI -> Page"
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"page": ""
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"page": "Employees -> List"
|
"page": "Employees -> List"
|
||||||
},
|
},
|
||||||
@@ -432,10 +444,15 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"edit": "Time Tickets -> Edit",
|
"edit": "Time Tickets -> Edit",
|
||||||
|
"editcommitted": "",
|
||||||
"enter": "Time Tickets -> Enter",
|
"enter": "Time Tickets -> Enter",
|
||||||
"list": "Time Tickets -> List",
|
"list": "Time Tickets -> List",
|
||||||
"shiftedit": "Time Tickets -> Shift Edit"
|
"shiftedit": "Time Tickets -> Shift Edit"
|
||||||
},
|
},
|
||||||
|
"ttapprovals": {
|
||||||
|
"approve": "",
|
||||||
|
"view": ""
|
||||||
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"editaccess": "Users -> Edit access"
|
"editaccess": "Users -> Edit access"
|
||||||
}
|
}
|
||||||
@@ -453,6 +470,8 @@
|
|||||||
"federal_tax": "Federal Tax",
|
"federal_tax": "Federal Tax",
|
||||||
"federal_tax_itc": "Federal Tax Credit",
|
"federal_tax_itc": "Federal Tax Credit",
|
||||||
"gst_override": "GST Override Account #",
|
"gst_override": "GST Override Account #",
|
||||||
|
"invoiceexemptcode": "",
|
||||||
|
"itemexemptcode": "",
|
||||||
"la1": "LA1",
|
"la1": "LA1",
|
||||||
"la2": "LA2",
|
"la2": "LA2",
|
||||||
"la3": "LA3",
|
"la3": "LA3",
|
||||||
@@ -504,12 +523,12 @@
|
|||||||
"dailyhrslimit": "Daily Incoming Hours Limit"
|
"dailyhrslimit": "Daily Incoming Hours Limit"
|
||||||
},
|
},
|
||||||
"ssbuckets": {
|
"ssbuckets": {
|
||||||
|
"color": "Job Color",
|
||||||
"gte": "Greater Than/Equal to (hrs)",
|
"gte": "Greater Than/Equal to (hrs)",
|
||||||
"id": "ID",
|
"id": "ID",
|
||||||
"label": "Label",
|
"label": "Label",
|
||||||
"lt": "Less than (hrs)",
|
"lt": "Less than (hrs)",
|
||||||
"target": "Target (count)",
|
"target": "Target (count)"
|
||||||
"color": "Job Color"
|
|
||||||
},
|
},
|
||||||
"state": "Province/State",
|
"state": "Province/State",
|
||||||
"state_tax_id": "Provincial/State Tax ID (PST, QST)",
|
"state_tax_id": "Provincial/State Tax ID (PST, QST)",
|
||||||
@@ -575,6 +594,7 @@
|
|||||||
"title": "DMS"
|
"title": "DMS"
|
||||||
},
|
},
|
||||||
"emaillater": "Email Later",
|
"emaillater": "Email Later",
|
||||||
|
"employee_teams": "",
|
||||||
"employees": "Employees",
|
"employees": "Employees",
|
||||||
"estimators": "Estimators",
|
"estimators": "Estimators",
|
||||||
"filehandlers": "File Handlers",
|
"filehandlers": "File Handlers",
|
||||||
@@ -583,6 +603,7 @@
|
|||||||
"jobstatuses": "Job Statuses",
|
"jobstatuses": "Job Statuses",
|
||||||
"laborrates": "Labor Rates",
|
"laborrates": "Labor Rates",
|
||||||
"licensing": "Licensing",
|
"licensing": "Licensing",
|
||||||
|
"md_tasks_presets": "",
|
||||||
"md_to_emails": "Preset To Emails",
|
"md_to_emails": "Preset To Emails",
|
||||||
"md_to_emails_emails": "Emails",
|
"md_to_emails_emails": "Emails",
|
||||||
"messagingpresets": "Messaging Presets",
|
"messagingpresets": "Messaging Presets",
|
||||||
@@ -609,6 +630,7 @@
|
|||||||
"speedprint": "Speed Print Configuration",
|
"speedprint": "Speed Print Configuration",
|
||||||
"ssbuckets": "Job Size Definitions",
|
"ssbuckets": "Job Size Definitions",
|
||||||
"systemsettings": "System Settings",
|
"systemsettings": "System Settings",
|
||||||
|
"task-presets": "",
|
||||||
"workingdays": "Working Days"
|
"workingdays": "Working Days"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -908,6 +930,18 @@
|
|||||||
"sent": "Email sent successfully."
|
"sent": "Email sent successfully."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"actions": {
|
||||||
|
"new": "",
|
||||||
|
"newmember": ""
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
|
"active": "",
|
||||||
|
"employeeid": "",
|
||||||
|
"name": "",
|
||||||
|
"percentage": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"addvacation": "Add Vacation",
|
"addvacation": "Add Vacation",
|
||||||
@@ -1147,6 +1181,30 @@
|
|||||||
"updated": "Inventory line updated."
|
"updated": "Inventory line updated."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"job_payments": {
|
||||||
|
"buttons": {
|
||||||
|
"goback": "",
|
||||||
|
"proceedtopayment": "",
|
||||||
|
"refundpayment": ""
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"error": {
|
||||||
|
"description": "",
|
||||||
|
"title": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"titles": {
|
||||||
|
"amount": "",
|
||||||
|
"dateOfPayment": "",
|
||||||
|
"descriptions": "",
|
||||||
|
"payer": "",
|
||||||
|
"payername": "",
|
||||||
|
"paymentid": "",
|
||||||
|
"paymenttype": "",
|
||||||
|
"refundamount": "",
|
||||||
|
"transactionid": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"joblines": {
|
"joblines": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"converttolabor": "Convert amount to Labor.",
|
"converttolabor": "Convert amount to Labor.",
|
||||||
@@ -1379,7 +1437,7 @@
|
|||||||
"ded_amt": "Deductible",
|
"ded_amt": "Deductible",
|
||||||
"ded_note": "Deductible Note",
|
"ded_note": "Deductible Note",
|
||||||
"ded_status": "Deductible Status",
|
"ded_status": "Deductible Status",
|
||||||
"depreciation_taxes": "Depreciation/Taxes",
|
"depreciation_taxes": "Betterment/Depreciation/Taxes",
|
||||||
"dms": {
|
"dms": {
|
||||||
"address": "Customer Address",
|
"address": "Customer Address",
|
||||||
"amount": "Amount",
|
"amount": "Amount",
|
||||||
@@ -1579,6 +1637,7 @@
|
|||||||
"scheddates": "Schedule Dates"
|
"scheddates": "Schedule Dates"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"act_price_ppc": "",
|
||||||
"actual_completion_inferred": "$t(jobs.fields.actual_completion) inferred using $t(jobs.fields.scheduled_completion).",
|
"actual_completion_inferred": "$t(jobs.fields.actual_completion) inferred using $t(jobs.fields.scheduled_completion).",
|
||||||
"actual_delivery_inferred": "$t(jobs.fields.actual_delivery) inferred using $t(jobs.fields.scheduled_delivery).",
|
"actual_delivery_inferred": "$t(jobs.fields.actual_delivery) inferred using $t(jobs.fields.scheduled_delivery).",
|
||||||
"actual_in_inferred": "$t(jobs.fields.actual_in) inferred using $t(jobs.fields.scheduled_in).",
|
"actual_in_inferred": "$t(jobs.fields.actual_in) inferred using $t(jobs.fields.scheduled_in).",
|
||||||
@@ -1715,6 +1774,7 @@
|
|||||||
"partstotal": "This is the total of all parts and sublet amounts on the vehicle (some of these may require an in-house invoice).<br/>\nItems such as shop and paint materials, labor online lines, etc. are not included in this total.",
|
"partstotal": "This is the total of all parts and sublet amounts on the vehicle (some of these may require an in-house invoice).<br/>\nItems such as shop and paint materials, labor online lines, etc. are not included in this total.",
|
||||||
"totalreturns": "The total <b>retail</b> amount of returns created for this job."
|
"totalreturns": "The total <b>retail</b> amount of returns created for this job."
|
||||||
},
|
},
|
||||||
|
"ppc": "",
|
||||||
"profileadjustments": "",
|
"profileadjustments": "",
|
||||||
"prt_dsmk_total": "Line Item Adjustment",
|
"prt_dsmk_total": "Line Item Adjustment",
|
||||||
"rates": "Rates",
|
"rates": "Rates",
|
||||||
@@ -1855,6 +1915,7 @@
|
|||||||
"customers": "Customers",
|
"customers": "Customers",
|
||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"enterbills": "Enter Bills",
|
"enterbills": "Enter Bills",
|
||||||
|
"entercardpayment": "",
|
||||||
"enterpayment": "Enter Payments",
|
"enterpayment": "Enter Payments",
|
||||||
"entertimeticket": "Enter Time Tickets",
|
"entertimeticket": "Enter Time Tickets",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
@@ -1866,6 +1927,7 @@
|
|||||||
"newjob": "Create New Job",
|
"newjob": "Create New Job",
|
||||||
"owners": "Owners",
|
"owners": "Owners",
|
||||||
"parts-queue": "Parts Queue",
|
"parts-queue": "Parts Queue",
|
||||||
|
"paymentremindersms": "",
|
||||||
"phonebook": "Phonebook",
|
"phonebook": "Phonebook",
|
||||||
"productionboard": "Production Board - Visual",
|
"productionboard": "Production Board - Visual",
|
||||||
"productionlist": "Production Board - List",
|
"productionlist": "Production Board - List",
|
||||||
@@ -1891,6 +1953,7 @@
|
|||||||
"shop_vendors": "Vendors",
|
"shop_vendors": "Vendors",
|
||||||
"temporarydocs": "Temporary Documents",
|
"temporarydocs": "Temporary Documents",
|
||||||
"timetickets": "Time Tickets",
|
"timetickets": "Time Tickets",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicles": "Vehicles"
|
"vehicles": "Vehicles"
|
||||||
},
|
},
|
||||||
"jobsactions": {
|
"jobsactions": {
|
||||||
@@ -1974,6 +2037,16 @@
|
|||||||
"critical": "Critical",
|
"critical": "Critical",
|
||||||
"private": "Private",
|
"private": "Private",
|
||||||
"text": "Contents",
|
"text": "Contents",
|
||||||
|
"type": "Type",
|
||||||
|
"types": {
|
||||||
|
"customer": "Customer",
|
||||||
|
"general": "General",
|
||||||
|
"office": "Office",
|
||||||
|
"paint": "Paint",
|
||||||
|
"parts": "Parts",
|
||||||
|
"shop": "Shop",
|
||||||
|
"supplement": "Supplement"
|
||||||
|
},
|
||||||
"updatedat": "Updated At"
|
"updatedat": "Updated At"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
@@ -2144,10 +2217,13 @@
|
|||||||
"new": "New Payment",
|
"new": "New Payment",
|
||||||
"signup": "Please contact support to sign up for electronic payments.",
|
"signup": "Please contact support to sign up for electronic payments.",
|
||||||
"title": "Payments",
|
"title": "Payments",
|
||||||
"totalpayments": "Total Payments"
|
"totalpayments": "Total Payments",
|
||||||
|
"markexported": "Mark Exported",
|
||||||
|
"markforreexport": "Mark for Re-export"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"exported": "Payment(s) exported successfully.",
|
"exported": "Payment(s) exported successfully.",
|
||||||
|
"markreexported": "Payment marked for re-export successfully",
|
||||||
"markexported": "Payment(s) marked exported.",
|
"markexported": "Payment(s) marked exported.",
|
||||||
"payment": "Payment created successfully. ",
|
"payment": "Payment created successfully. ",
|
||||||
"stripe": "Credit card transaction charged successfully."
|
"stripe": "Credit card transaction charged successfully."
|
||||||
@@ -2243,7 +2319,7 @@
|
|||||||
"folder_label_multiple": "Folder Label - Multi",
|
"folder_label_multiple": "Folder Label - Multi",
|
||||||
"glass_express_checklist": "Glass Express Checklist",
|
"glass_express_checklist": "Glass Express Checklist",
|
||||||
"guarantee": "Repair Guarantee",
|
"guarantee": "Repair Guarantee",
|
||||||
"individual_job_note": "Job Note RO # {{ro_number}}",
|
"individual_job_note": "RO Job Note",
|
||||||
"invoice_customer_payable": "Invoice (Customer Payable)",
|
"invoice_customer_payable": "Invoice (Customer Payable)",
|
||||||
"invoice_total_payable": "Invoice (Total Payable)",
|
"invoice_total_payable": "Invoice (Total Payable)",
|
||||||
"iou_form": "IOU Form",
|
"iou_form": "IOU Form",
|
||||||
@@ -2259,7 +2335,8 @@
|
|||||||
"mechanical_authorization": "Mechanical Authorization",
|
"mechanical_authorization": "Mechanical Authorization",
|
||||||
"mpi_animal_checklist": "MPI - Animal Checklist",
|
"mpi_animal_checklist": "MPI - Animal Checklist",
|
||||||
"mpi_eglass_auth": "MPI - eGlass Auth",
|
"mpi_eglass_auth": "MPI - eGlass Auth",
|
||||||
"mpi_final_acct_sheet": "MPI - Final Accounting Sheet",
|
"mpi_final_acct_sheet": "MPI - Final Accounting Sheet (Direct Repair)",
|
||||||
|
"mpi_final_repair_acct_sheet": "MPI - Final Accounting Sheet",
|
||||||
"paint_grid": "Paint Grid",
|
"paint_grid": "Paint Grid",
|
||||||
"parts_invoice_label_single": "Parts Label Single",
|
"parts_invoice_label_single": "Parts Label Single",
|
||||||
"parts_label_multiple": "Parts Label - Multi",
|
"parts_label_multiple": "Parts Label - Multi",
|
||||||
@@ -2321,6 +2398,7 @@
|
|||||||
},
|
},
|
||||||
"subjects": {
|
"subjects": {
|
||||||
"jobs": {
|
"jobs": {
|
||||||
|
"individual_job_note": "Job Note RO: {{ro_number}}",
|
||||||
"parts_order": "Parts Order PO: {{ro_number}} - {{name}}",
|
"parts_order": "Parts Order PO: {{ro_number}} - {{name}}",
|
||||||
"sublet_order": "Sublet Order PO: {{ro_number}} - {{name}}"
|
"sublet_order": "Sublet Order PO: {{ro_number}} - {{name}}"
|
||||||
}
|
}
|
||||||
@@ -2364,6 +2442,7 @@
|
|||||||
"qbo_usa": "QBO USA"
|
"qbo_usa": "QBO USA"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"cardcolor": "Card Colors",
|
||||||
"cardsettings": "Card Settings",
|
"cardsettings": "Card Settings",
|
||||||
"clm_no": "Claim Number",
|
"clm_no": "Claim Number",
|
||||||
"comment": "Comment",
|
"comment": "Comment",
|
||||||
@@ -2374,6 +2453,7 @@
|
|||||||
"ins_co_nm": "Insurance Company Name",
|
"ins_co_nm": "Insurance Company Name",
|
||||||
"jobdetail": "Job Details",
|
"jobdetail": "Job Details",
|
||||||
"laborhrs": "Labor Hours",
|
"laborhrs": "Labor Hours",
|
||||||
|
"legend": "Legend:",
|
||||||
"note": "Production Note",
|
"note": "Production Note",
|
||||||
"ownr_nm": "Owner Name",
|
"ownr_nm": "Owner Name",
|
||||||
"paintpriority": "P/P",
|
"paintpriority": "P/P",
|
||||||
@@ -2386,9 +2466,7 @@
|
|||||||
"sublets": "Sublets",
|
"sublets": "Sublets",
|
||||||
"totalhours": "Total Hrs ",
|
"totalhours": "Total Hrs ",
|
||||||
"touchtime": "T/T",
|
"touchtime": "T/T",
|
||||||
"viewname": "View Name",
|
"viewname": "View Name"
|
||||||
"legend": "Legend:",
|
|
||||||
"cardcolor": "Card Colors"
|
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"removed": "Job removed from production."
|
"removed": "Job removed from production."
|
||||||
@@ -2546,6 +2624,7 @@
|
|||||||
"atssummary": "ATS Summary",
|
"atssummary": "ATS Summary",
|
||||||
"employeevacation": "Employee Vacations",
|
"employeevacation": "Employee Vacations",
|
||||||
"ins_co_nm_filter": "Filter by Insurance Company",
|
"ins_co_nm_filter": "Filter by Insurance Company",
|
||||||
|
"estimators": "Filter by Writer/Customer Rep.",
|
||||||
"intake": "Intake Events",
|
"intake": "Intake Events",
|
||||||
"manual": "Manual Events",
|
"manual": "Manual Events",
|
||||||
"manualevent": "Add Manual Event"
|
"manualevent": "Add Manual Event"
|
||||||
@@ -2614,6 +2693,7 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"claimtasks": "",
|
||||||
"clockin": "Clock In",
|
"clockin": "Clock In",
|
||||||
"clockout": "Clock Out",
|
"clockout": "Clock Out",
|
||||||
"enter": "Enter New Time Ticket",
|
"enter": "Enter New Time Ticket",
|
||||||
@@ -2634,10 +2714,12 @@
|
|||||||
"clockhours": "Clock Hours",
|
"clockhours": "Clock Hours",
|
||||||
"clockoff": "Clock Off",
|
"clockoff": "Clock Off",
|
||||||
"clockon": "Clocked In",
|
"clockon": "Clocked In",
|
||||||
|
"committed": "",
|
||||||
"cost_center": "Cost Center",
|
"cost_center": "Cost Center",
|
||||||
"date": "Ticket Date",
|
"date": "Ticket Date",
|
||||||
"efficiency": "Efficiency",
|
"efficiency": "Efficiency",
|
||||||
"employee": "Employee",
|
"employee": "Employee",
|
||||||
|
"employee_team": "",
|
||||||
"flat_rate": "Flat Rate?",
|
"flat_rate": "Flat Rate?",
|
||||||
"memo": "Memo",
|
"memo": "Memo",
|
||||||
"productivehrs": "Productive Hours",
|
"productivehrs": "Productive Hours",
|
||||||
@@ -2724,6 +2806,7 @@
|
|||||||
"shop-vendors": "Vendors",
|
"shop-vendors": "Vendors",
|
||||||
"temporarydocs": "Temporary Documents",
|
"temporarydocs": "Temporary Documents",
|
||||||
"timetickets": "Time Tickets",
|
"timetickets": "Time Tickets",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicle-details": "Vehicle: {{vehicle}}",
|
"vehicle-details": "Vehicle: {{vehicle}}",
|
||||||
"vehicles": "Vehicles"
|
"vehicles": "Vehicles"
|
||||||
},
|
},
|
||||||
@@ -2769,9 +2852,15 @@
|
|||||||
"shop_vendors": "Vendors | $t(titles.app)",
|
"shop_vendors": "Vendors | $t(titles.app)",
|
||||||
"temporarydocs": "Temporary Documents | $t(titles.app)",
|
"temporarydocs": "Temporary Documents | $t(titles.app)",
|
||||||
"timetickets": "Time Tickets | $t(titles.app)",
|
"timetickets": "Time Tickets | $t(titles.app)",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicledetail": "Vehicle Details {{vehicle}} | $t(titles.app)",
|
"vehicledetail": "Vehicle Details {{vehicle}} | $t(titles.app)",
|
||||||
"vehicles": "All Vehicles | $t(titles.app)"
|
"vehicles": "All Vehicles | $t(titles.app)"
|
||||||
},
|
},
|
||||||
|
"tt_approvals": {
|
||||||
|
"actions": {
|
||||||
|
"approveselected": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"changepassword": "Change Password",
|
"changepassword": "Change Password",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
"scheduledfor": "Cita programada para:",
|
"scheduledfor": "Cita programada para:",
|
||||||
"severalerrorsfound": "",
|
"severalerrorsfound": "",
|
||||||
"smartscheduling": "",
|
"smartscheduling": "",
|
||||||
|
"smspaymentreminder": "",
|
||||||
"suggesteddates": ""
|
"suggesteddates": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -103,6 +104,7 @@
|
|||||||
"admin_jobunvoid": "",
|
"admin_jobunvoid": "",
|
||||||
"billposted": "",
|
"billposted": "",
|
||||||
"billupdated": "",
|
"billupdated": "",
|
||||||
|
"failedpayment": "",
|
||||||
"jobassignmentchange": "",
|
"jobassignmentchange": "",
|
||||||
"jobassignmentremoved": "",
|
"jobassignmentremoved": "",
|
||||||
"jobchecklist": "",
|
"jobchecklist": "",
|
||||||
@@ -227,6 +229,7 @@
|
|||||||
},
|
},
|
||||||
"bodyshop": {
|
"bodyshop": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"add_task_preset": "",
|
||||||
"addapptcolor": "",
|
"addapptcolor": "",
|
||||||
"addbucket": "",
|
"addbucket": "",
|
||||||
"addpartslocation": "",
|
"addpartslocation": "",
|
||||||
@@ -339,6 +342,12 @@
|
|||||||
},
|
},
|
||||||
"md_payment_types": "",
|
"md_payment_types": "",
|
||||||
"md_referral_sources": "",
|
"md_referral_sources": "",
|
||||||
|
"md_tasks_presets": {
|
||||||
|
"hourstype": "",
|
||||||
|
"memo": "",
|
||||||
|
"name": "",
|
||||||
|
"percent": ""
|
||||||
|
},
|
||||||
"messaginglabel": "",
|
"messaginglabel": "",
|
||||||
"messagingtext": "",
|
"messagingtext": "",
|
||||||
"noteslabel": "",
|
"noteslabel": "",
|
||||||
@@ -374,6 +383,9 @@
|
|||||||
"export": "",
|
"export": "",
|
||||||
"page": ""
|
"page": ""
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"page": ""
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"page": ""
|
"page": ""
|
||||||
},
|
},
|
||||||
@@ -432,10 +444,15 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"edit": "",
|
"edit": "",
|
||||||
|
"editcommitted": "",
|
||||||
"enter": "",
|
"enter": "",
|
||||||
"list": "",
|
"list": "",
|
||||||
"shiftedit": ""
|
"shiftedit": ""
|
||||||
},
|
},
|
||||||
|
"ttapprovals": {
|
||||||
|
"approve": "",
|
||||||
|
"view": ""
|
||||||
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"editaccess": ""
|
"editaccess": ""
|
||||||
}
|
}
|
||||||
@@ -453,6 +470,8 @@
|
|||||||
"federal_tax": "",
|
"federal_tax": "",
|
||||||
"federal_tax_itc": "",
|
"federal_tax_itc": "",
|
||||||
"gst_override": "",
|
"gst_override": "",
|
||||||
|
"invoiceexemptcode": "",
|
||||||
|
"itemexemptcode": "",
|
||||||
"la1": "",
|
"la1": "",
|
||||||
"la2": "",
|
"la2": "",
|
||||||
"la3": "",
|
"la3": "",
|
||||||
@@ -504,6 +523,7 @@
|
|||||||
"dailyhrslimit": ""
|
"dailyhrslimit": ""
|
||||||
},
|
},
|
||||||
"ssbuckets": {
|
"ssbuckets": {
|
||||||
|
"color": "",
|
||||||
"gte": "",
|
"gte": "",
|
||||||
"id": "",
|
"id": "",
|
||||||
"label": "",
|
"label": "",
|
||||||
@@ -574,6 +594,7 @@
|
|||||||
"title": ""
|
"title": ""
|
||||||
},
|
},
|
||||||
"emaillater": "",
|
"emaillater": "",
|
||||||
|
"employee_teams": "",
|
||||||
"employees": "",
|
"employees": "",
|
||||||
"estimators": "",
|
"estimators": "",
|
||||||
"filehandlers": "",
|
"filehandlers": "",
|
||||||
@@ -582,6 +603,7 @@
|
|||||||
"jobstatuses": "",
|
"jobstatuses": "",
|
||||||
"laborrates": "",
|
"laborrates": "",
|
||||||
"licensing": "",
|
"licensing": "",
|
||||||
|
"md_tasks_presets": "",
|
||||||
"md_to_emails": "",
|
"md_to_emails": "",
|
||||||
"md_to_emails_emails": "",
|
"md_to_emails_emails": "",
|
||||||
"messagingpresets": "",
|
"messagingpresets": "",
|
||||||
@@ -608,6 +630,7 @@
|
|||||||
"speedprint": "",
|
"speedprint": "",
|
||||||
"ssbuckets": "",
|
"ssbuckets": "",
|
||||||
"systemsettings": "",
|
"systemsettings": "",
|
||||||
|
"task-presets": "",
|
||||||
"workingdays": ""
|
"workingdays": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -907,6 +930,18 @@
|
|||||||
"sent": "Correo electrónico enviado con éxito."
|
"sent": "Correo electrónico enviado con éxito."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"actions": {
|
||||||
|
"new": "",
|
||||||
|
"newmember": ""
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
|
"active": "",
|
||||||
|
"employeeid": "",
|
||||||
|
"name": "",
|
||||||
|
"percentage": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"addvacation": "",
|
"addvacation": "",
|
||||||
@@ -1146,6 +1181,30 @@
|
|||||||
"updated": ""
|
"updated": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"job_payments": {
|
||||||
|
"buttons": {
|
||||||
|
"goback": "",
|
||||||
|
"proceedtopayment": "",
|
||||||
|
"refundpayment": ""
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"error": {
|
||||||
|
"description": "",
|
||||||
|
"title": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"titles": {
|
||||||
|
"amount": "",
|
||||||
|
"dateOfPayment": "",
|
||||||
|
"descriptions": "",
|
||||||
|
"payer": "",
|
||||||
|
"payername": "",
|
||||||
|
"paymentid": "",
|
||||||
|
"paymenttype": "",
|
||||||
|
"refundamount": "",
|
||||||
|
"transactionid": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"joblines": {
|
"joblines": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"converttolabor": "",
|
"converttolabor": "",
|
||||||
@@ -1578,6 +1637,7 @@
|
|||||||
"scheddates": ""
|
"scheddates": ""
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"act_price_ppc": "",
|
||||||
"actual_completion_inferred": "",
|
"actual_completion_inferred": "",
|
||||||
"actual_delivery_inferred": "",
|
"actual_delivery_inferred": "",
|
||||||
"actual_in_inferred": "",
|
"actual_in_inferred": "",
|
||||||
@@ -1714,6 +1774,7 @@
|
|||||||
"partstotal": "",
|
"partstotal": "",
|
||||||
"totalreturns": ""
|
"totalreturns": ""
|
||||||
},
|
},
|
||||||
|
"ppc": "",
|
||||||
"profileadjustments": "",
|
"profileadjustments": "",
|
||||||
"prt_dsmk_total": "",
|
"prt_dsmk_total": "",
|
||||||
"rates": "Tarifas",
|
"rates": "Tarifas",
|
||||||
@@ -1854,6 +1915,7 @@
|
|||||||
"customers": "Clientes",
|
"customers": "Clientes",
|
||||||
"dashboard": "",
|
"dashboard": "",
|
||||||
"enterbills": "",
|
"enterbills": "",
|
||||||
|
"entercardpayment": "",
|
||||||
"enterpayment": "",
|
"enterpayment": "",
|
||||||
"entertimeticket": "",
|
"entertimeticket": "",
|
||||||
"export": "",
|
"export": "",
|
||||||
@@ -1865,6 +1927,7 @@
|
|||||||
"newjob": "",
|
"newjob": "",
|
||||||
"owners": "propietarios",
|
"owners": "propietarios",
|
||||||
"parts-queue": "",
|
"parts-queue": "",
|
||||||
|
"paymentremindersms": "",
|
||||||
"phonebook": "",
|
"phonebook": "",
|
||||||
"productionboard": "",
|
"productionboard": "",
|
||||||
"productionlist": "",
|
"productionlist": "",
|
||||||
@@ -1890,6 +1953,7 @@
|
|||||||
"shop_vendors": "Vendedores",
|
"shop_vendors": "Vendedores",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicles": "Vehículos"
|
"vehicles": "Vehículos"
|
||||||
},
|
},
|
||||||
"jobsactions": {
|
"jobsactions": {
|
||||||
@@ -1973,6 +2037,16 @@
|
|||||||
"critical": "Crítico",
|
"critical": "Crítico",
|
||||||
"private": "Privado",
|
"private": "Privado",
|
||||||
"text": "Contenido",
|
"text": "Contenido",
|
||||||
|
"type": "",
|
||||||
|
"types": {
|
||||||
|
"customer": "",
|
||||||
|
"general": "",
|
||||||
|
"office": "",
|
||||||
|
"paint": "",
|
||||||
|
"parts": "",
|
||||||
|
"shop": "",
|
||||||
|
"supplement": ""
|
||||||
|
},
|
||||||
"updatedat": "Actualizado en"
|
"updatedat": "Actualizado en"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
@@ -2259,6 +2333,7 @@
|
|||||||
"mpi_animal_checklist": "",
|
"mpi_animal_checklist": "",
|
||||||
"mpi_eglass_auth": "",
|
"mpi_eglass_auth": "",
|
||||||
"mpi_final_acct_sheet": "",
|
"mpi_final_acct_sheet": "",
|
||||||
|
"mpi_final_repair_acct_sheet": "",
|
||||||
"paint_grid": "",
|
"paint_grid": "",
|
||||||
"parts_invoice_label_single": "",
|
"parts_invoice_label_single": "",
|
||||||
"parts_label_multiple": "",
|
"parts_label_multiple": "",
|
||||||
@@ -2320,6 +2395,7 @@
|
|||||||
},
|
},
|
||||||
"subjects": {
|
"subjects": {
|
||||||
"jobs": {
|
"jobs": {
|
||||||
|
"individual_job_note": "",
|
||||||
"parts_order": "",
|
"parts_order": "",
|
||||||
"sublet_order": ""
|
"sublet_order": ""
|
||||||
}
|
}
|
||||||
@@ -2363,6 +2439,7 @@
|
|||||||
"qbo_usa": ""
|
"qbo_usa": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"cardcolor": "",
|
||||||
"cardsettings": "",
|
"cardsettings": "",
|
||||||
"clm_no": "",
|
"clm_no": "",
|
||||||
"comment": "",
|
"comment": "",
|
||||||
@@ -2373,6 +2450,7 @@
|
|||||||
"ins_co_nm": "",
|
"ins_co_nm": "",
|
||||||
"jobdetail": "",
|
"jobdetail": "",
|
||||||
"laborhrs": "",
|
"laborhrs": "",
|
||||||
|
"legend": "",
|
||||||
"note": "",
|
"note": "",
|
||||||
"ownr_nm": "",
|
"ownr_nm": "",
|
||||||
"paintpriority": "",
|
"paintpriority": "",
|
||||||
@@ -2611,6 +2689,7 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"claimtasks": "",
|
||||||
"clockin": "",
|
"clockin": "",
|
||||||
"clockout": "",
|
"clockout": "",
|
||||||
"enter": "",
|
"enter": "",
|
||||||
@@ -2631,10 +2710,12 @@
|
|||||||
"clockhours": "",
|
"clockhours": "",
|
||||||
"clockoff": "",
|
"clockoff": "",
|
||||||
"clockon": "",
|
"clockon": "",
|
||||||
|
"committed": "",
|
||||||
"cost_center": "",
|
"cost_center": "",
|
||||||
"date": "",
|
"date": "",
|
||||||
"efficiency": "",
|
"efficiency": "",
|
||||||
"employee": "",
|
"employee": "",
|
||||||
|
"employee_team": "",
|
||||||
"flat_rate": "",
|
"flat_rate": "",
|
||||||
"memo": "",
|
"memo": "",
|
||||||
"productivehrs": "",
|
"productivehrs": "",
|
||||||
@@ -2721,6 +2802,7 @@
|
|||||||
"shop-vendors": "",
|
"shop-vendors": "",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicle-details": "",
|
"vehicle-details": "",
|
||||||
"vehicles": ""
|
"vehicles": ""
|
||||||
},
|
},
|
||||||
@@ -2766,9 +2848,15 @@
|
|||||||
"shop_vendors": "Vendedores | $t(titles.app)",
|
"shop_vendors": "Vendedores | $t(titles.app)",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicledetail": "Detalles del vehículo {{vehicle}} | $t(titles.app)",
|
"vehicledetail": "Detalles del vehículo {{vehicle}} | $t(titles.app)",
|
||||||
"vehicles": "Todos los vehiculos | $t(titles.app)"
|
"vehicles": "Todos los vehiculos | $t(titles.app)"
|
||||||
},
|
},
|
||||||
|
"tt_approvals": {
|
||||||
|
"actions": {
|
||||||
|
"approveselected": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"changepassword": "",
|
"changepassword": "",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
"scheduledfor": "Rendez-vous prévu pour:",
|
"scheduledfor": "Rendez-vous prévu pour:",
|
||||||
"severalerrorsfound": "",
|
"severalerrorsfound": "",
|
||||||
"smartscheduling": "",
|
"smartscheduling": "",
|
||||||
|
"smspaymentreminder": "",
|
||||||
"suggesteddates": ""
|
"suggesteddates": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -103,6 +104,7 @@
|
|||||||
"admin_jobunvoid": "",
|
"admin_jobunvoid": "",
|
||||||
"billposted": "",
|
"billposted": "",
|
||||||
"billupdated": "",
|
"billupdated": "",
|
||||||
|
"failedpayment": "",
|
||||||
"jobassignmentchange": "",
|
"jobassignmentchange": "",
|
||||||
"jobassignmentremoved": "",
|
"jobassignmentremoved": "",
|
||||||
"jobchecklist": "",
|
"jobchecklist": "",
|
||||||
@@ -227,6 +229,7 @@
|
|||||||
},
|
},
|
||||||
"bodyshop": {
|
"bodyshop": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"add_task_preset": "",
|
||||||
"addapptcolor": "",
|
"addapptcolor": "",
|
||||||
"addbucket": "",
|
"addbucket": "",
|
||||||
"addpartslocation": "",
|
"addpartslocation": "",
|
||||||
@@ -339,6 +342,12 @@
|
|||||||
},
|
},
|
||||||
"md_payment_types": "",
|
"md_payment_types": "",
|
||||||
"md_referral_sources": "",
|
"md_referral_sources": "",
|
||||||
|
"md_tasks_presets": {
|
||||||
|
"hourstype": "",
|
||||||
|
"memo": "",
|
||||||
|
"name": "",
|
||||||
|
"percent": ""
|
||||||
|
},
|
||||||
"messaginglabel": "",
|
"messaginglabel": "",
|
||||||
"messagingtext": "",
|
"messagingtext": "",
|
||||||
"noteslabel": "",
|
"noteslabel": "",
|
||||||
@@ -374,6 +383,9 @@
|
|||||||
"export": "",
|
"export": "",
|
||||||
"page": ""
|
"page": ""
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"page": ""
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"page": ""
|
"page": ""
|
||||||
},
|
},
|
||||||
@@ -432,10 +444,15 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"edit": "",
|
"edit": "",
|
||||||
|
"editcommitted": "",
|
||||||
"enter": "",
|
"enter": "",
|
||||||
"list": "",
|
"list": "",
|
||||||
"shiftedit": ""
|
"shiftedit": ""
|
||||||
},
|
},
|
||||||
|
"ttapprovals": {
|
||||||
|
"approve": "",
|
||||||
|
"view": ""
|
||||||
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"editaccess": ""
|
"editaccess": ""
|
||||||
}
|
}
|
||||||
@@ -453,6 +470,8 @@
|
|||||||
"federal_tax": "",
|
"federal_tax": "",
|
||||||
"federal_tax_itc": "",
|
"federal_tax_itc": "",
|
||||||
"gst_override": "",
|
"gst_override": "",
|
||||||
|
"invoiceexemptcode": "",
|
||||||
|
"itemexemptcode": "",
|
||||||
"la1": "",
|
"la1": "",
|
||||||
"la2": "",
|
"la2": "",
|
||||||
"la3": "",
|
"la3": "",
|
||||||
@@ -504,6 +523,7 @@
|
|||||||
"dailyhrslimit": ""
|
"dailyhrslimit": ""
|
||||||
},
|
},
|
||||||
"ssbuckets": {
|
"ssbuckets": {
|
||||||
|
"color": "",
|
||||||
"gte": "",
|
"gte": "",
|
||||||
"id": "",
|
"id": "",
|
||||||
"label": "",
|
"label": "",
|
||||||
@@ -574,6 +594,7 @@
|
|||||||
"title": ""
|
"title": ""
|
||||||
},
|
},
|
||||||
"emaillater": "",
|
"emaillater": "",
|
||||||
|
"employee_teams": "",
|
||||||
"employees": "",
|
"employees": "",
|
||||||
"estimators": "",
|
"estimators": "",
|
||||||
"filehandlers": "",
|
"filehandlers": "",
|
||||||
@@ -582,6 +603,7 @@
|
|||||||
"jobstatuses": "",
|
"jobstatuses": "",
|
||||||
"laborrates": "",
|
"laborrates": "",
|
||||||
"licensing": "",
|
"licensing": "",
|
||||||
|
"md_tasks_presets": "",
|
||||||
"md_to_emails": "",
|
"md_to_emails": "",
|
||||||
"md_to_emails_emails": "",
|
"md_to_emails_emails": "",
|
||||||
"messagingpresets": "",
|
"messagingpresets": "",
|
||||||
@@ -608,6 +630,7 @@
|
|||||||
"speedprint": "",
|
"speedprint": "",
|
||||||
"ssbuckets": "",
|
"ssbuckets": "",
|
||||||
"systemsettings": "",
|
"systemsettings": "",
|
||||||
|
"task-presets": "",
|
||||||
"workingdays": ""
|
"workingdays": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
@@ -907,6 +930,18 @@
|
|||||||
"sent": "E-mail envoyé avec succès."
|
"sent": "E-mail envoyé avec succès."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"employee_teams": {
|
||||||
|
"actions": {
|
||||||
|
"new": "",
|
||||||
|
"newmember": ""
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
|
"active": "",
|
||||||
|
"employeeid": "",
|
||||||
|
"name": "",
|
||||||
|
"percentage": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"addvacation": "",
|
"addvacation": "",
|
||||||
@@ -1146,6 +1181,30 @@
|
|||||||
"updated": ""
|
"updated": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"job_payments": {
|
||||||
|
"buttons": {
|
||||||
|
"goback": "",
|
||||||
|
"proceedtopayment": "",
|
||||||
|
"refundpayment": ""
|
||||||
|
},
|
||||||
|
"notifications": {
|
||||||
|
"error": {
|
||||||
|
"description": "",
|
||||||
|
"title": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"titles": {
|
||||||
|
"amount": "",
|
||||||
|
"dateOfPayment": "",
|
||||||
|
"descriptions": "",
|
||||||
|
"payer": "",
|
||||||
|
"payername": "",
|
||||||
|
"paymentid": "",
|
||||||
|
"paymenttype": "",
|
||||||
|
"refundamount": "",
|
||||||
|
"transactionid": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"joblines": {
|
"joblines": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"converttolabor": "",
|
"converttolabor": "",
|
||||||
@@ -1578,6 +1637,7 @@
|
|||||||
"scheddates": ""
|
"scheddates": ""
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"act_price_ppc": "",
|
||||||
"actual_completion_inferred": "",
|
"actual_completion_inferred": "",
|
||||||
"actual_delivery_inferred": "",
|
"actual_delivery_inferred": "",
|
||||||
"actual_in_inferred": "",
|
"actual_in_inferred": "",
|
||||||
@@ -1714,6 +1774,7 @@
|
|||||||
"partstotal": "",
|
"partstotal": "",
|
||||||
"totalreturns": ""
|
"totalreturns": ""
|
||||||
},
|
},
|
||||||
|
"ppc": "",
|
||||||
"profileadjustments": "",
|
"profileadjustments": "",
|
||||||
"prt_dsmk_total": "",
|
"prt_dsmk_total": "",
|
||||||
"rates": "Les taux",
|
"rates": "Les taux",
|
||||||
@@ -1854,6 +1915,7 @@
|
|||||||
"customers": "Les clients",
|
"customers": "Les clients",
|
||||||
"dashboard": "",
|
"dashboard": "",
|
||||||
"enterbills": "",
|
"enterbills": "",
|
||||||
|
"entercardpayment": "",
|
||||||
"enterpayment": "",
|
"enterpayment": "",
|
||||||
"entertimeticket": "",
|
"entertimeticket": "",
|
||||||
"export": "",
|
"export": "",
|
||||||
@@ -1865,6 +1927,7 @@
|
|||||||
"newjob": "",
|
"newjob": "",
|
||||||
"owners": "Propriétaires",
|
"owners": "Propriétaires",
|
||||||
"parts-queue": "",
|
"parts-queue": "",
|
||||||
|
"paymentremindersms": "",
|
||||||
"phonebook": "",
|
"phonebook": "",
|
||||||
"productionboard": "",
|
"productionboard": "",
|
||||||
"productionlist": "",
|
"productionlist": "",
|
||||||
@@ -1890,6 +1953,7 @@
|
|||||||
"shop_vendors": "Vendeurs",
|
"shop_vendors": "Vendeurs",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicles": "Véhicules"
|
"vehicles": "Véhicules"
|
||||||
},
|
},
|
||||||
"jobsactions": {
|
"jobsactions": {
|
||||||
@@ -1973,6 +2037,16 @@
|
|||||||
"critical": "Critique",
|
"critical": "Critique",
|
||||||
"private": "privé",
|
"private": "privé",
|
||||||
"text": "Contenu",
|
"text": "Contenu",
|
||||||
|
"type": "",
|
||||||
|
"types": {
|
||||||
|
"customer": "",
|
||||||
|
"general": "",
|
||||||
|
"office": "",
|
||||||
|
"paint": "",
|
||||||
|
"parts": "",
|
||||||
|
"shop": "",
|
||||||
|
"supplement": ""
|
||||||
|
},
|
||||||
"updatedat": "Mis à jour à"
|
"updatedat": "Mis à jour à"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
@@ -2259,6 +2333,7 @@
|
|||||||
"mpi_animal_checklist": "",
|
"mpi_animal_checklist": "",
|
||||||
"mpi_eglass_auth": "",
|
"mpi_eglass_auth": "",
|
||||||
"mpi_final_acct_sheet": "",
|
"mpi_final_acct_sheet": "",
|
||||||
|
"mpi_final_repair_acct_sheet": "",
|
||||||
"paint_grid": "",
|
"paint_grid": "",
|
||||||
"parts_invoice_label_single": "",
|
"parts_invoice_label_single": "",
|
||||||
"parts_label_multiple": "",
|
"parts_label_multiple": "",
|
||||||
@@ -2320,6 +2395,7 @@
|
|||||||
},
|
},
|
||||||
"subjects": {
|
"subjects": {
|
||||||
"jobs": {
|
"jobs": {
|
||||||
|
"individual_job_note": "",
|
||||||
"parts_order": "",
|
"parts_order": "",
|
||||||
"sublet_order": ""
|
"sublet_order": ""
|
||||||
}
|
}
|
||||||
@@ -2363,6 +2439,7 @@
|
|||||||
"qbo_usa": ""
|
"qbo_usa": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"cardcolor": "",
|
||||||
"cardsettings": "",
|
"cardsettings": "",
|
||||||
"clm_no": "",
|
"clm_no": "",
|
||||||
"comment": "",
|
"comment": "",
|
||||||
@@ -2373,6 +2450,7 @@
|
|||||||
"ins_co_nm": "",
|
"ins_co_nm": "",
|
||||||
"jobdetail": "",
|
"jobdetail": "",
|
||||||
"laborhrs": "",
|
"laborhrs": "",
|
||||||
|
"legend": "",
|
||||||
"note": "",
|
"note": "",
|
||||||
"ownr_nm": "",
|
"ownr_nm": "",
|
||||||
"paintpriority": "",
|
"paintpriority": "",
|
||||||
@@ -2611,6 +2689,7 @@
|
|||||||
},
|
},
|
||||||
"timetickets": {
|
"timetickets": {
|
||||||
"actions": {
|
"actions": {
|
||||||
|
"claimtasks": "",
|
||||||
"clockin": "",
|
"clockin": "",
|
||||||
"clockout": "",
|
"clockout": "",
|
||||||
"enter": "",
|
"enter": "",
|
||||||
@@ -2631,10 +2710,12 @@
|
|||||||
"clockhours": "",
|
"clockhours": "",
|
||||||
"clockoff": "",
|
"clockoff": "",
|
||||||
"clockon": "",
|
"clockon": "",
|
||||||
|
"committed": "",
|
||||||
"cost_center": "",
|
"cost_center": "",
|
||||||
"date": "",
|
"date": "",
|
||||||
"efficiency": "",
|
"efficiency": "",
|
||||||
"employee": "",
|
"employee": "",
|
||||||
|
"employee_team": "",
|
||||||
"flat_rate": "",
|
"flat_rate": "",
|
||||||
"memo": "",
|
"memo": "",
|
||||||
"productivehrs": "",
|
"productivehrs": "",
|
||||||
@@ -2721,6 +2802,7 @@
|
|||||||
"shop-vendors": "",
|
"shop-vendors": "",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicle-details": "",
|
"vehicle-details": "",
|
||||||
"vehicles": ""
|
"vehicles": ""
|
||||||
},
|
},
|
||||||
@@ -2766,9 +2848,15 @@
|
|||||||
"shop_vendors": "Vendeurs | $t(titles.app)",
|
"shop_vendors": "Vendeurs | $t(titles.app)",
|
||||||
"temporarydocs": "",
|
"temporarydocs": "",
|
||||||
"timetickets": "",
|
"timetickets": "",
|
||||||
|
"ttapprovals": "",
|
||||||
"vehicledetail": "Détails du véhicule {{vehicle} | $t(titles.app)",
|
"vehicledetail": "Détails du véhicule {{vehicle} | $t(titles.app)",
|
||||||
"vehicles": "Tous les véhicules | $t(titles.app)"
|
"vehicles": "Tous les véhicules | $t(titles.app)"
|
||||||
},
|
},
|
||||||
|
"tt_approvals": {
|
||||||
|
"actions": {
|
||||||
|
"approveselected": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"user": {
|
"user": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"changepassword": "",
|
"changepassword": "",
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ import { setContext } from "@apollo/client/link/context";
|
|||||||
import { HttpLink } from "@apollo/client/link/http"; //"apollo-link-http";
|
import { HttpLink } from "@apollo/client/link/http"; //"apollo-link-http";
|
||||||
import { RetryLink } from "@apollo/client/link/retry";
|
import { RetryLink } from "@apollo/client/link/retry";
|
||||||
import { WebSocketLink } from "@apollo/client/link/ws";
|
import { WebSocketLink } from "@apollo/client/link/ws";
|
||||||
import { getMainDefinition } from "@apollo/client/utilities";
|
import {
|
||||||
|
getMainDefinition,
|
||||||
|
offsetLimitPagination,
|
||||||
|
} from "@apollo/client/utilities";
|
||||||
//import { split } from "apollo-link";
|
//import { split } from "apollo-link";
|
||||||
import apolloLogger from "apollo-link-logger";
|
import apolloLogger from "apollo-link-logger";
|
||||||
//import axios from "axios";
|
//import axios from "axios";
|
||||||
@@ -140,7 +143,15 @@ middlewares.push(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const cache = new InMemoryCache({});
|
const cache = new InMemoryCache({
|
||||||
|
typePolicies: {
|
||||||
|
Query: {
|
||||||
|
fields: {
|
||||||
|
conversations: offsetLimitPagination(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const client = new ApolloClient({
|
const client = new ApolloClient({
|
||||||
link: ApolloLink.from(middlewares),
|
link: ApolloLink.from(middlewares),
|
||||||
|
|||||||
@@ -421,6 +421,17 @@ export const TemplateList = (type, context) => {
|
|||||||
CA_MB: true,
|
CA_MB: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
mpi_final_repair_acct_sheet: {
|
||||||
|
title: i18n.t("printcenter.jobs.mpi_final_repair_acct_sheet"),
|
||||||
|
description: "",
|
||||||
|
key: "mpi_final_repair_acct_sheet",
|
||||||
|
subject: i18n.t("printcenter.jobs.mpi_final_repair_acct_sheet"),
|
||||||
|
disabled: false,
|
||||||
|
group: "post",
|
||||||
|
regions: {
|
||||||
|
CA_MB: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
mpi_eglass_auth: {
|
mpi_eglass_auth: {
|
||||||
title: i18n.t("printcenter.jobs.mpi_eglass_auth"),
|
title: i18n.t("printcenter.jobs.mpi_eglass_auth"),
|
||||||
description: "",
|
description: "",
|
||||||
@@ -542,7 +553,7 @@ export const TemplateList = (type, context) => {
|
|||||||
title: i18n.t("printcenter.jobs.individual_job_note"),
|
title: i18n.t("printcenter.jobs.individual_job_note"),
|
||||||
description: "",
|
description: "",
|
||||||
key: "individual_job_note",
|
key: "individual_job_note",
|
||||||
subject: i18n.t("printcenter.jobs.individual_job_note", {
|
subject: i18n.t("printcenter.subjects.jobs.individual_job_note", {
|
||||||
ro_number: (context && context.ro_number) || "",
|
ro_number: (context && context.ro_number) || "",
|
||||||
}),
|
}),
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
|||||||
@@ -11168,6 +11168,11 @@ react-image-lightbox@^5.1.4:
|
|||||||
prop-types "^15.7.2"
|
prop-types "^15.7.2"
|
||||||
react-modal "^3.11.1"
|
react-modal "^3.11.1"
|
||||||
|
|
||||||
|
react-intersection-observer@^9.4.3:
|
||||||
|
version "9.4.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/react-intersection-observer/-/react-intersection-observer-9.4.3.tgz#ec84ce0c25cad548075130ea045ac5c7adf908f3"
|
||||||
|
integrity sha512-WNRqMQvKpupr6MzecAQI0Pj0+JQong307knLP4g/nBex7kYfIaZsPpXaIhKHR+oV8z+goUbH9e10j6lGRnTzlQ==
|
||||||
|
|
||||||
react-is@^16.10.2, react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0:
|
react-is@^16.10.2, react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0:
|
||||||
version "16.13.1"
|
version "16.13.1"
|
||||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||||
|
|||||||
@@ -941,6 +941,7 @@
|
|||||||
- md_referral_sources
|
- md_referral_sources
|
||||||
- md_responsibility_centers
|
- md_responsibility_centers
|
||||||
- md_ro_statuses
|
- md_ro_statuses
|
||||||
|
- md_tasks_presets
|
||||||
- md_to_emails
|
- md_to_emails
|
||||||
- messagingservicesid
|
- messagingservicesid
|
||||||
- pbs_configuration
|
- pbs_configuration
|
||||||
@@ -1038,6 +1039,7 @@
|
|||||||
- md_referral_sources
|
- md_referral_sources
|
||||||
- md_responsibility_centers
|
- md_responsibility_centers
|
||||||
- md_ro_statuses
|
- md_ro_statuses
|
||||||
|
- md_tasks_presets
|
||||||
- md_to_emails
|
- md_to_emails
|
||||||
- pbs_configuration
|
- pbs_configuration
|
||||||
- phone
|
- phone
|
||||||
@@ -4331,6 +4333,7 @@
|
|||||||
- jobid
|
- jobid
|
||||||
- private
|
- private
|
||||||
- text
|
- text
|
||||||
|
- type
|
||||||
- updated_at
|
- updated_at
|
||||||
select_permissions:
|
select_permissions:
|
||||||
- role: user
|
- role: user
|
||||||
@@ -4344,6 +4347,7 @@
|
|||||||
- jobid
|
- jobid
|
||||||
- private
|
- private
|
||||||
- text
|
- text
|
||||||
|
- type
|
||||||
- updated_at
|
- updated_at
|
||||||
filter:
|
filter:
|
||||||
job:
|
job:
|
||||||
@@ -4367,6 +4371,7 @@
|
|||||||
- jobid
|
- jobid
|
||||||
- private
|
- private
|
||||||
- text
|
- text
|
||||||
|
- type
|
||||||
- updated_at
|
- updated_at
|
||||||
filter:
|
filter:
|
||||||
job:
|
job:
|
||||||
|
|||||||
@@ -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_tasks_presets" jsonb
|
||||||
|
-- not null default jsonb_build_object();
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."bodyshops" add column "md_tasks_presets" jsonb
|
||||||
|
not null default jsonb_build_object();
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."notes" add column "type" text
|
||||||
|
-- not null default 'general';
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."notes" add column "type" text
|
||||||
|
not null default 'general';
|
||||||
@@ -224,7 +224,7 @@ async function CdkSelectedCustomer(socket, selectedCustomerId) {
|
|||||||
} finally {
|
} finally {
|
||||||
//Ensure we always insert logEvents
|
//Ensure we always insert logEvents
|
||||||
//GQL to insert logevents.
|
//GQL to insert logevents.
|
||||||
|
|
||||||
CdkBase.createLogEvent(
|
CdkBase.createLogEvent(
|
||||||
socket,
|
socket,
|
||||||
"DEBUG",
|
"DEBUG",
|
||||||
@@ -432,7 +432,7 @@ async function QueryDmsCustomerById(socket, JobData, CustomerId) {
|
|||||||
|
|
||||||
async function QueryDmsCustomerByName(socket, JobData) {
|
async function QueryDmsCustomerByName(socket, JobData) {
|
||||||
const ownerName = (
|
const ownerName = (
|
||||||
JobData.ownr_co_nm && JobData.ownr_co_nm !== ""
|
JobData.ownr_co_nm && JobData.ownr_co_nm.trim() !== ""
|
||||||
? JobData.ownr_co_nm
|
? JobData.ownr_co_nm
|
||||||
: `${JobData.ownr_ln},${JobData.ownr_fn}`
|
: `${JobData.ownr_ln},${JobData.ownr_fn}`
|
||||||
).replace(replaceSpecialRegex, "");
|
).replace(replaceSpecialRegex, "");
|
||||||
@@ -642,7 +642,8 @@ async function InsertDmsCustomer(socket, newCustomerNumber) {
|
|||||||
.toUpperCase(),
|
.toUpperCase(),
|
||||||
middleName: null,
|
middleName: null,
|
||||||
nameType:
|
nameType:
|
||||||
socket.JobData.ownr_co_nm && socket.JobData.ownr_co_nm
|
socket.JobData.ownr_co_nm &&
|
||||||
|
String(socket.JobData.ownr_co_nm).trim() !== ""
|
||||||
? "Business"
|
? "Business"
|
||||||
: "Person",
|
: "Person",
|
||||||
suffix: null,
|
suffix: null,
|
||||||
@@ -728,7 +729,9 @@ async function InsertDmsVehicle(socket) {
|
|||||||
deliveryDate: moment()
|
deliveryDate: moment()
|
||||||
// .tz(socket.JobData.bodyshop.timezone)
|
// .tz(socket.JobData.bodyshop.timezone)
|
||||||
.format("YYYYMMDD"),
|
.format("YYYYMMDD"),
|
||||||
licensePlateNo: socket.JobData.plate_no,
|
licensePlateNo: String(socket.JobData.plate_no)
|
||||||
|
.replace(/([^\w]|_)/g, "")
|
||||||
|
.toUpperCase(),
|
||||||
make: socket.txEnvelope.dms_make,
|
make: socket.txEnvelope.dms_make,
|
||||||
modelAbrev: socket.txEnvelope.dms_model,
|
modelAbrev: socket.txEnvelope.dms_model,
|
||||||
modelYear: socket.JobData.v_model_yr,
|
modelYear: socket.JobData.v_model_yr,
|
||||||
|
|||||||
@@ -265,20 +265,20 @@ const CreateRepairOrderTag = (job, errorCallback) => {
|
|||||||
}${job.est_ct_fn ? job.est_ct_fn : ""}`,
|
}${job.est_ct_fn ? job.est_ct_fn : ""}`,
|
||||||
},
|
},
|
||||||
CustomerInformation: {
|
CustomerInformation: {
|
||||||
FirstName: job.ownr_fn || "",
|
FirstName: "",
|
||||||
LastName: job.ownr_ln || "",
|
LastName: "",
|
||||||
Street: job.ownr_addr1 || "",
|
Street: "",
|
||||||
City: job.ownr_city || "",
|
City: "",
|
||||||
State: job.ownr_st || "",
|
State: "",
|
||||||
Zip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "",
|
Zip: (job.ownr_zip && job.ownr_zip.substring(0, 3)) || "",
|
||||||
Phone1: job.ownr_ph1 || "",
|
Phone1: "",
|
||||||
Phone2: null,
|
Phone2: null,
|
||||||
Phone2Extension: null,
|
Phone2Extension: null,
|
||||||
Phone3: null,
|
Phone3: null,
|
||||||
Phone3Extension: null,
|
Phone3Extension: null,
|
||||||
FileComments: null,
|
FileComments: null,
|
||||||
Source: null,
|
Source: null,
|
||||||
Email: job.ownr_ea || "",
|
Email: "",
|
||||||
RetWhsl: null,
|
RetWhsl: null,
|
||||||
Cat: null,
|
Cat: null,
|
||||||
InsuredorClaimantFlag: null,
|
InsuredorClaimantFlag: null,
|
||||||
@@ -762,7 +762,12 @@ const CreateCosts = (job) => {
|
|||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
//If the hourly rates for job costing are set, add them in.
|
//If the hourly rates for job costing are set, add them in.
|
||||||
if (job.bodyshop.jc_hourly_rates && job.bodyshop.jc_hourly_rates.mapa) {
|
if (
|
||||||
|
job.bodyshop.jc_hourly_rates &&
|
||||||
|
(job.bodyshop.jc_hourly_rates.mapa ||
|
||||||
|
typeof job.bodyshop.jc_hourly_rates.mapa === "number" ||
|
||||||
|
isNaN(job.bodyshop.jc_hourly_rates.mapa) === false)
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
!billTotalsByCostCenters[
|
!billTotalsByCostCenters[
|
||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
@@ -787,10 +792,11 @@ const CreateCosts = (job) => {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(job.job_totals.rates.mapa.hours)
|
}).multiply(job.job_totals.rates.mapa.hours)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -801,10 +807,11 @@ const CreateCosts = (job) => {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(job.job_totals.rates.mapa.hours)
|
}).multiply(job.job_totals.rates.mapa.hours)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -824,10 +831,11 @@ const CreateCosts = (job) => {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MASH
|
job.bodyshop.md_responsibility_centers.defaults.costs.MASH
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mash * 100) ||
|
job.bodyshop.jc_hourly_rates.mash * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(job.job_totals.rates.mash.hours)
|
}).multiply(job.job_totals.rates.mash.hours)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -612,7 +612,12 @@ function GenerateCostingData(job) {
|
|||||||
|
|
||||||
//If the hourly rates for job costing are set, add them in.
|
//If the hourly rates for job costing are set, add them in.
|
||||||
|
|
||||||
if (job.bodyshop.jc_hourly_rates && job.bodyshop.jc_hourly_rates.mapa) {
|
if (
|
||||||
|
job.bodyshop.jc_hourly_rates &&
|
||||||
|
(job.bodyshop.jc_hourly_rates.mapa ||
|
||||||
|
typeof job.bodyshop.jc_hourly_rates.mapa === "number" ||
|
||||||
|
isNaN(job.bodyshop.jc_hourly_rates.mapa) === false)
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
!billTotalsByCostCenters.additionalCosts[
|
!billTotalsByCostCenters.additionalCosts[
|
||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
@@ -626,7 +631,9 @@ function GenerateCostingData(job) {
|
|||||||
billTotalsByCostCenters.additionalCosts[
|
billTotalsByCostCenters.additionalCosts[
|
||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
] = Dinero({
|
] = Dinero({
|
||||||
amount: Math.round((job.mixdata[0] && job.mixdata[0].totalliquidcost || 0) * 100)
|
amount: Math.round(
|
||||||
|
((job.mixdata[0] && job.mixdata[0].totalliquidcost) || 0) * 100
|
||||||
|
),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
billTotalsByCostCenters.additionalCosts[
|
billTotalsByCostCenters.additionalCosts[
|
||||||
@@ -635,10 +642,11 @@ function GenerateCostingData(job) {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(materialsHours.mapaHrs)
|
}).multiply(materialsHours.mapaHrs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -649,10 +657,11 @@ function GenerateCostingData(job) {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
job.bodyshop.md_responsibility_centers.defaults.costs.MAPA
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
job.bodyshop.jc_hourly_rates.mapa * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(materialsHours.mapaHrs)
|
}).multiply(materialsHours.mapaHrs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -673,10 +682,11 @@ function GenerateCostingData(job) {
|
|||||||
job.bodyshop.md_responsibility_centers.defaults.costs.MASH
|
job.bodyshop.md_responsibility_centers.defaults.costs.MASH
|
||||||
].add(
|
].add(
|
||||||
Dinero({
|
Dinero({
|
||||||
amount:
|
amount: Math.round(
|
||||||
(job.bodyshop.jc_hourly_rates &&
|
(job.bodyshop.jc_hourly_rates &&
|
||||||
job.bodyshop.jc_hourly_rates.mash * 100) ||
|
job.bodyshop.jc_hourly_rates.mash * 100) ||
|
||||||
0,
|
0
|
||||||
|
),
|
||||||
}).multiply(materialsHours.mashHrs)
|
}).multiply(materialsHours.mashHrs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -833,7 +843,9 @@ function GenerateCostingData(job) {
|
|||||||
//Push adjustments to bottom line.
|
//Push adjustments to bottom line.
|
||||||
if (job.adjustment_bottom_line) {
|
if (job.adjustment_bottom_line) {
|
||||||
//Add to totals.
|
//Add to totals.
|
||||||
const Adjustment = Dinero({ amount: job.adjustment_bottom_line * 100 }); //Need to invert, since this is being assigned as a cost.
|
const Adjustment = Dinero({
|
||||||
|
amount: Math.round(job.adjustment_bottom_line * 100),
|
||||||
|
}); //Need to invert, since this is being assigned as a cost.
|
||||||
summaryData.totalLaborSales = summaryData.totalLaborSales.add(Adjustment);
|
summaryData.totalLaborSales = summaryData.totalLaborSales.add(Adjustment);
|
||||||
summaryData.totalSales = summaryData.totalSales.add(Adjustment);
|
summaryData.totalSales = summaryData.totalSales.add(Adjustment);
|
||||||
//Add to lines.
|
//Add to lines.
|
||||||
|
|||||||
11
yarn.lock
11
yarn.lock
@@ -4312,14 +4312,9 @@ tslib@^1.11.1:
|
|||||||
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
|
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
|
||||||
|
|
||||||
tslib@^2.0.1, tslib@^2.1.0:
|
tslib@^2.0.1, tslib@^2.1.0:
|
||||||
|
version "2.5.2"
|
||||||
tslib@^2.3.1, tslib@^2.5.0:
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338"
|
||||||
version "2.5.0"
|
integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==
|
||||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
|
|
||||||
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
|
|
||||||
version "2.5.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
|
|
||||||
integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==
|
|
||||||
|
|
||||||
tslib@^2.3.1, tslib@^2.5.0:
|
tslib@^2.3.1, tslib@^2.5.0:
|
||||||
version "2.5.0"
|
version "2.5.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user