Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12051

Improve makeRangeCondition in file EntityDateFilterCondition.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • Trunk
    • Trunk
    • ALL COMPONENTS
    • None
    • Patch
    • OFBiz Community Day (Nov 2020)

    Description

      When using makeRangeCondition for a project, it seems that one case is not returned by the generated condition:

      When we have a value with both from and thrudate greater than given range

       

      How to test:

      • Create an agreement with fromDate = current year start date and endDate = current year end date in agreement screen
      • Apply OFBIZ-12051-TESTSCREEN.patch to add a "range" field in agreement find screen which allow filtering using makeRangeCondition filter.
        Got to agreement find screen and enter a range period in current year.
      • The newly created agreement does not appears in result list

       

      • Apply OFBIZ-12051.patch to add a "range" field in agreement find screen which allow filtering using makeRangeCondition filter.
      • Try again to search agreements with the same range period.
      • The newly created agreement must appear

      Attachments

        1. OFBIZ-12051.patch
          2 kB
          Mekika Leila
        2. OFBIZ-12051-TESTSCREEN.txt
          5 kB
          Mekika Leila

        Activity

          People

            nmalin Nicolas Malin
            mleila Mekika Leila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: