Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039653Retail ModulesWeb POSpublic2018-11-20 11:162018-12-17 13:25
ebecerra 
ebecerra 
normalmajorhave not tried
closedfixed 
5
 
RR19Q1 
marvintm
No
0039653: Show stock alert for discontinued products in a customizable dialog
When stock for discontinued products not is enough the message is shown with "OB.UTIL.showAlert". Must be created a new dialog to show de message and allow to other modules include new buttons
N/A
1. Create a new dialog: OB.OBPOSPointOfSale.UI.Modals.ModalStockDiscontinued
2. When show the dialog the buttons are passed as arguments
3. It be possible add buttons predefined, this buttons always shown
4. Replace all call to show alert message: "OBPOS_ErrorProductDiscontinued" with the new dialog

Example:

OB.MobileApp.view.$.containerWindow.getRoot().doShowPopup({
  popup: 'OBPOSPointOfSale_UI_Modals_ModalStockDiscontinued',
  args: {
    header: OB.I18N.getLabel('OBMOBC_Error'),
    message: OB.I18N.getLabel('OBPOS_ErrorProductDiscontinued', ...),
    hideClose: true,
    buttons: [{
      label: OB.I18N.getLabel('OBMOBC_LblOk'),
      action: function () {
    ....
      },
      displayLogic: function () {
    ....
      }
    }]
  }
});

Arguments:
  - header: Dialog header
  - message: Message to show
  - hideClose:
      * true: Hide button "close" and set autoDismiss = true
      * undefined or false: Show button "close" and set autoDismiss = false
  - buttons: Array of buttons
      * label: Button label
      * action: Action to execute when button is pushed
      * displayLogic: Before show the dialog, this function is called (if defined)
No tags attached.
diff pi-mobile.diff (5,466) 2018-12-13 13:17
https://issues.openbravo.com/file_download.php?file_id=12433&type=bug
diff posterminal.diff (7,066) 2018-12-13 13:19
https://issues.openbravo.com/file_download.php?file_id=12434&type=bug
Issue History
2018-11-20 11:16ebecerraNew Issue
2018-11-20 11:16ebecerraAssigned To => Retail
2018-11-20 11:16ebecerraTriggers an Emergency Pack => No
2018-11-23 13:22ebecerraFile Added: posterminal.diff
2018-11-23 14:26guillermogilReview Assigned To => marvintm
2018-11-23 14:26guillermogilAssigned ToRetail => ebecerra
2018-11-26 08:34ebecerraFile Deleted: posterminal.diff
2018-11-26 08:36ebecerraFile Added: posterminal.diff
2018-12-13 13:17ebecerraFile Added: pi-mobile.diff
2018-12-13 13:19ebecerraFile Deleted: posterminal.diff
2018-12-13 13:19ebecerraFile Added: posterminal.diff
2018-12-13 13:20hgbotCheckin
2018-12-13 13:20hgbotNote Added: 0108581
2018-12-13 13:21hgbotCheckin
2018-12-13 13:21hgbotNote Added: 0108582
2018-12-13 13:23guillermogilStatusnew => scheduled
2018-12-13 13:23guillermogilStatusscheduled => resolved
2018-12-13 13:23guillermogilResolutionopen => fixed
2018-12-17 13:25marvintmStatusresolved => closed
2018-12-17 13:25marvintmFixed in Version => RR19Q1

Notes
(0108581)
hgbot   
2018-12-13 13:20   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2ad38c56292e0b31e9a28a27171cc695a24a72dd
Author: Eduardo Becerra <ebec70 <at> yahoo.com>
Date: Thu Dec 13 09:05:05 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2ad38c56292e0b31e9a28a27171cc695a24a72dd [^]

Fix issue 39653: Show stock alert for discontinued products in a customizable dialog

---
M src/org/openbravo/retail/posterminal/OBPOSComponentProvider.java
M web/org.openbravo.retail.posterminal/js/model/order.js
A web/org.openbravo.retail.posterminal/js/pointofsale/view/modals/modalstockdiscontinued.js
---
(0108582)
hgbot   
2018-12-13 13:21   
Repository: tools/automation/pi-mobile
Changeset: c1ca05a795bd94121c73eb203821d52e0f906d84
Author: Eduardo Becerra <ebec70 <at> yahoo.com>
Date: Thu Dec 13 13:16:19 2018 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/c1ca05a795bd94121c73eb203821d52e0f906d84 [^]

Related issue 39653: Fixed test for discontinued products

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/productlockeddiscontinued/VerifyProductDiscontinuedAssortWithoutStock.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/productlockeddiscontinued/VerifyProductDiscontinuedWithPreference.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/productlockeddiscontinued/VerifyProductDiscontinuedWithoutStock.java
---