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

Merge branch 'nktaxmodecheck' into 'master'

Added taxmode check to supplier invoice items

See merge request !18
parents 32d27ce1 5622a00c
Pipeline #463 passed with stages
in 1 minute and 3 seconds
......@@ -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()) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment