Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031776Retail ModulesWeb POSpublic2015-12-24 14:502016-01-27 18:16
aaroncalero 
simbu94 
highmajoralways
closedfixed 
5
 
RR16Q2 
marvintm
No
0031776: [SERQA 506] Duplicated receipt payments in webpos with shared payments configured
With a specific configuration of shared payments at POS Terminal level, it is possible that, when a receipt is loaded in Web POS, payment details appear as duplicated, breaking the Amount To Pay of the ticket.
First, configure a shared payment for a terminal type:
1. Go to POS Terminal Type || Payment Method and check a payment (e.g. Cash payment of the VBS POS Terminal Type) as Shared Payment Method.
2. Go to POS Terminal window. Open one terminal of the previous terminal type (e.g. VBS-1 terminal) and mark it as Master terminal (Terminal Hierarchy field group).
2.1. Go to the Payment Type tab and, for the Cash payment type, note the Financial Account used.
3. Open another terminal (e.g. VBS1001) and uncheck as Master. Fill the 'Master Terminal' field with the VBS-1 terminal (named VBS POS Terminal).
3.1 Go to the Payment Type tab and, for the Cash payment type, replace the Financial account with the account used on the VBS-1 terminal.

Now go to the Web POS, terminal VBS-1, and create a layaway (Menu > Layaway this receipt). Add a product. Click on the Total amount button and add a partial Cash payment.
Complete the layaway ('Layaway' button).
Reopen the same layaway.
Verify that instead of a single Cash payment, 2 payments with the same amount are shown.
The PaidReceipts process, which is in charge of retrieving the receipt data, delied on the unicity of the financial account of the payments to retrieve payment data. The query should group by fin. account to prevent duplicates.
SER-QA
patch Issue #31776_pos.patch (2,943) 2015-12-29 11:45
https://issues.openbravo.com/file_download.php?file_id=8878&type=bug
patch Issue #31776_Test.patch (3,619) 2015-12-29 12:02
https://issues.openbravo.com/file_download.php?file_id=8880&type=bug
Issue History
2015-12-24 14:50aaroncaleroNew Issue
2015-12-24 14:50aaroncaleroAssigned To => Retail
2015-12-24 14:50aaroncaleroResolution time => 1452121200
2015-12-24 14:50aaroncaleroTriggers an Emergency Pack => No
2015-12-24 14:50aaroncaleroTag Attached: SER-QA
2015-12-28 10:17OrekariaStatusnew => acknowledged
2015-12-28 13:50simbu94Assigned ToRetail => simbu94
2015-12-28 13:50simbu94Statusacknowledged => scheduled
2015-12-29 11:45simbu94File Added: Issue #31776_pos.patch
2015-12-29 12:02simbu94File Added: Issue #31776_Test.patch
2016-01-05 07:18hgbotCheckin
2016-01-05 07:18hgbotNote Added: 0083131
2016-01-05 07:18hgbotStatusscheduled => resolved
2016-01-05 07:18hgbotResolutionopen => fixed
2016-01-05 07:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b081d0765ce140da1d6a2f205d38db50b1abb621 [^]
2016-01-07 09:53ageteSummary[SERQA 507] Duplicated receipt payments in webpos with shared payments configured => [SERQA 506] Duplicated receipt payments in webpos with shared payments configured
2016-01-27 18:16marvintmReview Assigned To => marvintm
2016-01-27 18:16marvintmStatusresolved => closed
2016-01-27 18:16marvintmFixed in Version => RR16Q2

Notes
(0083131)
hgbot   
2016-01-05 07:18   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b081d0765ce140da1d6a2f205d38db50b1abb621
Author: Silambarasan Sekar <silambarasan <at> qualiantech.com>
Date: Tue Dec 29 14:16:11 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b081d0765ce140da1d6a2f205d38db50b1abb621 [^]

Fixes issue 31776 :Avoid Duplicate Payments in shared payments configuration

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