Compare commits

..

4 Commits

Author SHA1 Message Date
Patrick Fic
87d2618020 Add rounding for depreciation. 2021-06-08 15:41:24 -07:00
Patrick Fic
784c58e295 Merged in feature/2020-06-04 (pull request #98)
Feature/2020 06 04
2021-06-04 20:21:40 +00:00
Patrick Fic
afeb2b94cd Merged in feature/2020-06-04 (pull request #95)
Feature/2020 06 04
2021-06-02 23:19:55 +00:00
Patrick Fic
61c57e1866 Merged in hotfix/2021-06-01 (pull request #91)
Hotfix/2021 06 01
2021-06-01 21:47:20 +00:00

View File

@@ -432,16 +432,18 @@ function CalculateTaxesTotals(job, otherTotals) {
);
ret.custPayable = {
deductible: Dinero({ amount: (job.ded_amt || 0) * 100 }) || 0,
deductible: Dinero({ amount: Math.round((job.ded_amt || 0) * 100) }) || 0,
federal_tax: job.ca_gst_registrant
? job.ca_customer_gst === 0 || job.ca_customer_gst === null
? ret.federal_tax
: Dinero({ amount: Math.round(job.ca_customer_gst * 100) })
: Dinero(),
other_customer_amount: Dinero({
amount: (job.other_amount_payable || 0) * 100,
amount: Math.round((job.other_amount_payable || 0) * 100),
}),
dep_taxes: Dinero({
amount: Math.round((job.depreciation_taxes || 0) * 100),
}),
dep_taxes: Dinero({ amount: (job.depreciation_taxes || 0) * 100 }),
};
ret.custPayable.total = ret.custPayable.deductible