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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039653
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSmajorhave not tried2018-11-20 11:162018-12-17 13:25
ReporterebecerraView Statuspublic 
Assigned Toebecerra 
PrioritynormalResolutionfixedFixed in VersionRR19Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
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

0039653: Show stock alert for discontinued products in a customizable dialog

DescriptionWhen 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
Steps To ReproduceN/A
Proposed Solution1. 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)
TagsNo tags attached.
Attached Filesdiff file icon pi-mobile.diff [^] (5,466 bytes) 2018-12-13 13:17 [Show Content]
diff file icon posterminal.diff [^] (7,066 bytes) 2018-12-13 13:19 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

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

- Issue History
Date Modified Username Field Change
2018-11-20 11:16 ebecerra New Issue
2018-11-20 11:16 ebecerra Assigned To => Retail
2018-11-20 11:16 ebecerra Triggers an Emergency Pack => No
2018-11-23 13:22 ebecerra File Added: posterminal.diff
2018-11-23 14:26 guillermogil Review Assigned To => marvintm
2018-11-23 14:26 guillermogil Assigned To Retail => ebecerra
2018-11-26 08:34 ebecerra File Deleted: posterminal.diff
2018-11-26 08:36 ebecerra File Added: posterminal.diff
2018-12-13 13:17 ebecerra File Added: pi-mobile.diff
2018-12-13 13:19 ebecerra File Deleted: posterminal.diff
2018-12-13 13:19 ebecerra File Added: posterminal.diff
2018-12-13 13:20 hgbot Checkin
2018-12-13 13:20 hgbot Note Added: 0108581
2018-12-13 13:21 hgbot Checkin
2018-12-13 13:21 hgbot Note Added: 0108582
2018-12-13 13:23 guillermogil Status new => scheduled
2018-12-13 13:23 guillermogil Status scheduled => resolved
2018-12-13 13:23 guillermogil Resolution open => fixed
2018-12-17 13:25 marvintm Status resolved => closed
2018-12-17 13:25 marvintm Fixed in Version => RR19Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker