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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042961
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Delivery ModesmajorN/A2020-01-22 11:122020-02-06 09:16
Reporternicola_uvaView Statuspublic 
Assigned Torqueralta 
PrioritynormalResolutionfixedFixed in VersionRR20Q2
StatusclosedFix in branchFixed in SCM revisiona9ff50929d98
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0042961: It's not possible show the delivery mode in the ticket line in red color

DescriptionWhen the component "delivery mode" is created, missing the "name" property, so is not possible obtain the kind in the custom code.
Steps To Reproduce1) Create a module
2) Crate a JS file with following code

OB.UTIL.HookManager.registerHook('OBPOS_RenderOrderLine', function(args, callbacks) {
  if (OB.MobileApp.model.hasPermission('OBRDM_EnableDeliveryModes', true)) {
      var orderline = args.orderline.model;
      if(orderline.get('obrdmDeliveryMode') === 'PickupInStore'){
          args.orderline.$.controlx.addClass('renderOrderLine-pickupstore');
      }
  }
});

As you can verify the "controlx" change every time.
Proposed SolutionCheck the attached file.
TagsNo tags attached.
Attached Filesdiff file icon suggestedSolution.diff [^] (609 bytes) 2020-01-22 11:12 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0117495)
hgbot (developer)
2020-02-06 03:59

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4405c9c9d9026fa3349497a0293c70a5eae79c6b
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Thu Jan 23 07:35:59 2020 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4405c9c9d9026fa3349497a0293c70a5eae79c6b [^]

Fixed issue 42961: It's not possible show the delivery mode in the ticket line
in red color

- Added "name" property

---
M web/org.openbravo.retail.posterminal/js/hookRenderOrderLine.js
---
(0117496)
hgbot (developer)
2020-02-06 04:01

Repository: tools/automation/pi-mobile
Changeset: a9ff50929d98a154ae10a24f8cbf685f29b17cc0
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Sun Feb 02 08:48:54 2020 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/a9ff50929d98a154ae10a24f8cbf685f29b17cc0 [^]

Fixed issue 42961: It's not possible show the delivery mode in the ticket line
in red color

- TestId updated

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/TestIdExtModules.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/I39897_VerifyCRWithDeliveryModes.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliveryrates/DeliveryRates_PayInDelivery_TwoDeliveryServices.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/deliverymodes/deliveryrates/DeliveryRates_PayInTicket_TwoDeliveryServices.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/orderpreparationawo/OP_Test12_PickingAndDeliveredQtyInOpenedTicket.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/orderpreparationawo/OP_Test18_PickingsFromDiferentWarehouses.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/orderpreparationawo/OP_Test19_PickingsWithProductWithServiceRelatedUniqueQuantity.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/orderpreparationawo/OP_Test20_PickingsWithProductWithServiceRelatedPerProduct.java
---

- Issue History
Date Modified Username Field Change
2020-01-22 11:12 nicola_uva New Issue
2020-01-22 11:12 nicola_uva Assigned To => Retail
2020-01-22 11:12 nicola_uva File Added: suggestedSolution.diff
2020-01-22 11:12 nicola_uva Resolution time => 1580684400
2020-01-22 11:12 nicola_uva Triggers an Emergency Pack => No
2020-01-22 11:38 martinsdan Issue Monitored: martinsdan
2020-01-22 12:58 rqueralta Assigned To Retail => rqueralta
2020-01-22 12:58 rqueralta Status new => scheduled
2020-02-06 03:59 hgbot Checkin
2020-02-06 03:59 hgbot Note Added: 0117495
2020-02-06 03:59 hgbot Status scheduled => resolved
2020-02-06 03:59 hgbot Resolution open => fixed
2020-02-06 03:59 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4405c9c9d9026fa3349497a0293c70a5eae79c6b [^]
2020-02-06 04:01 hgbot Checkin
2020-02-06 04:01 hgbot Note Added: 0117496
2020-02-06 04:01 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4405c9c9d9026fa3349497a0293c70a5eae79c6b [^] => http://code.openbravo.com/tools/automation/pi-mobile/rev/a9ff50929d98a154ae10a24f8cbf685f29b17cc0 [^]
2020-02-06 09:16 guilleaer Review Assigned To => guilleaer
2020-02-06 09:16 guilleaer Status resolved => closed
2020-02-06 09:16 guilleaer Fixed in Version => RR20Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker