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
Roque
slapos.core
Commits
9d2c1e55
Commit
9d2c1e55
authored
Feb 02, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explanation when changing document state
parent
11ca3fcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_manageLockByBalance.xml
...em/portal_skins/vifib_slap/Person_manageLockByBalance.xml
+2
-2
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_manageLockByBalance.xml
View file @
9d2c1e55
...
@@ -63,7 +63,7 @@ balance = context.portal_simulation.getInventoryAssetPrice(\n
...
@@ -63,7 +63,7 @@ balance = context.portal_simulation.getInventoryAssetPrice(\n
if maximum_balance >
balance:\n
if maximum_balance >
balance:\n
# customer reached his balance, shall be locked\n
# customer reached his balance, shall be locked\n
if not locked and operation == \'lock\':\n
if not locked and operation == \'lock\':\n
context.lock()\n
context.lock(
comment="Balance value is %s" % balance
)\n
return\n
return\n
\n
\n
# check ongoing payments and check that date if is acceptable, if not lock\n
# check ongoing payments and check that date if is acceptable, if not lock\n
...
@@ -76,7 +76,7 @@ if context.portal_catalog.countResults(\n
...
@@ -76,7 +76,7 @@ if context.portal_catalog.countResults(\n
})[0][0] > 0:\n
})[0][0] > 0:\n
# there are ongoing old payments, shall be locked\n
# there are ongoing old payments, shall be locked\n
if not locked and operation == \'lock\':\n
if not locked and operation == \'lock\':\n
context.lock()\n
context.lock(
comment="Payment transaction not paid for more than %s days" % maximum_due_date
)\n
else:\n
else:\n
# there are no ongoing payments and balance is acceptable\n
# there are no ongoing payments and balance is acceptable\n
if locked and operation == \'unlock\':\n
if locked and operation == \'unlock\':\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
9d2c1e55
531
532
\ 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