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
Carlos Ramos Carreño
slapos.core
Commits
e4c7092b
Commit
e4c7092b
authored
Nov 22, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cloned line case.
parent
1f772b7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
...ccounting/TestTemplateItem/testSlapOSAccountingBuilder.py
+10
-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 @
e4c7092b
...
...
@@ -1168,6 +1168,8 @@ class TestSlapOSPaymentTransactionBuilder(TestSlapOSSalePackingListBuilder):
specialise
=
'sale_trade_condition_module/slapos_trade_condition'
,
trade_phase
=
'slapos/payment'
)
payment_movement_1_rec_bank_bis
=
payment_movement_1_rec_bank
.
Base_createCloneDocument
(
batch_mode
=
1
)
payment_movement_1_rec_rec
=
payment_rule_1_rec
.
newContent
(
portal_type
=
'Simulation Movement'
,
price
=
1.0
,
...
...
@@ -1308,6 +1310,7 @@ class TestSlapOSPaymentTransactionBuilder(TestSlapOSSalePackingListBuilder):
path
=
'%s/%%'
%
applied_rule
.
getPath
())
self
.
tic
()
self
.
checkSimulationMovement
(
payment_movement_1_rec_bank
)
self
.
checkSimulationMovement
(
payment_movement_1_rec_bank_bis
)
self
.
checkSimulationMovement
(
payment_movement_1_rec_rec
)
self
.
checkSimulationMovement
(
payment_movement_2_rec_bank
)
self
.
checkSimulationMovement
(
payment_movement_2_rec_rec
)
...
...
@@ -1317,6 +1320,7 @@ class TestSlapOSPaymentTransactionBuilder(TestSlapOSSalePackingListBuilder):
self
.
checkSimulationMovement
(
payment_model_movement_2_rec_rec
)
transaction_line_1_rec_bank
=
payment_movement_1_rec_bank
.
getDeliveryValue
()
transaction_line_1_rec_bank_bis
=
payment_movement_1_rec_bank_bis
.
getDeliveryValue
()
transaction_line_1_rec_rec
=
payment_movement_1_rec_rec
.
getDeliveryValue
()
transaction_line_2_rec_bank
=
payment_movement_2_rec_bank
.
getDeliveryValue
()
transaction_line_2_rec_rec
=
payment_movement_2_rec_rec
.
getDeliveryValue
()
...
...
@@ -1349,6 +1353,10 @@ class TestSlapOSPaymentTransactionBuilder(TestSlapOSSalePackingListBuilder):
[
'destination/account_module/bank'
,
'source/account_module/bank'
,
'source_payment/organisation_module/slapos/bank_account'
])
checkTransactionLine
(
payment_movement_1_rec_bank_bis
,
transaction_line_1_rec_bank_bis
,
[
'destination/account_module/bank'
,
'source/account_module/bank'
,
'source_payment/organisation_module/slapos/bank_account'
])
checkTransactionLine
(
payment_movement_1_rec_rec
,
transaction_line_1_rec_rec
,
[
'destination/account_module/payable'
,
'source/account_module/receivable'
,
...
...
@@ -1381,6 +1389,8 @@ class TestSlapOSPaymentTransactionBuilder(TestSlapOSSalePackingListBuilder):
self
.
assertEqual
(
transaction_line_1_rec_bank
.
getParentValue
(),
transaction_model_line_1_rec_bank
.
getParentValue
())
self
.
assertEqual
(
transaction_line_1_rec_bank_bis
.
getParentValue
(),
transaction_model_line_1_rec_bank
.
getParentValue
())
self
.
assertEqual
(
transaction_line_2_rec_bank
.
getParentValue
(),
transaction_model_line_2_rec_bank
.
getParentValue
())
self
.
assertEqual
(
transaction_line_1_rec_bank
.
getParentValue
(),
...
...
master/bt5/slapos_accounting/bt/revision
View file @
e4c7092b
135
\ No newline at end of file
136
\ 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