diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index a567c0a0..1de9c388 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -509,11 +509,13 @@ export default { value: "receivedCost" }); - headers.push({ - text: vm.$ay.t("TaxCode"), - align: "left", - value: "displayTaxCode" - }); + if (vm.obj.displayTaxes) { + headers.push({ + text: vm.$ay.t("TaxCode"), + align: "left", + value: "displayTaxCode" + }); + } headers.push({ text: vm.$ay.t("PurchaseOrderItemNetTotal"), @@ -521,17 +523,19 @@ export default { value: "displayNetTotal" }); - headers.push({ - text: vm.$ay.t("TaxCodeTaxA"), - align: "right", - value: "displayTaxA" - }); + if (vm.obj.displayTaxes) { + headers.push({ + text: vm.$ay.t("TaxCodeTaxA"), + align: "right", + value: "displayTaxA" + }); - headers.push({ - text: vm.$ay.t("TaxCodeTaxB"), - align: "right", - value: "displayTaxB" - }); + headers.push({ + text: vm.$ay.t("TaxCodeTaxB"), + align: "right", + value: "displayTaxB" + }); + } headers.push({ text: vm.$ay.t("PurchaseOrderItemLineTotal"),