Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
repanier
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
repanier
Commits
93858f78
Commit
93858f78
authored
Dec 05, 2016
by
Patrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show VAT on customers invoices
parent
283cd95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
repanier/models/invoice.py
repanier/models/invoice.py
+7
-0
No files found.
repanier/models/invoice.py
View file @
93858f78
...
...
@@ -135,6 +135,13 @@ class CustomerInvoice(models.Model):
else
:
return
self
.
customer_who_pays
if
self
.
total_price_with_tax
!=
DECIMAL_ZERO
else
DECIMAL_ZERO
def
get_total_price_wo_tax
(
self
):
return
self
.
get_total_price_with_tax
()
-
self
.
get_total_tax
()
def
get_total_tax
(
self
):
# round to 2 decimals
return
RepanierMoney
(
self
.
total_vat
.
amount
+
self
.
delta_vat
.
amount
)
@
transaction
.
atomic
def
set_delivery
(
self
,
delivery
):
# May not use delivery_id because it won't reload customer_invoice.delivery
...
...
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