Null handling missed in previous updates.
This commit is contained in:
@@ -118,7 +118,7 @@ export default function JobBillsTotalComponent({
|
|||||||
<Statistic
|
<Statistic
|
||||||
title={t("bills.labels.totalreturns")}
|
title={t("bills.labels.totalreturns")}
|
||||||
value={totalReturns.toFormat()}
|
value={totalReturns.toFormat()}
|
||||||
/>{" "}
|
/>
|
||||||
<Statistic
|
<Statistic
|
||||||
title={t("bills.labels.creditsreceived")}
|
title={t("bills.labels.creditsreceived")}
|
||||||
value={billCms.toFormat()}
|
value={billCms.toFormat()}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export default function JobsAvailableComponent({
|
|||||||
title: t("general.labels.actions"),
|
title: t("general.labels.actions"),
|
||||||
key: "actions",
|
key: "actions",
|
||||||
render: (text, record) => (
|
render: (text, record) => (
|
||||||
<Space>
|
<Space wrap>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
deleteJob({ variables: { id: record.id } }).then((r) => {
|
deleteJob({ variables: { id: record.id } }).then((r) => {
|
||||||
|
|||||||
@@ -352,7 +352,9 @@ function CalculateTaxesTotals(job, otherTotals) {
|
|||||||
((job.parts_tax_rates &&
|
((job.parts_tax_rates &&
|
||||||
job.parts_tax_rates[val.part_type] &&
|
job.parts_tax_rates[val.part_type] &&
|
||||||
job.parts_tax_rates[val.part_type].prt_tax_rt) ||
|
job.parts_tax_rates[val.part_type].prt_tax_rt) ||
|
||||||
(val.part_type.startsWith("PAG") &&
|
(val.part_type &&
|
||||||
|
val.part_type.startsWith("PAG") &&
|
||||||
|
BackupGlassTax &&
|
||||||
BackupGlassTax.prt_tax_rt) ||
|
BackupGlassTax.prt_tax_rt) ||
|
||||||
0) * 100
|
0) * 100
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user