Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031052Retail ModulesWeb POSpublic2015-10-06 08:202015-11-20 08:56
guillermogil 
guillermogil 
normalminorN/A
closedfixed 
5
 
RR16Q1 
marvintm
No
0031052: Create a Hook that will be executed before the price gets changed (setPrice function)
It could be nice to have a Hook that will be executed before the price gets changed (setPrice function).

Right now if you modify the price with "Price" button of the keyboard there is no posibility to extend its behaviour.
N/A
See diff attached
No tags attached.
diff issue31052.diff (3,176) 2015-10-06 08:22
https://issues.openbravo.com/file_download.php?file_id=8525&type=bug
Issue History
2015-10-06 08:20guillermogilNew Issue
2015-10-06 08:20guillermogilAssigned To => guillermogil
2015-10-06 08:20guillermogilTriggers an Emergency Pack => No
2015-10-06 08:22guillermogilFile Added: issue31052.diff
2015-10-06 08:23guillermogilDescription Updatedbug_revision_view_page.php?rev_id=9611#r9611
2015-10-06 08:23guillermogilProposed Solution updated
2015-10-08 07:34guillermogilNote Added: 0080875
2015-11-13 09:03guillermogilReview Assigned To => marvintm
2015-11-13 18:17hgbotCheckin
2015-11-13 18:17hgbotNote Added: 0081837
2015-11-13 18:17hgbotStatusnew => resolved
2015-11-13 18:17hgbotResolutionopen => fixed
2015-11-13 18:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/869a6fcf1c072c62a7895aa6422e52e2fcde96fa [^]
2015-11-20 08:56marvintmStatusresolved => closed
2015-11-20 08:56marvintmFixed in Version => RR16Q1

Notes
(0080875)
guillermogil   
2015-10-08 07:34   
Documentation:
http://wiki.openbravo.com/wiki/List_of_Hooks_in_Web_POS#Hooks [^]
(0081837)
hgbot   
2015-11-13 18:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 869a6fcf1c072c62a7895aa6422e52e2fcde96fa
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Fri Nov 13 07:53:26 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/869a6fcf1c072c62a7895aa6422e52e2fcde96fa [^]

Fixed issue 31052: Create preSetPrice hook

Added a new hook executed while someone call to the sePrice function

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---