Commit 5622a00c authored by Nigel Kukard's avatar Nigel Kukard

Added taxmode check to supplier invoice items

parent 15aa0af0
......@@ -751,6 +751,10 @@ sub linkSupplierInvoiceItem
# Get ready for calculating tax
my ($taxAmount,$taxMode) = wiaflos::server::core::Tax::getTaxAmount($detail->{'TaxMode'},$taxRate,$totalPrice);
if (!defined($taxMode)) {
setError(wiaflos::server::core::Tax::Error());
return $taxType;
}
# Calculate discount
if (!$discount->is_zero()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment