@@ -10357,6 +10357,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>preview</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
<folder_node>
|
<folder_node>
|
||||||
@@ -26274,6 +26295,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>csi_invitation</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>diagnostic_authorization</name>
|
<name>diagnostic_authorization</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -26972,6 +27014,137 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>labels</name>
|
<name>labels</name>
|
||||||
<children>
|
<children>
|
||||||
|
<folder_node>
|
||||||
|
<name>groups</name>
|
||||||
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>authorization</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>financial</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>post</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>pre</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>ro</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>worksheet</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>misc</name>
|
<name>misc</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -27898,6 +28071,48 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>templates</name>
|
<name>templates</name>
|
||||||
<children>
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>estimator_detail</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>estimator_summary</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>hours_sold_detail_closed</name>
|
<name>hours_sold_detail_closed</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
1307
client/package-lock.json
generated
1307
client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,6 @@
|
|||||||
"@stripe/react-stripe-js": "^1.4.0",
|
"@stripe/react-stripe-js": "^1.4.0",
|
||||||
"@stripe/stripe-js": "^1.12.1",
|
"@stripe/stripe-js": "^1.12.1",
|
||||||
"@tanem/react-nprogress": "^3.0.57",
|
"@tanem/react-nprogress": "^3.0.57",
|
||||||
"@tinymce/tinymce-react": "^3.10.3",
|
|
||||||
"antd": "^4.13.1",
|
"antd": "^4.13.1",
|
||||||
"apollo-link-logger": "^2.0.0",
|
"apollo-link-logger": "^2.0.0",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.21.1",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Input, Table, Checkbox } from "antd";
|
import { Input, Table, Checkbox, Card, Space } from "antd";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
@@ -145,28 +145,26 @@ export default function AccountingPayablesTableComponent({ loading, bills }) {
|
|||||||
: bills;
|
: bills;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Card
|
||||||
|
extra={
|
||||||
|
<Space wrap>
|
||||||
|
<PayableExportAll
|
||||||
|
billids={selectedBills}
|
||||||
|
disabled={transInProgress || selectedBills.length === 0}
|
||||||
|
loadingCallback={setTransInProgress}
|
||||||
|
completedCallback={setSelectedBills}
|
||||||
|
/>
|
||||||
|
<Input
|
||||||
|
value={state.search}
|
||||||
|
onChange={handleSearch}
|
||||||
|
placeholder={t("general.labels.search")}
|
||||||
|
allowClear
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
>
|
||||||
<Table
|
<Table
|
||||||
loading={loading}
|
loading={loading}
|
||||||
title={() => {
|
|
||||||
return (
|
|
||||||
<div className="imex-table-header">
|
|
||||||
<PayableExportAll
|
|
||||||
billids={selectedBills}
|
|
||||||
disabled={transInProgress || selectedBills.length === 0}
|
|
||||||
loadingCallback={setTransInProgress}
|
|
||||||
completedCallback={setSelectedBills}
|
|
||||||
/>
|
|
||||||
<Input
|
|
||||||
className="imex-table-header__search"
|
|
||||||
value={state.search}
|
|
||||||
onChange={handleSearch}
|
|
||||||
placeholder={t("general.labels.search")}
|
|
||||||
allowClear
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
dataSource={dataSource}
|
dataSource={dataSource}
|
||||||
pagination={{ position: "top", pageSize: 50 }}
|
pagination={{ position: "top", pageSize: 50 }}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@@ -185,6 +183,6 @@ export default function AccountingPayablesTableComponent({ loading, bills }) {
|
|||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Input, Table } from "antd";
|
import { Card, Input, Space, Table } from "antd";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
@@ -123,13 +123,11 @@ export default function AccountingPayablesTableComponent({
|
|||||||
sorter: (a, b) => a.clm_total - b.clm_total,
|
sorter: (a, b) => a.clm_total - b.clm_total,
|
||||||
|
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<div>
|
<PaymentExportButton
|
||||||
<PaymentExportButton
|
paymentId={record.id}
|
||||||
paymentId={record.id}
|
disabled={transInProgress || !!record.exportedat}
|
||||||
disabled={transInProgress || !!record.exportedat}
|
loadingCallback={setTransInProgress}
|
||||||
loadingCallback={setTransInProgress}
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -152,28 +150,26 @@ export default function AccountingPayablesTableComponent({
|
|||||||
: payments;
|
: payments;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Card
|
||||||
|
extra={
|
||||||
|
<Space wrap>
|
||||||
|
<PaymentsExportAllButton
|
||||||
|
paymentIds={selectedPayments}
|
||||||
|
disabled={transInProgress || selectedPayments.length === 0}
|
||||||
|
loadingCallback={setTransInProgress}
|
||||||
|
completedCallback={setSelectedPayments}
|
||||||
|
/>
|
||||||
|
<Input
|
||||||
|
value={state.search}
|
||||||
|
onChange={handleSearch}
|
||||||
|
placeholder={t("general.labels.search")}
|
||||||
|
allowClear
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
>
|
||||||
<Table
|
<Table
|
||||||
loading={loading}
|
loading={loading}
|
||||||
title={() => {
|
|
||||||
return (
|
|
||||||
<div className="imex-table-header">
|
|
||||||
<PaymentsExportAllButton
|
|
||||||
paymentIds={selectedPayments}
|
|
||||||
disabled={transInProgress || selectedPayments.length === 0}
|
|
||||||
loadingCallback={setTransInProgress}
|
|
||||||
completedCallback={setSelectedPayments}
|
|
||||||
/>
|
|
||||||
<Input
|
|
||||||
className="imex-table-header__search"
|
|
||||||
value={state.search}
|
|
||||||
onChange={handleSearch}
|
|
||||||
placeholder={t("general.labels.search")}
|
|
||||||
allowClear
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
dataSource={dataSource}
|
dataSource={dataSource}
|
||||||
pagination={{ position: "top", pageSize: 50 }}
|
pagination={{ position: "top", pageSize: 50 }}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@@ -192,6 +188,6 @@ export default function AccountingPayablesTableComponent({
|
|||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Input, Table } from "antd";
|
import { Button, Card, Input, Space, Table } from "antd";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
@@ -121,7 +121,7 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
|
|||||||
sorter: (a, b) => a.clm_total - b.clm_total,
|
sorter: (a, b) => a.clm_total - b.clm_total,
|
||||||
|
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<div style={{ display: "flex" }}>
|
<Space wrap>
|
||||||
<JobExportButton
|
<JobExportButton
|
||||||
jobId={record.id}
|
jobId={record.id}
|
||||||
disabled={!!record.date_exported}
|
disabled={!!record.date_exported}
|
||||||
@@ -129,7 +129,7 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
|
|||||||
<Link to={`/manage/jobs/${record.id}/close`}>
|
<Link to={`/manage/jobs/${record.id}/close`}>
|
||||||
<Button>{t("jobs.labels.viewallocations")}</Button>
|
<Button>{t("jobs.labels.viewallocations")}</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</Space>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@@ -166,28 +166,26 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
|
|||||||
: jobs;
|
: jobs;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Card
|
||||||
|
extra={
|
||||||
|
<Space wrap>
|
||||||
|
<JobsExportAllButton
|
||||||
|
jobIds={selectedJobs}
|
||||||
|
disabled={transInProgress || selectedJobs.length === 0}
|
||||||
|
loadingCallback={setTransInProgress}
|
||||||
|
completedCallback={setSelectedJobs}
|
||||||
|
/>
|
||||||
|
<Input.Search
|
||||||
|
value={state.search}
|
||||||
|
onChange={handleSearch}
|
||||||
|
placeholder={t("general.labels.search")}
|
||||||
|
allowClear
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
>
|
||||||
<Table
|
<Table
|
||||||
loading={loading}
|
loading={loading}
|
||||||
title={() => {
|
|
||||||
return (
|
|
||||||
<div className="imex-table-header">
|
|
||||||
<JobsExportAllButton
|
|
||||||
jobIds={selectedJobs}
|
|
||||||
disabled={transInProgress || selectedJobs.length === 0}
|
|
||||||
loadingCallback={setTransInProgress}
|
|
||||||
completedCallback={setSelectedJobs}
|
|
||||||
/>
|
|
||||||
<Input.Search
|
|
||||||
className="imex-table-header__search"
|
|
||||||
value={state.search}
|
|
||||||
onChange={handleSearch}
|
|
||||||
placeholder={t("general.labels.search")}
|
|
||||||
allowClear
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
dataSource={dataSource}
|
dataSource={dataSource}
|
||||||
pagination={{ position: "top" }}
|
pagination={{ position: "top" }}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
@@ -206,6 +204,6 @@ export default function AccountingReceivablesTableComponent({ loading, jobs }) {
|
|||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { UploadOutlined } from "@ant-design/icons";
|
import { UploadOutlined } from "@ant-design/icons";
|
||||||
import { Editor } from "@tinymce/tinymce-react";
|
import { Button, Card, Divider, Input, Select, Upload } from "antd";
|
||||||
import { Button, Card, Input, Select, Upload } from "antd";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
@@ -38,29 +37,19 @@ export default function EmailOverlayComponent({
|
|||||||
onChange={(e) => handleConfigChange("subject", e.target.value)}
|
onChange={(e) => handleConfigChange("subject", e.target.value)}
|
||||||
name="subject"
|
name="subject"
|
||||||
/>
|
/>
|
||||||
<div style={{ color: "red" }}>
|
<Divider>{t("emails.labels.preview")}</Divider>
|
||||||
DEVELOPER NOTE: Any edits made in the editor below will not be sent or
|
<div
|
||||||
saved due to css inlining issues.
|
style={{
|
||||||
</div>
|
padding: "1rem",
|
||||||
<Editor
|
|
||||||
value={messageOptions.html}
|
backgroundColor: "lightgray",
|
||||||
apiKey="f3s2mjsd77ya5qvqkee9vgh612cm6h41e85efqakn2d0kknk"
|
borderLeft: "6px solid #2196F3",
|
||||||
init={{
|
|
||||||
height: 500,
|
|
||||||
//menubar: false,
|
|
||||||
encoding: "raw",
|
|
||||||
extended_valid_elements: "span",
|
|
||||||
//entity_encoding: "raw",
|
|
||||||
plugins: [
|
|
||||||
"advlist autolink lists link image charmap print preview anchor",
|
|
||||||
"searchreplace visualblocks code fullscreen",
|
|
||||||
"insertdatetime media table paste code help wordcount",
|
|
||||||
],
|
|
||||||
toolbar:
|
|
||||||
"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",
|
|
||||||
}}
|
}}
|
||||||
onEditorChange={handleHtmlChange}
|
dangerouslySetInnerHTML={{ __html: messageOptions.html }}
|
||||||
/>
|
/>
|
||||||
|
<Divider>
|
||||||
|
<Divider>{t("emails.labels.preview")}</Divider>
|
||||||
|
</Divider>
|
||||||
<Card title={t("emails.labels.attachments")}>
|
<Card title={t("emails.labels.attachments")}>
|
||||||
<Upload
|
<Upload
|
||||||
fileList={messageOptions.fileList}
|
fileList={messageOptions.fileList}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { Button, Input, Space, Table } from "antd";
|
import { Button, Card, Input, Space, Table } from "antd";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -175,7 +175,23 @@ export function PaymentsListPaginated({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Card
|
||||||
|
extra={
|
||||||
|
<Space wrap>
|
||||||
|
<Button onClick={() => refetch()}>
|
||||||
|
<SyncOutlined />
|
||||||
|
</Button>
|
||||||
|
<Input.Search
|
||||||
|
placeholder={t("general.labels.search")}
|
||||||
|
onSearch={(value) => {
|
||||||
|
search.search = value;
|
||||||
|
history.push({ search: queryString.stringify(search) });
|
||||||
|
}}
|
||||||
|
enterButton
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
|
}
|
||||||
|
>
|
||||||
<Table
|
<Table
|
||||||
loading={loading}
|
loading={loading}
|
||||||
scroll={{ x: true }}
|
scroll={{ x: true }}
|
||||||
@@ -189,26 +205,8 @@ export function PaymentsListPaginated({
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
dataSource={payments}
|
dataSource={payments}
|
||||||
onChange={handleTableChange}
|
onChange={handleTableChange}
|
||||||
title={() => {
|
|
||||||
return (
|
|
||||||
<div className="imex-table-header">
|
|
||||||
<Button onClick={() => refetch()}>
|
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
<Input.Search
|
|
||||||
className="imex-table-header__search"
|
|
||||||
placeholder={t("general.labels.search")}
|
|
||||||
onSearch={(value) => {
|
|
||||||
search.search = value;
|
|
||||||
history.push({ search: queryString.stringify(search) });
|
|
||||||
}}
|
|
||||||
enterButton
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { MailOutlined, PrinterOutlined } from "@ant-design/icons";
|
import { MailOutlined, PrinterOutlined } from "@ant-design/icons";
|
||||||
import { Spin } from "antd";
|
import { Space, Spin } from "antd";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
@@ -40,22 +40,24 @@ export function PrintCenterItemComponent({
|
|||||||
|
|
||||||
if (disabled) return <li className="print-center-item">{item.title} </li>;
|
if (disabled) return <li className="print-center-item">{item.title} </li>;
|
||||||
return (
|
return (
|
||||||
<li className="print-center-item">
|
<li>
|
||||||
{item.title}
|
<Space wrap>
|
||||||
<PrinterOutlined onClick={renderToNewWindow} />
|
{item.title}
|
||||||
<MailOutlined
|
<PrinterOutlined onClick={renderToNewWindow} />
|
||||||
onClick={() => {
|
<MailOutlined
|
||||||
GenerateDocument(
|
onClick={() => {
|
||||||
{
|
GenerateDocument(
|
||||||
name: item.key,
|
{
|
||||||
variables: { id: id },
|
name: item.key,
|
||||||
},
|
variables: { id: id },
|
||||||
{ to: context.job && context.job.ownr_ea, subject: item.subject },
|
},
|
||||||
"e"
|
{ to: context.job && context.job.ownr_ea, subject: item.subject },
|
||||||
);
|
"e"
|
||||||
}}
|
);
|
||||||
/>
|
}}
|
||||||
{loading && <Spin />}
|
/>
|
||||||
|
{loading && <Spin />}
|
||||||
|
</Space>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Col, Collapse, Row } from "antd";
|
import { Card, Col, Input, Row, Typography } from "antd";
|
||||||
import React from "react";
|
import _ from "lodash";
|
||||||
import { useTranslation } from "react-i18next";
|
import React, { useState } from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
import { selectPrintCenter } from "../../redux/modals/modals.selectors";
|
import { selectPrintCenter } from "../../redux/modals/modals.selectors";
|
||||||
@@ -8,45 +8,74 @@ import { TemplateList } from "../../utils/TemplateConstants";
|
|||||||
import Jobd3RdPartyModal from "../job-3rd-party-modal/job-3rd-party-modal.component";
|
import Jobd3RdPartyModal from "../job-3rd-party-modal/job-3rd-party-modal.component";
|
||||||
import PrintCenterItem from "../print-center-item/print-center-item.component";
|
import PrintCenterItem from "../print-center-item/print-center-item.component";
|
||||||
import PrintCenterSpeedPrint from "../print-center-speed-print/print-center-speed-print.component";
|
import PrintCenterSpeedPrint from "../print-center-speed-print/print-center-speed-print.component";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
printCenterModal: selectPrintCenter,
|
printCenterModal: selectPrintCenter,
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({});
|
const mapDispatchToProps = (dispatch) => ({});
|
||||||
|
|
||||||
const colSpan = { md: { span: 24 }, lg: { span: 12 } };
|
|
||||||
|
|
||||||
export function PrintCenterJobsComponent({ printCenterModal }) {
|
export function PrintCenterJobsComponent({ printCenterModal }) {
|
||||||
const { t } = useTranslation();
|
const [search, setSearch] = useState("");
|
||||||
const { id: jobId } = printCenterModal.context;
|
const { id: jobId } = printCenterModal.context;
|
||||||
const tempList = TemplateList("job", {});
|
const tempList = TemplateList("job", {});
|
||||||
|
const { t } = useTranslation();
|
||||||
const JobsReportsList = Object.keys(tempList).map((key) => {
|
const JobsReportsList = Object.keys(tempList).map((key) => {
|
||||||
return tempList[key];
|
return tempList[key];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const filteredJobsReportsList =
|
||||||
|
search !== ""
|
||||||
|
? JobsReportsList.filter((r) => r.title.toLowerCase().includes(search))
|
||||||
|
: JobsReportsList;
|
||||||
|
|
||||||
|
//Group it, create cards, and then filter out.
|
||||||
|
|
||||||
|
const grouped = _.groupBy(filteredJobsReportsList, "group");
|
||||||
|
console.log("grouped :>> ", grouped);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<Col {...colSpan}>
|
<Col lg={8} md={12} sm={24}>
|
||||||
<PrintCenterSpeedPrint jobId={jobId} />
|
<PrintCenterSpeedPrint jobId={jobId} />
|
||||||
</Col>
|
</Col>
|
||||||
<Col {...colSpan}>
|
<Col lg={16} md={12} sm={24} className="print-center-list">
|
||||||
<Collapse accordion>
|
<Card
|
||||||
<Collapse.Panel header={t("printcenter.labels.repairorder")}>
|
extra={
|
||||||
<ul style={{ columns: "2 auto" }}>
|
<Input.Search
|
||||||
{JobsReportsList.map((item) => (
|
onChange={(e) => setSearch(e.target.value)}
|
||||||
<PrintCenterItem
|
value={search}
|
||||||
key={item.key}
|
/>
|
||||||
item={item}
|
}
|
||||||
id={jobId}
|
>
|
||||||
disabled={item.disabled}
|
<Row gutter={[16, 16]}>
|
||||||
/>
|
{Object.keys(grouped).map((key) => (
|
||||||
))}
|
<Col md={12} sm={24}>
|
||||||
</ul>
|
<Card.Grid
|
||||||
</Collapse.Panel>
|
key={key}
|
||||||
<Jobd3RdPartyModal jobId={jobId} />
|
style={{ width: "100%", height: "100%" }}
|
||||||
</Collapse>
|
>
|
||||||
|
<Typography.Title level={4}>
|
||||||
|
{t(`printcenter.labels.groups.${key}`)}
|
||||||
|
</Typography.Title>
|
||||||
|
<ul //style={{ columns: "3 auto" }}
|
||||||
|
>
|
||||||
|
{grouped[key].map((item) => (
|
||||||
|
<PrintCenterItem
|
||||||
|
key={item.key}
|
||||||
|
item={item}
|
||||||
|
id={jobId}
|
||||||
|
disabled={item.disabled}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</Card.Grid>
|
||||||
|
</Col>
|
||||||
|
))}
|
||||||
|
</Row>
|
||||||
|
</Card>
|
||||||
|
<Jobd3RdPartyModal jobId={jobId} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
.print-center-item > * {
|
.print-center-list {
|
||||||
padding: 0em 8px;
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, List, Typography } from "antd";
|
import { Button, List, PageHeader } from "antd";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -33,9 +33,7 @@ export function PrintCenterSpeedPrint({ bodyshop, jobId }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Typography.Title level={2}>
|
<PageHeader title={t("printcenter.labels.speedprint")} />
|
||||||
{t("printcenter.labels.speedprint")}
|
|
||||||
</Typography.Title>
|
|
||||||
|
|
||||||
<List
|
<List
|
||||||
itemLayout="horizontal"
|
itemLayout="horizontal"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { Button } from "antd";
|
import { Button, Col, PageHeader, Row, Space } from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ScheduleCalendarWrapperComponent from "../schedule-calendar-wrapper/scheduler-calendar-wrapper.component";
|
import ScheduleCalendarWrapperComponent from "../schedule-calendar-wrapper/scheduler-calendar-wrapper.component";
|
||||||
import ScheduleModal from "../schedule-job-modal/schedule-job-modal.container";
|
import ScheduleModal from "../schedule-job-modal/schedule-job-modal.container";
|
||||||
@@ -7,23 +7,29 @@ import ScheduleProductionList from "../schedule-production-list/schedule-product
|
|||||||
|
|
||||||
export default function ScheduleCalendarComponent({ data, refetch }) {
|
export default function ScheduleCalendarComponent({ data, refetch }) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<Row gutter={[16, 16]}>
|
||||||
<div className="imex-flex-row">
|
|
||||||
<Button
|
|
||||||
className="imex-flex-row__margin"
|
|
||||||
onClick={() => {
|
|
||||||
refetch();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<SyncOutlined />
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<ScheduleProductionList />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ScheduleModal />
|
<ScheduleModal />
|
||||||
|
<Col span={24}>
|
||||||
|
<PageHeader
|
||||||
|
extra={
|
||||||
|
<Space wrap>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
refetch();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<SyncOutlined />
|
||||||
|
</Button>
|
||||||
|
|
||||||
<ScheduleCalendarWrapperComponent data={data} refetch={refetch} />
|
<ScheduleProductionList />
|
||||||
</div>
|
</Space>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col span={24}>
|
||||||
|
<ScheduleCalendarWrapperComponent data={data} refetch={refetch} />
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export function ScheduleCalendarContainer({ calculateScheduleLoad }) {
|
|||||||
return (
|
return (
|
||||||
<ScheduleCalendarComponent
|
<ScheduleCalendarComponent
|
||||||
refetch={refetch}
|
refetch={refetch}
|
||||||
data={data ? normalizedData : null}
|
data={data ? normalizedData : []}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { DownOutlined } from "@ant-design/icons";
|
import { DownOutlined } from "@ant-design/icons";
|
||||||
import { Card, Popover } from "antd";
|
import { Button, Card, Popover } from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useLazyQuery } from "@apollo/client";
|
import { useLazyQuery } from "@apollo/client";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -63,10 +63,10 @@ export default function ScheduleProductionList() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover content={content} trigger="click" placement="bottomRight">
|
<Popover content={content} trigger="click" placement="bottomRight">
|
||||||
<a href=" #" onClick={() => callQuery()}>
|
<Button onClick={() => callQuery()}>
|
||||||
{t("appointments.labels.inproduction")}
|
{t("appointments.labels.inproduction")}
|
||||||
<DownOutlined />
|
<DownOutlined />
|
||||||
</a>
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,9 @@ export function TechClockOffButton({
|
|||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const emps = bodyshop.employees.filter((e) => e.id === technician.id)[0];
|
const emps = bodyshop.employees.filter(
|
||||||
|
(e) => e.id === technician && technician.id
|
||||||
|
)[0];
|
||||||
|
|
||||||
const handleFinish = async (values) => {
|
const handleFinish = async (values) => {
|
||||||
logImEXEvent("tech_clock_out_job");
|
logImEXEvent("tech_clock_out_job");
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export default function TimeTicketsDatesSelector() {
|
|||||||
start ? moment(start) : moment().startOf("week").subtract(7, "days"),
|
start ? moment(start) : moment().startOf("week").subtract(7, "days"),
|
||||||
end ? moment(end) : moment().endOf("week"),
|
end ? moment(end) : moment().endOf("week"),
|
||||||
]}
|
]}
|
||||||
|
format="MM/DD/YYYY"
|
||||||
ranges={DatePickerRanges}
|
ranges={DatePickerRanges}
|
||||||
onCalendarChange={handleChange}
|
onCalendarChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export default function TimeTicketList({
|
|||||||
refetch,
|
refetch,
|
||||||
techConsole,
|
techConsole,
|
||||||
jobId,
|
jobId,
|
||||||
|
extra,
|
||||||
}) {
|
}) {
|
||||||
const [state, setState] = useState({
|
const [state, setState] = useState({
|
||||||
sortedInfo: {},
|
sortedInfo: {},
|
||||||
@@ -200,15 +201,18 @@ export default function TimeTicketList({
|
|||||||
<Card
|
<Card
|
||||||
title={t("timetickets.labels.timetickets")}
|
title={t("timetickets.labels.timetickets")}
|
||||||
extra={
|
extra={
|
||||||
jobId &&
|
<Space wrap>
|
||||||
(techConsole ? null : (
|
{jobId &&
|
||||||
<TimeTicketEnterButton
|
(techConsole ? null : (
|
||||||
actions={{ refetch }}
|
<TimeTicketEnterButton
|
||||||
context={{ jobId: jobId }}
|
actions={{ refetch }}
|
||||||
>
|
context={{ jobId: jobId }}
|
||||||
{t("timetickets.actions.enter")}
|
>
|
||||||
</TimeTicketEnterButton>
|
{t("timetickets.actions.enter")}
|
||||||
))
|
</TimeTicketEnterButton>
|
||||||
|
))}
|
||||||
|
{extra}
|
||||||
|
</Space>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Table
|
<Table
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
import { Button, List, Space, Statistic, Typography } from "antd";
|
import { Card, Col, Row, Table } from "antd";
|
||||||
|
import _ from "lodash";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React from "react";
|
import React, { useMemo, 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 { selectBodyshop } from "../../redux/user/user.selectors";
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
import { onlyUnique } from "../../utils/arrayHelper";
|
import { onlyUnique } from "../../utils/arrayHelper";
|
||||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
import { alphaSort } from "../../utils/sorters";
|
||||||
import { TemplateList } from "../../utils/TemplateConstants";
|
import { TemplateList } from "../../utils/TemplateConstants";
|
||||||
import LoadingSkeleton from "../loading-skeleton/loading-skeleton.component";
|
import PrintWrapperComponent from "../print-wrapper/print-wrapper.component";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
bodyshop: selectBodyshop,
|
bodyshop: selectBodyshop,
|
||||||
@@ -24,8 +25,6 @@ export function TimeTicketsSummaryEmployees({
|
|||||||
startDate,
|
startDate,
|
||||||
endDate,
|
endDate,
|
||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation();
|
|
||||||
|
|
||||||
//Group everything by employee
|
//Group everything by employee
|
||||||
//Then sum the individual time TimeTicketsSummary.
|
//Then sum the individual time TimeTicketsSummary.
|
||||||
|
|
||||||
@@ -42,6 +41,7 @@ export function TimeTicketsSummaryEmployees({
|
|||||||
});
|
});
|
||||||
const jobTickets = Object.keys(jobTicketsByEmployee).map(function (key) {
|
const jobTickets = Object.keys(jobTicketsByEmployee).map(function (key) {
|
||||||
return {
|
return {
|
||||||
|
jobKey: key,
|
||||||
employee: jobTicketsByEmployee[key][0].employee,
|
employee: jobTicketsByEmployee[key][0].employee,
|
||||||
tickets: jobTicketsByEmployee[key],
|
tickets: jobTicketsByEmployee[key],
|
||||||
};
|
};
|
||||||
@@ -65,150 +65,248 @@ export function TimeTicketsSummaryEmployees({
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
const handlePrintEmployeeTicket = async (empId) => {
|
|
||||||
GenerateDocument(
|
|
||||||
{
|
|
||||||
name: TemplateList().timetickets_employee.key,
|
|
||||||
variables: { id: empId, start: startDate, end: endDate },
|
|
||||||
},
|
|
||||||
{},
|
|
||||||
"p"
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Row gutter={[16, 16]}>
|
||||||
<List
|
<Col span={24}>
|
||||||
header={
|
<JobRelatedTicketsTable
|
||||||
<Typography.Title level={3}>
|
loading={loading}
|
||||||
{t("timetickets.labels.jobhours")}
|
jobTickets={jobTickets}
|
||||||
</Typography.Title>
|
startDate={startDate}
|
||||||
}
|
endDate={endDate}
|
||||||
itemLayout="horizontal"
|
/>
|
||||||
//dataSource={jobTickets}
|
</Col>
|
||||||
>
|
<Col span={24}>
|
||||||
{jobTickets.map((item, idx) => {
|
<ShiftRelatedTicketsTable
|
||||||
const employeeCostCenters = item.tickets
|
loading={loading}
|
||||||
.map((i) => i.cost_center)
|
shiftTickets={shiftTickets}
|
||||||
.filter(onlyUnique);
|
startDate={startDate}
|
||||||
|
endDate={endDate}
|
||||||
return employeeCostCenters.map((costCenter) => {
|
/>
|
||||||
const actHrs = item.tickets
|
</Col>
|
||||||
.filter((ticket) => ticket.cost_center === costCenter)
|
</Row>
|
||||||
.reduce((acc, val) => acc + val.actualhrs, 0);
|
|
||||||
|
|
||||||
const prodHrs = item.tickets
|
|
||||||
.filter((ticket) => ticket.cost_center === costCenter)
|
|
||||||
.reduce((acc, val) => acc + val.productivehrs, 0);
|
|
||||||
|
|
||||||
const clockHrs = item.tickets
|
|
||||||
.filter((ticket) => ticket.cost_center === costCenter)
|
|
||||||
.reduce((acc, val) => {
|
|
||||||
if (!!val.clockoff && !!val.clockon)
|
|
||||||
return (
|
|
||||||
acc +
|
|
||||||
moment(val.clockoff).diff(
|
|
||||||
moment(val.clockon),
|
|
||||||
"hours",
|
|
||||||
true
|
|
||||||
)
|
|
||||||
);
|
|
||||||
return acc;
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<List.Item
|
|
||||||
key={`${idx}${costCenter}`}
|
|
||||||
actions={[
|
|
||||||
<Button
|
|
||||||
onClick={() => handlePrintEmployeeTicket(item.employee.id)}
|
|
||||||
>
|
|
||||||
{t("timetickets.actions.printemployee")}
|
|
||||||
</Button>,
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<LoadingSkeleton loading={loading}>
|
|
||||||
<List.Item.Meta
|
|
||||||
title={`${item.employee.first_name} ${item.employee.last_name}`}
|
|
||||||
description={costCenter}
|
|
||||||
/>
|
|
||||||
<Space>
|
|
||||||
<Statistic
|
|
||||||
title={t("timetickets.fields.actualhrs")}
|
|
||||||
precision={1}
|
|
||||||
value={actHrs}
|
|
||||||
/>
|
|
||||||
<Statistic
|
|
||||||
title={t("timetickets.fields.productivehrs")}
|
|
||||||
precision={1}
|
|
||||||
value={prodHrs}
|
|
||||||
/>
|
|
||||||
<Statistic
|
|
||||||
title={t("timetickets.fields.efficiency")}
|
|
||||||
precision={1}
|
|
||||||
value={
|
|
||||||
actHrs === 0 || !actHrs ? "∞" : (prodHrs / actHrs) * 100
|
|
||||||
}
|
|
||||||
suffix={"%"}
|
|
||||||
/>
|
|
||||||
<Statistic
|
|
||||||
title={t("timetickets.fields.clockhours")}
|
|
||||||
precision={1}
|
|
||||||
value={clockHrs}
|
|
||||||
/>
|
|
||||||
</Space>
|
|
||||||
</LoadingSkeleton>
|
|
||||||
</List.Item>
|
|
||||||
);
|
|
||||||
});
|
|
||||||
})}
|
|
||||||
</List>
|
|
||||||
<List
|
|
||||||
header={
|
|
||||||
<Typography.Title level={3}>
|
|
||||||
{t("timetickets.labels.clockhours")}
|
|
||||||
</Typography.Title>
|
|
||||||
}
|
|
||||||
itemLayout="horizontal"
|
|
||||||
dataSource={shiftTickets}
|
|
||||||
renderItem={(item) => {
|
|
||||||
const clockHrs = item.tickets.reduce((acc, val) => {
|
|
||||||
if (!!val.clockoff && !!val.clockon)
|
|
||||||
return (
|
|
||||||
acc +
|
|
||||||
moment(val.clockoff).diff(moment(val.clockon), "hours", true)
|
|
||||||
);
|
|
||||||
return acc;
|
|
||||||
}, 0);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<List.Item
|
|
||||||
actions={[
|
|
||||||
<Button
|
|
||||||
onClick={() => handlePrintEmployeeTicket(item.employee.id)}
|
|
||||||
>
|
|
||||||
{t("timetickets.actions.printemployee")}
|
|
||||||
</Button>,
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<LoadingSkeleton loading={loading}>
|
|
||||||
<List.Item.Meta
|
|
||||||
title={`${item.employee.first_name} ${item.employee.last_name}`}
|
|
||||||
/>
|
|
||||||
<Statistic
|
|
||||||
title={t("timetickets.fields.clockhours")}
|
|
||||||
precision={2}
|
|
||||||
value={clockHrs}
|
|
||||||
/>
|
|
||||||
</LoadingSkeleton>
|
|
||||||
</List.Item>
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
export default connect(
|
export default connect(
|
||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
)(TimeTicketsSummaryEmployees);
|
)(TimeTicketsSummaryEmployees);
|
||||||
|
|
||||||
|
const JobRelatedTicketsTable = ({
|
||||||
|
loading,
|
||||||
|
jobTickets,
|
||||||
|
startDate,
|
||||||
|
endDate,
|
||||||
|
}) => {
|
||||||
|
const Templates = TemplateList();
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [state, setState] = useState({
|
||||||
|
sortedInfo: {},
|
||||||
|
});
|
||||||
|
const data = useMemo(() => {
|
||||||
|
return _.flatten(
|
||||||
|
jobTickets.map((item, idx) => {
|
||||||
|
const employeeCostCenters = item.tickets
|
||||||
|
.map((i) => i.cost_center)
|
||||||
|
.filter(onlyUnique);
|
||||||
|
|
||||||
|
return employeeCostCenters.map((costCenter) => {
|
||||||
|
const actHrs = item.tickets
|
||||||
|
.filter((ticket) => ticket.cost_center === costCenter)
|
||||||
|
.reduce((acc, val) => acc + val.actualhrs, 0);
|
||||||
|
|
||||||
|
const prodHrs = item.tickets
|
||||||
|
.filter((ticket) => ticket.cost_center === costCenter)
|
||||||
|
.reduce((acc, val) => acc + val.productivehrs, 0);
|
||||||
|
|
||||||
|
const clockHrs = item.tickets
|
||||||
|
.filter((ticket) => ticket.cost_center === costCenter)
|
||||||
|
.reduce((acc, val) => {
|
||||||
|
if (!!val.clockoff && !!val.clockon)
|
||||||
|
return (
|
||||||
|
acc +
|
||||||
|
moment(val.clockoff).diff(moment(val.clockon), "hours", true)
|
||||||
|
);
|
||||||
|
return acc;
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
return {
|
||||||
|
id: `${item.jobKey}${costCenter}`,
|
||||||
|
item,
|
||||||
|
actHrs,
|
||||||
|
prodHrs,
|
||||||
|
clockHrs,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}, [jobTickets]);
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: t("bills.fields.vendorname"),
|
||||||
|
dataIndex: "empname",
|
||||||
|
key: "empname",
|
||||||
|
sorter: (a, b) => alphaSort(a.empname, b.empname),
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "empname" && state.sortedInfo.order,
|
||||||
|
render: (text, record) =>
|
||||||
|
`${record.item.employee.first_name} ${record.item.employee.last_name}`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("timetickets.fields.actualhrs"),
|
||||||
|
dataIndex: "actHrs",
|
||||||
|
key: "actHrs",
|
||||||
|
sorter: (a, b) => a.actHrs - b.actHrs,
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "actHrs" && state.sortedInfo.order,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("timetickets.fields.productivehrs"),
|
||||||
|
dataIndex: "prodHrs",
|
||||||
|
key: "prodHrs",
|
||||||
|
sorter: (a, b) => a.prodHrs - b.prodHrs,
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "prodHrs" && state.sortedInfo.order,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("timetickets.fields.efficiency"),
|
||||||
|
dataIndex: "total",
|
||||||
|
key: "total",
|
||||||
|
sorter: (a, b) => a.total - b.total,
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "total" && state.sortedInfo.order,
|
||||||
|
render: (text, record) =>
|
||||||
|
record.actHrs === 0 || !record.actHrs
|
||||||
|
? "∞"
|
||||||
|
: (record.prodHrs / record.actHrs) * 100,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("timetickets.fields.clockhours"),
|
||||||
|
dataIndex: "clockHrs",
|
||||||
|
key: "clockHrs",
|
||||||
|
sorter: (a, b) => a.clockHrs - b.clockHrs,
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "clockHrs" && state.sortedInfo.order,
|
||||||
|
render: (text, record) => record.clockHrs.toFixed(2),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("general.labels.actions"),
|
||||||
|
dataIndex: "actions",
|
||||||
|
key: "actions",
|
||||||
|
render: (text, record) => (
|
||||||
|
<PrintWrapperComponent
|
||||||
|
templateObject={{
|
||||||
|
name: Templates.timetickets_employee.key,
|
||||||
|
variables: {
|
||||||
|
id: record.item.employee.id,
|
||||||
|
start: startDate,
|
||||||
|
end: endDate,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
messageObject={{ subject: Templates.timetickets_employee.subject }}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const handleTableChange = (pagination, filters, sorter) => {
|
||||||
|
setState({ ...state, filteredInfo: filters, sortedInfo: sorter });
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Card title={t("timetickets.labels.jobhours")}>
|
||||||
|
<Table
|
||||||
|
loading={loading}
|
||||||
|
scroll={{ x: true, y: "50rem" }}
|
||||||
|
columns={columns}
|
||||||
|
rowKey="id"
|
||||||
|
dataSource={data}
|
||||||
|
onChange={handleTableChange}
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const ShiftRelatedTicketsTable = ({
|
||||||
|
loading,
|
||||||
|
shiftTickets,
|
||||||
|
startDate,
|
||||||
|
endDate,
|
||||||
|
}) => {
|
||||||
|
const Templates = TemplateList();
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const [state, setState] = useState({
|
||||||
|
sortedInfo: {},
|
||||||
|
});
|
||||||
|
const data = useMemo(() => {
|
||||||
|
return shiftTickets.map((item) => {
|
||||||
|
const clockHrs = item.tickets.reduce((acc, val) => {
|
||||||
|
if (!!val.clockoff && !!val.clockon)
|
||||||
|
return (
|
||||||
|
acc + moment(val.clockoff).diff(moment(val.clockon), "hours", true)
|
||||||
|
);
|
||||||
|
return acc;
|
||||||
|
}, 0);
|
||||||
|
|
||||||
|
return { id: item.employee.id, item, clockHrs };
|
||||||
|
});
|
||||||
|
}, [shiftTickets]);
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: t("bills.fields.vendorname"),
|
||||||
|
dataIndex: "empname",
|
||||||
|
key: "empname",
|
||||||
|
sorter: (a, b) => alphaSort(a.empname, b.empname),
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "empname" && state.sortedInfo.order,
|
||||||
|
render: (text, record) =>
|
||||||
|
`${record.item.employee.first_name} ${record.item.employee.last_name}`,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
title: t("timetickets.fields.clockhours"),
|
||||||
|
dataIndex: "clockHrs",
|
||||||
|
key: "clockHrs",
|
||||||
|
sorter: (a, b) => a.clockHrs - b.clockHrs,
|
||||||
|
sortOrder:
|
||||||
|
state.sortedInfo.columnKey === "clockHrs" && state.sortedInfo.order,
|
||||||
|
render: (text, record) => record.clockHrs.toFixed(2),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: t("general.labels.actions"),
|
||||||
|
dataIndex: "actions",
|
||||||
|
key: "actions",
|
||||||
|
render: (text, record) => (
|
||||||
|
<PrintWrapperComponent
|
||||||
|
templateObject={{
|
||||||
|
name: Templates.timetickets_employee.key,
|
||||||
|
variables: {
|
||||||
|
id: record.item.employee.id,
|
||||||
|
start: startDate,
|
||||||
|
end: endDate,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
messageObject={{ subject: Templates.timetickets_employee.subject }}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const handleTableChange = (pagination, filters, sorter) => {
|
||||||
|
setState({ ...state, filteredInfo: filters, sortedInfo: sorter });
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Card title={t("timetickets.labels.clockhours")}>
|
||||||
|
<Table
|
||||||
|
loading={loading}
|
||||||
|
scroll={{ x: true, y: "50rem" }}
|
||||||
|
columns={columns}
|
||||||
|
rowKey="id"
|
||||||
|
dataSource={data}
|
||||||
|
onChange={handleTableChange}
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
import TimeTicketsSummaryEmployees from "../time-tickets-summary-employees/time-tickets-summary-employees.component";
|
|
||||||
|
|
||||||
export default function TimeTicketsSummary({
|
|
||||||
loading,
|
|
||||||
timetickets,
|
|
||||||
startDate,
|
|
||||||
endDate,
|
|
||||||
}) {
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<TimeTicketsSummaryEmployees
|
|
||||||
loading={loading}
|
|
||||||
timetickets={timetickets}
|
|
||||||
startDate={startDate}
|
|
||||||
endDate={endDate}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -60,15 +60,13 @@ export function AllJobs({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
|
|||||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||||
return (
|
return (
|
||||||
<RbacWrapper action="payments:list">
|
<RbacWrapper action="payments:list">
|
||||||
<div>
|
<PaymentsListPaginated
|
||||||
<PaymentsListPaginated
|
refetch={refetch}
|
||||||
refetch={refetch}
|
loading={loading}
|
||||||
loading={loading}
|
searchParams={searchParams}
|
||||||
searchParams={searchParams}
|
total={data ? data.search_payments_aggregate.aggregate.count : 0}
|
||||||
total={data ? data.search_payments_aggregate.aggregate.count : 0}
|
payments={data ? data.search_payments : []}
|
||||||
payments={data ? data.search_payments : []}
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</RbacWrapper>
|
</RbacWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { useQuery } from "@apollo/client";
|
import { useQuery } from "@apollo/client";
|
||||||
|
import { Col, Row } from "antd";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import queryString from "query-string";
|
import queryString from "query-string";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
@@ -10,7 +11,7 @@ import AlertComponent from "../../components/alert/alert.component";
|
|||||||
import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";
|
import RbacWrapper from "../../components/rbac-wrapper/rbac-wrapper.component";
|
||||||
import TimeTicketsDatesSelector from "../../components/ticket-tickets-dates-selector/time-tickets-dates-selector.component";
|
import TimeTicketsDatesSelector from "../../components/ticket-tickets-dates-selector/time-tickets-dates-selector.component";
|
||||||
import TimeTicketList from "../../components/time-ticket-list/time-ticket-list.component";
|
import TimeTicketList from "../../components/time-ticket-list/time-ticket-list.component";
|
||||||
import TimeTicketsSummary from "../../components/time-tickets-summary/time-tickets-summary.component";
|
import TimeTicketsSummaryEmployees from "../../components/time-tickets-summary-employees/time-tickets-summary-employees.component";
|
||||||
import { QUERY_TIME_TICKETS_IN_RANGE } from "../../graphql/timetickets.queries";
|
import { QUERY_TIME_TICKETS_IN_RANGE } from "../../graphql/timetickets.queries";
|
||||||
import {
|
import {
|
||||||
setBreadcrumbs,
|
setBreadcrumbs,
|
||||||
@@ -60,20 +61,23 @@ export function TimeTicketsContainer({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<RbacWrapper action="timetickets:list">
|
<RbacWrapper action="timetickets:list">
|
||||||
<div>
|
<Row gutter={[16, 16]}>
|
||||||
<TimeTicketsDatesSelector />
|
<Col span={24}>
|
||||||
|
<TimeTicketList
|
||||||
<TimeTicketList
|
loading={loading}
|
||||||
loading={loading}
|
timetickets={data ? data.timetickets : []}
|
||||||
timetickets={data ? data.timetickets : []}
|
extra={<TimeTicketsDatesSelector />}
|
||||||
/>
|
/>
|
||||||
<TimeTicketsSummary
|
</Col>
|
||||||
loading={loading}
|
<Col span={24}>
|
||||||
timetickets={data ? data.timetickets : []}
|
<TimeTicketsSummaryEmployees
|
||||||
startDate={startDate}
|
loading={loading}
|
||||||
endDate={endDate}
|
timetickets={data ? data.timetickets : []}
|
||||||
/>
|
startDate={startDate}
|
||||||
</div>
|
endDate={endDate}
|
||||||
|
/>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
</RbacWrapper>
|
</RbacWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -671,7 +671,8 @@
|
|||||||
"notsent": "Email not sent. Error encountered while sending {{message}}"
|
"notsent": "Email not sent. Error encountered while sending {{message}}"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"attachments": "Attachments"
|
"attachments": "Attachments",
|
||||||
|
"preview": "Email Preview"
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"sent": "Email sent successfully."
|
"sent": "Email sent successfully."
|
||||||
@@ -999,12 +1000,12 @@
|
|||||||
"employee_body": "Body",
|
"employee_body": "Body",
|
||||||
"employee_prep": "Prep",
|
"employee_prep": "Prep",
|
||||||
"employee_refinish": "Refinish",
|
"employee_refinish": "Refinish",
|
||||||
"est_addr1": "Appraiser Address",
|
"est_addr1": "Estimator Address",
|
||||||
"est_co_nm": "Appraiser Company",
|
"est_co_nm": "Estimator Company",
|
||||||
"est_ct_fn": "Appraiser First Name",
|
"est_ct_fn": "Estimator First Name",
|
||||||
"est_ct_ln": "Appraiser Last Name",
|
"est_ct_ln": "Estimator Last Name",
|
||||||
"est_ea": "Appraiser Email",
|
"est_ea": "Estimator Email",
|
||||||
"est_ph1": "Appraiser Phone #",
|
"est_ph1": "Estimator Phone #",
|
||||||
"federal_tax_payable": "Federal Tax Payable",
|
"federal_tax_payable": "Federal Tax Payable",
|
||||||
"federal_tax_rate": "Federal Tax Rate",
|
"federal_tax_rate": "Federal Tax Rate",
|
||||||
"ins_addr1": "Insurance Co. Address",
|
"ins_addr1": "Insurance Co. Address",
|
||||||
@@ -1137,7 +1138,7 @@
|
|||||||
},
|
},
|
||||||
"forms": {
|
"forms": {
|
||||||
"admindates": "Administrative Dates",
|
"admindates": "Administrative Dates",
|
||||||
"appraiserinfo": "Appraiser Info",
|
"appraiserinfo": "Estimator Info",
|
||||||
"claiminfo": "Claim Information",
|
"claiminfo": "Claim Information",
|
||||||
"estdates": "Estimate Dates",
|
"estdates": "Estimate Dates",
|
||||||
"laborrates": "Labor Rates",
|
"laborrates": "Labor Rates",
|
||||||
@@ -1585,6 +1586,7 @@
|
|||||||
"casl_authorization": "CASL Authorization",
|
"casl_authorization": "CASL Authorization",
|
||||||
"coversheet_landscape": "Coversheet (Landscape)",
|
"coversheet_landscape": "Coversheet (Landscape)",
|
||||||
"coversheet_portrait": "Coversheet Portrait",
|
"coversheet_portrait": "Coversheet Portrait",
|
||||||
|
"csi_invitation": "CSI Invitation",
|
||||||
"diagnostic_authorization": "Diagnostic Authorization",
|
"diagnostic_authorization": "Diagnostic Authorization",
|
||||||
"estimate": "Estimate Only",
|
"estimate": "Estimate Only",
|
||||||
"estimate_detail": "Estimate Details",
|
"estimate_detail": "Estimate Details",
|
||||||
@@ -1620,6 +1622,14 @@
|
|||||||
"worksheet_sorted_by_operation_part_type": "Worksheet by Operation & Part Type"
|
"worksheet_sorted_by_operation_part_type": "Worksheet by Operation & Part Type"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"groups": {
|
||||||
|
"authorization": "Authorization",
|
||||||
|
"financial": "Financial",
|
||||||
|
"post": "Post-Production",
|
||||||
|
"pre": "Pre-Production",
|
||||||
|
"ro": "Repair Order",
|
||||||
|
"worksheet": "Worksheets"
|
||||||
|
},
|
||||||
"misc": "Miscellaneous Documents",
|
"misc": "Miscellaneous Documents",
|
||||||
"repairorder": "Repair Order Related",
|
"repairorder": "Repair Order Related",
|
||||||
"reportcentermodal": "Report Center",
|
"reportcentermodal": "Report Center",
|
||||||
@@ -1687,6 +1697,8 @@
|
|||||||
"vendor": "Vendor"
|
"vendor": "Vendor"
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"estimator_detail": "Jobs by Estimator (Detail)",
|
||||||
|
"estimator_summary": "Jobs by Estimator (Summary)",
|
||||||
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
||||||
"hours_sold_detail_closed_source": "Hours Sold Detail - Closed by Source",
|
"hours_sold_detail_closed_source": "Hours Sold Detail - Closed by Source",
|
||||||
"hours_sold_detail_open": "Hours Sold Detail - Open",
|
"hours_sold_detail_open": "Hours Sold Detail - Open",
|
||||||
|
|||||||
@@ -671,7 +671,8 @@
|
|||||||
"notsent": "Correo electrónico no enviado Se encontró un error al enviar {{message}}"
|
"notsent": "Correo electrónico no enviado Se encontró un error al enviar {{message}}"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"attachments": ""
|
"attachments": "",
|
||||||
|
"preview": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"sent": "Correo electrónico enviado con éxito."
|
"sent": "Correo electrónico enviado con éxito."
|
||||||
@@ -1585,6 +1586,7 @@
|
|||||||
"casl_authorization": "",
|
"casl_authorization": "",
|
||||||
"coversheet_landscape": "",
|
"coversheet_landscape": "",
|
||||||
"coversheet_portrait": "",
|
"coversheet_portrait": "",
|
||||||
|
"csi_invitation": "",
|
||||||
"diagnostic_authorization": "",
|
"diagnostic_authorization": "",
|
||||||
"estimate": "",
|
"estimate": "",
|
||||||
"estimate_detail": "",
|
"estimate_detail": "",
|
||||||
@@ -1620,6 +1622,14 @@
|
|||||||
"worksheet_sorted_by_operation_part_type": ""
|
"worksheet_sorted_by_operation_part_type": ""
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"groups": {
|
||||||
|
"authorization": "",
|
||||||
|
"financial": "",
|
||||||
|
"post": "",
|
||||||
|
"pre": "",
|
||||||
|
"ro": "",
|
||||||
|
"worksheet": ""
|
||||||
|
},
|
||||||
"misc": "",
|
"misc": "",
|
||||||
"repairorder": "",
|
"repairorder": "",
|
||||||
"reportcentermodal": "",
|
"reportcentermodal": "",
|
||||||
@@ -1687,6 +1697,8 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"estimator_detail": "",
|
||||||
|
"estimator_summary": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
"hours_sold_detail_closed_source": "",
|
"hours_sold_detail_closed_source": "",
|
||||||
"hours_sold_detail_open": "",
|
"hours_sold_detail_open": "",
|
||||||
|
|||||||
@@ -671,7 +671,8 @@
|
|||||||
"notsent": "Courriel non envoyé. Erreur rencontrée lors de l'envoi de {{message}}"
|
"notsent": "Courriel non envoyé. Erreur rencontrée lors de l'envoi de {{message}}"
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"attachments": ""
|
"attachments": "",
|
||||||
|
"preview": ""
|
||||||
},
|
},
|
||||||
"successes": {
|
"successes": {
|
||||||
"sent": "E-mail envoyé avec succès."
|
"sent": "E-mail envoyé avec succès."
|
||||||
@@ -1585,6 +1586,7 @@
|
|||||||
"casl_authorization": "",
|
"casl_authorization": "",
|
||||||
"coversheet_landscape": "",
|
"coversheet_landscape": "",
|
||||||
"coversheet_portrait": "",
|
"coversheet_portrait": "",
|
||||||
|
"csi_invitation": "",
|
||||||
"diagnostic_authorization": "",
|
"diagnostic_authorization": "",
|
||||||
"estimate": "",
|
"estimate": "",
|
||||||
"estimate_detail": "",
|
"estimate_detail": "",
|
||||||
@@ -1620,6 +1622,14 @@
|
|||||||
"worksheet_sorted_by_operation_part_type": ""
|
"worksheet_sorted_by_operation_part_type": ""
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
|
"groups": {
|
||||||
|
"authorization": "",
|
||||||
|
"financial": "",
|
||||||
|
"post": "",
|
||||||
|
"pre": "",
|
||||||
|
"ro": "",
|
||||||
|
"worksheet": ""
|
||||||
|
},
|
||||||
"misc": "",
|
"misc": "",
|
||||||
"repairorder": "",
|
"repairorder": "",
|
||||||
"reportcentermodal": "",
|
"reportcentermodal": "",
|
||||||
@@ -1687,6 +1697,8 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"estimator_detail": "",
|
||||||
|
"estimator_summary": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
"hours_sold_detail_closed_source": "",
|
"hours_sold_detail_closed_source": "",
|
||||||
"hours_sold_detail_open": "",
|
"hours_sold_detail_open": "",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.casl_authorization"),
|
subject: i18n.t("printcenter.jobs.casl_authorization"),
|
||||||
key: "casl_authorization",
|
key: "casl_authorization",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "authorization",
|
||||||
},
|
},
|
||||||
diagnostic_authorization: {
|
diagnostic_authorization: {
|
||||||
title: i18n.t("printcenter.jobs.diagnostic_authorization"),
|
title: i18n.t("printcenter.jobs.diagnostic_authorization"),
|
||||||
@@ -25,34 +26,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.diagnostic_authorization"),
|
subject: i18n.t("printcenter.jobs.diagnostic_authorization"),
|
||||||
key: "diagnostic_authorization",
|
key: "diagnostic_authorization",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
group: "authorization",
|
||||||
job_notes: {
|
|
||||||
title: i18n.t("printcenter.jobs.job_notes"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.job_notes"),
|
|
||||||
key: "job_notes",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
ro_with_description: {
|
|
||||||
title: i18n.t("printcenter.jobs.ro_with_description"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.ro_with_description"),
|
|
||||||
key: "ro_with_description",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
window_tag: {
|
|
||||||
title: i18n.t("printcenter.jobs.window_tag"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.window_tag"),
|
|
||||||
key: "window_tag",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
payments_by_job: {
|
|
||||||
title: i18n.t("printcenter.jobs.payments_by_job"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.payments_by_job"),
|
|
||||||
key: "payments_by_job",
|
|
||||||
disabled: false,
|
|
||||||
},
|
},
|
||||||
appointment_reminder: {
|
appointment_reminder: {
|
||||||
title: i18n.t("printcenter.jobs.appointment_reminder"),
|
title: i18n.t("printcenter.jobs.appointment_reminder"),
|
||||||
@@ -60,6 +34,112 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.appointment_reminder"),
|
subject: i18n.t("printcenter.jobs.appointment_reminder"),
|
||||||
key: "appointment_reminder",
|
key: "appointment_reminder",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "pre",
|
||||||
|
},
|
||||||
|
estimate_followup: {
|
||||||
|
title: i18n.t("printcenter.jobs.estimate_followup"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.estimate_followup"),
|
||||||
|
key: "estimate_followup",
|
||||||
|
disabled: false,
|
||||||
|
group: "pre",
|
||||||
|
},
|
||||||
|
express_repair_checklist: {
|
||||||
|
title: i18n.t("printcenter.jobs.express_repair_checklist"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.express_repair_checklist"),
|
||||||
|
key: "express_repair_checklist",
|
||||||
|
disabled: false,
|
||||||
|
group: "pre",
|
||||||
|
},
|
||||||
|
glass_express_checklist: {
|
||||||
|
title: i18n.t("printcenter.jobs.glass_express_checklist"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.glass_express_checklist"),
|
||||||
|
key: "glass_express_checklist",
|
||||||
|
disabled: false,
|
||||||
|
group: "pre",
|
||||||
|
},
|
||||||
|
vehicle_check_in: {
|
||||||
|
title: i18n.t("printcenter.jobs.vehicle_check_in"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.vehicle_check_in"),
|
||||||
|
key: "vehicle_check_in",
|
||||||
|
disabled: false,
|
||||||
|
group: "pre",
|
||||||
|
},
|
||||||
|
parts_order_history: {
|
||||||
|
title: i18n.t("printcenter.jobs.parts_order_history"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.parts_order_history"),
|
||||||
|
key: "parts_order_history",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
|
||||||
|
job_notes: {
|
||||||
|
title: i18n.t("printcenter.jobs.job_notes"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.job_notes"),
|
||||||
|
key: "job_notes",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
ro_with_description: {
|
||||||
|
title: i18n.t("printcenter.jobs.ro_with_description"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.ro_with_description"),
|
||||||
|
key: "ro_with_description",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
window_tag: {
|
||||||
|
title: i18n.t("printcenter.jobs.window_tag"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.window_tag"),
|
||||||
|
key: "window_tag",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
supplement_request: {
|
||||||
|
title: i18n.t("printcenter.jobs.supplement_request"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.supplement_request"),
|
||||||
|
key: "supplement_request",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
estimate: {
|
||||||
|
title: i18n.t("printcenter.jobs.estimate"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.estimate"),
|
||||||
|
key: "estimate",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
parts_list: {
|
||||||
|
title: i18n.t("printcenter.jobs.parts_list"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.parts_list"),
|
||||||
|
key: "parts_list",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
coversheet_portrait: {
|
||||||
|
title: i18n.t("printcenter.jobs.coversheet_portrait"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.coversheet_portrait"),
|
||||||
|
key: "coversheet_portrait",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
|
coversheet_landscape: {
|
||||||
|
title: i18n.t("printcenter.jobs.coversheet_landscape"),
|
||||||
|
description: "All Jobs Notes",
|
||||||
|
subject: i18n.t("printcenter.jobs.coversheet_landscape"),
|
||||||
|
key: "coversheet_landscape",
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
},
|
},
|
||||||
worksheet_by_line_number: {
|
worksheet_by_line_number: {
|
||||||
title: i18n.t("printcenter.jobs.worksheet_by_line_number"),
|
title: i18n.t("printcenter.jobs.worksheet_by_line_number"),
|
||||||
@@ -67,6 +147,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.worksheet_by_line_number"),
|
subject: i18n.t("printcenter.jobs.worksheet_by_line_number"),
|
||||||
key: "worksheet_by_line_number",
|
key: "worksheet_by_line_number",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "worksheet",
|
||||||
},
|
},
|
||||||
worksheet_sorted_by_operation: {
|
worksheet_sorted_by_operation: {
|
||||||
title: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
|
title: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
|
||||||
@@ -74,6 +155,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
|
subject: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
|
||||||
key: "worksheet_sorted_by_operation",
|
key: "worksheet_sorted_by_operation",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "worksheet",
|
||||||
},
|
},
|
||||||
worksheet_sorted_by_operation_no_hours: {
|
worksheet_sorted_by_operation_no_hours: {
|
||||||
title: i18n.t(
|
title: i18n.t(
|
||||||
@@ -85,6 +167,7 @@ export const TemplateList = (type, context) => {
|
|||||||
),
|
),
|
||||||
key: "worksheet_sorted_by_operation_no_hours",
|
key: "worksheet_sorted_by_operation_no_hours",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "worksheet",
|
||||||
},
|
},
|
||||||
worksheet_sorted_by_operation_part_type: {
|
worksheet_sorted_by_operation_part_type: {
|
||||||
title: i18n.t(
|
title: i18n.t(
|
||||||
@@ -96,13 +179,15 @@ export const TemplateList = (type, context) => {
|
|||||||
),
|
),
|
||||||
key: "worksheet_sorted_by_operation_part_type",
|
key: "worksheet_sorted_by_operation_part_type",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "worksheet",
|
||||||
},
|
},
|
||||||
supplement_request: {
|
payments_by_job: {
|
||||||
title: i18n.t("printcenter.jobs.supplement_request"),
|
title: i18n.t("printcenter.jobs.payments_by_job"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
subject: i18n.t("printcenter.jobs.supplement_request"),
|
subject: i18n.t("printcenter.jobs.payments_by_job"),
|
||||||
key: "supplement_request",
|
key: "payments_by_job",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
},
|
},
|
||||||
final_invoice: {
|
final_invoice: {
|
||||||
title: i18n.t("printcenter.jobs.final_invoice"),
|
title: i18n.t("printcenter.jobs.final_invoice"),
|
||||||
@@ -110,6 +195,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.final_invoice"),
|
subject: i18n.t("printcenter.jobs.final_invoice"),
|
||||||
key: "final_invoice",
|
key: "final_invoice",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
},
|
},
|
||||||
payment_request: {
|
payment_request: {
|
||||||
title: i18n.t("printcenter.jobs.payment_request"),
|
title: i18n.t("printcenter.jobs.payment_request"),
|
||||||
@@ -117,6 +203,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.payment_request"),
|
subject: i18n.t("printcenter.jobs.payment_request"),
|
||||||
key: "payment_request",
|
key: "payment_request",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
},
|
},
|
||||||
invoice_total_payable: {
|
invoice_total_payable: {
|
||||||
title: i18n.t("printcenter.jobs.invoice_total_payable"),
|
title: i18n.t("printcenter.jobs.invoice_total_payable"),
|
||||||
@@ -124,6 +211,7 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.invoice_total_payable"),
|
subject: i18n.t("printcenter.jobs.invoice_total_payable"),
|
||||||
key: "invoice_total_payable",
|
key: "invoice_total_payable",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
},
|
},
|
||||||
invoice_customer_payable: {
|
invoice_customer_payable: {
|
||||||
title: i18n.t("printcenter.jobs.invoice_customer_payable"),
|
title: i18n.t("printcenter.jobs.invoice_customer_payable"),
|
||||||
@@ -131,55 +219,16 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.invoice_customer_payable"),
|
subject: i18n.t("printcenter.jobs.invoice_customer_payable"),
|
||||||
key: "invoice_customer_payable",
|
key: "invoice_customer_payable",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "financial",
|
||||||
},
|
},
|
||||||
parts_order_history: {
|
|
||||||
title: i18n.t("printcenter.jobs.parts_order_history"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.parts_order_history"),
|
|
||||||
key: "parts_order_history",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
glass_express_checklist: {
|
|
||||||
title: i18n.t("printcenter.jobs.glass_express_checklist"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.glass_express_checklist"),
|
|
||||||
key: "glass_express_checklist",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
estimate: {
|
|
||||||
title: i18n.t("printcenter.jobs.estimate"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.estimate"),
|
|
||||||
key: "estimate",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
parts_list: {
|
|
||||||
title: i18n.t("printcenter.jobs.parts_list"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.parts_list"),
|
|
||||||
key: "parts_list",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
coversheet_portrait: {
|
|
||||||
title: i18n.t("printcenter.jobs.coversheet_portrait"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.coversheet_portrait"),
|
|
||||||
key: "coversheet_portrait",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
coversheet_landscape: {
|
|
||||||
title: i18n.t("printcenter.jobs.coversheet_landscape"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.coversheet_landscape"),
|
|
||||||
key: "coversheet_landscape",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
filing_coversheet_portrait: {
|
filing_coversheet_portrait: {
|
||||||
title: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
title: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
subject: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
subject: i18n.t("printcenter.jobs.filing_coversheet_portrait"),
|
||||||
key: "filing_coversheet_portrait",
|
key: "filing_coversheet_portrait",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "post",
|
||||||
},
|
},
|
||||||
qc_sheet: {
|
qc_sheet: {
|
||||||
title: i18n.t("printcenter.jobs.qc_sheet"),
|
title: i18n.t("printcenter.jobs.qc_sheet"),
|
||||||
@@ -187,41 +236,25 @@ export const TemplateList = (type, context) => {
|
|||||||
subject: i18n.t("printcenter.jobs.qc_sheet"),
|
subject: i18n.t("printcenter.jobs.qc_sheet"),
|
||||||
key: "qc_sheet",
|
key: "qc_sheet",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "post",
|
||||||
},
|
},
|
||||||
estimate_followup: {
|
|
||||||
title: i18n.t("printcenter.jobs.estimate_followup"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.estimate_followup"),
|
|
||||||
key: "estimate_followup",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
vehicle_delivery_check: {
|
vehicle_delivery_check: {
|
||||||
title: i18n.t("printcenter.jobs.vehicle_delivery_check"),
|
title: i18n.t("printcenter.jobs.vehicle_delivery_check"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
subject: i18n.t("printcenter.jobs.vehicle_delivery_check"),
|
subject: i18n.t("printcenter.jobs.vehicle_delivery_check"),
|
||||||
key: "vehicle_delivery_check",
|
key: "vehicle_delivery_check",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
group: "post",
|
||||||
},
|
},
|
||||||
express_repair_checklist: {
|
|
||||||
title: i18n.t("printcenter.jobs.express_repair_checklist"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.express_repair_checklist"),
|
|
||||||
key: "express_repair_checklist",
|
|
||||||
disabled: false,
|
|
||||||
},
|
|
||||||
guarantee: {
|
guarantee: {
|
||||||
title: i18n.t("printcenter.jobs.guarantee"),
|
title: i18n.t("printcenter.jobs.guarantee"),
|
||||||
description: "All Jobs Notes",
|
description: "All Jobs Notes",
|
||||||
subject: i18n.t("printcenter.jobs.guarantee"),
|
subject: i18n.t("printcenter.jobs.guarantee"),
|
||||||
key: "guarantee",
|
key: "guarantee",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
group: "post",
|
||||||
vehicle_check_in: {
|
|
||||||
title: i18n.t("printcenter.jobs.vehicle_check_in"),
|
|
||||||
description: "All Jobs Notes",
|
|
||||||
subject: i18n.t("printcenter.jobs.vehicle_check_in"),
|
|
||||||
key: "vehicle_check_in",
|
|
||||||
disabled: false,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
@@ -462,6 +495,22 @@ export const TemplateList = (type, context) => {
|
|||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
estimator_detail: {
|
||||||
|
title: i18n.t("reportcenter.templates.estimator_detail"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.estimator_detail"),
|
||||||
|
key: "estimator_detail",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
|
estimator_summary: {
|
||||||
|
title: i18n.t("reportcenter.templates.estimator_summary"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.estimator_summary"),
|
||||||
|
key: "estimator_summary",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
...(!type || type === "courtesycarcontract"
|
...(!type || type === "courtesycarcontract"
|
||||||
|
|||||||
@@ -2178,14 +2178,6 @@
|
|||||||
prop-types "^15.7.2"
|
prop-types "^15.7.2"
|
||||||
react-use "^17.2.1"
|
react-use "^17.2.1"
|
||||||
|
|
||||||
"@tinymce/tinymce-react@^3.10.3":
|
|
||||||
version "3.12.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@tinymce/tinymce-react/-/tinymce-react-3.12.0.tgz#165f197011b0fef3178f82168735e18ee28bd38a"
|
|
||||||
integrity sha512-Mi/nOsJ8CAVlcX+6YuvSvlFzJ2/n9rZ4iDrU2WX2u1wBTugHvKGca26JGEIT5wKRlfXGv49ymriWQz7w00v0NA==
|
|
||||||
dependencies:
|
|
||||||
prop-types "^15.6.2"
|
|
||||||
tinymce "^5.7.1"
|
|
||||||
|
|
||||||
"@types/anymatch@*":
|
"@types/anymatch@*":
|
||||||
version "1.3.1"
|
version "1.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
|
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
|
||||||
@@ -12852,11 +12844,6 @@ tinycolor2@^1.4.1:
|
|||||||
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
|
resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.2.tgz#3f6a4d1071ad07676d7fa472e1fac40a719d8803"
|
||||||
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
|
integrity sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==
|
||||||
|
|
||||||
tinymce@^5.7.1:
|
|
||||||
version "5.7.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/tinymce/-/tinymce-5.7.1.tgz#658a6fb4c7d53a8496cc00f8da33f4b8290da06d"
|
|
||||||
integrity sha512-1gY8RClc734srSlkYwY0MQzmkS1j73PuPC+nYtNtrrQVPY9VNcZ4bOiRwzTbdjPPD8GOtv6BAk8Ww/H2RiqKpA==
|
|
||||||
|
|
||||||
tmpl@1.0.x:
|
tmpl@1.0.x:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1"
|
||||||
|
|||||||
414
package-lock.json
generated
414
package-lock.json
generated
@@ -29,7 +29,7 @@
|
|||||||
"phone": "^2.4.20",
|
"phone": "^2.4.20",
|
||||||
"stripe": "^8.137.0",
|
"stripe": "^8.137.0",
|
||||||
"twilio": "^3.56.0",
|
"twilio": "^3.56.0",
|
||||||
"xmlbuilder": "^15.1.1"
|
"xmlbuilder2": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^6.0.0",
|
"concurrently": "^6.0.0",
|
||||||
@@ -332,9 +332,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@google-cloud/storage": {
|
"node_modules/@google-cloud/storage": {
|
||||||
"version": "5.8.2",
|
"version": "5.8.3",
|
||||||
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.8.2.tgz",
|
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.8.3.tgz",
|
||||||
"integrity": "sha512-R4MOLHhIbsQUqfQufV9QmYfxPE3TDJD+nwVOoN8mOKOx+XoVRm1ZoXaN5vwUMCBCHsDsgpWu7y9d6YvA+POXrg==",
|
"integrity": "sha512-g++NTmpmwbZZEnBhJi3y1D3YyZ2Y+1xL5blp96eeJhffginMym5tRw/AGNZblDI35U2K1FTJEYqIZ31tbEzs8w==",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/common": "^3.6.0",
|
"@google-cloud/common": "^3.6.0",
|
||||||
@@ -424,6 +424,50 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@jonkemp/package-utils/-/package-utils-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@jonkemp/package-utils/-/package-utils-1.0.7.tgz",
|
||||||
"integrity": "sha512-OoK+K1RmhtS8SlORrlH7sW0CNdrnm0BxKNcv4pQIk6y6VORsHiX91gV3dh6XD2eS7J+iCXROcu5sGuH0tjmNEQ=="
|
"integrity": "sha512-OoK+K1RmhtS8SlORrlH7sW0CNdrnm0BxKNcv4pQIk6y6VORsHiX91gV3dh6XD2eS7J+iCXROcu5sGuH0tjmNEQ=="
|
||||||
},
|
},
|
||||||
|
"node_modules/@oozcitak/dom": {
|
||||||
|
"version": "1.15.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.8.tgz",
|
||||||
|
"integrity": "sha512-MoOnLBNsF+ok0HjpAvxYxR4piUhRDCEWK0ot3upwOOHYudJd30j6M+LNcE8RKpwfnclAX9T66nXXzkytd29XSw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/url": "1.0.4",
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@oozcitak/infra": {
|
||||||
|
"version": "1.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
||||||
|
"integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@oozcitak/url": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@oozcitak/util": {
|
||||||
|
"version": "8.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
||||||
|
"integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@protobufjs/aspromise": {
|
"node_modules/@protobufjs/aspromise": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
||||||
@@ -572,9 +616,9 @@
|
|||||||
"peer": true
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "14.14.35",
|
"version": "14.14.37",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.37.tgz",
|
||||||
"integrity": "sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag=="
|
"integrity": "sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw=="
|
||||||
},
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
"version": "2.4.0",
|
"version": "2.4.0",
|
||||||
@@ -739,7 +783,6 @@
|
|||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sprintf-js": "~1.0.2"
|
"sprintf-js": "~1.0.2"
|
||||||
}
|
}
|
||||||
@@ -1327,9 +1370,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cross-fetch": {
|
"node_modules/cross-fetch": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.3.tgz",
|
||||||
"integrity": "sha512-+JhD65rDNqLbGmB3Gzs3HrEKC0aQnD+XA3SY6RjgkF88jV2q5cTc5+CwxlS3sdmLk98gpPt5CF9XRnPdlxZe6w==",
|
"integrity": "sha512-2i6v88DTqVBNODyjD9U6Ycn/uSZNvyHe25cIbo2fFnAACAsaLTJsd23miRWiR5NuiGXR9wpJ9d40/9WAhjDIrw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-fetch": "2.6.1"
|
"node-fetch": "2.6.1"
|
||||||
}
|
}
|
||||||
@@ -1797,9 +1840,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint": {
|
"node_modules/eslint": {
|
||||||
"version": "7.22.0",
|
"version": "7.23.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.22.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.23.0.tgz",
|
||||||
"integrity": "sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg==",
|
"integrity": "sha512-kqvNVbdkjzpFy0XOszNwjkKzZ+6TcwCQ/h+ozlcIWwaimBBuhlQ4nN6kbiM2L+OjDcznkTJxzYfRFH92sx4a0Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "7.12.11",
|
"@babel/code-frame": "7.12.11",
|
||||||
@@ -2201,9 +2244,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/firebase-admin": {
|
"node_modules/firebase-admin": {
|
||||||
"version": "9.5.0",
|
"version": "9.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-9.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-9.6.0.tgz",
|
||||||
"integrity": "sha512-OPXFOTDcAE+NORpfhq7YMEDk+vFClBtjfpkrjm2JHRxb8DpMm+K3AcusonFPU/WOH4FhiVN9JHB0+NPE20S3gQ==",
|
"integrity": "sha512-GNrxsQsZ6alz9u+uYmX84qcixxYQnfOrByxVgEHWiCI9JSCbMOQ/1Px2A6+Coz5zzFokTgXsHnIg+Qz7hMlNZg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@firebase/database": "^0.8.1",
|
"@firebase/database": "^0.8.1",
|
||||||
"@firebase/database-types": "^0.6.1",
|
"@firebase/database-types": "^0.6.1",
|
||||||
@@ -2221,9 +2264,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/firebase-admin/node_modules/@types/node": {
|
"node_modules/firebase-admin/node_modules/@types/node": {
|
||||||
"version": "10.17.55",
|
"version": "10.17.56",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.55.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.56.tgz",
|
||||||
"integrity": "sha512-koZJ89uLZufDvToeWO5BrC4CR4OUfHnUz2qoPs/daQH6qq3IN62QFxCTZ+bKaCE0xaoCAJYE4AXre8AbghCrhg=="
|
"integrity": "sha512-LuAa6t1t0Bfw4CuSR0UITsm1hP17YL+u82kfHGrHUWdhlBtH7sa7jGY5z7glGaIj/WDYDkRtgGd+KCjCzxBW1w=="
|
||||||
},
|
},
|
||||||
"node_modules/flat-cache": {
|
"node_modules/flat-cache": {
|
||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
@@ -2920,6 +2963,21 @@
|
|||||||
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
|
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/is-boolean-object": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"call-bind": "^1.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/is-core-module": {
|
"node_modules/is-core-module": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz",
|
||||||
@@ -2977,6 +3035,18 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/is-number-object": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/is-obj": {
|
"node_modules/is-obj": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
||||||
@@ -3000,6 +3070,18 @@
|
|||||||
"integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
|
"integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"node_modules/is-string": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/is-typedarray": {
|
"node_modules/is-typedarray": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
||||||
@@ -3291,6 +3373,12 @@
|
|||||||
"integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
|
"integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"node_modules/lodash.clonedeep": {
|
||||||
|
"version": "4.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
|
||||||
|
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/lodash.defaults": {
|
"node_modules/lodash.defaults": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
|
||||||
@@ -3376,6 +3464,12 @@
|
|||||||
"resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
|
||||||
"integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
|
"integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
|
||||||
},
|
},
|
||||||
|
"node_modules/lodash.truncate": {
|
||||||
|
"version": "4.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
|
||||||
|
"integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/logform": {
|
"node_modules/logform": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz",
|
||||||
@@ -3997,9 +4091,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/protobufjs/node_modules/@types/node": {
|
"node_modules/protobufjs/node_modules/@types/node": {
|
||||||
"version": "13.13.47",
|
"version": "13.13.48",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.47.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.48.tgz",
|
||||||
"integrity": "sha512-R6851wTjN1YJza8ZIeX6puNBSi/ZULHVh4WVleA7q256l+cP2EtXnKbO455fTs2ytQk3dL9qkU+Wh8l/uROdKg==",
|
"integrity": "sha512-z8wvSsgWQzkr4sVuMEEOvwMdOQjiRY2Y/ZW4fDfjfe3+TfQrZqFKOthBgk2RnVEmtOKrkwdZ7uTvsxTBLjKGDQ==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"node_modules/proxy-addr": {
|
"node_modules/proxy-addr": {
|
||||||
@@ -4349,6 +4443,14 @@
|
|||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
},
|
},
|
||||||
|
"node_modules/remote-content/node_modules/netmask": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-gB8eG6ubxz67c7O2gaGiyWdRUIbH61q7anjgueDqCC9kvIs/b4CTtCMaQKeJbv1/Y7FT19I4zKwYmjnjInRQsg==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/remote-content/node_modules/pac-proxy-agent": {
|
"node_modules/remote-content/node_modules/pac-proxy-agent": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-4.1.0.tgz",
|
||||||
@@ -4369,13 +4471,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/remote-content/node_modules/pac-resolver": {
|
"node_modules/remote-content/node_modules/pac-resolver": {
|
||||||
"version": "4.1.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-4.2.0.tgz",
|
||||||
"integrity": "sha512-d6lf2IrZJJ7ooVHr7BfwSjRO1yKSJMaiiWYSHcrxSIUtZrCa4KKGwcztdkZ/E9LFleJfjoi1yl+XLR7AX24nbQ==",
|
"integrity": "sha512-rPACZdUyuxT5Io/gFKUeeZFfE5T7ve7cAkE5TUZRRfuKP0u5Hocwe48X7ZEm6mYB+bTB0Qf+xlVlA/RM/i6RCQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"degenerator": "^2.2.0",
|
"degenerator": "^2.2.0",
|
||||||
"ip": "^1.1.5",
|
"ip": "^1.1.5",
|
||||||
"netmask": "^1.0.6"
|
"netmask": "^2.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
@@ -4622,9 +4724,9 @@
|
|||||||
"integrity": "sha1-NipCxtMEBW1JOz8SvOq7LGV2ptQ="
|
"integrity": "sha1-NipCxtMEBW1JOz8SvOq7LGV2ptQ="
|
||||||
},
|
},
|
||||||
"node_modules/rxjs": {
|
"node_modules/rxjs": {
|
||||||
"version": "6.6.6",
|
"version": "6.6.7",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
"integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==",
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^1.9.0"
|
"tslib": "^1.9.0"
|
||||||
@@ -4940,8 +5042,7 @@
|
|||||||
"node_modules/sprintf-js": {
|
"node_modules/sprintf-js": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||||
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
|
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"node_modules/stack-trace": {
|
"node_modules/stack-trace": {
|
||||||
"version": "0.0.10",
|
"version": "0.0.10",
|
||||||
@@ -5056,9 +5157,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/stripe": {
|
"node_modules/stripe": {
|
||||||
"version": "8.139.0",
|
"version": "8.141.0",
|
||||||
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.139.0.tgz",
|
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.141.0.tgz",
|
||||||
"integrity": "sha512-3Lggs0mgy8gPzIDvLGYmx5ghQuTu+nvSUBCv9Di4FekvJ5iP7nenlrOk7A4cidF1nokamKm/bCIRYxIeDv5xYQ==",
|
"integrity": "sha512-CRGmx1WYENj16L37TujJg+KscGn8LbYbXqRCPdaepr7BzHIdAFJfQhNfdFkShW5Z9rbmo6mA2fiAOf1S3FIoSw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": ">=8.1.0",
|
"@types/node": ">=8.1.0",
|
||||||
"qs": "^6.6.0"
|
"qs": "^6.6.0"
|
||||||
@@ -5203,13 +5304,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/table": {
|
"node_modules/table": {
|
||||||
"version": "6.0.7",
|
"version": "6.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/table/-/table-6.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/table/-/table-6.0.9.tgz",
|
||||||
"integrity": "sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g==",
|
"integrity": "sha512-F3cLs9a3hL1Z7N4+EkSscsel3z55XT950AvB05bwayrNg5T1/gykXtigioTAjbltvbMSJvvhFCbnf6mX+ntnJQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^7.0.2",
|
"ajv": "^8.0.1",
|
||||||
"lodash": "^4.17.20",
|
"is-boolean-object": "^1.1.0",
|
||||||
|
"is-number-object": "^1.0.4",
|
||||||
|
"is-string": "^1.0.5",
|
||||||
|
"lodash.clonedeep": "^4.5.0",
|
||||||
|
"lodash.flatten": "^4.4.0",
|
||||||
|
"lodash.truncate": "^4.4.2",
|
||||||
"slice-ansi": "^4.0.0",
|
"slice-ansi": "^4.0.0",
|
||||||
"string-width": "^4.2.0"
|
"string-width": "^4.2.0"
|
||||||
},
|
},
|
||||||
@@ -5218,9 +5324,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/table/node_modules/ajv": {
|
"node_modules/table/node_modules/ajv": {
|
||||||
"version": "7.2.3",
|
"version": "8.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.0.2.tgz",
|
||||||
"integrity": "sha512-idv5WZvKVXDqKralOImQgPM9v6WOdLNa0IY3B3doOjw/YxRGT8I+allIJ6kd7Uaj+SF1xZUSU+nPM5aDNBVtnw==",
|
"integrity": "sha512-V0HGxJd0PiDF0ecHYIesTOqfd1gJguwQUOYfMfAWnRsWQEXfc5ifbUFhD3Wjc+O+y7VAqL+g07prq9gHQ/JOZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fast-deep-equal": "^3.1.1",
|
"fast-deep-equal": "^3.1.1",
|
||||||
@@ -5741,12 +5847,36 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/xmlbuilder": {
|
"node_modules/xmlbuilder2": {
|
||||||
"version": "15.1.1",
|
"version": "2.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-2.4.0.tgz",
|
||||||
"integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
|
"integrity": "sha512-KrOVUGD65xTQ7ZA+GMQGdBSpe1Ufu5ylCQSYVk6QostySDkxPmAQ0WWIu7dR3JjLfVbF22RFQX7KyrZ6VTLcQg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@oozcitak/dom": "1.15.8",
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/util": "8.3.8",
|
||||||
|
"@types/node": "14.6.2",
|
||||||
|
"js-yaml": "3.14.0"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0"
|
"node": ">=10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/xmlbuilder2/node_modules/@types/node": {
|
||||||
|
"version": "14.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.2.tgz",
|
||||||
|
"integrity": "sha512-onlIwbaeqvZyniGPfdw/TEhKIh79pz66L1q06WUQqJLnAb6wbjvOtepLYTGHTqzdXgBYIE3ZdmqHDGsRsbBz7A=="
|
||||||
|
},
|
||||||
|
"node_modules/xmlbuilder2/node_modules/js-yaml": {
|
||||||
|
"version": "3.14.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
|
||||||
|
"integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
|
||||||
|
"dependencies": {
|
||||||
|
"argparse": "^1.0.7",
|
||||||
|
"esprima": "^4.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"js-yaml": "bin/js-yaml.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/xregexp": {
|
"node_modules/xregexp": {
|
||||||
@@ -6053,9 +6183,9 @@
|
|||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@google-cloud/storage": {
|
"@google-cloud/storage": {
|
||||||
"version": "5.8.2",
|
"version": "5.8.3",
|
||||||
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.8.2.tgz",
|
"resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.8.3.tgz",
|
||||||
"integrity": "sha512-R4MOLHhIbsQUqfQufV9QmYfxPE3TDJD+nwVOoN8mOKOx+XoVRm1ZoXaN5vwUMCBCHsDsgpWu7y9d6YvA+POXrg==",
|
"integrity": "sha512-g++NTmpmwbZZEnBhJi3y1D3YyZ2Y+1xL5blp96eeJhffginMym5tRw/AGNZblDI35U2K1FTJEYqIZ31tbEzs8w==",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@google-cloud/common": "^3.6.0",
|
"@google-cloud/common": "^3.6.0",
|
||||||
@@ -6132,6 +6262,38 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@jonkemp/package-utils/-/package-utils-1.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@jonkemp/package-utils/-/package-utils-1.0.7.tgz",
|
||||||
"integrity": "sha512-OoK+K1RmhtS8SlORrlH7sW0CNdrnm0BxKNcv4pQIk6y6VORsHiX91gV3dh6XD2eS7J+iCXROcu5sGuH0tjmNEQ=="
|
"integrity": "sha512-OoK+K1RmhtS8SlORrlH7sW0CNdrnm0BxKNcv4pQIk6y6VORsHiX91gV3dh6XD2eS7J+iCXROcu5sGuH0tjmNEQ=="
|
||||||
},
|
},
|
||||||
|
"@oozcitak/dom": {
|
||||||
|
"version": "1.15.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.8.tgz",
|
||||||
|
"integrity": "sha512-MoOnLBNsF+ok0HjpAvxYxR4piUhRDCEWK0ot3upwOOHYudJd30j6M+LNcE8RKpwfnclAX9T66nXXzkytd29XSw==",
|
||||||
|
"requires": {
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/url": "1.0.4",
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@oozcitak/infra": {
|
||||||
|
"version": "1.0.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz",
|
||||||
|
"integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==",
|
||||||
|
"requires": {
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@oozcitak/url": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==",
|
||||||
|
"requires": {
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/util": "8.3.8"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@oozcitak/util": {
|
||||||
|
"version": "8.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz",
|
||||||
|
"integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ=="
|
||||||
|
},
|
||||||
"@protobufjs/aspromise": {
|
"@protobufjs/aspromise": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
|
||||||
@@ -6277,9 +6439,9 @@
|
|||||||
"peer": true
|
"peer": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "14.14.35",
|
"version": "14.14.37",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.35.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.37.tgz",
|
||||||
"integrity": "sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag=="
|
"integrity": "sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw=="
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
"version": "2.4.0",
|
"version": "2.4.0",
|
||||||
@@ -6405,7 +6567,6 @@
|
|||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"sprintf-js": "~1.0.2"
|
"sprintf-js": "~1.0.2"
|
||||||
}
|
}
|
||||||
@@ -6885,9 +7046,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cross-fetch": {
|
"cross-fetch": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.3.tgz",
|
||||||
"integrity": "sha512-+JhD65rDNqLbGmB3Gzs3HrEKC0aQnD+XA3SY6RjgkF88jV2q5cTc5+CwxlS3sdmLk98gpPt5CF9XRnPdlxZe6w==",
|
"integrity": "sha512-2i6v88DTqVBNODyjD9U6Ycn/uSZNvyHe25cIbo2fFnAACAsaLTJsd23miRWiR5NuiGXR9wpJ9d40/9WAhjDIrw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"node-fetch": "2.6.1"
|
"node-fetch": "2.6.1"
|
||||||
}
|
}
|
||||||
@@ -7267,9 +7428,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"eslint": {
|
"eslint": {
|
||||||
"version": "7.22.0",
|
"version": "7.23.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.22.0.tgz",
|
"resolved": "https://registry.npmjs.org/eslint/-/eslint-7.23.0.tgz",
|
||||||
"integrity": "sha512-3VawOtjSJUQiiqac8MQc+w457iGLfuNGLFn8JmF051tTKbh5/x/0vlcEj8OgDCaw7Ysa2Jn8paGshV7x2abKXg==",
|
"integrity": "sha512-kqvNVbdkjzpFy0XOszNwjkKzZ+6TcwCQ/h+ozlcIWwaimBBuhlQ4nN6kbiM2L+OjDcznkTJxzYfRFH92sx4a0Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "7.12.11",
|
"@babel/code-frame": "7.12.11",
|
||||||
@@ -7588,9 +7749,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"firebase-admin": {
|
"firebase-admin": {
|
||||||
"version": "9.5.0",
|
"version": "9.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-9.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-9.6.0.tgz",
|
||||||
"integrity": "sha512-OPXFOTDcAE+NORpfhq7YMEDk+vFClBtjfpkrjm2JHRxb8DpMm+K3AcusonFPU/WOH4FhiVN9JHB0+NPE20S3gQ==",
|
"integrity": "sha512-GNrxsQsZ6alz9u+uYmX84qcixxYQnfOrByxVgEHWiCI9JSCbMOQ/1Px2A6+Coz5zzFokTgXsHnIg+Qz7hMlNZg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@firebase/database": "^0.8.1",
|
"@firebase/database": "^0.8.1",
|
||||||
"@firebase/database-types": "^0.6.1",
|
"@firebase/database-types": "^0.6.1",
|
||||||
@@ -7603,9 +7764,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "10.17.55",
|
"version": "10.17.56",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.55.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.56.tgz",
|
||||||
"integrity": "sha512-koZJ89uLZufDvToeWO5BrC4CR4OUfHnUz2qoPs/daQH6qq3IN62QFxCTZ+bKaCE0xaoCAJYE4AXre8AbghCrhg=="
|
"integrity": "sha512-LuAa6t1t0Bfw4CuSR0UITsm1hP17YL+u82kfHGrHUWdhlBtH7sa7jGY5z7glGaIj/WDYDkRtgGd+KCjCzxBW1w=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -8154,6 +8315,15 @@
|
|||||||
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
|
"integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"is-boolean-object": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-a7Uprx8UtD+HWdyYwnD1+ExtTgqQtD2k/1yJgtXP6wnMm8byhkoTZRl+95LLThpzNZJ5aEvi46cdH+ayMFRwmA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"call-bind": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"is-core-module": {
|
"is-core-module": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz",
|
||||||
@@ -8190,6 +8360,12 @@
|
|||||||
"is-extglob": "^2.1.1"
|
"is-extglob": "^2.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"is-number-object": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz",
|
||||||
|
"integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"is-obj": {
|
"is-obj": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
|
||||||
@@ -8207,6 +8383,12 @@
|
|||||||
"integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
|
"integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"is-string": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"is-typedarray": {
|
"is-typedarray": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
||||||
@@ -8468,6 +8650,12 @@
|
|||||||
"integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
|
"integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"lodash.clonedeep": {
|
||||||
|
"version": "4.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
|
||||||
|
"integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"lodash.defaults": {
|
"lodash.defaults": {
|
||||||
"version": "4.2.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
|
||||||
@@ -8553,6 +8741,12 @@
|
|||||||
"resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
|
||||||
"integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
|
"integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
|
||||||
},
|
},
|
||||||
|
"lodash.truncate": {
|
||||||
|
"version": "4.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
|
||||||
|
"integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"logform": {
|
"logform": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz",
|
||||||
@@ -9052,9 +9246,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "13.13.47",
|
"version": "13.13.48",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.47.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.48.tgz",
|
||||||
"integrity": "sha512-R6851wTjN1YJza8ZIeX6puNBSi/ZULHVh4WVleA7q256l+cP2EtXnKbO455fTs2ytQk3dL9qkU+Wh8l/uROdKg==",
|
"integrity": "sha512-z8wvSsgWQzkr4sVuMEEOvwMdOQjiRY2Y/ZW4fDfjfe3+TfQrZqFKOthBgk2RnVEmtOKrkwdZ7uTvsxTBLjKGDQ==",
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9335,6 +9529,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
},
|
},
|
||||||
|
"netmask": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-gB8eG6ubxz67c7O2gaGiyWdRUIbH61q7anjgueDqCC9kvIs/b4CTtCMaQKeJbv1/Y7FT19I4zKwYmjnjInRQsg=="
|
||||||
|
},
|
||||||
"pac-proxy-agent": {
|
"pac-proxy-agent": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-4.1.0.tgz",
|
||||||
@@ -9352,13 +9551,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pac-resolver": {
|
"pac-resolver": {
|
||||||
"version": "4.1.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-4.2.0.tgz",
|
||||||
"integrity": "sha512-d6lf2IrZJJ7ooVHr7BfwSjRO1yKSJMaiiWYSHcrxSIUtZrCa4KKGwcztdkZ/E9LFleJfjoi1yl+XLR7AX24nbQ==",
|
"integrity": "sha512-rPACZdUyuxT5Io/gFKUeeZFfE5T7ve7cAkE5TUZRRfuKP0u5Hocwe48X7ZEm6mYB+bTB0Qf+xlVlA/RM/i6RCQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"degenerator": "^2.2.0",
|
"degenerator": "^2.2.0",
|
||||||
"ip": "^1.1.5",
|
"ip": "^1.1.5",
|
||||||
"netmask": "^1.0.6"
|
"netmask": "^2.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"proxy-agent": {
|
"proxy-agent": {
|
||||||
@@ -9547,9 +9746,9 @@
|
|||||||
"integrity": "sha1-NipCxtMEBW1JOz8SvOq7LGV2ptQ="
|
"integrity": "sha1-NipCxtMEBW1JOz8SvOq7LGV2ptQ="
|
||||||
},
|
},
|
||||||
"rxjs": {
|
"rxjs": {
|
||||||
"version": "6.6.6",
|
"version": "6.6.7",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
|
||||||
"integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==",
|
"integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^1.9.0"
|
"tslib": "^1.9.0"
|
||||||
@@ -9804,8 +10003,7 @@
|
|||||||
"sprintf-js": {
|
"sprintf-js": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||||
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
|
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"stack-trace": {
|
"stack-trace": {
|
||||||
"version": "0.0.10",
|
"version": "0.0.10",
|
||||||
@@ -9884,9 +10082,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"stripe": {
|
"stripe": {
|
||||||
"version": "8.139.0",
|
"version": "8.141.0",
|
||||||
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.139.0.tgz",
|
"resolved": "https://registry.npmjs.org/stripe/-/stripe-8.141.0.tgz",
|
||||||
"integrity": "sha512-3Lggs0mgy8gPzIDvLGYmx5ghQuTu+nvSUBCv9Di4FekvJ5iP7nenlrOk7A4cidF1nokamKm/bCIRYxIeDv5xYQ==",
|
"integrity": "sha512-CRGmx1WYENj16L37TujJg+KscGn8LbYbXqRCPdaepr7BzHIdAFJfQhNfdFkShW5Z9rbmo6mA2fiAOf1S3FIoSw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/node": ">=8.1.0",
|
"@types/node": ">=8.1.0",
|
||||||
"qs": "^6.6.0"
|
"qs": "^6.6.0"
|
||||||
@@ -10011,21 +10209,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"version": "6.0.7",
|
"version": "6.0.9",
|
||||||
"resolved": "https://registry.npmjs.org/table/-/table-6.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/table/-/table-6.0.9.tgz",
|
||||||
"integrity": "sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g==",
|
"integrity": "sha512-F3cLs9a3hL1Z7N4+EkSscsel3z55XT950AvB05bwayrNg5T1/gykXtigioTAjbltvbMSJvvhFCbnf6mX+ntnJQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ajv": "^7.0.2",
|
"ajv": "^8.0.1",
|
||||||
"lodash": "^4.17.20",
|
"is-boolean-object": "^1.1.0",
|
||||||
|
"is-number-object": "^1.0.4",
|
||||||
|
"is-string": "^1.0.5",
|
||||||
|
"lodash.clonedeep": "^4.5.0",
|
||||||
|
"lodash.flatten": "^4.4.0",
|
||||||
|
"lodash.truncate": "^4.4.2",
|
||||||
"slice-ansi": "^4.0.0",
|
"slice-ansi": "^4.0.0",
|
||||||
"string-width": "^4.2.0"
|
"string-width": "^4.2.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": {
|
"ajv": {
|
||||||
"version": "7.2.3",
|
"version": "8.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.0.2.tgz",
|
||||||
"integrity": "sha512-idv5WZvKVXDqKralOImQgPM9v6WOdLNa0IY3B3doOjw/YxRGT8I+allIJ6kd7Uaj+SF1xZUSU+nPM5aDNBVtnw==",
|
"integrity": "sha512-V0HGxJd0PiDF0ecHYIesTOqfd1gJguwQUOYfMfAWnRsWQEXfc5ifbUFhD3Wjc+O+y7VAqL+g07prq9gHQ/JOZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fast-deep-equal": "^3.1.1",
|
"fast-deep-equal": "^3.1.1",
|
||||||
@@ -10443,10 +10646,33 @@
|
|||||||
"integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==",
|
"integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"xmlbuilder": {
|
"xmlbuilder2": {
|
||||||
"version": "15.1.1",
|
"version": "2.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-2.4.0.tgz",
|
||||||
"integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg=="
|
"integrity": "sha512-KrOVUGD65xTQ7ZA+GMQGdBSpe1Ufu5ylCQSYVk6QostySDkxPmAQ0WWIu7dR3JjLfVbF22RFQX7KyrZ6VTLcQg==",
|
||||||
|
"requires": {
|
||||||
|
"@oozcitak/dom": "1.15.8",
|
||||||
|
"@oozcitak/infra": "1.0.8",
|
||||||
|
"@oozcitak/util": "8.3.8",
|
||||||
|
"@types/node": "14.6.2",
|
||||||
|
"js-yaml": "3.14.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": {
|
||||||
|
"version": "14.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.2.tgz",
|
||||||
|
"integrity": "sha512-onlIwbaeqvZyniGPfdw/TEhKIh79pz66L1q06WUQqJLnAb6wbjvOtepLYTGHTqzdXgBYIE3ZdmqHDGsRsbBz7A=="
|
||||||
|
},
|
||||||
|
"js-yaml": {
|
||||||
|
"version": "3.14.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
|
||||||
|
"integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
|
||||||
|
"requires": {
|
||||||
|
"argparse": "^1.0.7",
|
||||||
|
"esprima": "^4.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"xregexp": {
|
"xregexp": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
"phone": "^2.4.20",
|
"phone": "^2.4.20",
|
||||||
"stripe": "^8.137.0",
|
"stripe": "^8.137.0",
|
||||||
"twilio": "^3.56.0",
|
"twilio": "^3.56.0",
|
||||||
"xmlbuilder": "^15.1.1"
|
"xmlbuilder2": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^6.0.0",
|
"concurrently": "^6.0.0",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const path = require("path");
|
|||||||
const DineroQbFormat = require("../accounting-constants").DineroQbFormat;
|
const DineroQbFormat = require("../accounting-constants").DineroQbFormat;
|
||||||
const queries = require("../../graphql-client/queries");
|
const queries = require("../../graphql-client/queries");
|
||||||
const Dinero = require("dinero.js");
|
const Dinero = require("dinero.js");
|
||||||
var builder = require("xmlbuilder");
|
var builder = require("xmlbuilder2");
|
||||||
const QbXmlUtils = require("./qbxml-utils");
|
const QbXmlUtils = require("./qbxml-utils");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const path = require("path");
|
|||||||
const DineroQbFormat = require("../accounting-constants").DineroQbFormat;
|
const DineroQbFormat = require("../accounting-constants").DineroQbFormat;
|
||||||
const queries = require("../../graphql-client/queries");
|
const queries = require("../../graphql-client/queries");
|
||||||
const Dinero = require("dinero.js");
|
const Dinero = require("dinero.js");
|
||||||
var builder = require("xmlbuilder");
|
var builder = require("xmlbuilder2");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
const QbXmlUtils = require("./qbxml-utils");
|
const QbXmlUtils = require("./qbxml-utils");
|
||||||
const QbxmlReceivables = require("./qbxml-receivables");
|
const QbxmlReceivables = require("./qbxml-receivables");
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const DineroQbFormat = require("../accounting-constants").DineroQbFormat;
|
|||||||
const queries = require("../../graphql-client/queries");
|
const queries = require("../../graphql-client/queries");
|
||||||
const Dinero = require("dinero.js");
|
const Dinero = require("dinero.js");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
var builder = require("xmlbuilder");
|
var builder = require("xmlbuilder2");
|
||||||
const QbXmlUtils = require("./qbxml-utils");
|
const QbXmlUtils = require("./qbxml-utils");
|
||||||
require("dotenv").config({
|
require("dotenv").config({
|
||||||
path: path.resolve(
|
path: path.resolve(
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
const GraphQLClient = require("graphql-request").GraphQLClient;
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const queries = require("../graphql-client/queries");
|
const queries = require("../graphql-client/queries");
|
||||||
const Dinero = require("dinero.js");
|
const Dinero = require("dinero.js");
|
||||||
const moment = require("moment");
|
const moment = require("moment");
|
||||||
var builder = require("xmlbuilder");
|
var builder = require("xmlbuilder2");
|
||||||
|
const _ = require("lodash");
|
||||||
|
|
||||||
require("dotenv").config({
|
require("dotenv").config({
|
||||||
path: path.resolve(
|
path: path.resolve(
|
||||||
@@ -11,325 +11,386 @@ require("dotenv").config({
|
|||||||
`.env.${process.env.NODE_ENV || "development"}`
|
`.env.${process.env.NODE_ENV || "development"}`
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
const client = require("../graphql-client/graphql-client").client;
|
const client = require("../graphql-client/graphql-client").client;
|
||||||
|
const AHDineroFormat = "0.00";
|
||||||
const AhDateFormat = "MMDDYYYY";
|
const AhDateFormat = "MMDDYYYY";
|
||||||
|
|
||||||
exports.default = async (req, res) => {
|
exports.default = async (req, res) => {
|
||||||
//Get Client Dataset.
|
//Get Client Dataset.
|
||||||
const { jobs } = await client.request(queries.AUTOHOUSE_QUERY);
|
const { jobs } = await client.request(queries.AUTOHOUSE_QUERY);
|
||||||
|
|
||||||
|
const erroredJobs = [];
|
||||||
|
|
||||||
const autoHouseObject = {
|
const autoHouseObject = {
|
||||||
AutoHouseExport: { RepairOrder: jobs.map((j) => CreateRepairOrderTag(j)) },
|
AutoHouseExport: {
|
||||||
};
|
RepairOrder: jobs.map((j) =>
|
||||||
|
CreateRepairOrderTag(j, (job, error) => {
|
||||||
var ret = builder
|
erroredJobs.push({ job, error });
|
||||||
.create(autoHouseObject, {
|
})
|
||||||
version: "1.0",
|
|
||||||
encoding: "UTF-8",
|
|
||||||
headless: false,
|
|
||||||
})
|
|
||||||
.end({ pretty: true });
|
|
||||||
|
|
||||||
res.type("application/xml");
|
|
||||||
res.send(ret);
|
|
||||||
};
|
|
||||||
|
|
||||||
const CreateRepairOrderTag = (job) => {
|
|
||||||
//Level 2
|
|
||||||
const ret = {
|
|
||||||
RepairOrderInformation: {
|
|
||||||
ShopInternalName: job.bodyshop.autohouseid,
|
|
||||||
ID: job.id,
|
|
||||||
RO: job.ro_number,
|
|
||||||
Est: job.id, //We no longer use estimate id.
|
|
||||||
GUID: job.id,
|
|
||||||
TransType: StatusMapping(job.status, job.bodyshop.md_ro_statuses),
|
|
||||||
ShopName: job.bodyshop.shopname,
|
|
||||||
ShopAddress: job.bodyshop.address1,
|
|
||||||
ShopCity: job.bodyshop.city,
|
|
||||||
ShopState: job.bodyshop.state,
|
|
||||||
ShopZip: job.bodyshop.zip_post,
|
|
||||||
ShopPhone: job.bodyshop.phone,
|
|
||||||
EstimatorID: `${job.est_ct_fn} ${job.est_ct_ln}`,
|
|
||||||
EstimatorName: `${job.est_ct_fn} ${job.est_ct_ln}`,
|
|
||||||
},
|
|
||||||
CustomerInformation: {
|
|
||||||
FirstName: null,
|
|
||||||
LastName: null,
|
|
||||||
Street: null,
|
|
||||||
City: null,
|
|
||||||
State: null,
|
|
||||||
Zip: "N6G",
|
|
||||||
Phone1: null,
|
|
||||||
Phone2: null,
|
|
||||||
Phone2Extension: null,
|
|
||||||
Phone3: null,
|
|
||||||
Phone3Extension: null,
|
|
||||||
FileComments: null,
|
|
||||||
Source: null,
|
|
||||||
Email: null,
|
|
||||||
RetWhsl: null,
|
|
||||||
Cat: null,
|
|
||||||
InsuredorClaimantFlag: null,
|
|
||||||
},
|
|
||||||
VehicleInformation: {
|
|
||||||
Year: job.v_model_yr,
|
|
||||||
Make: job.v_make_desc,
|
|
||||||
Model: job.v_model_desc,
|
|
||||||
VIN: job.v_vin,
|
|
||||||
License: job.plate_no,
|
|
||||||
MileageIn: job.kmin,
|
|
||||||
Vehiclecolor: job.v_color,
|
|
||||||
VehicleProductionDate: null,
|
|
||||||
VehiclePaintCode: null,
|
|
||||||
VehicleTrimCode: null,
|
|
||||||
VehicleBodyStyle: null,
|
|
||||||
DriveableFlag: job.tlos_ind ? "Y" : "N",
|
|
||||||
},
|
|
||||||
|
|
||||||
InsuranceInformation: {
|
|
||||||
InsuranceCo: job.ins_co_nm,
|
|
||||||
CompanyName: job.ins_co_nm,
|
|
||||||
Address: job.ins_addr1,
|
|
||||||
City: job.ins_addr1,
|
|
||||||
State: job.ins_city,
|
|
||||||
Zip: job.ins_zip,
|
|
||||||
Phone: job.ins_ph1,
|
|
||||||
Fax: null,
|
|
||||||
ClaimType: null,
|
|
||||||
LossType: null,
|
|
||||||
Policy: null,
|
|
||||||
Claim: job.clm_no,
|
|
||||||
InsuredLastName: null,
|
|
||||||
InsuredFirstName: null,
|
|
||||||
ClaimantLastName: null,
|
|
||||||
ClaimantFirstName: null,
|
|
||||||
Assignment: null,
|
|
||||||
InsuranceAgentLastName: null,
|
|
||||||
InsuranceAgentFirstName: null,
|
|
||||||
InsAgentPhone: null,
|
|
||||||
InsideAdjuster: null,
|
|
||||||
OutsideAdjuster: null,
|
|
||||||
},
|
|
||||||
Dates: {
|
|
||||||
DateofLoss: job.loss_date && moment(job.loss_date).format(AhDateFormat),
|
|
||||||
InitialCustomerContactDate: null,
|
|
||||||
FirstFollowUpDate: null,
|
|
||||||
ReferralDate: null,
|
|
||||||
EstimateAppointmentDate: null,
|
|
||||||
SecondFollowUpDate: null,
|
|
||||||
AssignedDate: null,
|
|
||||||
EstComplete: null,
|
|
||||||
CustomerAuthorizationDate: null,
|
|
||||||
InsuranceAuthorizationDate: null,
|
|
||||||
DateOpened: job.date_open && moment(job.date_open).format(AhDateFormat),
|
|
||||||
ScheduledArrivalDate:
|
|
||||||
job.scheduled_in && moment(job.scheduled_in).format(AhDateFormat),
|
|
||||||
CarinShop: job.actual_in && moment(job.actual_in).format(AhDateFormat),
|
|
||||||
InsInspDate: null,
|
|
||||||
StartDate: null,
|
|
||||||
PartsOrder: null,
|
|
||||||
TeardownHold: null,
|
|
||||||
SupplementSubmittedDate: null,
|
|
||||||
SupplementApprovedDate: null,
|
|
||||||
AssntoBody: null,
|
|
||||||
AssntoMech: null,
|
|
||||||
AssntoPaint: null,
|
|
||||||
AssntoDetail: null,
|
|
||||||
PromiseDate:
|
|
||||||
job.scheduled_completion &&
|
|
||||||
moment(job.scheduled_completion).format(AhDateFormat),
|
|
||||||
InsuranceTargetOut: null,
|
|
||||||
CarComplete:
|
|
||||||
job.actual_completion &&
|
|
||||||
moment(job.actual_completion).format(AhDateFormat),
|
|
||||||
DeliveryAppointmentDate:
|
|
||||||
job.scheduled_delivery &&
|
|
||||||
moment(job.scheduled_delivery).format(AhDateFormat),
|
|
||||||
DateClosed:
|
|
||||||
job.date_invoiced && moment(job.date_invoiced).format(AhDateFormat),
|
|
||||||
CustomerPaidInFullDate: null,
|
|
||||||
InsurancePaidInFullDate: null,
|
|
||||||
CustPickup:
|
|
||||||
job.actual_delivery && moment(job.actual_delivery).format(AhDateFormat),
|
|
||||||
AccountPostedDate:
|
|
||||||
job.date_exported && moment(job.date_exported).format(AhDateFormat),
|
|
||||||
CSIProcessedDate: null,
|
|
||||||
ThankYouLetterSent: null,
|
|
||||||
AdditionalFollowUpDate: null,
|
|
||||||
},
|
|
||||||
Rates: {
|
|
||||||
BodyRate: job.rate_lab,
|
|
||||||
RefinishRate: job.rate_lar,
|
|
||||||
MechanicalRate: job.rate_lam,
|
|
||||||
StructuralRate: job.rate_las,
|
|
||||||
PMRate: job.rate_mapa,
|
|
||||||
BMRate: job.rate_mash,
|
|
||||||
TaxRate: null,
|
|
||||||
StorageRateperDay: null,
|
|
||||||
DaysStored: null,
|
|
||||||
},
|
|
||||||
EstimateTotals: {
|
|
||||||
BodyHours: null,
|
|
||||||
RefinishHours: null,
|
|
||||||
MechanicalHours: null,
|
|
||||||
StructuralHours: null,
|
|
||||||
PartsTotal: null,
|
|
||||||
PartsOEM: null,
|
|
||||||
PartsAM: null,
|
|
||||||
PartsReconditioned: null,
|
|
||||||
PartsRecycled: null,
|
|
||||||
PartsOther: null,
|
|
||||||
SubletTotal: null,
|
|
||||||
BodyLaborTotal: null,
|
|
||||||
RefinishLaborTotal: null,
|
|
||||||
MechanicalLaborTotal: null,
|
|
||||||
StructuralLaborTotal: null,
|
|
||||||
MiscellaneousChargeTotal: null,
|
|
||||||
PMTotal: null,
|
|
||||||
BMTotal: null,
|
|
||||||
MiscTotal: null,
|
|
||||||
TowingTotal: null,
|
|
||||||
StorageTotal: null,
|
|
||||||
DetailTotal: null,
|
|
||||||
SalesTaxTotal: null,
|
|
||||||
GrossTotal: null,
|
|
||||||
DeductibleTotal: null,
|
|
||||||
DepreciationTotal: null,
|
|
||||||
Discount: null,
|
|
||||||
CustomerPay: null,
|
|
||||||
InsurancePay: null,
|
|
||||||
Deposit: null,
|
|
||||||
AmountDue: null,
|
|
||||||
},
|
|
||||||
SupplementTotals: {
|
|
||||||
BodyHours: null,
|
|
||||||
RefinishHours: null,
|
|
||||||
MechanicalHours: null,
|
|
||||||
StructuralHours: null,
|
|
||||||
PartsTotal: null,
|
|
||||||
PartsOEM: null,
|
|
||||||
PartsAM: null,
|
|
||||||
PartsReconditioned: null,
|
|
||||||
PartsRecycled: null,
|
|
||||||
PartsOther: null,
|
|
||||||
SubletTotal: null,
|
|
||||||
BodyLaborTotal: null,
|
|
||||||
RefinishLaborTotal: null,
|
|
||||||
MechanicalLaborTotal: null,
|
|
||||||
StructuralLaborTotal: null,
|
|
||||||
MiscellaneousChargeTotal: null,
|
|
||||||
PMTotal: null,
|
|
||||||
BMTotal: null,
|
|
||||||
MiscTotal: null,
|
|
||||||
TowingTotal: null,
|
|
||||||
StorageTotal: null,
|
|
||||||
DetailTotal: null,
|
|
||||||
SalesTaxTotal: null,
|
|
||||||
GrossTotal: null,
|
|
||||||
DeductibleTotal: null,
|
|
||||||
DepreciationTotal: null,
|
|
||||||
Discount: null,
|
|
||||||
CustomerPay: null,
|
|
||||||
InsurancePay: null,
|
|
||||||
Deposit: null,
|
|
||||||
AmountDue: null,
|
|
||||||
},
|
|
||||||
RevisedTotals: {
|
|
||||||
BodyHours: "10.10",
|
|
||||||
RefinishHours: "4.70",
|
|
||||||
MechanicalHours: "2.90",
|
|
||||||
StructuralHours: null,
|
|
||||||
PartsTotal: "2630.24",
|
|
||||||
PartsTotalCost: "1655.67",
|
|
||||||
PartsOEM: "969.49",
|
|
||||||
PartsOEMCost: "761.91",
|
|
||||||
PartsAM: "1660.75",
|
|
||||||
PartsAMCost: "893.76",
|
|
||||||
PartsReconditioned: null,
|
|
||||||
PartsReconditionedCost: null,
|
|
||||||
PartsRecycled: null,
|
|
||||||
PartsRecycledCost: null,
|
|
||||||
PartsOther: null,
|
|
||||||
PartsOtherCost: null,
|
|
||||||
SubletTotal: "139.95",
|
|
||||||
SubletTotalCost: "0.00",
|
|
||||||
BodyLaborTotal: "642.46",
|
|
||||||
BodyLaborTotalCost: "0.00",
|
|
||||||
RefinishLaborTotal: "298.97",
|
|
||||||
RefinishLaborTotalCost: "0.00",
|
|
||||||
MechanicalLaborTotal: "276.69",
|
|
||||||
MechanicalLaborTotalCost: "0.00",
|
|
||||||
StructuralLaborTotal: null,
|
|
||||||
StructuralLaborTotalCost: null,
|
|
||||||
MiscellaneousChargeTotal: null,
|
|
||||||
MiscellaneousChargeTotalCost: null,
|
|
||||||
PMTotal: "159.42",
|
|
||||||
PMTotalCost: "0.00",
|
|
||||||
BMTotal: "40.30",
|
|
||||||
BMTotalCost: "36.27",
|
|
||||||
MiscTotal: "60.00",
|
|
||||||
MiscTotalCost: "9.00",
|
|
||||||
TowingTotal: null,
|
|
||||||
TowingTotalCost: null,
|
|
||||||
StorageTotal: null,
|
|
||||||
StorageTotalCost: null,
|
|
||||||
DetailTotal: null,
|
|
||||||
DetailTotalCost: null,
|
|
||||||
SalesTaxTotal: "552.24",
|
|
||||||
SalesTaxTotalCost: null,
|
|
||||||
GrossTotal: "4800.27",
|
|
||||||
DeductibleTotal: "500.00",
|
|
||||||
DepreciationTotal: "0.00",
|
|
||||||
Discount: "0",
|
|
||||||
CustomerPay: "500.00",
|
|
||||||
InsurancePay: "4300.27",
|
|
||||||
Deposit: null,
|
|
||||||
AmountDue: "4800.27",
|
|
||||||
},
|
|
||||||
Misc: {
|
|
||||||
ProductionStatus: null,
|
|
||||||
StatusDescription: null,
|
|
||||||
Hub50Comment: null,
|
|
||||||
DateofChange: null,
|
|
||||||
BodyTechName: null,
|
|
||||||
TotalLossYN: null,
|
|
||||||
InsScreenCommentsLine1: null,
|
|
||||||
InsScreenCommentsLine2: null,
|
|
||||||
AssignmentCaller: null,
|
|
||||||
AssignmentDivision: null,
|
|
||||||
LocationofPrimaryImpact: "12",
|
|
||||||
LocationofSecondaryImpact: null,
|
|
||||||
PaintTechID: null,
|
|
||||||
PaintTechName: null,
|
|
||||||
ImportType: null,
|
|
||||||
ImportFile: null,
|
|
||||||
GSTTax: null,
|
|
||||||
RepairDelayStatusCode: null,
|
|
||||||
RepairDelaycomment: null,
|
|
||||||
AgentMktgID: null,
|
|
||||||
AgentCity: null,
|
|
||||||
Picture1: null,
|
|
||||||
Picture2: null,
|
|
||||||
ExtNoteDate: null,
|
|
||||||
RentalOrdDate: null,
|
|
||||||
RentalPUDate: null,
|
|
||||||
RentalDueDate: null,
|
|
||||||
RentalActRetDate: null,
|
|
||||||
RentalCompanyID: null,
|
|
||||||
CSIID: null,
|
|
||||||
InsGroupCode: null,
|
|
||||||
},
|
|
||||||
|
|
||||||
DetailLines: {
|
|
||||||
DetailLine: job.joblines.map((jl) =>
|
|
||||||
GenerateDetailLines(jl, job.bodyshop.md_order_statuses)
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
return ret;
|
console.log("***Number of Failed jobs***: ", erroredJobs.length);
|
||||||
|
var ret = builder
|
||||||
|
.create(autoHouseObject, {
|
||||||
|
version: "1.0",
|
||||||
|
encoding: "UTF-8",
|
||||||
|
})
|
||||||
|
.end({ pretty: true });
|
||||||
|
|
||||||
|
//***TODO Change filing naming when creating the cron job. IM_ShopInternalName_DDMMYYYY_HHMMSS.xml
|
||||||
|
res.type("application/xml");
|
||||||
|
//res.sendFile(ret);
|
||||||
|
res.send(ret);
|
||||||
|
};
|
||||||
|
|
||||||
|
const CreateRepairOrderTag = (job, errorCallback) => {
|
||||||
|
//Level 2
|
||||||
|
|
||||||
|
try {
|
||||||
|
const ret = {
|
||||||
|
RepairOrderInformation: {
|
||||||
|
ShopInternalName: job.bodyshop.autohouseid,
|
||||||
|
ID: job.id,
|
||||||
|
RO: job.ro_number,
|
||||||
|
Est: job.id, //We no longer use estimate id.
|
||||||
|
GUID: job.id,
|
||||||
|
TransType: StatusMapping(job.status, job.bodyshop.md_ro_statuses),
|
||||||
|
ShopName: job.bodyshop.shopname,
|
||||||
|
ShopAddress: job.bodyshop.address1,
|
||||||
|
ShopCity: job.bodyshop.city,
|
||||||
|
ShopState: job.bodyshop.state,
|
||||||
|
ShopZip: job.bodyshop.zip_post,
|
||||||
|
ShopPhone: job.bodyshop.phone,
|
||||||
|
EstimatorID: `${job.est_ct_fn} ${job.est_ct_ln}`,
|
||||||
|
EstimatorName: `${job.est_ct_fn} ${job.est_ct_ln}`,
|
||||||
|
},
|
||||||
|
CustomerInformation: {
|
||||||
|
FirstName: job.ownr_fn,
|
||||||
|
LastName: job.ownr_ln,
|
||||||
|
Street: job.ownr_addr1,
|
||||||
|
City: job.ownr_city,
|
||||||
|
State: job.ownr_st,
|
||||||
|
Zip: job.ownr_zip,
|
||||||
|
Phone1: job.ownr_ph1,
|
||||||
|
Phone2: null,
|
||||||
|
Phone2Extension: null,
|
||||||
|
Phone3: null,
|
||||||
|
Phone3Extension: null,
|
||||||
|
FileComments: null,
|
||||||
|
Source: null,
|
||||||
|
Email: job.ownr_ea,
|
||||||
|
RetWhsl: null,
|
||||||
|
Cat: null,
|
||||||
|
InsuredorClaimantFlag: null,
|
||||||
|
},
|
||||||
|
VehicleInformation: {
|
||||||
|
Year: job.v_model_yr,
|
||||||
|
Make: job.v_make_desc,
|
||||||
|
Model: job.v_model_desc,
|
||||||
|
VIN: job.v_vin,
|
||||||
|
License: job.plate_no,
|
||||||
|
MileageIn: job.kmin,
|
||||||
|
Vehiclecolor: job.v_color,
|
||||||
|
VehicleProductionDate: null,
|
||||||
|
VehiclePaintCode: null,
|
||||||
|
VehicleTrimCode: null,
|
||||||
|
VehicleBodyStyle: null,
|
||||||
|
DriveableFlag: job.tlos_ind ? "Y" : "N",
|
||||||
|
},
|
||||||
|
|
||||||
|
InsuranceInformation: {
|
||||||
|
InsuranceCo: job.ins_co_nm,
|
||||||
|
CompanyName: job.ins_co_nm,
|
||||||
|
Address: job.ins_addr1,
|
||||||
|
City: job.ins_addr1,
|
||||||
|
State: job.ins_city,
|
||||||
|
Zip: job.ins_zip,
|
||||||
|
Phone: job.ins_ph1,
|
||||||
|
Fax: null,
|
||||||
|
ClaimType: null,
|
||||||
|
LossType: null,
|
||||||
|
Policy: null,
|
||||||
|
Claim: job.clm_no,
|
||||||
|
InsuredLastName: null,
|
||||||
|
InsuredFirstName: null,
|
||||||
|
ClaimantLastName: null,
|
||||||
|
ClaimantFirstName: null,
|
||||||
|
Assignment: null,
|
||||||
|
InsuranceAgentLastName: null,
|
||||||
|
InsuranceAgentFirstName: null,
|
||||||
|
InsAgentPhone: null,
|
||||||
|
InsideAdjuster: null,
|
||||||
|
OutsideAdjuster: null,
|
||||||
|
},
|
||||||
|
Dates: {
|
||||||
|
DateofLoss: job.loss_date && moment(job.loss_date).format(AhDateFormat),
|
||||||
|
InitialCustomerContactDate: null,
|
||||||
|
FirstFollowUpDate: null,
|
||||||
|
ReferralDate: null,
|
||||||
|
EstimateAppointmentDate: null,
|
||||||
|
SecondFollowUpDate: null,
|
||||||
|
AssignedDate: null,
|
||||||
|
EstComplete: null,
|
||||||
|
CustomerAuthorizationDate: null,
|
||||||
|
InsuranceAuthorizationDate: null,
|
||||||
|
DateOpened: job.date_open && moment(job.date_open).format(AhDateFormat),
|
||||||
|
ScheduledArrivalDate:
|
||||||
|
job.scheduled_in && moment(job.scheduled_in).format(AhDateFormat),
|
||||||
|
CarinShop: job.actual_in && moment(job.actual_in).format(AhDateFormat),
|
||||||
|
InsInspDate: null,
|
||||||
|
StartDate: null,
|
||||||
|
PartsOrder: null,
|
||||||
|
TeardownHold: null,
|
||||||
|
SupplementSubmittedDate: null,
|
||||||
|
SupplementApprovedDate: null,
|
||||||
|
AssntoBody: null,
|
||||||
|
AssntoMech: null,
|
||||||
|
AssntoPaint: null,
|
||||||
|
AssntoDetail: null,
|
||||||
|
PromiseDate:
|
||||||
|
job.scheduled_completion &&
|
||||||
|
moment(job.scheduled_completion).format(AhDateFormat),
|
||||||
|
InsuranceTargetOut: null,
|
||||||
|
CarComplete:
|
||||||
|
job.actual_completion &&
|
||||||
|
moment(job.actual_completion).format(AhDateFormat),
|
||||||
|
DeliveryAppointmentDate:
|
||||||
|
job.scheduled_delivery &&
|
||||||
|
moment(job.scheduled_delivery).format(AhDateFormat),
|
||||||
|
DateClosed:
|
||||||
|
job.date_invoiced && moment(job.date_invoiced).format(AhDateFormat),
|
||||||
|
CustomerPaidInFullDate: null,
|
||||||
|
InsurancePaidInFullDate: null,
|
||||||
|
CustPickup:
|
||||||
|
job.actual_delivery &&
|
||||||
|
moment(job.actual_delivery).format(AhDateFormat),
|
||||||
|
AccountPostedDate:
|
||||||
|
job.date_exported && moment(job.date_exported).format(AhDateFormat),
|
||||||
|
CSIProcessedDate: null,
|
||||||
|
ThankYouLetterSent: null,
|
||||||
|
AdditionalFollowUpDate: null,
|
||||||
|
},
|
||||||
|
Rates: {
|
||||||
|
BodyRate: job.rate_lab,
|
||||||
|
RefinishRate: job.rate_lar,
|
||||||
|
MechanicalRate: job.rate_lam,
|
||||||
|
StructuralRate: job.rate_las,
|
||||||
|
PMRate: job.rate_mapa,
|
||||||
|
BMRate: job.rate_mash,
|
||||||
|
TaxRate: null,
|
||||||
|
StorageRateperDay: null,
|
||||||
|
DaysStored: null,
|
||||||
|
},
|
||||||
|
EstimateTotals: {
|
||||||
|
BodyHours: null,
|
||||||
|
RefinishHours: null,
|
||||||
|
MechanicalHours: null,
|
||||||
|
StructuralHours: null,
|
||||||
|
PartsTotal: null,
|
||||||
|
PartsOEM: null,
|
||||||
|
PartsAM: null,
|
||||||
|
PartsReconditioned: null,
|
||||||
|
PartsRecycled: null,
|
||||||
|
PartsOther: null,
|
||||||
|
SubletTotal: null,
|
||||||
|
BodyLaborTotal: null,
|
||||||
|
RefinishLaborTotal: null,
|
||||||
|
MechanicalLaborTotal: null,
|
||||||
|
StructuralLaborTotal: null,
|
||||||
|
MiscellaneousChargeTotal: null,
|
||||||
|
PMTotal: null,
|
||||||
|
BMTotal: null,
|
||||||
|
MiscTotal: null,
|
||||||
|
TowingTotal: null,
|
||||||
|
StorageTotal: null,
|
||||||
|
DetailTotal: null,
|
||||||
|
SalesTaxTotal: null,
|
||||||
|
GrossTotal: null,
|
||||||
|
DeductibleTotal: null,
|
||||||
|
DepreciationTotal: null,
|
||||||
|
Discount: null,
|
||||||
|
CustomerPay: null,
|
||||||
|
InsurancePay: null,
|
||||||
|
Deposit: null,
|
||||||
|
AmountDue: null,
|
||||||
|
},
|
||||||
|
SupplementTotals: {
|
||||||
|
BodyHours: null,
|
||||||
|
RefinishHours: null,
|
||||||
|
MechanicalHours: null,
|
||||||
|
StructuralHours: null,
|
||||||
|
PartsTotal: null,
|
||||||
|
PartsOEM: null,
|
||||||
|
PartsAM: null,
|
||||||
|
PartsReconditioned: null,
|
||||||
|
PartsRecycled: null,
|
||||||
|
PartsOther: null,
|
||||||
|
SubletTotal: null,
|
||||||
|
BodyLaborTotal: null,
|
||||||
|
RefinishLaborTotal: null,
|
||||||
|
MechanicalLaborTotal: null,
|
||||||
|
StructuralLaborTotal: null,
|
||||||
|
MiscellaneousChargeTotal: null,
|
||||||
|
PMTotal: null,
|
||||||
|
BMTotal: null,
|
||||||
|
MiscTotal: null,
|
||||||
|
TowingTotal: null,
|
||||||
|
StorageTotal: null,
|
||||||
|
DetailTotal: null,
|
||||||
|
SalesTaxTotal: null,
|
||||||
|
GrossTotal: null,
|
||||||
|
DeductibleTotal: null,
|
||||||
|
DepreciationTotal: null,
|
||||||
|
Discount: null,
|
||||||
|
CustomerPay: null,
|
||||||
|
InsurancePay: null,
|
||||||
|
Deposit: null,
|
||||||
|
AmountDue: null,
|
||||||
|
},
|
||||||
|
RevisedTotals: {
|
||||||
|
BodyHours: job.job_totals.rates.lab.hours,
|
||||||
|
RefinishHours: job.job_totals.rates.lar.hours,
|
||||||
|
MechanicalHours: job.job_totals.rates.lam.hours,
|
||||||
|
StructuralHours: job.job_totals.rates.las.hours,
|
||||||
|
PartsTotal: Dinero(job.job_totals.parts.parts.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
PartsTotalCost: 0,
|
||||||
|
PartsOEM: Dinero(
|
||||||
|
job.job_totals.parts.parts.list.PAN &&
|
||||||
|
job.job_totals.parts.parts.list.PAN.total
|
||||||
|
).toFormat(AHDineroFormat),
|
||||||
|
PartsOEMCost: 0,
|
||||||
|
PartsAM: Dinero(
|
||||||
|
job.job_totals.parts.parts.list.PAA &&
|
||||||
|
job.job_totals.parts.parts.list.PAA.total
|
||||||
|
).toFormat(AHDineroFormat),
|
||||||
|
PartsAMCost: 0,
|
||||||
|
PartsReconditioned: null,
|
||||||
|
PartsReconditionedCost: null,
|
||||||
|
PartsRecycled: Dinero(
|
||||||
|
job.job_totals.parts.parts.list.PAR &&
|
||||||
|
job.job_totals.parts.parts.list.PAR.total
|
||||||
|
).toFormat(AHDineroFormat),
|
||||||
|
PartsRecycledCost: null,
|
||||||
|
PartsOther: Dinero(
|
||||||
|
job.job_totals.parts.parts.list.PAO &&
|
||||||
|
job.job_totals.parts.parts.list.PAO.total
|
||||||
|
).toFormat(AHDineroFormat),
|
||||||
|
PartsOtherCost: null,
|
||||||
|
SubletTotal: Dinero(job.job_totals.parts.sublets.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
SubletTotalCost: 0,
|
||||||
|
BodyLaborTotal: Dinero(job.job_totals.rates.lab.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
BodyLaborTotalCost: 0,
|
||||||
|
RefinishLaborTotal: Dinero(job.job_totals.rates.lar.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
RefinishLaborTotalCost: 0,
|
||||||
|
MechanicalLaborTotal: Dinero(job.job_totals.rates.lam.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
MechanicalLaborTotalCost: 0,
|
||||||
|
StructuralLaborTotal: Dinero(job.job_totals.rates.las.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
StructuralLaborTotalCost: null,
|
||||||
|
MiscellaneousChargeTotal: null,
|
||||||
|
MiscellaneousChargeTotalCost: null,
|
||||||
|
PMTotal: Dinero(job.job_totals.rates.mapa.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
PMTotalCost: 0,
|
||||||
|
BMTotal: Dinero(job.job_totals.rates.mash.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
BMTotalCost: 0,
|
||||||
|
MiscTotal: 0,
|
||||||
|
MiscTotalCost: 0,
|
||||||
|
TowingTotal: Dinero(job.job_totals.additional.towing).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
TowingTotalCost: null,
|
||||||
|
StorageTotal: Dinero(job.job_totals.additional.storage).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
StorageTotalCost: null,
|
||||||
|
DetailTotal: null,
|
||||||
|
DetailTotalCost: null,
|
||||||
|
SalesTaxTotal: Dinero(job.job_totals.totals.local_tax)
|
||||||
|
.add(Dinero(job.job_totals.totals.state_tax))
|
||||||
|
.add(Dinero(job.job_totals.totals.federal_tax))
|
||||||
|
.toFormat(AHDineroFormat),
|
||||||
|
SalesTaxTotalCost: null,
|
||||||
|
GrossTotal: Dinero(job.job_totals.totals.net_repairs).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
DeductibleTotal: job.ded_amt,
|
||||||
|
DepreciationTotal: Dinero(
|
||||||
|
job.job_totals.totals.custPayable.dep_taxes
|
||||||
|
).toFormat(AHDineroFormat),
|
||||||
|
Discount: Dinero(job.job_totals.additional.adjustments).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
CustomerPay: Dinero(job.job_totals.totals.custPayable.total).toFormat(
|
||||||
|
AHDineroFormat
|
||||||
|
),
|
||||||
|
InsurancePay: 0,
|
||||||
|
Deposit: 0,
|
||||||
|
AmountDue: 0,
|
||||||
|
},
|
||||||
|
Misc: {
|
||||||
|
ProductionStatus: null,
|
||||||
|
StatusDescription: null,
|
||||||
|
Hub50Comment: null,
|
||||||
|
DateofChange: null,
|
||||||
|
BodyTechName: null,
|
||||||
|
TotalLossYN: null,
|
||||||
|
InsScreenCommentsLine1: null,
|
||||||
|
InsScreenCommentsLine2: null,
|
||||||
|
AssignmentCaller: null,
|
||||||
|
AssignmentDivision: null,
|
||||||
|
LocationofPrimaryImpact: "12",
|
||||||
|
LocationofSecondaryImpact: null,
|
||||||
|
PaintTechID: null,
|
||||||
|
PaintTechName: null,
|
||||||
|
ImportType: null,
|
||||||
|
ImportFile: null,
|
||||||
|
GSTTax: null,
|
||||||
|
RepairDelayStatusCode: null,
|
||||||
|
RepairDelaycomment: null,
|
||||||
|
AgentMktgID: null,
|
||||||
|
AgentCity: null,
|
||||||
|
Picture1: null,
|
||||||
|
Picture2: null,
|
||||||
|
ExtNoteDate: null,
|
||||||
|
RentalOrdDate: null,
|
||||||
|
RentalPUDate: null,
|
||||||
|
RentalDueDate: null,
|
||||||
|
RentalActRetDate: null,
|
||||||
|
RentalCompanyID: null,
|
||||||
|
CSIID: null,
|
||||||
|
InsGroupCode: null,
|
||||||
|
},
|
||||||
|
|
||||||
|
DetailLines: {
|
||||||
|
DetailLine:
|
||||||
|
job.joblines.length > 0
|
||||||
|
? job.joblines.map((jl) =>
|
||||||
|
GenerateDetailLines(jl, job.bodyshop.md_order_statuses)
|
||||||
|
)
|
||||||
|
: [generateNullDetailLine()],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
return ret;
|
||||||
|
} catch (error) {
|
||||||
|
errorCallback(job, error);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const StatusMapping = (status, md_ro_statuses) => {
|
const StatusMapping = (status, md_ro_statuses) => {
|
||||||
@@ -367,7 +428,7 @@ const GenerateDetailLines = (line, statuses) => {
|
|||||||
line.billlines[0] &&
|
line.billlines[0] &&
|
||||||
(line.billlines[0].actual_cost * line.billlines[0].quantity).toFixed(2),
|
(line.billlines[0].actual_cost * line.billlines[0].quantity).toFixed(2),
|
||||||
Critical: null,
|
Critical: null,
|
||||||
Description: line.desc,
|
Description: line.line_desc,
|
||||||
DiscountMarkup: null,
|
DiscountMarkup: null,
|
||||||
InvoiceNumber: line.billlines[0] && line.billlines[0].bill.invoice_number,
|
InvoiceNumber: line.billlines[0] && line.billlines[0].bill.invoice_number,
|
||||||
IOUPart: null,
|
IOUPart: null,
|
||||||
@@ -377,7 +438,7 @@ const GenerateDetailLines = (line, statuses) => {
|
|||||||
OriginalCost: null,
|
OriginalCost: null,
|
||||||
OriginalInvoiceNumber: null,
|
OriginalInvoiceNumber: null,
|
||||||
PriceEach: line.billlines[0] && line.billlines[0].actual_cost,
|
PriceEach: line.billlines[0] && line.billlines[0].actual_cost,
|
||||||
PartNumber: line.oem_partno,
|
PartNumber: _.escape(line.oem_partno),
|
||||||
ProfitPercent: null,
|
ProfitPercent: null,
|
||||||
PurchaseOrderNumber: null,
|
PurchaseOrderNumber: null,
|
||||||
Qty: line.part_qty,
|
Qty: line.part_qty,
|
||||||
@@ -397,3 +458,38 @@ const GenerateDetailLines = (line, statuses) => {
|
|||||||
};
|
};
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const generateNullDetailLine = () => {
|
||||||
|
return {
|
||||||
|
BackOrdered: "0",
|
||||||
|
Cost: 0,
|
||||||
|
Critical: null,
|
||||||
|
Description: "No Lines on Estimate",
|
||||||
|
DiscountMarkup: null,
|
||||||
|
InvoiceNumber: null,
|
||||||
|
IOUPart: null,
|
||||||
|
LineNumber: 0,
|
||||||
|
MarkUp: null,
|
||||||
|
OrderedOn: null,
|
||||||
|
OriginalCost: null,
|
||||||
|
OriginalInvoiceNumber: null,
|
||||||
|
PriceEach: 0,
|
||||||
|
PartNumber: 0,
|
||||||
|
ProfitPercent: null,
|
||||||
|
PurchaseOrderNumber: null,
|
||||||
|
Qty: 0,
|
||||||
|
Status: null,
|
||||||
|
SupplementNumber: null,
|
||||||
|
Type: null,
|
||||||
|
Vendor: null,
|
||||||
|
VendorPaid: null,
|
||||||
|
VendorPrice: null,
|
||||||
|
Deleted: null,
|
||||||
|
ExpectedOn: null,
|
||||||
|
ReceivedOn: null,
|
||||||
|
OrderedBy: null,
|
||||||
|
ShipVia: null,
|
||||||
|
VendorContact: null,
|
||||||
|
EstimateAmount: null,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user