Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034089 | Retail Modules | Web POS | public | 2016-09-26 14:09 | 2016-10-21 08:55 |
|
Reporter | nataliag | |
Assigned To | mario_castello | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR17Q1 | |
Merge Request Status | |
Review Assigned To | guilleaer |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034089: [Stock validation] Stock Validation not working creating a sales order from a quotation |
Description | When you create a sales order from a quotation in which you have buy more products than stock of that product, a pop up appears advising you that there is not enough stock. But when you accept it, you can continue with the sales order and buy more products than stock available. "Allow negative Stock" option is unselected in the client configuration. |
Steps To Reproduce | 1- Go to webpos and select "Create Quotation" in the menu.
2- Select a product quantity greater than its stock.
3- Select "Create Sales order" option in the menu.
4- In the pop up select "Firm Quotation" option and "Create Sales order".
5- Another pop up appears advising you that there is not enough stock, select "ok".
6- Now you can continue with the sales order and pay it as if there has stock. So you can buy more products than stock available. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | has duplicate | defect | 0028210 | | closed | jorge-garcia | We are able to create an order from Quotations when we have more than line with products without stock. We shouldn't be able. | related to | defect | 0034092 | | closed | nataliag | [Stock validation] Stock Validation not working using several receipts at the same time |
|
Attached Files | issue0034089.patch (4,424) 2016-10-03 22:38 https://issues.openbravo.com/file_download.php?file_id=9885&type=bug test34089.patch (10,103) 2016-10-05 16:51 https://issues.openbravo.com/file_download.php?file_id=9898&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-09-26 14:09 | nataliag | New Issue | |
2016-09-26 14:09 | nataliag | Assigned To | => Retail |
2016-09-26 14:09 | nataliag | Resolution time | => 1476655200 |
2016-09-26 14:09 | nataliag | Triggers an Emergency Pack | => No |
2016-09-26 15:34 | malsasua | Description Updated | bug_revision_view_page.php?rev_id=13215#r13215 |
2016-09-26 16:21 | nataliag | Relationship added | related to 0034092 |
2016-09-26 16:30 | nataliag | Priority | urgent => normal |
2016-10-03 16:34 | mario_castello | Assigned To | Retail => mario_castello |
2016-10-03 17:19 | mario_castello | Status | new => acknowledged |
2016-10-03 22:36 | mario_castello | Status | acknowledged => scheduled |
2016-10-03 22:38 | mario_castello | File Added: issue0034089.patch | |
2016-10-05 16:51 | mario_castello | File Added: test34089.patch | |
2016-10-05 16:54 | mario_castello | Note Added: 0090497 | |
2016-10-15 17:49 | hgbot | Checkin | |
2016-10-15 17:49 | hgbot | Note Added: 0090593 | |
2016-10-15 17:49 | hgbot | Status | scheduled => resolved |
2016-10-15 17:49 | hgbot | Resolution | open => fixed |
2016-10-15 17:49 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.stockvalidation/rev/8d9078777883419d9ab14d882bb0c2e0ae326f61 [^] |
2016-10-15 17:50 | hgbot | Checkin | |
2016-10-15 17:50 | hgbot | Note Added: 0090594 | |
2016-10-15 17:52 | mario_castello | Note Edited: 0090593 | bug_revision_view_page.php?bugnote_id=0090593#r13377 |
2016-10-15 17:54 | mario_castello | Note Edited: 0090593 | bug_revision_view_page.php?bugnote_id=0090593#r13378 |
2016-10-15 17:56 | mario_castello | Note Edited: 0090593 | bug_revision_view_page.php?bugnote_id=0090593#r13379 |
2016-10-15 18:00 | hgbot | Checkin | |
2016-10-15 18:00 | hgbot | Note Added: 0090595 | |
2016-10-19 15:35 | guilleaer | Note Added: 0090695 | |
2016-10-19 15:36 | guilleaer | Note Edited: 0090695 | bug_revision_view_page.php?bugnote_id=0090695#r13415 |
2016-10-19 18:31 | hgbot | Checkin | |
2016-10-19 18:31 | hgbot | Note Added: 0090703 | |
2016-10-20 20:37 | hgbot | Checkin | |
2016-10-20 20:37 | hgbot | Note Added: 0090739 | |
2016-10-21 08:55 | guilleaer | Review Assigned To | => guilleaer |
2016-10-21 08:55 | guilleaer | Status | resolved => closed |
2016-10-21 08:55 | guilleaer | Fixed in Version | => RR17Q1 |
2017-01-13 13:29 | marvintm | Relationship added | has duplicate 0028210 |
Notes |
|
|
Attached solution and test |
|
|
(0090593)
|
hgbot
|
2016-10-15 17:49
(edited on: 2016-10-15 17:56) |
|
Repository: erp/pmods/org.openbravo.retail.stockvalidation
Changeset: 8d9078777883419d9ab14d882bb0c2e0ae326f61
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Mon Oct 03 14:26:30 2016 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.stockvalidation/rev/8d9078777883419d9ab14d882bb0c2e0ae326f61 [^]
Fixed issue 34089: [Stock validation] Stock Validation not working creating a sales order from a quotation.
- Fixed SQL Injection in OrderFromQuotationStockChecker class.
- Replace condition to prevent wrong result in OrderFromQuotationStockChecker class.
- Moved the event to right place.
---
M src/org/openbravo/retail/stockvalidation/OrderFromQuotationStockChecker.java
M web/org.openbravo.retail.stockvalidation/js/modals.js
---
|
|
|
(0090594)
|
hgbot
|
2016-10-15 17:50
|
|
|
|
(0090595)
|
hgbot
|
2016-10-15 18:00
|
|
Repository: tools/automation/pi-mobile
Changeset: 5b2b1f4272db9432161fa2996af2510372b90d6d
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Sat Oct 15 10:00:33 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/5b2b1f4272db9432161fa2996af2510372b90d6d [^]
Related to issue 34089: Added automated tests
---
A src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationAllowNegativeStock.java
A src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationNotAllowNegativeStock.java
---
|
|
|
(0090695)
|
guilleaer
|
2016-10-19 15:35
(edited on: 2016-10-19 15:36) |
|
Fix is tested & reviewed and it is OK but tests are not working properly:
I34089_OrderFromQuotationAllowNegativeStock java.lang.AssertionError(The expected value for 'listOrderLines_row1_quantity (testId = listOrderLines_row1_quantity)' does not match the existing value.
I34089_OrderFromQuotationNotAllowNegativeStock java.lang.AssertionError(The expected value for 'theButton_btnTotalToPay (testId = theButton_btnTotalToPay)' does not match the existing value.
|
|
|
(0090703)
|
hgbot
|
2016-10-19 18:31
|
|
Repository: tools/automation/pi-mobile
Changeset: b410fcc45274df611de98abd80650b7989ad3d1f
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Wed Oct 19 10:30:40 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b410fcc45274df611de98abd80650b7989ad3d1f [^]
Verifies issue 34089: Fixed test I34089_OrderFromQuotationAllowNegativeStock and I34089_OrderFromQuotationNotAllowNegativeStock
---
M src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationAllowNegativeStock.java
M src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationNotAllowNegativeStock.java
---
|
|
|
(0090739)
|
hgbot
|
2016-10-20 20:37
|
|
Repository: tools/automation/pi-mobile
Changeset: 4995da2ca201aeca09c93b5cbf79ff40bd9593a9
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Thu Oct 20 12:36:52 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/4995da2ca201aeca09c93b5cbf79ff40bd9593a9 [^]
Verifies issue 34089: Select quantity from database to prevent errors in the tests
---
M src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationAllowNegativeStock.java
M src-test/org/openbravo/test/mobile/quarantine/extmodules/MCA/stockvalidation/I34089_OrderFromQuotationNotAllowNegativeStock.java
---
|
|