Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/config/projectWizard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,13 @@ export function getProductEstimate(projectTemplate, projectData) {
if (isNaN(bbPrice)) { // if we are unable to parse price as numeric value, set it as ZERO
bbPrice = 0
}
// stores back the evaluated price, if the price field contains the formula
if (_.isString(bb.price)) {
// stores the original formula in metadata
bb.metadata.priceFormula = bb.price
// updates the price with evaluated price
bb.price = bbPrice
}
price += (bbPrice * (bb.quantity ? bb.quantity : 1))
minTime += bb.minTime
maxTime += bb.maxTime
Expand Down