Set vm base price in js also
This commit is contained in:
parent
00b434efb9
commit
e6de90e431
5 changed files with 8 additions and 5 deletions
|
|
@ -266,8 +266,8 @@ $( document ).ready(function() {
|
|||
}
|
||||
var total = (cardPricing['cpu'].value * window.coresUnitPrice) +
|
||||
(cardPricing['ram'].value * window.ramUnitPrice) +
|
||||
(cardPricing['storage'].value * window.ssdUnitPrice) -
|
||||
window.discountAmount;
|
||||
(cardPricing['storage'].value * window.ssdUnitPrice) +
|
||||
window.vmBasePrice - window.discountAmount;
|
||||
total = parseFloat(total.toFixed(2));
|
||||
$("#total").text(total);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue