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
895afcee
Commit
895afcee
authored
Nov 04, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_ui_test: Extend create Fake Invoices to create paid and unpaid invoices
parent
34a0667d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.py
...os_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.py
+15
-1
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.xml
...s_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.xml
+1
-1
No files found.
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.py
View file @
895afcee
...
@@ -19,6 +19,7 @@ def wrapWithShadow():
...
@@ -19,6 +19,7 @@ def wrapWithShadow():
payment
.
confirm
()
payment
.
confirm
()
payment
.
start
()
payment
.
start
()
if
not
unpaid
:
payment
.
stop
()
payment
.
stop
()
payment
.
PaymentTransaction_generatePayzenId
()
payment
.
PaymentTransaction_generatePayzenId
()
...
@@ -53,10 +54,23 @@ current_invoice, payment = demo_user_functional.Person_restrictMethodAsShadowUse
...
@@ -53,10 +54,23 @@ current_invoice, payment = demo_user_functional.Person_restrictMethodAsShadowUse
argument_list
=
[])
argument_list
=
[])
payment
.
setCausalityValue
(
current_invoice
)
payment
.
setCausalityValue
(
current_invoice
)
payment
.
setDestinationSectionValue
(
demo_user_functional
)
current_invoice
.
plan
()
current_invoice
.
plan
()
current_invoice
.
confirm
()
current_invoice
.
confirm
()
current_invoice
.
startBuilding
()
current_invoice
.
startBuilding
()
current_invoice
.
reindexObject
()
current_invoice
.
reindexObject
()
current_invoice
.
stop
()
current_invoice
.
stop
()
if
not
unpaid
:
def
isNodeFromLineReceivable
(
line
):
node_value
=
line
.
getSourceValue
(
portal_type
=
'Account'
)
return
node_value
.
getAccountType
()
==
'asset/receivable'
for
line
in
current_invoice
.
getMovementList
(
portal
.
getPortalAccountingMovementTypeList
()):
if
isNodeFromLineReceivable
(
line
):
if
not
line
.
hasGroupingReference
():
line
.
setGroupingReference
(
'FAKEGROUPINGREFERENCE'
)
break
return
'Done.'
return
'Done.'
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_createSlapOSFakeInvoiceForTestUser.xml
View file @
895afcee
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
unpaid=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
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