How to Get Quote's Effective and Expiry Dates using Calculation Logic
To fetch the 'Effective Date' & 'Expiry Date' from the Quote's Header Info using a calculation logic, use:
quoteProcessor.getQuoteView().targetDate quoteProcessor.getQuoteView().expiryDate
Also, there is a function to get the TargetDate on the line item (but not for the expiry). You can read it in the pre-phase of the header logic and store it into hidden input of the line items.Â
def effectiveDate = quoteProcessor.getQuoteView().targetDate     for (lineItemMap in quoteProcessor.getQuoteView().lineItems) {         if (lineItemMap.folder) continue  //skip folders         quoteProcessor.addOrUpdateInput(lineItemMap.lineId,                                         ["name": "effectiveDate",                                          "label": "Effective Date",                                          "type" : InputType.HIDDEN,                                                                  "required" : false,                                          "readOnly" : true,                                         "value": effectiveDate                                                             ]                                        )     }
Found an issue in documentation? Write to us.
Â