Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Spencer
wiaflos
Commits
5622a00c
Commit
5622a00c
authored
Nov 28, 2016
by
Nigel Kukard
Browse files
Added taxmode check to supplier invoice items
parent
15aa0af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/Purchasing.pm
View file @
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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment