Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037300Retail ModulesReturn Receiptpublic2017-11-16 04:502018-02-28 18:18
rbianchini 
alekosmp86 
normalminorhave not tried
closedfixed 
5
 
RR18Q2 
marvintm
No
0037300: Draft ticket without product is printed as Return receipt
When a draft ticket without product is printed, the return receipt template is used
1 - Login into the POS on any POS Terminal
2 - Select Print this receipt
No tags attached.
Issue History
2017-11-16 04:50rbianchiniNew Issue
2017-11-16 04:50rbianchiniAssigned To => Retail
2017-11-16 04:50rbianchiniTriggers an Emergency Pack => No
2018-02-09 18:46hgbotCheckin
2018-02-09 18:46hgbotNote Added: 0102306
2018-02-09 18:46hgbotStatusnew => resolved
2018-02-09 18:46hgbotResolutionopen => fixed
2018-02-09 18:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9c9fb46da754bf99837530bc79adaadba95fdf05 [^]
2018-02-12 15:11marvintmAssigned ToRetail => alekosmp86
2018-02-28 18:18hgbotCheckin
2018-02-28 18:18hgbotNote Added: 0102877
2018-02-28 18:18marvintmReview Assigned To => marvintm
2018-02-28 18:18marvintmStatusresolved => closed
2018-02-28 18:18marvintmFixed in Version => RR18Q2

Notes
(0102306)
hgbot   
2018-02-09 18:46   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9c9fb46da754bf99837530bc79adaadba95fdf05
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Thu Feb 08 15:11:10 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9c9fb46da754bf99837530bc79adaadba95fdf05 [^]

Fixes issue 37300: Draft ticket without product is printed as Return receipt

In pointofsale-print.js, when the receipt has no lines, the variable hasNegativeLines
is always taking true as its value, which caused the assigned template for
printing to be the one for returns. A validation has been added, to verify if the
receipt has lines, and only assign the return template if it is true.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---
(0102877)
hgbot   
2018-02-28 18:18   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 18870622bbfb2af90d287c0c091f18ad1cf88524
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Feb 28 18:18:04 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/18870622bbfb2af90d287c0c091f18ad1cf88524 [^]

Related to issue 37300. Do not print twice normal draft, without lines

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---