We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1731323 + 02a740d commit a5c307bCopy full SHA for a5c307b
src/config/projectWizard/index.js
@@ -618,6 +618,13 @@ export function getProductEstimate(projectTemplate, projectData) {
618
if (isNaN(bbPrice)) { // if we are unable to parse price as numeric value, set it as ZERO
619
bbPrice = 0
620
}
621
+ // stores back the evaluated price, if the price field contains the formula
622
+ if (_.isString(bb.price)) {
623
+ // stores the original formula in metadata
624
+ bb.metadata.priceFormula = bb.price
625
+ // updates the price with evaluated price
626
+ bb.price = bbPrice
627
+ }
628
price += (bbPrice * (bb.quantity ? bb.quantity : 1))
629
minTime += bb.minTime
630
maxTime += bb.maxTime
0 commit comments