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