Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042772Retail ModulesWeb POSpublic2020-01-09 14:422020-02-26 14:54
avicente 
rqueralta 
highmajoralways
closedfixed 
5
 
 
adrianromero
No
0042772: Discounts linked to invoices are not available in POS
For the customer, when an invoice is printed from POS, it is needed to print the discounts linked to the invoice but sometimes it is not possible (see steps to reproduce) because only the discounts linked to the order ared loaded in POS.

It seems that the error inĀ from line 111 onwards in the file https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/annotate/tip/src/org/openbravo/retail/posterminal/Invoices.java. [^]
1. In Backend, set preference 'Web POS Enable Delivery Modes'=Y
2. In Backend, for the business partner 'Arturo Montoro' set invoice terms=After delivery.
3. Log into https://livebuilds.openbravo.com/retail_stable_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]
4. Add two units of the same product in a ticket, there must be stock.
5. Set delivery mode=pick up in store.
6. Apply a manual discounts.
7. Pay de ticket. Check that the product hasn't been delivered either invoiced.
8. Open the menu option 'Issue Sales Order' and deliver just one unit of the product. Check that one unit has been delivered and invoiced.
9. Reopen the order and print de invoice. In this case the discount linked to the invoice is different that the discount linked to the order and it is not accesible in POS.
No tags attached.
png Screenshot from 2020-01-28 16-30-16.png (65,865) 2020-01-28 16:31
https://issues.openbravo.com/file_download.php?file_id=13936&type=bug
png
Issue History
2020-01-09 14:42avicenteNew Issue
2020-01-09 14:42avicenteAssigned To => Retail
2020-01-09 14:42avicenteTriggers an Emergency Pack => No
2020-01-15 14:08avicenteResolution time => 1580598000
2020-01-15 15:23rqueraltaAssigned ToRetail => rqueralta
2020-01-20 00:40hgbotCheckin
2020-01-20 00:40hgbotNote Added: 0117049
2020-01-20 00:40hgbotStatusnew => resolved
2020-01-20 00:40hgbotResolutionopen => fixed
2020-01-20 00:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3bd685ce02cf0a46ee637a388a6d94ef9e6e7461 [^]
2020-01-28 16:31adrianromeroReview Assigned To => adrianromero
2020-01-28 16:31adrianromeroNote Added: 0117302
2020-01-28 16:31adrianromeroStatusresolved => closed
2020-01-28 16:31adrianromeroFile Added: Screenshot from 2020-01-28 16-30-16.png
2020-02-26 14:54ngarciaDescription Updatedbug_revision_view_page.php?rev_id=20457#r20457

Notes
(0117049)
hgbot   
2020-01-20 00:40   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3bd685ce02cf0a46ee637a388a6d94ef9e6e7461
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Thu Jan 16 07:08:51 2020 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3bd685ce02cf0a46ee637a388a6d94ef9e6e7461 [^]

Fixed issue 42772: Discounts linked to invoices are not available in POS

- Replaced orderlineoffer by invoicelineoffer entity

---
M src/org/openbravo/retail/posterminal/Invoices.java
---
(0117302)
adrianromero   
2020-01-28 16:31   
Verified and closed. Attached screenshot shows the printed invoice with the right discount.