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

Improve makeRangeCondition in file EntityDateFilterCondition.java

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Active Sprint:
                OFBiz Community Day (Nov 2020) ends 01/Dec/20
                View on Board

                Slack

                  Issue deployment