Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045518
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-11-26 17:592020-12-16 22:52
ReporterngarciaView Statuspublic 
Assigned Torqueralta 
PriorityurgentResolutionfixedFixed in VersionRR21Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045518: For netting payment of a Cancel Layaway the payment method and financial account of a different terminal is used

DescriptionFor netting payment of a Cancel Layaway the payment method and financial account of a different terminal is used

The query to obtain the default payment method only filters by organization and orders by obpos_app_payment_id:

select pt.fin_paymentmethod_id, p.fin_financial_account_id
from obpos_app_payment p, obpos_app_payment_type pt
where p.obpos_app_payment_type_id = pt.obpos_app_payment_type_id
and p.ad_org_id = '...'
order by p.obpos_app_payment_id
Steps To ReproduceAs System Admin Role:
   Launch the following query in SQL Query Tool

select pt.fin_paymentmethod_id, p.fin_financial_account_id
from obpos_app_payment p, obpos_app_payment_type pt
where p.obpos_app_payment_type_id = pt.obpos_app_payment_type_id
and p.ad_org_id = 'D270A5AC50874F8BA67A88EE977F8E3B'

   Save the first values shown:
45A202BF44884F05B8A1BF741E2063B6 8655A7CC5C8B43CF951277F1691E42B1

They belong to Cashbook - Vall Blanca Store-VBS1037 financial account and Cash Payment Method

As group admin role:
   Go to Financial Account window, select Cashbook - Vall Blanca Store-VBS1037 financial account and remove the Cash payment method from it

   Check that financial account belongs to VBS1037 that is deactivated

Access VBS-1 touchpoint:

   Add a product to the receipt
   Layaway this receipt (menu)
   Click on total and layaway

   Open Receipt
   Select previously created layaway
   Cancel this layaway (menu)
   Done

   Check the Cancel Layaway is stuck in Errors While Importing POS Data with the following error:
      org.openbravo.base.exception.OBException: org.openbravo.base.exception.OBException: Selected payment method doesn't exist.
    at org.openbravo.erpCommon.businessUtility.CancelOrderExecutor.cancelOrder(CancelOrderExecutor.java:97)
    at org.openbravo.erpCommon.businessUtility.CancelOrderExecutor.run(CancelOrderExecutor.java:64)
    at org.openbravo.erpCommon.businessUtility.CancelAndReplaceUtils.cancelOrder(CancelAndReplaceUtils.java:150)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:558)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0034812 closedasiermartirena When doing a C&R in a terminal without payment methods, an error occurs 
related to defect 0046516 closedranjith_qualiantech_com Cancel and replace creates the netting payment for a payment method different than the original one 
related to defect 0050649pi closedranjith_qualiantech_com Canceling a layaway is resulting in an EWI 

-  Notes
(0124808)
hgbot (developer)
2020-12-14 14:30

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/209 [^]
(0124816)
hgbot (developer)
2020-12-15 08:11

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 336a1fcac948f2eb481716ebc3973247b764cede
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2020-12-15T07:11:23+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/336a1fcac948f2eb481716ebc3973247b764cede [^]

Fixed ISSUE-45518: Added two more filters by terminal and order payment method to The query to obtain the default payment method

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---
(0124817)
hgbot (developer)
2020-12-15 08:11

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/209 [^]
(0124852)
hgbot (developer)
2020-12-16 07:07

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 2fab1c51c7e16f605cf08a0b024695eb20f3dda4
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2020-12-15T14:19:25-05:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/2fab1c51c7e16f605cf08a0b024695eb20f3dda4 [^]

Related to ISSUE-45518: Take organization value from obposApplications.organization instead jsonorder organization to be sure that in crosstore flow we can obtain the correct payment

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---
(0124892)
hgbot (developer)
2020-12-16 22:52

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 55cb0ef41d06a7deabf827d7818c5a1bd84255b9
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2020-12-16T21:51:58+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/55cb0ef41d06a7deabf827d7818c5a1bd84255b9 [^]

Related to ISSUE-45518: Payment method parameter was removed because it is not necessary to fix this issue and this change make fail one test in try-retail

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---

- Issue History
Date Modified Username Field Change
2020-11-26 17:59 ngarcia New Issue
2020-11-26 17:59 ngarcia Assigned To => Retail
2020-11-26 17:59 ngarcia Resolution time => 1608159600
2020-11-26 17:59 ngarcia Triggers an Emergency Pack => No
2020-11-26 17:59 ngarcia Issue Monitored: networkb
2020-11-26 17:59 ngarcia Relationship added related to 0034812
2020-12-09 17:02 rqueralta Assigned To Retail => rqueralta
2020-12-14 14:30 hgbot Note Added: 0124808
2020-12-15 08:11 hgbot Resolution open => fixed
2020-12-15 08:11 hgbot Status new => closed
2020-12-15 08:11 hgbot Fixed in Version => RR21Q1
2020-12-15 08:11 hgbot Note Added: 0124816
2020-12-15 08:11 hgbot Note Added: 0124817
2020-12-16 07:07 hgbot Note Added: 0124852
2020-12-16 22:52 hgbot Note Added: 0124892
2021-05-06 11:50 ranjith_qualiantech_com Relationship added related to 0046516
2022-10-27 09:27 ranjith_qualiantech_com Relationship added related to 0050649


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker