How to Identify Whether Quote Is Duplicated, Revised or New
This artictle shows how to identify whether a quote is duplicated or revised or new in a quote header logic.Â
def version = quoteProcessor.getQuoteView().version def prevRev =Â quoteProcessor.getQuoteView().prevRev
New quote
version != null or (version == 3 && prevRev == null)
Revision
prevRev != null
Duplicated quote
version != null and version != 1 and version != 3
Found an issue in documentation? Write to us.
Â