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
97f64ac7
Commit
97f64ac7
authored
Nov 21, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover another case: new movement added to invoice.
parent
dfd0872c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
...ccounting/TestTemplateItem/testSlapOSAccountingBuilder.py
+16
-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 @
97f64ac7
...
...
@@ -585,6 +585,22 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
checkTransactionedInvoice
(
invoice_1
)
checkTransactionedInvoice
(
invoice_2
)
transaction_movement_1_rec_bis2
=
transaction_movement_1_rec
\
.
Base_createCloneDocument
(
batch_mode
=
1
)
self
.
tic
()
self
.
portal
.
portal_deliveries
.
slapos_sale_invoice_transaction_builder
.
build
(
path
=
'%s/%%'
%
applied_rule
.
getPath
())
self
.
tic
()
self
.
checkSimulationMovement
(
transaction_movement_1_rec_bis2
)
transaction_line_1_rec_bis2
=
transaction_movement_1_rec_bis2
\
.
getDeliveryValue
()
checkTransactionLine
(
transaction_movement_1_rec_bis2
,
transaction_line_1_rec_bis2
,
[
'source/account_module/receivable'
,
'destination/account_module/payable'
])
self
.
assertEqual
(
invoice_1
.
getRelativeUrl
(),
transaction_line_1_rec_bis2
.
getParentValue
().
getRelativeUrl
())
class
TestSlapOSSaleInvoiceTransactionTradeModelBuilder
(
testSlapOSMixin
):
def
test
(
self
):
raise
NotImplementedError
...
...
master/bt5/slapos_accounting/bt/revision
View file @
97f64ac7
124
\ No newline at end of file
125
\ 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