Merged in release/2021-10-08 (pull request #238)
release/2021-10-08 Approved-by: Patrick Fic
This commit is contained in:
@@ -22303,6 +22303,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>referral_source_other</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>referralsource</name>
|
<name>referralsource</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -30375,6 +30396,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>comments</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>cost</name>
|
<name>cost</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { useMutation } from "@apollo/client";
|
|||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Form,
|
Form,
|
||||||
|
Input,
|
||||||
notification,
|
notification,
|
||||||
Popover,
|
Popover,
|
||||||
Select,
|
Select,
|
||||||
@@ -112,24 +113,32 @@ export function JobsConvertButton({
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
{bodyshop.enforce_referral && (
|
{bodyshop.enforce_referral && (
|
||||||
<Form.Item
|
<>
|
||||||
name={"referral_source"}
|
<Form.Item
|
||||||
label={t("jobs.fields.referralsource")}
|
name={"referral_source"}
|
||||||
rules={[
|
label={t("jobs.fields.referralsource")}
|
||||||
{
|
rules={[
|
||||||
required: bodyshop.enforce_referral,
|
{
|
||||||
//message: t("general.validation.required"),
|
required: bodyshop.enforce_referral,
|
||||||
},
|
//message: t("general.validation.required"),
|
||||||
]}
|
},
|
||||||
>
|
]}
|
||||||
<Select>
|
>
|
||||||
{bodyshop.md_referral_sources.map((s) => (
|
<Select>
|
||||||
<Select.Option key={s} value={s}>
|
{bodyshop.md_referral_sources.map((s) => (
|
||||||
{s}
|
<Select.Option key={s} value={s}>
|
||||||
</Select.Option>
|
{s}
|
||||||
))}
|
</Select.Option>
|
||||||
</Select>
|
))}
|
||||||
</Form.Item>
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t("jobs.fields.referral_source_other")}
|
||||||
|
name="referral_source_other"
|
||||||
|
>
|
||||||
|
<Input />
|
||||||
|
</Form.Item>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.ca_gst_registrant")}
|
label={t("jobs.fields.ca_gst_registrant")}
|
||||||
|
|||||||
@@ -181,6 +181,12 @@ export function JobsCreateJobsInfo({ bodyshop, form, selected }) {
|
|||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t("jobs.fields.referral_source_other")}
|
||||||
|
name="referral_source_other"
|
||||||
|
>
|
||||||
|
<Input />
|
||||||
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
</Collapse.Panel>
|
</Collapse.Panel>
|
||||||
<Collapse.Panel
|
<Collapse.Panel
|
||||||
|
|||||||
@@ -114,6 +114,12 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
|
|||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t("jobs.fields.referral_source_other")}
|
||||||
|
name="referral_source_other"
|
||||||
|
>
|
||||||
|
<Input />
|
||||||
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.alt_transport")} name="alt_transport">
|
<Form.Item label={t("jobs.fields.alt_transport")} name="alt_transport">
|
||||||
<Select disabled={jobRO} allowClear>
|
<Select disabled={jobRO} allowClear>
|
||||||
{bodyshop.appt_alt_transport.map((s) => (
|
{bodyshop.appt_alt_transport.map((s) => (
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
label={t("jobs.fields.depreciation_taxes")}
|
label={t("jobs.fields.depreciation_taxes")}
|
||||||
name="depreciation_taxes"
|
name="depreciation_taxes"
|
||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Tooltip title={t("jobs.labels.ca_gst_all_if_null")}>
|
<Tooltip title={t("jobs.labels.ca_gst_all_if_null")}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@@ -47,6 +47,7 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
>
|
>
|
||||||
<CurrencyInput
|
<CurrencyInput
|
||||||
disabled={jobRO}
|
disabled={jobRO}
|
||||||
|
min={0}
|
||||||
max={
|
max={
|
||||||
Math.round(
|
Math.round(
|
||||||
(job.job_totals &&
|
(job.job_totals &&
|
||||||
@@ -61,19 +62,19 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
label={t("jobs.fields.other_amount_payable")}
|
label={t("jobs.fields.other_amount_payable")}
|
||||||
name="other_amount_payable"
|
name="other_amount_payable"
|
||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.towing_payable")}
|
label={t("jobs.fields.towing_payable")}
|
||||||
name="towing_payable"
|
name="towing_payable"
|
||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.storage_payable")}
|
label={t("jobs.fields.storage_payable")}
|
||||||
name="storage_payable"
|
name="storage_payable"
|
||||||
>
|
>
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("jobs.fields.adjustment_bottom_line")}
|
label={t("jobs.fields.adjustment_bottom_line")}
|
||||||
@@ -83,7 +84,7 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Space align="end">
|
<Space align="end">
|
||||||
<Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt">
|
<Form.Item label={t("jobs.fields.ca_bc_pvrt")} name="ca_bc_pvrt">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput disabled={jobRO} min={0} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<CABCpvrtCalculator form={form} disabled={jobRO} />
|
<CABCpvrtCalculator form={form} disabled={jobRO} />
|
||||||
</Space>
|
</Space>
|
||||||
@@ -135,72 +136,72 @@ export function JobsDetailRates({ jobRO, form, job, bodyshop }) {
|
|||||||
<Input disabled={jobRO} />
|
<Input disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_laa")} name="rate_laa">
|
<Form.Item label={t("jobs.fields.rate_laa")} name="rate_laa">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lab")} name="rate_lab">
|
<Form.Item label={t("jobs.fields.rate_lab")} name="rate_lab">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lad")} name="rate_lad">
|
<Form.Item label={t("jobs.fields.rate_lad")} name="rate_lad">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lae")} name="rate_lae">
|
<Form.Item label={t("jobs.fields.rate_lae")} name="rate_lae">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lar")} name="rate_lar">
|
<Form.Item label={t("jobs.fields.rate_lar")} name="rate_lar">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_las")} name="rate_las">
|
<Form.Item label={t("jobs.fields.rate_las")} name="rate_las">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_laf")} name="rate_laf">
|
<Form.Item label={t("jobs.fields.rate_laf")} name="rate_laf">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lam")} name="rate_lam">
|
<Form.Item label={t("jobs.fields.rate_lam")} name="rate_lam">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lag")} name="rate_lag">
|
<Form.Item label={t("jobs.fields.rate_lag")} name="rate_lag">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_la1")} name="rate_la1">
|
<Form.Item label={t("jobs.fields.rate_la1")} name="rate_la1">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_la2")} name="rate_la2">
|
<Form.Item label={t("jobs.fields.rate_la2")} name="rate_la2">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_la3")} name="rate_la3">
|
<Form.Item label={t("jobs.fields.rate_la3")} name="rate_la3">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_la4")} name="rate_la4">
|
<Form.Item label={t("jobs.fields.rate_la4")} name="rate_la4">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_lau")} name="rate_lau">
|
<Form.Item label={t("jobs.fields.rate_lau")} name="rate_lau">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_mapa")} name="rate_mapa">
|
<Form.Item label={t("jobs.fields.rate_mapa")} name="rate_mapa">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_mash")} name="rate_mash">
|
<Form.Item label={t("jobs.fields.rate_mash")} name="rate_mash">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_mahw")} name="rate_mahw">
|
<Form.Item label={t("jobs.fields.rate_mahw")} name="rate_mahw">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_ma2s")} name="rate_ma2s">
|
<Form.Item label={t("jobs.fields.rate_ma2s")} name="rate_ma2s">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t("jobs.fields.rate_ma3s")} name="rate_ma3s">
|
<Form.Item label={t("jobs.fields.rate_ma3s")} name="rate_ma3s">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{
|
{
|
||||||
// <Form.Item label={t("jobs.fields.rate_mabl")} name="rate_mabl">
|
// <Form.Item label={t("jobs.fields.rate_mabl")} name="rate_mabl">
|
||||||
// <CurrencyInput disabled={jobRO} />
|
// <CurrencyInput min={0}disabled={jobRO} />
|
||||||
// </Form.Item>
|
// </Form.Item>
|
||||||
// <Form.Item label={t("jobs.fields.rate_macs")} name="rate_macs">
|
// <Form.Item label={t("jobs.fields.rate_macs")} name="rate_macs">
|
||||||
// <CurrencyInput disabled={jobRO} />
|
// <CurrencyInput min={0}disabled={jobRO} />
|
||||||
// </Form.Item>
|
// </Form.Item>
|
||||||
}
|
}
|
||||||
<Form.Item label={t("jobs.fields.rate_matd")} name="rate_matd">
|
<Form.Item label={t("jobs.fields.rate_matd")} name="rate_matd">
|
||||||
<CurrencyInput disabled={jobRO} />
|
<CurrencyInput min={0} disabled={jobRO} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</FormRow>
|
</FormRow>
|
||||||
<JobsDetailRatesParts form={form} />
|
<JobsDetailRatesParts form={form} />
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import CurrencyFormatter from "../../utils/CurrencyFormatter";
|
|||||||
import { DateFormatter } from "../../utils/DateFormatter";
|
import { DateFormatter } from "../../utils/DateFormatter";
|
||||||
import { alphaSort } from "../../utils/sorters";
|
import { alphaSort } from "../../utils/sorters";
|
||||||
import { TemplateList } from "../../utils/TemplateConstants";
|
import { TemplateList } from "../../utils/TemplateConstants";
|
||||||
|
import DataLabel from "../data-label/data-label.component";
|
||||||
import PartsOrderBackorderEta from "../parts-order-backorder-eta/parts-order-backorder-eta.component";
|
import PartsOrderBackorderEta from "../parts-order-backorder-eta/parts-order-backorder-eta.component";
|
||||||
import PartsOrderLineBackorderButton from "../parts-order-line-backorder-button/parts-order-line-backorder-button.component";
|
import PartsOrderLineBackorderButton from "../parts-order-line-backorder-button/parts-order-line-backorder-button.component";
|
||||||
import PartsReceiveModalContainer from "../parts-receive-modal/parts-receive-modal.container";
|
import PartsReceiveModalContainer from "../parts-receive-modal/parts-receive-modal.container";
|
||||||
@@ -379,6 +380,9 @@ export function PartsOrderListTableComponent({
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
dataSource={record.parts_order_lines}
|
dataSource={record.parts_order_lines}
|
||||||
/>
|
/>
|
||||||
|
<DataLabel label={t("parts_orders.fields.comments")}>
|
||||||
|
<div style={{ whiteSpace: "pre" }}>{record.comments}</div>
|
||||||
|
</DataLabel>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -152,6 +152,9 @@ export default function PartsOrderModalComponent({
|
|||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
</Form.List>
|
</Form.List>
|
||||||
|
<Form.Item name="comments" label={t("parts_orders.fields.comments")}>
|
||||||
|
<Input.TextArea rows={3} />
|
||||||
|
</Form.Item>
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
defaultValue={sendType}
|
defaultValue={sendType}
|
||||||
onChange={(e) => setSendType(e.target.value)}
|
onChange={(e) => setSendType(e.target.value)}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export function ScheduleJobModalComponent({
|
|||||||
handleDateBlur();
|
handleDateBlur();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DateFormatter>{d}</DateFormatter>
|
<DateFormatter includeDay>{d}</DateFormatter>
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export const QUERY_BILLS_BY_JOBID = gql`
|
|||||||
backordered_on
|
backordered_on
|
||||||
}
|
}
|
||||||
order_number
|
order_number
|
||||||
|
comments
|
||||||
user_email
|
user_email
|
||||||
}
|
}
|
||||||
bills(where: { jobid: { _eq: $jobid } }, order_by: { date: desc }) {
|
bills(where: { jobid: { _eq: $jobid } }, order_by: { date: desc }) {
|
||||||
|
|||||||
@@ -359,6 +359,7 @@ export const GET_JOB_BY_PK = gql`
|
|||||||
kmin
|
kmin
|
||||||
kmout
|
kmout
|
||||||
referral_source
|
referral_source
|
||||||
|
referral_source_other
|
||||||
unit_number
|
unit_number
|
||||||
po_number
|
po_number
|
||||||
special_coverage_policy
|
special_coverage_policy
|
||||||
@@ -563,6 +564,7 @@ export const GET_JOB_BY_PK = gql`
|
|||||||
parts_order {
|
parts_order {
|
||||||
id
|
id
|
||||||
order_number
|
order_number
|
||||||
|
comments
|
||||||
order_date
|
order_date
|
||||||
user_email
|
user_email
|
||||||
vendor {
|
vendor {
|
||||||
@@ -964,6 +966,7 @@ export const CONVERT_JOB_TO_RO = gql`
|
|||||||
$driveable: Boolean
|
$driveable: Boolean
|
||||||
$towin: Boolean
|
$towin: Boolean
|
||||||
$referral_source: String
|
$referral_source: String
|
||||||
|
$referral_source_other: String
|
||||||
) {
|
) {
|
||||||
update_jobs(
|
update_jobs(
|
||||||
where: { id: { _eq: $jobId } }
|
where: { id: { _eq: $jobId } }
|
||||||
@@ -975,6 +978,7 @@ export const CONVERT_JOB_TO_RO = gql`
|
|||||||
towin: $towin
|
towin: $towin
|
||||||
driveable: $driveable
|
driveable: $driveable
|
||||||
referral_source: $referral_source
|
referral_source: $referral_source
|
||||||
|
referral_source_other: $referral_source_other
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
returning {
|
returning {
|
||||||
@@ -984,6 +988,7 @@ export const CONVERT_JOB_TO_RO = gql`
|
|||||||
class
|
class
|
||||||
ins_co_nm
|
ins_co_nm
|
||||||
referral_source
|
referral_source
|
||||||
|
referral_source_other
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1497,6 +1502,7 @@ export const QUERY_ALL_JOB_FIELDS = gql`
|
|||||||
rate_mash
|
rate_mash
|
||||||
rate_matd
|
rate_matd
|
||||||
referral_source
|
referral_source
|
||||||
|
referral_source_other
|
||||||
regie_number
|
regie_number
|
||||||
selling_dealer
|
selling_dealer
|
||||||
selling_dealer_contact
|
selling_dealer_contact
|
||||||
|
|||||||
@@ -1336,6 +1336,7 @@
|
|||||||
"rate_mapa": "Paint Materials",
|
"rate_mapa": "Paint Materials",
|
||||||
"rate_mash": "Shop Material",
|
"rate_mash": "Shop Material",
|
||||||
"rate_matd": "Tire Disposal",
|
"rate_matd": "Tire Disposal",
|
||||||
|
"referral_source_other": "Other Referral Source",
|
||||||
"referralsource": "Referral Source",
|
"referralsource": "Referral Source",
|
||||||
"regie_number": "Registration #",
|
"regie_number": "Registration #",
|
||||||
"repairtotal": "Repair Total",
|
"repairtotal": "Repair Total",
|
||||||
@@ -1812,6 +1813,7 @@
|
|||||||
"act_price": "Price",
|
"act_price": "Price",
|
||||||
"backordered_eta": "B.O. ETA",
|
"backordered_eta": "B.O. ETA",
|
||||||
"backordered_on": "B.O. On",
|
"backordered_on": "B.O. On",
|
||||||
|
"comments": "Comments",
|
||||||
"cost": "Cost",
|
"cost": "Cost",
|
||||||
"db_price": "List Price",
|
"db_price": "List Price",
|
||||||
"deliver_by": "Date",
|
"deliver_by": "Date",
|
||||||
@@ -2022,7 +2024,7 @@
|
|||||||
},
|
},
|
||||||
"subjects": {
|
"subjects": {
|
||||||
"jobs": {
|
"jobs": {
|
||||||
"parts_order": "$t(printcenter.jobs.parts_order) PO: {{ro_number}}"
|
"parts_order": "Parts Order PO: {{ro_number}}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"vendors": {
|
"vendors": {
|
||||||
|
|||||||
@@ -1336,6 +1336,7 @@
|
|||||||
"rate_mapa": "Tasa de materiales de pintura",
|
"rate_mapa": "Tasa de materiales de pintura",
|
||||||
"rate_mash": "Comprar material de tarifa",
|
"rate_mash": "Comprar material de tarifa",
|
||||||
"rate_matd": "Tasa de eliminación de neumáticos",
|
"rate_matd": "Tasa de eliminación de neumáticos",
|
||||||
|
"referral_source_other": "",
|
||||||
"referralsource": "Fuente de referencia",
|
"referralsource": "Fuente de referencia",
|
||||||
"regie_number": "N. ° de registro",
|
"regie_number": "N. ° de registro",
|
||||||
"repairtotal": "Reparación total",
|
"repairtotal": "Reparación total",
|
||||||
@@ -1812,6 +1813,7 @@
|
|||||||
"act_price": "",
|
"act_price": "",
|
||||||
"backordered_eta": "",
|
"backordered_eta": "",
|
||||||
"backordered_on": "",
|
"backordered_on": "",
|
||||||
|
"comments": "",
|
||||||
"cost": "",
|
"cost": "",
|
||||||
"db_price": "",
|
"db_price": "",
|
||||||
"deliver_by": "",
|
"deliver_by": "",
|
||||||
|
|||||||
@@ -1336,6 +1336,7 @@
|
|||||||
"rate_mapa": "Taux de matériaux de peinture",
|
"rate_mapa": "Taux de matériaux de peinture",
|
||||||
"rate_mash": "Tarif du matériel de la boutique",
|
"rate_mash": "Tarif du matériel de la boutique",
|
||||||
"rate_matd": "Taux d'élimination des pneus",
|
"rate_matd": "Taux d'élimination des pneus",
|
||||||
|
"referral_source_other": "",
|
||||||
"referralsource": "Source de référence",
|
"referralsource": "Source de référence",
|
||||||
"regie_number": "Enregistrement #",
|
"regie_number": "Enregistrement #",
|
||||||
"repairtotal": "Réparation totale",
|
"repairtotal": "Réparation totale",
|
||||||
@@ -1812,6 +1813,7 @@
|
|||||||
"act_price": "",
|
"act_price": "",
|
||||||
"backordered_eta": "",
|
"backordered_eta": "",
|
||||||
"backordered_on": "",
|
"backordered_on": "",
|
||||||
|
"comments": "",
|
||||||
"cost": "",
|
"cost": "",
|
||||||
"db_price": "",
|
"db_price": "",
|
||||||
"deliver_by": "",
|
"deliver_by": "",
|
||||||
|
|||||||
@@ -3,7 +3,11 @@ import moment from "moment";
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export function DateFormatter(props) {
|
export function DateFormatter(props) {
|
||||||
return props.children ? moment(props.children).format("MM/DD/YYYY") : null;
|
return props.children
|
||||||
|
? moment(props.children).format(
|
||||||
|
props.includeDay ? "ddd MM/DD/YYYY" : "MM/DD/YYYY"
|
||||||
|
)
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DateTimeFormatter(props) {
|
export function DateTimeFormatter(props) {
|
||||||
|
|||||||
@@ -209,17 +209,21 @@ const fetchContextData = async (templateObject) => {
|
|||||||
`${server}/odata/assets?$filter=name eq '${templateObject.name}.query'`
|
`${server}/odata/assets?$filter=name eq '${templateObject.name}.query'`
|
||||||
);
|
);
|
||||||
|
|
||||||
let templateQueryToExecute,
|
let templateQueryToExecute;
|
||||||
useShopSpecificTemplate = false;
|
let useShopSpecificTemplate = false;
|
||||||
// let shopSpecificTemplate;
|
// let shopSpecificTemplate;
|
||||||
|
|
||||||
if (shopSpecificFolder) {
|
if (shopSpecificFolder) {
|
||||||
let shopSpecificTemplate = jsReportQueries.data.value.find(
|
let shopSpecificTemplate = jsReportQueries.data.value.find(
|
||||||
(f) => f?.folder?.shortid === shopSpecificFolder.shortid
|
(f) => f?.folder?.shortid === shopSpecificFolder.shortid
|
||||||
);
|
);
|
||||||
useShopSpecificTemplate = true;
|
if (shopSpecificTemplate) {
|
||||||
templateQueryToExecute = atob(shopSpecificTemplate.content);
|
useShopSpecificTemplate = true;
|
||||||
} else {
|
templateQueryToExecute = atob(shopSpecificTemplate.content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!templateQueryToExecute) {
|
||||||
const generalTemplate = jsReportQueries.data.value.find((f) => !f.folder);
|
const generalTemplate = jsReportQueries.data.value.find((f) => !f.folder);
|
||||||
useShopSpecificTemplate = false;
|
useShopSpecificTemplate = false;
|
||||||
templateQueryToExecute = atob(generalTemplate.content);
|
templateQueryToExecute = atob(generalTemplate.content);
|
||||||
|
|||||||
@@ -2716,6 +2716,7 @@
|
|||||||
- rate_mash
|
- rate_mash
|
||||||
- rate_matd
|
- rate_matd
|
||||||
- referral_source
|
- referral_source
|
||||||
|
- referral_source_other
|
||||||
- regie_number
|
- regie_number
|
||||||
- ro_number
|
- ro_number
|
||||||
- scheduled_completion
|
- scheduled_completion
|
||||||
@@ -2963,6 +2964,7 @@
|
|||||||
- rate_mash
|
- rate_mash
|
||||||
- rate_matd
|
- rate_matd
|
||||||
- referral_source
|
- referral_source
|
||||||
|
- referral_source_other
|
||||||
- regie_number
|
- regie_number
|
||||||
- ro_number
|
- ro_number
|
||||||
- scheduled_completion
|
- scheduled_completion
|
||||||
@@ -3220,6 +3222,7 @@
|
|||||||
- rate_mash
|
- rate_mash
|
||||||
- rate_matd
|
- rate_matd
|
||||||
- referral_source
|
- referral_source
|
||||||
|
- referral_source_other
|
||||||
- regie_number
|
- regie_number
|
||||||
- ro_number
|
- ro_number
|
||||||
- scheduled_completion
|
- scheduled_completion
|
||||||
@@ -3779,6 +3782,7 @@
|
|||||||
- active:
|
- active:
|
||||||
_eq: true
|
_eq: true
|
||||||
columns:
|
columns:
|
||||||
|
- comments
|
||||||
- created_at
|
- created_at
|
||||||
- deliver_by
|
- deliver_by
|
||||||
- id
|
- id
|
||||||
@@ -3796,6 +3800,7 @@
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
|
- comments
|
||||||
- created_at
|
- created_at
|
||||||
- deliver_by
|
- deliver_by
|
||||||
- id
|
- id
|
||||||
@@ -3823,6 +3828,7 @@
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
|
- comments
|
||||||
- created_at
|
- created_at
|
||||||
- deliver_by
|
- deliver_by
|
||||||
- id
|
- id
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."jobs" add column "referral_soure_other" text
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."jobs" add column "referral_soure_other" text
|
||||||
|
null;
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
alter table "public"."jobs" rename column "referral_source_other" to "referral_soure_other";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
alter table "public"."jobs" rename column "referral_soure_other" to "referral_source_other";
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."parts_orders" add column "comments" text
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."parts_orders" add column "comments" text
|
||||||
|
null;
|
||||||
@@ -555,6 +555,7 @@ exports.GET_JOB_BY_PK = ` query GET_JOB_BY_PK($id: uuid!) {
|
|||||||
kmin
|
kmin
|
||||||
kmout
|
kmout
|
||||||
referral_source
|
referral_source
|
||||||
|
referral_source_other
|
||||||
unit_number
|
unit_number
|
||||||
po_number
|
po_number
|
||||||
special_coverage_policy
|
special_coverage_policy
|
||||||
|
|||||||
Reference in New Issue
Block a user