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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037284
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminorhave not tried2017-11-14 09:482017-12-26 18:17
ReporteradrianromeroView Statuspublic 
Assigned Toadrianromero 
PrioritynormalResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revision2d661d17056e
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037284: It should be good to have an utility function to get a payment by key

DescriptionTo reuse code it should be good to have the following utility function:

OB.UTIL.getPaymentByKey = function (key) {
  var i;
  var terminalPayments = OB.MobileApp.model.get('payments');
  for (i = 0; i < terminalPayments.length; i++) {
    if (terminalPayments[i].payment.searchKey === key) {
      return terminalPayments[i];
    }
  }
  return null;
};
Steps To ReproduceN/A
TagsNo tags attached.
Attached Filespatch file icon issue0037284.patch [^] (953 bytes) 2017-11-14 09:55 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0100508)
adrianromero (manager)
2017-11-14 09:55

See attached patch
(0100961)
hgbot (developer)
2017-12-11 13:31

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2d661d17056ebcccd6b337420c4220884db32c46
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Nov 14 09:51:08 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d661d17056ebcccd6b337420c4220884db32c46 [^]

Fixes issue 0037284: Implements JS function getPaymentByKey()

---
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
---

- Issue History
Date Modified Username Field Change
2017-11-14 09:48 adrianromero New Issue
2017-11-14 09:48 adrianromero Assigned To => Retail
2017-11-14 09:48 adrianromero Triggers an Emergency Pack => No
2017-11-14 09:55 adrianromero File Added: issue0037284.patch
2017-11-14 09:55 adrianromero Note Added: 0100508
2017-11-14 09:56 adrianromero Review Assigned To => guilleaer
2017-12-11 13:31 hgbot Checkin
2017-12-11 13:31 hgbot Note Added: 0100961
2017-12-11 13:31 hgbot Status new => resolved
2017-12-11 13:31 hgbot Resolution open => fixed
2017-12-11 13:31 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d661d17056ebcccd6b337420c4220884db32c46 [^]
2017-12-11 13:46 marvintm Assigned To Retail => adrianromero
2017-12-26 18:17 guilleaer Status resolved => closed
2017-12-26 18:17 guilleaer Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker