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
Lisa Casino
slapos.core
Commits
c36af6c0
Commit
c36af6c0
authored
Sep 03, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate payments in confirmed state.
parent
81371a01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibPaymentTransaction_postGeneration.xml
...fib_simulation/VifibPaymentTransaction_postGeneration.xml
+6
-0
master/bt5/vifib_base/bt/revision
master/bt5/vifib_base/bt/revision
+1
-1
No files found.
master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_simulation/VifibPaymentTransaction_postGeneration.xml
View file @
c36af6c0
...
@@ -51,12 +51,18 @@
...
@@ -51,12 +51,18 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ERP5Type.Message import translateString\n
<value>
<string>
from Products.ERP5Type.Message import translateString\n
from DateTime import DateTime\n
\n
\n
payment_transaction = context\n
payment_transaction = context\n
\n
\n
if payment_transaction.getStartDate() is None:\n
payment_transaction.setStartDate(DateTime())\n
\n
# initialize accounting_workflow to planned state\n
# initialize accounting_workflow to planned state\n
if payment_transaction.getSimulationState() == "draft":\n
if payment_transaction.getSimulationState() == "draft":\n
payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n
payment_transaction.plan(comment=translateString("Initialised by Delivery Builder."))\n
if payment_transaction.getSimulationState() == "planned":\n
payment_transaction.confirm(comment=translateString("Initialised by Delivery Builder."))\n
\n
\n
if payment_transaction.getCausalityState() == "draft":\n
if payment_transaction.getCausalityState() == "draft":\n
# First set the payment transaction in the building state on the causality workflow\n
# First set the payment transaction in the building state on the causality workflow\n
...
...
master/bt5/vifib_base/bt/revision
View file @
c36af6c0
470
471
\ 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