IO-834 IO-835 Totals table formatting.
This commit is contained in:
@@ -28239,6 +28239,27 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>templates</name>
|
<name>templates</name>
|
||||||
<children>
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>credits_not_received_date</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>estimator_detail</name>
|
<name>estimator_detail</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -47,17 +47,21 @@ export function JobsTotalsTableComponent({ jobRO, job }) {
|
|||||||
</Col>
|
</Col>
|
||||||
<Col {...colSpan}>
|
<Col {...colSpan}>
|
||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<Col sm={24} md={12}>
|
<Col {...colSpan}>
|
||||||
<Card title={t("jobs.labels.partstotal")}>
|
<Row gutter={[16, 16]}>
|
||||||
<JobTotalsTableParts job={job} />
|
<Col span={24}>
|
||||||
</Card>
|
<Card title={t("jobs.labels.partstotal")}>
|
||||||
|
<JobTotalsTableParts job={job} />
|
||||||
|
</Card>
|
||||||
|
</Col>
|
||||||
|
<Col span={24}>
|
||||||
|
<Card title={t("jobs.labels.othertotal")}>
|
||||||
|
<JobTotalsTableOther job={job} />
|
||||||
|
</Card>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
<Col sm={24} md={12}>
|
<Col {...colSpan}>
|
||||||
<Card title={t("jobs.labels.othertotal")}>
|
|
||||||
<JobTotalsTableOther job={job} />
|
|
||||||
</Card>
|
|
||||||
</Col>
|
|
||||||
<Col span={24}>
|
|
||||||
<Card title={t("jobs.labels.jobtotals")}>
|
<Card title={t("jobs.labels.jobtotals")}>
|
||||||
<JobTotalsTableTotals job={job} />
|
<JobTotalsTableTotals job={job} />
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -103,11 +103,11 @@ export default function JobTotalsTableLabor({ job }) {
|
|||||||
<>
|
<>
|
||||||
<Table.Summary.Row>
|
<Table.Summary.Row>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{t("jobs.labels.labor_rates_subtotal")}
|
<strong>{t("jobs.labels.labor_rates_subtotal")}</strong>
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
<Table.Summary.Cell />
|
<Table.Summary.Cell />
|
||||||
<Table.Summary.Cell />
|
<Table.Summary.Cell />
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell align="right">
|
||||||
<strong>
|
<strong>
|
||||||
{Dinero(job.job_totals.rates.rates_subtotal).toFormat()}
|
{Dinero(job.job_totals.rates.rates_subtotal).toFormat()}
|
||||||
</strong>
|
</strong>
|
||||||
@@ -121,7 +121,7 @@ export default function JobTotalsTableLabor({ job }) {
|
|||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{job.job_totals.rates.mapa.hours.toFixed(2)}
|
{job.job_totals.rates.mapa.hours.toFixed(2)}
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell align="right">
|
||||||
{Dinero(job.job_totals.rates.mapa.total).toFormat()}
|
{Dinero(job.job_totals.rates.mapa.total).toFormat()}
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
</Table.Summary.Row>
|
</Table.Summary.Row>
|
||||||
@@ -133,19 +133,19 @@ export default function JobTotalsTableLabor({ job }) {
|
|||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{job.job_totals.rates.mash.hours.toFixed(2)}
|
{job.job_totals.rates.mash.hours.toFixed(2)}
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell align="right">
|
||||||
{Dinero(job.job_totals.rates.mash.total).toFormat()}
|
{Dinero(job.job_totals.rates.mash.total).toFormat()}
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
</Table.Summary.Row>
|
</Table.Summary.Row>
|
||||||
<Table.Summary.Row>
|
<Table.Summary.Row>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{t("jobs.labels.labor_rates_subtotal")}
|
<strong>{t("jobs.labels.rates_subtotal")}</strong>
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
<Table.Summary.Cell />
|
<Table.Summary.Cell />
|
||||||
<Table.Summary.Cell />
|
<Table.Summary.Cell />
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell align="right">
|
||||||
<strong>
|
<strong>
|
||||||
{Dinero(job.job_totals.rates.rates_subtotal).toFormat()}
|
{Dinero(job.job_totals.rates.subtotal).toFormat()}
|
||||||
</strong>
|
</strong>
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
</Table.Summary.Row>
|
</Table.Summary.Row>
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export default function JobTotalsTableOther({ job }) {
|
|||||||
<>
|
<>
|
||||||
<Table.Summary.Row>
|
<Table.Summary.Row>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{t("jobs.labels.additionaltotal")}
|
<strong>{t("jobs.labels.additionaltotal")}</strong>
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
|
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
@@ -90,7 +90,7 @@ export default function JobTotalsTableOther({ job }) {
|
|||||||
</Table.Summary.Row>
|
</Table.Summary.Row>
|
||||||
<Table.Summary.Row>
|
<Table.Summary.Row>
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
{t("jobs.labels.subletstotal")}
|
<strong>{t("jobs.labels.subletstotal")}</strong>
|
||||||
</Table.Summary.Cell>
|
</Table.Summary.Cell>
|
||||||
|
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
|
|||||||
@@ -70,7 +70,9 @@ export default function JobTotalsTableParts({ job }) {
|
|||||||
}}
|
}}
|
||||||
summary={() => (
|
summary={() => (
|
||||||
<Table.Summary.Row>
|
<Table.Summary.Row>
|
||||||
<Table.Summary.Cell>{t("jobs.labels.partstotal")}</Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
|
<strong>{t("jobs.labels.partstotal")}</strong>
|
||||||
|
</Table.Summary.Cell>
|
||||||
|
|
||||||
<Table.Summary.Cell>
|
<Table.Summary.Cell>
|
||||||
<strong>
|
<strong>
|
||||||
|
|||||||
@@ -1705,6 +1705,7 @@
|
|||||||
"vendor": "Vendor"
|
"vendor": "Vendor"
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"credits_not_received_date": "Credits not Received by Date",
|
||||||
"estimator_detail": "Jobs by Estimator (Detail)",
|
"estimator_detail": "Jobs by Estimator (Detail)",
|
||||||
"estimator_summary": "Jobs by Estimator (Summary)",
|
"estimator_summary": "Jobs by Estimator (Summary)",
|
||||||
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
"hours_sold_detail_closed": "Hours Sold Detail - Closed",
|
||||||
|
|||||||
@@ -1705,6 +1705,7 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"credits_not_received_date": "",
|
||||||
"estimator_detail": "",
|
"estimator_detail": "",
|
||||||
"estimator_summary": "",
|
"estimator_summary": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
|
|||||||
@@ -1705,6 +1705,7 @@
|
|||||||
"vendor": ""
|
"vendor": ""
|
||||||
},
|
},
|
||||||
"templates": {
|
"templates": {
|
||||||
|
"credits_not_received_date": "",
|
||||||
"estimator_detail": "",
|
"estimator_detail": "",
|
||||||
"estimator_summary": "",
|
"estimator_summary": "",
|
||||||
"hours_sold_detail_closed": "",
|
"hours_sold_detail_closed": "",
|
||||||
|
|||||||
@@ -519,6 +519,14 @@ export const TemplateList = (type, context) => {
|
|||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
|
credits_not_received_date: {
|
||||||
|
title: i18n.t("reportcenter.templates.credits_not_received_date"),
|
||||||
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.credits_not_received_date"),
|
||||||
|
key: "credits_not_received_date",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
...(!type || type === "courtesycarcontract"
|
...(!type || type === "courtesycarcontract"
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ const queries = require("../graphql-client/queries");
|
|||||||
//const client = require("../graphql-client/graphql-client").client;
|
//const client = require("../graphql-client/graphql-client").client;
|
||||||
const _ = require("lodash");
|
const _ = require("lodash");
|
||||||
const GraphQLClient = require("graphql-request").GraphQLClient;
|
const GraphQLClient = require("graphql-request").GraphQLClient;
|
||||||
const {
|
|
||||||
ExportCustomJobInstance,
|
|
||||||
} = require("twilio/lib/rest/bulkexports/v1/export/exportCustomJob");
|
|
||||||
|
|
||||||
// Dinero.defaultCurrency = "USD";
|
// Dinero.defaultCurrency = "USD";
|
||||||
// Dinero.globalLocale = "en-CA";
|
// Dinero.globalLocale = "en-CA";
|
||||||
|
|||||||
Reference in New Issue
Block a user