Openbravo Issue Tracking System - POS2
View Issue Details
0048270POS2POSpublic2021-12-17 10:282021-12-24 12:29
timothee_catteeuw 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
No
0048270: JIRA 2569 - Payment category order on POS2
Currently it is not possible to order payment method categories. In the following screenshot, a request could be to put “à refacturer” just after “Main payment methods”
But currently the behavior is (cf. payment.png)
Category “Main payment methods” is positioned first
All the other payment method categories are positioned randomly (probably decided by the database)

The request here is so to be able to define the order of payment method categories below "Main payment method" thanks to :

1) A value which could be configured in “POS payment method categories” tab available in BO
2) For payment with no configured value those will be randomly positioned at the end on payment mode screen of WebPOS
1) Create several Payment categories
2) link them to payment methods
3) login WebPOS
4) do a new ticket
5) Go to payment mode
--> Payment method categories are ordered randomely

Once issue https://issues.openbravo.com/view.php?id=48278 [^] is fixed then org.openbravo.pos2/src/org/openbravo/pos2/term/PaymentMethodCategories.java should be addapted to short by sequence number

Then the algorithm used in frontend to draw the categories should be checked to ensure that it draws the categories based on that seqno and according to what is mentioned
No tags attached.
depends on defect 0048278 closed ranjith_qualiantech_com Retail Modules Payment methods categories does not support sequence number 
depends on backport 0048308TAP closed ranjith_qualiantech_com POS2 JIRA 2569 - Payment category order on POS2 
png Payment.png (39,062) 2021-12-17 10:28
https://issues.openbravo.com/file_download.php?file_id=16442&type=bug
png
Issue History
2021-12-17 10:28timothee_catteeuwNew Issue
2021-12-17 10:28timothee_catteeuwAssigned To => Retail
2021-12-17 10:28timothee_catteeuwFile Added: Payment.png
2021-12-17 10:28timothee_catteeuwTriggers an Emergency Pack => No
2021-12-17 10:29timothee_catteeuwDescription Updatedbug_revision_view_page.php?rev_id=23418#r23418
2021-12-18 11:22guilleaerCategoryRestaurants => POS
2021-12-18 11:22guilleaerSummaryJIRA 2569 - Payment category order on WebPOS => JIRA 2569 - Payment category order on POS2
2021-12-18 11:25guilleaerRelationship addeddepends on 0048278
2021-12-18 11:31guilleaerProposed Solution updated
2021-12-20 17:44guilleaerStatusnew => acknowledged
2021-12-22 15:51guilleaerTarget VersionTAP =>
2021-12-22 15:51guilleaerStatusacknowledged => scheduled
2021-12-22 15:51guilleaerStatusscheduled => acknowledged
2021-12-23 11:33ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-12-24 08:29ranjith_qualiantech_comStatusacknowledged => scheduled
2021-12-24 08:29hgbotNote Added: 0133938
2021-12-24 12:29hgbotNote Added: 0133958
2021-12-24 12:29hgbotResolutionopen => fixed
2021-12-24 12:29hgbotStatusscheduled => closed
2021-12-24 12:29hgbotNote Added: 0133959

Notes
(0133938)
hgbot   
2021-12-24 08:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/765 [^]
(0133958)
hgbot   
2021-12-24 12:29   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/765 [^]
(0133959)
hgbot   
2021-12-24 12:29   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: ff8ead48f05d919bdf915c80e1d47f0b1d1dcc9f
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 23-12-2021 18:39:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/ff8ead48f05d919bdf915c80e1d47f0b1d1dcc9f [^]

Fixed ISSUE-48270: Added Seq.No for Payment method category
* Created Seq.No will be used to list payments in ordered manner

---
M src/org/openbravo/pos2/term/PaymentMethodCategories.java
---