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
fe69e4e9
Commit
fe69e4e9
authored
Jan 31, 2013
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Builder create by default payzen related invoice.
parent
efd0b05d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_simulation/SlapOSSaleInvoiceTransaction_postGeneration.xml
...imulation/SlapOSSaleInvoiceTransaction_postGeneration.xml
+2
-0
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
...ccounting/TestTemplateItem/testSlapOSAccountingBuilder.py
+1
-1
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_simulation/SlapOSSaleInvoiceTransaction_postGeneration.xml
View file @
fe69e4e9
...
@@ -62,6 +62,8 @@ invoice = context\n
...
@@ -62,6 +62,8 @@ invoice = context\n
price_currency = invoice.getPriceCurrency()\n
price_currency = invoice.getPriceCurrency()\n
if invoice.getResource() != price_currency:\n
if invoice.getResource() != price_currency:\n
invoice.setResource(price_currency)\n
invoice.setResource(price_currency)\n
if invoice.getPaymentMode("") == "":\n
invoice.setPaymentModeValue(invoice.getPortalObject().portal_categories.payment_mode.payzen)\n
comment = translateString(\'Initialised by Delivery Builder.\')\n
comment = translateString(\'Initialised by Delivery Builder.\')\n
if invoice.portal_workflow.isTransitionPossible(invoice, \'plan\'):\n
if invoice.portal_workflow.isTransitionPossible(invoice, \'plan\'):\n
invoice.plan(comment=comment)\n
invoice.plan(comment=comment)\n
...
...
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingBuilder.py
View file @
fe69e4e9
...
@@ -341,7 +341,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
...
@@ -341,7 +341,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
invoice_kw
=
dict
(
delivery_portal_type
=
'Sale Invoice Transaction'
,
invoice_kw
=
dict
(
delivery_portal_type
=
'Sale Invoice Transaction'
,
simulation_state
=
'confirmed'
)
simulation_state
=
'confirmed'
)
category_list
=
[
'resource/currency_module/EUR'
]
category_list
=
[
'resource/currency_module/EUR'
,
'payment_mode/payzen'
]
self
.
checkDelivery
(
invoice_movement_1
,
invoice_1
,
self
.
checkDelivery
(
invoice_movement_1
,
invoice_1
,
category_list
=
category_list
+
convertCategoryList
(
'causality'
,
category_list
=
category_list
+
convertCategoryList
(
'causality'
,
[
delivery_1
.
getRelativeUrl
()]),
**
invoice_kw
)
[
delivery_1
.
getRelativeUrl
()]),
**
invoice_kw
)
...
...
master/bt5/slapos_accounting/bt/revision
View file @
fe69e4e9
249
250
\ 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