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

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)) {
return $taxType;
# Calculate discount
if (!$discount->is_zero()) {
Supports Markdown
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