Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036888
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2017-09-19 13:072017-10-26 13:04
ReporterguilleaerView Statuspublic 
Assigned Toguilleaer 
PrioritynormalResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revisiond868a0ea85c7
ProjectionnoneETAnoneTarget VersionRR18Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036888: [SCO][Contribution] newOrder function should be static to allow to reuse it from outside the model

DescriptionCurrently, 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)
Steps To ReproduceN/A
Proposed SolutionCreate an static method to create new orders
Reuse this code from SCO also from web POS
TagsNo tags attached.
Attached Filesdiff file icon 36888.diff [^] (10,697 bytes) 2017-09-19 13:22 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0099744)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2017-09-19 13:07 guilleaer New Issue
2017-09-19 13:07 guilleaer Assigned To => guilleaer
2017-09-19 13:07 guilleaer Triggers an Emergency Pack => No
2017-09-19 13:22 guilleaer File Added: 36888.diff
2017-09-21 08:45 guilleaer Target Version => RR18Q1
2017-09-21 08:45 guilleaer Summary [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:12 hgbot Checkin
2017-10-03 21:12 hgbot Note Added: 0099744
2017-10-03 21:12 hgbot Status new => resolved
2017-10-03 21:12 hgbot Resolution open => fixed
2017-10-03 21:12 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d868a0ea85c7a443baca6a7c4bf3626ca75d1ca6 [^]
2017-10-17 16:27 guilleaer Review Assigned To => marvintm
2017-10-26 13:04 marvintm Status resolved => closed
2017-10-26 13:04 marvintm Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker