Commit 789b0608 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'nktaxmodecheck' into 'master'

Added taxmode check to supplier invoice items

See merge request !18
parents 32d27ce1 5622a00c
......@@ -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()) {
......
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