IO-2793 Insure Part Tax Type Exists

Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
Allan Carr
2024-06-26 09:32:04 -07:00
parent fc7da187f4
commit 294325343b

View File

@@ -910,6 +910,7 @@ function checkStateTax(jobline, jobs_by_pk) {
} else { } else {
if (jobline.part_type) { if (jobline.part_type) {
if ( if (
!jobs_by_pk.parts_tax_rates[`${jobline.part_type.toUpperCase()}`] ||
jobs_by_pk.parts_tax_rates[`${jobline.part_type.toUpperCase()}`].prt_tax_in === false || jobs_by_pk.parts_tax_rates[`${jobline.part_type.toUpperCase()}`].prt_tax_in === false ||
jobs_by_pk.parts_tax_rates[`${jobline.part_type.toUpperCase()}`].prt_tax_rt === 0 jobs_by_pk.parts_tax_rates[`${jobline.part_type.toUpperCase()}`].prt_tax_rt === 0
) { ) {