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
c7fc6e5e
Commit
c7fc6e5e
authored
Feb 08, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get the price directly from the service
parent
cdc684e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/Person_createRegistrationInvoice.xml
...ion_workflow/scripts/Person_createRegistrationInvoice.xml
+4
-2
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/Person_createRegistrationInvoice.xml
View file @
c7fc6e5e
...
@@ -79,11 +79,13 @@ if invoice_line is None:\n
...
@@ -79,11 +79,13 @@ if invoice_line is None:\n
created_by_builder=1, # XXX to prevent init script to create lines\n
created_by_builder=1, # XXX to prevent init script to create lines\n
**kw\n
**kw\n
)\n
)\n
service = portal.restrictedTraverse(portal.portal_preferences.getPreferredRegistrationResource())\n
invoice.newContent(\n
invoice.newContent(\n
portal_type=\'Invoice Line\',\n
portal_type=\'Invoice Line\',\n
resource=
portal.portal_preferences.getPreferredRegistrationResource
(),\n
resource=
service.getRelativeUrl
(),\n
quantity=1,\n
quantity=1,\n
price=1,\n
# XXX Hardcode price on service\n
price=service.getSaleSupplyLineBasePrice(),\n
**kw\n
**kw\n
)\n
)\n
\n
\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
c7fc6e5e
561
562
\ 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