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
f57ff0ca
Commit
f57ff0ca
authored
Nov 22, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the test.
Movements where cloned w/o resetting its delivery value.
parent
459431c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
...ccounting/TestTemplateItem/testSlapOSAccountingBuilder.py
+5
-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 @
f57ff0ca
...
...
@@ -516,6 +516,7 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
)
transaction_movement_1_rec_bis
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
transaction_movement_1_rec_bis
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
transaction_movement_1_sal
=
transaction_rule_1
.
newContent
(
portal_type
=
'Simulation Movement'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
...
...
@@ -556,6 +557,7 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
)
transation_model_movement_1_rec_bis
=
transation_model_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
transation_model_movement_1_rec_bis
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
transation_model_movement_1_sal
=
transation_model_rule_1
.
newContent
(
portal_type
=
'Simulation Movement'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
...
...
@@ -766,8 +768,10 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
transaction_movement_1_rec_bis2
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
transaction_movement_1_rec_bis2
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
transation_model_movement_1_rec_bis2
=
transation_model_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
transation_model_movement_1_rec_bis2
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
self
.
tic
()
self
.
portal
.
portal_deliveries
.
slapos_sale_invoice_transaction_builder
.
build
(
path
=
'%s/%%'
%
applied_rule
.
getPath
())
...
...
@@ -1025,6 +1029,7 @@ class TestSlapOSSaleInvoiceTransactionTradeModelBuilder(TestSlapOSSalePackingLis
model_movement_1_tax_bis
=
model_movement_1_tax
.
Base_createCloneDocument
(
batch_mode
=
1
)
model_movement_1_tax_bis
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
self
.
tic
()
self
.
portal
.
portal_deliveries
\
.
slapos_sale_invoice_transaction_trade_model_builder
.
build
(
...
...
master/bt5/slapos_accounting/bt/revision
View file @
f57ff0ca
131
\ No newline at end of file
132
\ 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