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
789b0608
Commit
789b0608
authored
Nov 28, 2016
by
Nigel Kukard
Browse files
Merge branch 'nktaxmodecheck' into 'master'
Added taxmode check to supplier invoice items See merge request !18
parents
32d27ce1
5622a00c
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/Purchasing.pm
View file @
789b0608
...
...
@@ -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