Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-7964

Greater than zero logic is not correct

Details

    • Commerce Sprint 05 - Feb/2022

    Description

      The logic of the greater than zero is not correct.

      private boolean _greaterThanZero(BigDecimal value) {
         if ((value != null) ||
            CommerceBigDecimalUtil.gt(value, BigDecimal.ZERO)) {
      
            return true;
         }
      
         return false;
      }
      

      To test the ticket please refer to the steps https://issues.liferay.com/browse/LPP-43210

       

      Attachments

        Activity

          People

            alessandro.iovane Alessandro Iovane
            riccardo.alberti Riccardo Alberti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.4 DXP U10
                7.4.3.13 GA13
                7.4 DXP U16