Related to issue 38927: To calculate pending to pay in a foreign amount it is
authorRafael Queralta <rafaelcuba81@gmail.com>
Fri, 20 Jul 2018 16:01:53 -0400
changeset 7554 da9b55d9942e
parent 7553 c1af4e7e6a77
child 7555 8fc9fbcfa715
Related to issue 38927: To calculate pending to pay in a foreign amount it is
not used the configured multiply by rate

- Changed these test was required because there are difference in the cents of
total amount
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/I35779_CashMgmLongDescription.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/CashupMulticurrencyPrecissionCheck.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I26806_CashupTotalNotShown.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28181_CashupWrongWithdrawalSummary.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28491_WrongWithdrawalSection.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I31790_CashupAmountToKeep.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31279_LayawayUSACashPayments.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayRetrieval.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayVerifyPaymentsInformation.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I29558_IncorrectCurrencyAmountAfterCancelingPayment.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I36982_TransactionsPaidWithOtherCurrencyReturnChangeInDefaultCurrency.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySale.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySaleWithPrecissionCheck.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I28084_SaleLogoutinCheckCash.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/storecurrencyexchangerate/VerifyPaymentBasedOnStoreConversionRate.java
src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31677_VerifyPaymentMethodSelectionII.java
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/I35779_CashMgmLongDescription.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashmanagement/I35779_CashMgmLongDescription.java	Fri Jul 20 16:01:53 2018 -0400
@@ -62,7 +62,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/CashupMulticurrencyPrecissionCheck.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/CashupMulticurrencyPrecissionCheck.java	Fri Jul 20 16:01:53 2018 -0400
@@ -43,7 +43,7 @@
       verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
       tap(TestIdPack.BUTTON_PAY);
       tap(TestIdPack.BUTTON_CASHUSA);
-      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
       tap(TestIdPack.BUTTON_PAY_EXACT);
       tap(TestIdPack.BUTTON_PAY_DONE);
       verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -57,7 +57,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "301.00");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.63");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.58");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I26806_CashupTotalNotShown.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I26806_CashupTotalNotShown.java	Fri Jul 20 16:01:53 2018 -0400
@@ -60,7 +60,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "301.00");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.63");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.58");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -90,7 +90,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "-89.50");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$117.64");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$117.62");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28181_CashupWrongWithdrawalSummary.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28181_CashupWrongWithdrawalSummary.java	Fri Jul 20 16:01:53 2018 -0400
@@ -58,7 +58,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28491_WrongWithdrawalSection.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I28491_WrongWithdrawalSection.java	Fri Jul 20 16:01:53 2018 -0400
@@ -58,7 +58,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I31790_CashupAmountToKeep.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I31790_CashupAmountToKeep.java	Fri Jul 20 16:01:53 2018 -0400
@@ -33,7 +33,7 @@
 
 public class I31790_CashupAmountToKeep extends WebPOSTerminalHelper {
 
-  private final OBNumber USD = new OBNumber("588.18");
+  private final OBNumber USD = new OBNumber("588.11");
   private final OBNumber EUR = new OBNumber("451.50");
 
   @Test
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31279_LayawayUSACashPayments.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31279_LayawayUSACashPayments.java	Fri Jul 20 16:01:53 2018 -0400
@@ -58,7 +58,7 @@
     tap(TestIdPack.BUTTON_CASHUSA);
     WebPOSAPI.tapKeypad(this, 50);
     tap(TestIdPack.BUTTON_KEYPAD_ENTER);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$94.45");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$94.44");
     tap(TestIdPack.BUTTON_CASH);
     verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "71.86€");
     tap(TestIdPack.BUTTON_LAYAWAY);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayRetrieval.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayRetrieval.java	Fri Jul 20 16:01:53 2018 -0400
@@ -62,7 +62,7 @@
     tap(TestIdPack.BUTTON_CASH);
     verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "109.90€");
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$144.45");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$144.43");
     tap(TestIdPack.BUTTON_VOUCHER);
     verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "109.90€");
     isDisabled(TestIdPack.BUTTON_LAYAWAY, true);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayVerifyPaymentsInformation.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayVerifyPaymentsInformation.java	Fri Jul 20 16:01:53 2018 -0400
@@ -70,7 +70,7 @@
     tap(TestIdPack.BUTTON_KEYPAD_1);
     tap(TestIdPack.BUTTON_KEYPAD_4);
     tap(TestIdPack.BUTTON_KEYPAD_ENTER);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$97.59");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$97.58");
 
     tap(TestIdPack.BUTTON_VOUCHER);
     tap(TestIdPack.BUTTON_KEYPAD_1);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I29558_IncorrectCurrencyAmountAfterCancelingPayment.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I29558_IncorrectCurrencyAmountAfterCancelingPayment.java	Fri Jul 20 16:01:53 2018 -0400
@@ -30,7 +30,7 @@
 public class I29558_IncorrectCurrencyAmountAfterCancelingPayment extends WebPOSTerminalHelper {
 
   OBNumber grossEur = new OBNumber("109.90");
-  OBNumber grossUsa = new OBNumber("144.45");
+  OBNumber grossUsa = new OBNumber("144.43");
 
   @Test
   public void test() {
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I36982_TransactionsPaidWithOtherCurrencyReturnChangeInDefaultCurrency.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I36982_TransactionsPaidWithOtherCurrencyReturnChangeInDefaultCurrency.java	Fri Jul 20 16:01:53 2018 -0400
@@ -44,7 +44,7 @@
     tap(TestIdPack.BUTTON_KEYPAD_0);
     tap(TestIdPack.BUTTON_PAYMENT_USACASH);
 
-    verify(TestIdPack.LABEL_RECEIPT_PAY_CHANGE, "$25.16");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_CHANGE, "$25.15");
 
     // Delete Receipt
     tap(TestIdPack.BUTTON_RECEIPT_PAYMENT_ROW1_REMOVE);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySale.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySale.java	Fri Jul 20 16:01:53 2018 -0400
@@ -41,7 +41,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySaleWithPrecissionCheck.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateMulticurrencySaleWithPrecissionCheck.java	Fri Jul 20 16:01:53 2018 -0400
@@ -38,7 +38,7 @@
       verify(TestIdPack.LABEL_TOTALTOPAY, "150.50");
       tap(TestIdPack.BUTTON_PAY);
       tap(TestIdPack.BUTTON_CASHUSA);
-      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
       tap(TestIdPack.BUTTON_PAY_EXACT);
       tap(TestIdPack.BUTTON_PAY_DONE);
       verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
@@ -52,7 +52,7 @@
     verify(TestIdPack.LABEL_TOTALTOPAY, "301.00");
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.63");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$395.58");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I28084_SaleLogoutinCheckCash.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I28084_SaleLogoutinCheckCash.java	Fri Jul 20 16:01:53 2018 -0400
@@ -66,7 +66,7 @@
 
     // not enough cash
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_CHANGE, "$50.20");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_CHANGE, "$50.19");
     verify(TestIdPack.LABEL_RECEIPT_PAY_OVERPAYMENT, "");
     isVisible(TestIdPack.LABEL_RECEIPT_PAY_NOTENOUGHCASH, true);
     isDisabled(TestIdPack.BUTTON_PAY_DONE, true);
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/storecurrencyexchangerate/VerifyPaymentBasedOnStoreConversionRate.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/storecurrencyexchangerate/VerifyPaymentBasedOnStoreConversionRate.java	Fri Jul 20 16:01:53 2018 -0400
@@ -113,14 +113,14 @@
     // Verify payment
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.81");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$197.79");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     isVisible(TestIdPack.BUTTON_PAY_DONE, true);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
 
     BigDecimal rate = BigDecimal.valueOf(DEFAULT_USD_EUR_DIVIDE_RATE);
-    BigDecimal foreignAmount = BigDecimal.valueOf(197.81);
+    BigDecimal foreignAmount = BigDecimal.valueOf(197.79);
 
     verifyPaymentConversionRates(documentNo, EUR, USD, rate, foreignAmount, 1);
 
@@ -156,14 +156,14 @@
     // Verify payment
     tap(TestIdPack.BUTTON_PAY);
     tap(TestIdPack.BUTTON_CASHUSA);
-    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$188.13");
+    verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$188.11");
     tap(TestIdPack.BUTTON_PAY_EXACT);
     isVisible(TestIdPack.BUTTON_PAY_DONE, true);
     tap(TestIdPack.BUTTON_PAY_DONE);
     verify(TestIdPack.LABEL_TOTALTOPAY, "0.00");
 
     BigDecimal rate = BigDecimal.valueOf(1.25);
-    BigDecimal foreignAmount = BigDecimal.valueOf(188.13);
+    BigDecimal foreignAmount = BigDecimal.valueOf(188.11);
 
     verifyPaymentConversionRates(documentNo, EUR, USD, rate, foreignAmount, 1);
 
--- a/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31677_VerifyPaymentMethodSelectionII.java	Wed Jul 11 14:56:13 2018 -0400
+++ b/src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31677_VerifyPaymentMethodSelectionII.java	Fri Jul 20 16:01:53 2018 -0400
@@ -113,7 +113,7 @@
       tap(TestIdPack.BUTTON_KEYPAD_0);
       tap(TestIdPack.BUTTON_KEYPAD_ENTER);
       checkPaymentMethodCategorySelected(paymentMethodCategory, false);
-      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$174.67");
+      verify(TestIdPack.LABEL_RECEIPT_PAY_REMAINING, "$174.65");
     }
 
     // Check Payment Method Category Popup