Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036888Retail ModulesWeb POSpublic2017-09-19 13:072017-10-26 13:04
guilleaer 
guilleaer 
normalminoralways
closedfixed 
5
 
RR18Q1RR18Q1 
marvintm
No
0036888: [SCO][Contribution] newOrder function should be static to allow to reuse it from outside the model
Currently, the function newOrder which is part of the OrderList Model allows to to create a new order and then add it to the list of orders.
The problem is that this method only can be invoked if the developer has an instance of that model.

In SCO we will reuse this code, because we need also to create a new order, but we don't have a list of orders. The idea is to make this method static and reuse this code from external code an also from inside the OrderList Model.

In addition, this method is connected to the UI, because it is setting to '' values which are being get from a UI component (receiptProperties)
N/A
Create an static method to create new orders
Reuse this code from SCO also from web POS
No tags attached.
diff 36888.diff (10,697) 2017-09-19 13:22
https://issues.openbravo.com/file_download.php?file_id=11072&type=bug
Issue History
2017-09-19 13:07guilleaerNew Issue
2017-09-19 13:07guilleaerAssigned To => guilleaer
2017-09-19 13:07guilleaerTriggers an Emergency Pack => No
2017-09-19 13:22guilleaerFile Added: 36888.diff
2017-09-21 08:45guilleaerTarget Version => RR18Q1
2017-09-21 08:45guilleaerSummary[SCO][Contribution][18Q1] newOrder function should be static to allow to reuse it from outside the model => [SCO][Contribution] newOrder function should be static to allow to reuse it from outside the model
2017-10-03 21:12hgbotCheckin
2017-10-03 21:12hgbotNote Added: 0099744
2017-10-03 21:12hgbotStatusnew => resolved
2017-10-03 21:12hgbotResolutionopen => fixed
2017-10-03 21:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d868a0ea85c7a443baca6a7c4bf3626ca75d1ca6 [^]
2017-10-17 16:27guilleaerReview Assigned To => marvintm
2017-10-26 13:04marvintmStatusresolved => closed
2017-10-26 13:04marvintmFixed in Version => RR18Q1

Notes
(0099744)
hgbot   
2017-10-03 21:12   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d868a0ea85c7a443baca6a7c4bf3626ca75d1ca6
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Oct 03 09:06:40 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d868a0ea85c7a443baca6a7c4bf3626ca75d1ca6 [^]

Fixed issue 36888: new Order function is now static. Now it can be reused

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