IO-975 IO-978 IO-922 Multiple bug fixes.
This commit is contained in:
@@ -401,7 +401,11 @@ function CalculateTaxesTotals(job, otherTotals) {
|
||||
|
||||
ret.custPayable = {
|
||||
deductible: Dinero({ amount: (job.ded_amt || 0) * 100 }) || 0,
|
||||
federal_tax: job.ca_gst_registrant ? ret.federal_tax : Dinero(),
|
||||
federal_tax: job.ca_gst_registrant
|
||||
? job.ca_customer_gst !== 0
|
||||
? Dinero({ amount: job.ca_customer_gst * 100 })
|
||||
: ret.federal_tax
|
||||
: Dinero(),
|
||||
other_customer_amount: Dinero({
|
||||
amount: (job.other_amount_payable || 0) * 100,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user