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
0
Merge Requests
0
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
Léo-Paul Géneau
slapos.core
Commits
a92ac956
Commit
a92ac956
authored
Feb 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse accounting API.
parent
f74a8d01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/SaleInvoiceTransaction_isTotalPriceEqualAccounting.xml
...se/SaleInvoiceTransaction_isTotalPriceEqualAccounting.xml
+1
-4
master/bt5/vifib_base/bt/revision
master/bt5/vifib_base/bt/revision
+1
-1
No files found.
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/SaleInvoiceTransaction_isTotalPriceEqualAccounting.xml
View file @
a92ac956
...
...
@@ -53,10 +53,7 @@
<value>
<string>
invoice = context\n
\n
total_price = invoice.getTotalPrice()\n
\n
accounting = 0.0\n
for line in invoice.getMovementList(portal_type=invoice.getPortalAccountingMovementTypeList()):\n
accounting += line.getSourceDebit()\n
accounting_price = invoice.AccountingTransaction_getTotalCredit()\n
\n
return total_price == accounting\n
</string>
</value>
...
...
master/bt5/vifib_base/bt/revision
View file @
a92ac956
376
\ No newline at end of file
377
\ No newline at end of file
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