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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
dfb2d23c
Commit
dfb2d23c
authored
Feb 22, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set price and quantity unconditionally.
parent
05c59ccf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/DeliveryLineSetZeroPriceAndOrUpdateAppliedRule.xml
...grader/DeliveryLineSetZeroPriceAndOrUpdateAppliedRule.xml
+2
-4
master/bt5/vifib_upgrader/SkinTemplateItem/portal_skins/vifib_upgrader/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
...er/SaleOrderLine_setPriceToZeroAndOrUpdateAppliedRule.xml
+2
-4
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 @
dfb2d23c
...
...
@@ -54,10 +54,8 @@
if context.getSimulationState() == \'cancelled\':\n
return\n
price = context.getPrice()\n
if price != 0.0:\n
context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.setPrice(0.0)\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 @
dfb2d23c
...
...
@@ -53,10 +53,8 @@
<value>
<string>
if context.getPortalType() != \'Sale Order Line\':\n
raise ValueError(\'%s is not sale order line\' % context.getPath())\n
price = context.getPrice()\n
if price != 0.0:\n
context.setPrice(0.0)\n
if quantity != 1.0:\n
context.setQuantity(1.0)\n
context.setPrice(0.0)\n
context.setQuantity(1.0)\n
context.getParentValue().Delivery_updateAppliedRule()\n
</string>
</value>
</item>
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
dfb2d23c
33
\ No newline at end of file
34
\ 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