Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032719Retail ModulesCash uppublic2016-04-19 18:022016-05-17 09:27
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
20Community Appliance
 
 
migueldejuana
No
0032719: cashup is creating the invoices with the receipt location instead of invoice location
when cashup is done, the invoice created is using the receipt location, and it should be created using the invoice location of receipt.

Usually, the invoice location is the same that receipt location, but when they are distinct, the invoices created are inconsistently
in web POS:
. create receipt1 -> customer1, location1, product: p1, total amount: 10
. create receipt2 -> customer1, location1, product: p2, total amount: 5
. create receipt3 -> customer1, location2, product: p3, total amount: 3

in backoffice, change the invoice location of receipt 3, from location2 to location1. It is not possible to change it by UI, you need to change it doing a update in database

in web POS:
. do cashup

in backoffice:
. two invoice have been created:
 invoice1: total amount 15
   3 lines: p1, p2 and p3
 invoice2: total amount 3
   0 lines
in line
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/3e3be280c7ca/src/org/openbravo/retail/posterminal/OrderGroupingProcessor_data.xsql#l47 [^]
and
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/3e3be280c7ca/src/org/openbravo/retail/posterminal/OrderGroupingProcessor_data.xsql#l61 [^]

change o.c_bpartner_location_id to coalesce(o.billto_id, o.c_bpartner_location_id)
No tags attached.
Issue History
2016-04-19 18:02malsasuaNew Issue
2016-04-19 18:02malsasuaAssigned To => Retail
2016-04-19 18:02malsasuaResolution time => 1464300000
2016-04-19 18:02malsasuaTriggers an Emergency Pack => No
2016-04-19 18:05malsasuaProposed Solution updated
2016-04-19 18:55OrekariaStatusnew => acknowledged
2016-04-20 10:01ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-04-20 10:01ranjith_qualiantech_comStatusacknowledged => scheduled
2016-04-27 10:51hgbotCheckin
2016-04-27 10:51hgbotNote Added: 0086016
2016-04-27 10:51hgbotStatusscheduled => resolved
2016-04-27 10:51hgbotResolutionopen => fixed
2016-04-27 10:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/aecb82cbac46c44698ce1f18e3918ae262a3f410 [^]
2016-05-17 09:27migueldejuanaReview Assigned To => migueldejuana
2016-05-17 09:27migueldejuanaNote Added: 0086484
2016-05-17 09:27migueldejuanaStatusresolved => closed

Notes
(0086016)
hgbot   
2016-04-27 10:51   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: aecb82cbac46c44698ce1f18e3918ae262a3f410
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Apr 27 14:20:37 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/aecb82cbac46c44698ce1f18e3918ae262a3f410 [^]

Fixes issue 32719 : Adding Invoice Address instead of Customer Address while generating invoice

After doing cashup, Invoice should be genereated based on Invoice address instead Customer Address

---
M src/org/openbravo/retail/posterminal/OrderGroupingProcessor_data.xsql
---
(0086484)
migueldejuana   
2016-05-17 09:27   
Tested and reviewed in ec98fed2ca51