Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033080 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | sometimes | 2016-05-30 15:31 | 2016-06-14 13:19 | |||
Reporter | umartirena | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR16Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 467bc231c315 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | guilleaer | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033080: [SERQA 1192] WEB: Products of type "Service" can be configured as "Show stock screen" when they shouldn't | |||||||
Description | Products of type "Service" can be configured as "Show stock screen" when they shouldn't as it doesn't make sense. It has no sense to display stock screen in Web POS for Service products has they are not stockable. | |||||||
Steps To Reproduce | In Openbravo ERP (Live Builds): * Go to Product Window. * Filter by a "Sports Accident Insurance" product. * Edit the product and set the flag "Show stock screen". In Web POS: * Add the service to the ticket. Stock screen is displayed. This is not necessary as the services don't have stock in the warehouse. | |||||||
Proposed Solution | Don't allow in the backend to check "Show stock screen" flag for Services. | |||||||
Tags | SER-QA | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0086852) Orekaria (viewer) 2016-05-31 10:37 |
Please better steps to reproduce |
(0087005) hgbot (developer) 2016-06-06 07:37 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 83044ae86f27f3a565a2d99e38d65a89ef625263 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Jun 06 11:06:33 2016 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/83044ae86f27f3a565a2d99e38d65a89ef625263 [^] Fixes issue 33080 : Adding Product Event handler - Not allow to enable the field "show stock screen" if the product type is "Service" --- M src-db/database/sourcedata/AD_MESSAGE.xml A src/org/openbravo/retail/posterminal/event/ProductEventHandler.java --- |
(0087021) marvintm (viewer) 2016-06-06 11:10 |
This same check could be done via a Check constraint, and we would allow both the performance overhead of having an EventHandler and also we wouldn't need to maintain a new class. |
(0087080) hgbot (developer) 2016-06-08 07:05 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 28bf034b6ddd2bf886da6ffd580f8343a0da246a Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Tue Jun 07 13:12:39 2016 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/28bf034b6ddd2bf886da6ffd580f8343a0da246a [^] Related to issue 33080 : Adding Check constraint for Product - Adding Check Constraint in Product table for Not to allow to enable the field "show stock screen" if the product type is "Service" - backout changset 83044ae86f27 --- M src-db/database/model/modifiedTables/M_PRODUCT.xml M src-db/database/sourcedata/AD_MESSAGE.xml R src/org/openbravo/retail/posterminal/event/ProductEventHandler.java --- |
(0087113) marvintm (viewer) 2016-06-09 12:33 |
Some small changes are still required: - The check constraint can be simplified a bit. Instead of: PRODUCTTYPE <> 'S' AND EM_OBPOS_SHOWSTOCK IS NOT NULL OR PRODUCTTYPE = 'S' AND EM_OBPOS_SHOWSTOCK = 'N' It could just be formulated like this: PRODUCTTYPE <> 'S' OR EM_OBPOS_SHOWSTOCK = 'N' - The AD_Message should be preserved, but it's search key should be equal to the constraint name. In this way when the constraint fails, the user will get a readable error. |
(0087166) marvintm (viewer) 2016-06-10 14:50 |
After some further discussion, we have realized that adding the constraint is an API change, and that there could be people already having services marked as "showstock". As of now the only consequence this has is that the window will appear when they try to add services to the ticket. On the other hand if we keep the constraint the update.database will fail automatically in this case. So we now believe that it's actually better to solve this issue via the EventHandler, and remove the constraint. |
(0087228) hgbot (developer) 2016-06-14 09:40 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 467bc231c315616588cbccd188753bf5cb9984dc Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Jun 13 11:21:46 2016 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/467bc231c315616588cbccd188753bf5cb9984dc [^] Fixes issue 33080 : Reverting the changes Backed out changeset: 28bf034b6ddd --- M src-db/database/model/modifiedTables/M_PRODUCT.xml M src-db/database/sourcedata/AD_MESSAGE.xml A src/org/openbravo/retail/posterminal/event/ProductEventHandler.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2016-05-30 15:31 | umartirena | New Issue | |
2016-05-30 15:31 | umartirena | Assigned To | => Retail |
2016-05-30 15:31 | umartirena | OBNetwork customer | => Yes |
2016-05-30 15:31 | umartirena | Triggers an Emergency Pack | => No |
2016-05-30 15:34 | umartirena | Resolution time | => 1466114400 |
2016-05-30 15:34 | umartirena | Summary | Products of type "Service" can be configured as "Show stock screen" when they shouldn't as it doesn't make sense => [SERQA 1192] WEB: Products of type "Service" can be configured as "Show stock screen" when they shouldn't |
2016-05-31 10:37 | Orekaria | Note Added: 0086852 | |
2016-05-31 10:37 | Orekaria | Assigned To | Retail => umartirena |
2016-05-31 10:37 | Orekaria | Status | new => feedback |
2016-05-31 10:52 | umartirena | Steps to Reproduce Updated | View Revisions |
2016-06-01 09:16 | umartirena | Status | feedback => new |
2016-06-01 09:21 | umartirena | Tag Attached: SER-QA | |
2016-06-01 09:21 | umartirena | Assigned To | umartirena => Orekaria |
2016-06-01 13:05 | Orekaria | Status | new => acknowledged |
2016-06-02 09:02 | ranjith_qualiantech_com | Assigned To | Orekaria => ranjith_qualiantech_com |
2016-06-02 09:02 | ranjith_qualiantech_com | Status | acknowledged => scheduled |
2016-06-06 07:37 | hgbot | Checkin | |
2016-06-06 07:37 | hgbot | Note Added: 0087005 | |
2016-06-06 07:37 | hgbot | Status | scheduled => resolved |
2016-06-06 07:37 | hgbot | Resolution | open => fixed |
2016-06-06 07:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/83044ae86f27f3a565a2d99e38d65a89ef625263 [^] |
2016-06-06 11:10 | marvintm | Note Added: 0087021 | |
2016-06-06 11:10 | marvintm | Status | resolved => new |
2016-06-06 11:10 | marvintm | Resolution | fixed => open |
2016-06-06 11:10 | marvintm | Status | new => scheduled |
2016-06-07 10:05 | ranjith_qualiantech_com | File Added: issue 33080 posterminal 6482.patch | |
2016-06-08 07:05 | hgbot | Checkin | |
2016-06-08 07:05 | hgbot | Note Added: 0087080 | |
2016-06-09 12:33 | marvintm | Note Added: 0087113 | |
2016-06-10 14:50 | marvintm | Note Added: 0087166 | |
2016-06-14 09:40 | hgbot | Checkin | |
2016-06-14 09:40 | hgbot | Note Added: 0087228 | |
2016-06-14 09:40 | hgbot | Status | scheduled => resolved |
2016-06-14 09:40 | hgbot | Resolution | open => fixed |
2016-06-14 09:40 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/83044ae86f27f3a565a2d99e38d65a89ef625263 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/467bc231c315616588cbccd188753bf5cb9984dc [^] |
2016-06-14 13:19 | guilleaer | Review Assigned To | => guilleaer |
2016-06-14 13:19 | guilleaer | Status | resolved => closed |
2016-06-14 13:19 | guilleaer | Fixed in Version | => RR16Q3 |
Copyright © 2000 - 2009 MantisBT Group |