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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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):
...
@@ -516,6 +516,7 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
)
)
transaction_movement_1_rec_bis
=
transaction_movement_1_rec
\
transaction_movement_1_rec_bis
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
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
(
transaction_movement_1_sal
=
transaction_rule_1
.
newContent
(
portal_type
=
'Simulation Movement'
,
portal_type
=
'Simulation Movement'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
...
@@ -556,6 +557,7 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
...
@@ -556,6 +557,7 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
)
)
transation_model_movement_1_rec_bis
=
transation_model_movement_1_rec
\
transation_model_movement_1_rec_bis
=
transation_model_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
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
(
transation_model_movement_1_sal
=
transation_model_rule_1
.
newContent
(
portal_type
=
'Simulation Movement'
,
portal_type
=
'Simulation Movement'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
causality
=
[
'business_process_module/slapos_sale_business_process/account'
,
...
@@ -766,8 +768,10 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
...
@@ -766,8 +768,10 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
transaction_movement_1_rec_bis2
=
transaction_movement_1_rec
\
transaction_movement_1_rec_bis2
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
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
\
transation_model_movement_1_rec_bis2
=
transation_model_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
Base_createCloneDocument
(
batch_mode
=
1
)
transation_model_movement_1_rec_bis2
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
self
.
tic
()
self
.
tic
()
self
.
portal
.
portal_deliveries
.
slapos_sale_invoice_transaction_builder
.
build
(
self
.
portal
.
portal_deliveries
.
slapos_sale_invoice_transaction_builder
.
build
(
path
=
'%s/%%'
%
applied_rule
.
getPath
())
path
=
'%s/%%'
%
applied_rule
.
getPath
())
...
@@ -1025,6 +1029,7 @@ class TestSlapOSSaleInvoiceTransactionTradeModelBuilder(TestSlapOSSalePackingLis
...
@@ -1025,6 +1029,7 @@ class TestSlapOSSaleInvoiceTransactionTradeModelBuilder(TestSlapOSSalePackingLis
model_movement_1_tax_bis
=
model_movement_1_tax
.
Base_createCloneDocument
(
model_movement_1_tax_bis
=
model_movement_1_tax
.
Base_createCloneDocument
(
batch_mode
=
1
)
batch_mode
=
1
)
model_movement_1_tax_bis
.
edit
(
delivery
=
None
,
delivery_ratio
=
1.0
)
self
.
tic
()
self
.
tic
()
self
.
portal
.
portal_deliveries
\
self
.
portal
.
portal_deliveries
\
.
slapos_sale_invoice_transaction_trade_model_builder
.
build
(
.
slapos_sale_invoice_transaction_trade_model_builder
.
build
(
...
...
master/bt5/slapos_accounting/bt/revision
View file @
f57ff0ca
131
132
\ No newline at end of file
\ 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