Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040371Retail ModulesWeb POSpublic2019-03-13 14:552019-03-26 17:56
psanjuan 
jorge-garcia 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
RR19Q2 
marvintm
No
0040371: Cash up process is not creating reverse sales invoices
Cash up process is not creating reverse sales invoices
In Livebuilds - Retail Oracle enviroment.

Go to Web POS and run a cash up process.

Go to Openbravo backoffice and configure VBS-1 Channel Touchpoint Type as described below:
Group orders in one invoice = No
Generate Invoice for orders = No
Therefore Cash Up process is the one that triggers invoice creation.

Go to Web POS and create a new sale/ticket for Arturo Montoro. Select 1 unit of product "Balaclava Cap". Confirm the sale and pay it in cash.

Run cash up process and keep that amount in cash.

In the backoffice chech that a sales order, goods shipment and sales invoice have been created.

Go back to Web POS, return that sale by using "Verified Returns".

Confirm and pay by cash that return.

Run cash up process. Check that no amount is remaining.

Go to the backoffice and check that a return from customer order has been created but check also that NO Reverse Sales Invoice has been created. This is not correct.
A Reverse Sales Invoice needs to be created.
No tags attached.
related to defect 0040430 closed ranjith_qualiantech_com Duplicated negative invoice created by the cash up process. 
blocks feature request 0033973 closed gorka_gil Handling Cash VAT Management during the creation of Orders or Invoices from POS 
jpg Issue_40371.jpg (82,428) 2019-03-13 15:18
https://issues.openbravo.com/file_download.php?file_id=12745&type=bug
jpg
Issue History
2019-03-13 14:55psanjuanNew Issue
2019-03-13 14:55psanjuanAssigned To => Retail
2019-03-13 14:55psanjuanTriggers an Emergency Pack => No
2019-03-13 15:02psanjuanNote Added: 0110409
2019-03-13 15:02psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18449#r18449
2019-03-13 15:02psanjuanProposed Solution updated
2019-03-13 15:15psanjuanNote Added: 0110411
2019-03-13 15:17psanjuanNote Edited: 0110411bug_revision_view_page.php?bugnote_id=0110411#r18451
2019-03-13 15:18psanjuanFile Added: Issue_40371.jpg
2019-03-13 15:51psanjuanRelationship addedblocks 0033973
2019-03-14 11:36jorge-garciaStatusnew => scheduled
2019-03-14 11:36jorge-garciaAssigned ToRetail => jorge-garcia
2019-03-20 09:00hgbotCheckin
2019-03-20 09:00hgbotNote Added: 0110504
2019-03-20 09:00hgbotStatusscheduled => resolved
2019-03-20 09:00hgbotResolutionopen => fixed
2019-03-20 09:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/b9713de19b6ad82a2b88991975bf351b611ab53a [^]
2019-03-26 07:32ranjith_qualiantech_comRelationship addedrelated to 0040430
2019-03-26 14:36hgbotCheckin
2019-03-26 14:36hgbotNote Added: 0110659
2019-03-26 17:56marvintmReview Assigned To => marvintm
2019-03-26 17:56marvintmStatusresolved => closed
2019-03-26 17:56marvintmFixed in Version => RR19Q2

Notes
(0110409)
psanjuan   
2019-03-13 15:02   
This scenario was working on 18Q4.
(0110411)
psanjuan   
2019-03-13 15:15   
(edited on: 2019-03-13 15:17)
If the return is invoiced by the same cash up process, then the reverse sales invoice is created either grouped in one invoice (total 0.00) or not (sales invoice for 301.00 and reverse sales invoice for -301.00). See image attached.

(0110504)
hgbot   
2019-03-20 09:00   
Repository: erp/pmods/org.openbravo.retail.returns
Changeset: b9713de19b6ad82a2b88991975bf351b611ab53a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Mar 14 17:05:42 2019 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/b9713de19b6ad82a2b88991975bf351b611ab53a [^]

Fixed issue 40371: Cash up process is not creating reverse sales invoices

It necessary to reset invoicedQuantity property from order line when a verified
return line is added.

---
M web/org.openbravo.retail.returns/js/returnUtils.js
---
(0110659)
hgbot   
2019-03-26 14:36   
Repository: tools/automation/pi-mobile
Changeset: efd447389f0c2a341697e8db58a919bb6bb6a015
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Mon Mar 25 12:12:21 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/efd447389f0c2a341697e8db58a919bb6bb6a015 [^]

Related to issue 40371: added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I40371_VerifyCashupCreatesReverseSalesInvoice.java
---