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
84ddf3d5
Commit
84ddf3d5
authored
Feb 22, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set always price to 0
On non cancelled PPL set quantity 1.0
parent
dfb2d23c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/DeliveryLineSetZeroPriceAndOrUpdateAppliedRule.xml
...grader/DeliveryLineSetZeroPriceAndOrUpdateAppliedRule.xml
+5
-4
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
...er/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
+0
-1
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/DeliveryLineSetZeroPriceAndOrUpdateAppliedRule.xml
View file @
84ddf3d5
...
...
@@ -51,11 +51,12 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
assert( context.getPortalType() in context.getPortalDeliveryMovementTypeList() )\n
if context.getSimulationState() == \'cancelled\':\n
return\n
price = context.getPrice()\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
if context.getSimulationState() == \'cancelled\':\n
# force no simulation\n
context.setQuantity(0.0)\n
else:\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n
</string>
</value>
</item>
...
...
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
View file @
84ddf3d5
...
...
@@ -52,7 +52,6 @@
<key>
<string>
_body
</string>
</key>
<value>
<string>
if context.getPortalType() != \'Sale Order Line\':\n
raise ValueError(\'%s is not sale order line\' % context.getPath())\n
price = context.getPrice()\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
84ddf3d5
34
\ No newline at end of file
35
\ 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