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
Xiaowu Zhang
slapos.core
Commits
3cf5954f
Commit
3cf5954f
authored
Apr 03, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify logic.
Payment in planned or confirmed state are interesting for user.
parent
09e0e3c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
5 deletions
+39
-5
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibKVMOrder/my_pay_button.xml
...ib_hosting/WebSection_viewVifibKVMOrder/my_pay_button.xml
+20
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibKVMOrder/your_payment_preparation_js.xml
...Section_viewVifibKVMOrder/your_payment_preparation_js.xml
+16
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_web/ERP5Site_getInitialPlannedPaymentTransaction.xml
...ifib_web/ERP5Site_getInitialPlannedPaymentTransaction.xml
+2
-2
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibKVMOrder/my_pay_button.xml
View file @
3cf5954f
...
...
@@ -64,6 +64,12 @@
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -75,7 +81,7 @@
<item>
<key>
<string>
href
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
I
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</item>
<item>
...
...
@@ -132,6 +138,19 @@
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.ERP5Site_getInitialPlannedPaymentTransaction() is not None
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibKVMOrder/your_payment_preparation_js.xml
View file @
3cf5954f
...
...
@@ -146,7 +146,9 @@
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<string></string>
</value>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
external_validator
</string>
</key>
...
...
@@ -302,4 +304,17 @@ Registration Payment Information are being updated. Please wait a while.
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.ERP5Site_getInitialPlannedPaymentTransaction() is None
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_web/ERP5Site_getInitialPlannedPaymentTransaction.xml
View file @
3cf5954f
...
...
@@ -59,11 +59,11 @@ payment_amount = context.portal_catalog.countResults(\n
\n
payment_transaction = context.portal_catalog.getResultValue(\n
portal_type=\'Payment Transaction\',\n
simulation_state=
\'planned\'
,\n
simulation_state=
[\'planned\', \'confirmed\']
,\n
default_destination_section_uid=person.getUid()\n
)\n
\n
if payment_amount == 1 and payment_transaction is not None and payment_transaction.getSimulationState()
== \'planned\'
:\n
if payment_amount == 1 and payment_transaction is not None and payment_transaction.getSimulationState()
in [\'planned\', \'confirmed\']
:\n
return payment_transaction\n
return None\n
</string>
</value>
...
...
master/bt5/vifib_web/bt/revision
View file @
3cf5954f
359
\ No newline at end of file
360
\ 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