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

Improve makeRangeCondition in file EntityDateFilterCondition.java

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: ALL COMPONENTS
    • Labels:
      None
    • Flags:
      Patch
    • Sprint:
      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-TESTSCREEN.txt
          5 kB
          Leila Mekika
        2. OFBIZ-12051.patch
          2 kB
          Leila Mekika

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: