Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036255Retail ModulesWeb POSpublic2017-06-14 12:282017-06-19 17:07
malsasua 
Retail 
immediatemajoralways
closedfixed 
5
 
RR17Q2.1RR17Q2.1 
marvintm
No
0036255: cashup is creating wrong invoices when receipt delivered location is changed
if one cashup has got two receipts, with the same bill address but different ship address, when cashup is done, two invoices are created with wrong lines
in POS:
. new receipt:
  . bill address: address1
  . delivered address: address1
  . line 1: l1: amount 10
  . total receipt 10
. new receipt:
  . bill address: address1
  . delivered address: address2
  . line 1: l2: amount 5
  . total receipt 5
. do cashup
in backoffice:
two invoices have been created:
. invoice1: total amount 10 -> sum total lines: 15
. invoice2: total amount 5 -> sum total lines: 15
in this line:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/7ad10cf2a983/src/org/openbravo/retail/posterminal/OrderGroupingProcessor_data.xsql#l53 [^]

modify by:
 o.c_bpartner_id, o.billto_id, o.c_currency_id, bp.paymentrule,
No tags attached.
blocks defect 0036253 closed migueldejuana cashup is creating wrong invoices when receipt delivered location is changed 
Issue History
2017-06-14 13:40migueldejuanaTypedefect => backport
2017-06-14 13:40migueldejuanaTarget Version => RR17Q2.1
2017-06-15 11:57hgbotCheckin
2017-06-15 11:57hgbotNote Added: 0097418
2017-06-15 11:57hgbotStatusscheduled => resolved
2017-06-15 11:57hgbotResolutionopen => fixed
2017-06-15 11:57hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q2.1/org.openbravo.retail.posterminal/rev/62bc2559608228c2334429eac67fafbef6fd0c85 [^]
2017-06-19 17:07marvintmReview Assigned To => marvintm
2017-06-19 17:07marvintmStatusresolved => closed
2017-06-19 17:07marvintmFixed in Version => RR17Q2.1

Notes
(0097418)
hgbot   
2017-06-15 11:57   
Repository: retail/backports/3.0RR17Q2.1/org.openbravo.retail.posterminal
Changeset: 62bc2559608228c2334429eac67fafbef6fd0c85
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jun 15 11:57:22 2017 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR17Q2.1/org.openbravo.retail.posterminal/rev/62bc2559608228c2334429eac67fafbef6fd0c85 [^]

Fixed issue 0036255: cashup is creating wrong invoices when receipt delivered location is changed

- Since Web POS allows to set shipping address, we need to take bill addres or if it does not exists, take shipping address when creating cashup grouping invoice

---
M src/org/openbravo/retail/posterminal/OrderGroupingProcessor_data.xsql
---