Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042961Retail ModulesDelivery Modespublic2020-01-22 11:122020-02-06 09:16
nicola_uva 
rqueralta 
normalmajorN/A
closedfixed 
5
pi 
RR20Q2 
guilleaer
No
0042961: It's not possible show the delivery mode in the ticket line in red color
When the component "delivery mode" is created, missing the "name" property, so is not possible obtain the kind in the custom code.
1) 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.
Check the attached file.
No tags attached.
diff suggestedSolution.diff (609) 2020-01-22 11:12
https://issues.openbravo.com/file_download.php?file_id=13886&type=bug
Issue History
2020-01-22 11:12nicola_uvaNew Issue
2020-01-22 11:12nicola_uvaAssigned To => Retail
2020-01-22 11:12nicola_uvaFile Added: suggestedSolution.diff
2020-01-22 11:12nicola_uvaResolution time => 1580684400
2020-01-22 11:12nicola_uvaTriggers an Emergency Pack => No
2020-01-22 11:38martinsdanIssue Monitored: martinsdan
2020-01-22 12:58rqueraltaAssigned ToRetail => rqueralta
2020-01-22 12:58rqueraltaStatusnew => scheduled
2020-02-06 03:59hgbotCheckin
2020-02-06 03:59hgbotNote Added: 0117495
2020-02-06 03:59hgbotStatusscheduled => resolved
2020-02-06 03:59hgbotResolutionopen => fixed
2020-02-06 03:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4405c9c9d9026fa3349497a0293c70a5eae79c6b [^]
2020-02-06 04:01hgbotCheckin
2020-02-06 04:01hgbotNote Added: 0117496
2020-02-06 04:01hgbotFixed in SCM revisionhttp://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:16guilleaerReview Assigned To => guilleaer
2020-02-06 09:16guilleaerStatusresolved => closed
2020-02-06 09:16guilleaerFixed in Version => RR20Q2

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