Related to issue 39974: Avoided duplicate Payment In record for overpayment
authorRafael Queralta <rafaelcuba81@gmail.com>
Wed, 06 Feb 2019 11:51:04 -0500
changeset 8202 246be9d490e5
parent 8201 2b8c8064ee88
child 8203 c3802e873dd8
child 8404 017313cbadb9
Related to issue 39974: Avoided duplicate Payment In record for overpayment
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I39726_VerifyNoErrorWithAndWithoutOverpayments.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I39726_VerifyNoErrorWithAndWithoutOverpayments.java	Tue Jan 29 13:48:32 2019 -0500
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/payment/I39726_VerifyNoErrorWithAndWithoutOverpayments.java	Wed Feb 06 11:51:04 2019 -0500
@@ -112,7 +112,7 @@
     new DatabaseHelperSelect() {
       @Override
       protected void yieldResultSet(ResultSet rs) throws SQLException {
-        if (index != 3) {
+        if (index != 2) {
           assertThat("Wrong amount value", rs.getBigDecimal(1).compareTo(BigDecimal.TEN) == 0);
         } else {
           assertThat("Wrong amount value",
@@ -120,7 +120,7 @@
         }
         index++;
       }
-    }.execute(sql, 3);
+    }.execute(sql, 2);
 
     sql = String.format(
         "select fpsd.amount from fin_payment_scheduledetail fpsd left join fin_payment_detail fpd on fpsd.fin_payment_detail_id = fpd.fin_payment_detail_id "