Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
25230070
Commit
25230070
authored
Jun 02, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: deposit service is not taxable
XXX to check with accountants
parent
a2f5c1a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/SaleInvoiceTransaction_isTradeModelCorrect.py
..._accounting/SaleInvoiceTransaction_isTradeModelCorrect.py
+9
-5
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/SaleInvoiceTransaction_isTradeModelCorrect.py
View file @
25230070
...
@@ -5,14 +5,18 @@ if specialise is None or specialise.getSpecialiseValue() is None:
...
@@ -5,14 +5,18 @@ if specialise is None or specialise.getSpecialiseValue() is None:
return
True
return
True
amount_list
=
specialise
.
getAggregatedAmountList
(
context
)
amount_list
=
specialise
.
getAggregatedAmountList
(
context
)
if
len
(
amount_list
)
<
1
:
return
False
precision
=
context
.
getPriceCurrencyValue
().
getQuantityPrecision
()
precision
=
context
.
getPriceCurrencyValue
().
getQuantityPrecision
()
amount
=
amount_list
[
0
]
if
len
(
amount_list
)
==
1
:
# XXX why only one amount is expected?
total_price
=
amount
.
getTotalPrice
()
amount
=
amount_list
[
0
]
total_price
=
amount
.
getTotalPrice
()
elif
len
(
amount_list
)
==
0
:
# Not all service will generate tax (deposit)
total_price
=
0
else
:
return
False
invoice_tax
=
0.
invoice_tax
=
0.
for
line
in
context
.
getMovementList
(
context
.
getPortalInvoiceMovementTypeList
()):
for
line
in
context
.
getMovementList
(
context
.
getPortalInvoiceMovementTypeList
()):
...
...
Write
Preview
Markdown
is supported
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