Bug 719714 - JS rules ignore multiplier when calculating virt qty for pool
Summary: JS rules ignore multiplier when calculating virt qty for pool
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-07 18:15 UTC by Amanda Carter
Modified: 2015-05-14 16:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-14 16:06:21 UTC


Attachments (Terms of Use)

Description Amanda Carter 2011-07-07 18:15:33 UTC
Description of problem:

java script rules in Candlepin for creating a pool calculate physical qty correctly, but virt qty incorrectly if a multiplier is on a sku.


Version-Release number of selected component (if applicable):

CP0.3, 0.4


How reproducible:

View pools for user account mkhusid_test / redhat in Candlepin FTE or any account with a subscription to SER0198US

candlepin-fte.gss.devlab.phx1.redhat.com
https://rails-fte.gss.devlab.phx1.redhat.com/management

In this case, ordered qty is 10, multiplier is 3 and virt limit is 4.

Actual results:

Rules calculate physical qty as: product qty * multiplier
but virt qty as: product qty * virt limit (not considering multiplier)

Physical qty - 30
Virt qty - 40

Expected results:


Physical qty: product qty * multiplier
Virt qty: product qty * virt limit * multiplier

Physical qty - 30
Virt qty - 120


Note You need to log in before you can comment on or make changes to this bug.