Emergency hotfix for GST registrant.
This commit is contained in:
@@ -36,8 +36,11 @@ export function JobsDetailRates({ jobRO, form, job }) {
|
|||||||
<CurrencyInput
|
<CurrencyInput
|
||||||
disabled={jobRO}
|
disabled={jobRO}
|
||||||
max={
|
max={
|
||||||
((job.job_totals && job.job_totals.totals.federal_tax.amount) ||
|
Math.round(
|
||||||
0) / 100
|
(job.job_totals &&
|
||||||
|
job.job_totals.totals.federal_tax.amount) ||
|
||||||
|
0
|
||||||
|
) / 100
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
@@ -428,8 +428,8 @@ function CalculateTaxesTotals(job, otherTotals) {
|
|||||||
ret.custPayable = {
|
ret.custPayable = {
|
||||||
deductible: Dinero({ amount: (job.ded_amt || 0) * 100 }) || 0,
|
deductible: Dinero({ amount: (job.ded_amt || 0) * 100 }) || 0,
|
||||||
federal_tax: job.ca_gst_registrant
|
federal_tax: job.ca_gst_registrant
|
||||||
? job.ca_customer_gst !== 0
|
? job.ca_customer_gst !== 0 || job.ca_customer_gst !== null
|
||||||
? Dinero({ amount: job.ca_customer_gst * 100 })
|
? Dinero({ amount: Math.round(job.ca_customer_gst * 100) })
|
||||||
: ret.federal_tax
|
: ret.federal_tax
|
||||||
: Dinero(),
|
: Dinero(),
|
||||||
other_customer_amount: Dinero({
|
other_customer_amount: Dinero({
|
||||||
|
|||||||
Reference in New Issue
Block a user