Merged in hotfix/2021-05-31 (pull request #83)
Emergency hotfix for GST registrant.
This commit is contained in:
@@ -428,8 +428,8 @@ function CalculateTaxesTotals(job, otherTotals) {
|
||||
ret.custPayable = {
|
||||
deductible: Dinero({ amount: (job.ded_amt || 0) * 100 }) || 0,
|
||||
federal_tax: job.ca_gst_registrant
|
||||
? job.ca_customer_gst !== 0
|
||||
? Dinero({ amount: job.ca_customer_gst * 100 })
|
||||
? job.ca_customer_gst !== 0 || job.ca_customer_gst !== null
|
||||
? Dinero({ amount: Math.round(job.ca_customer_gst * 100) })
|
||||
: ret.federal_tax
|
||||
: Dinero(),
|
||||
other_customer_amount: Dinero({
|
||||
|
||||
Reference in New Issue
Block a user