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
0bba91bb
Commit
0bba91bb
authored
Nov 21, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prove movement splitting.
parent
866dc7f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
...ccounting/TestTemplateItem/testSlapOSAccountingBuilder.py
+8
-0
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
View file @
0bba91bb
...
...
@@ -455,6 +455,8 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
price
=
1.0
,
quantity
=
invoice_movement_1
.
getTotalPrice
()
*
-
1
,
)
transaction_movement_1_rec_bis
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
transaction_movement_1_sal
=
transaction_rule_1
.
newContent
(
portal_type
=
'Simulation Movement'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
...
...
@@ -518,11 +520,13 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
self
.
tic
()
self
.
checkSimulationMovement
(
transaction_movement_1_rec
)
self
.
checkSimulationMovement
(
transaction_movement_1_rec_bis
)
self
.
checkSimulationMovement
(
transaction_movement_1_sal
)
self
.
checkSimulationMovement
(
transaction_movement_2_rec
)
self
.
checkSimulationMovement
(
transaction_movement_2_sal
)
transaction_line_1_rec
=
transaction_movement_1_rec
.
getDeliveryValue
()
transaction_line_1_rec_bis
=
transaction_movement_1_rec_bis
.
getDeliveryValue
()
transaction_line_1_sal
=
transaction_movement_1_sal
.
getDeliveryValue
()
transaction_line_2_rec
=
transaction_movement_2_rec
.
getDeliveryValue
()
transaction_line_2_sal
=
transaction_movement_2_sal
.
getDeliveryValue
()
...
...
@@ -547,6 +551,10 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
checkTransactionLine
(
transaction_movement_1_rec
,
transaction_line_1_rec
,
[
'source/account_module/receivable'
,
'destination/account_module/payable'
])
checkTransactionLine
(
transaction_movement_1_rec_bis
,
transaction_line_1_rec_bis
,
[
'source/account_module/receivable'
,
'destination/account_module/payable'
])
checkTransactionLine
(
transaction_movement_1_sal
,
transaction_line_1_sal
,
[
'destination/account_module/purchase'
,
'source/account_module/receivable'
])
...
...
master/bt5/slapos_accounting/bt/revision
View file @
0bba91bb
121
\ No newline at end of file
122
\ 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