Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046501 | Openbravo ERP | 03. Procurement management | public | 2021-05-05 06:56 | 2021-05-17 16:20 |
|
Reporter | lbressan | |
Assigned To | vmromanos | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR21Q3 | |
Merge Request Status | approved |
Review Assigned To | dmiguelez |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 23685 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0046501: The lines of requisition do not allow to put quantity less than 1. |
Description | The lines of requisition do not allow to put quantity less than 1. |
Steps To Reproduce | Create requisition.
Create requisition line. Put quantity less than 1. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-05-05 06:56 | lbressan | New Issue | |
2021-05-05 06:56 | lbressan | Assigned To | => Triage Finance |
2021-05-05 06:56 | lbressan | OBNetwork customer | => OBPS |
2021-05-05 06:56 | lbressan | Modules | => Core |
2021-05-05 06:56 | lbressan | Resolution time | => 1621893600 |
2021-05-05 06:56 | lbressan | Triggers an Emergency Pack | => No |
2021-05-05 08:34 | Practics | Issue Monitored: Practics | |
2021-05-05 11:22 | dmiguelez | Review Assigned To | => dmiguelez |
2021-05-05 11:22 | dmiguelez | Note Added: 0127819 | |
2021-05-05 11:22 | dmiguelez | Status | new => closed |
2021-05-05 11:22 | dmiguelez | Resolution | open => invalid |
2021-05-05 14:43 | Practics | Note Added: 0127831 | |
2021-05-05 15:44 | dmiguelez | Note Added: 0127833 | |
2021-05-05 15:44 | dmiguelez | Status | closed => new |
2021-05-05 15:44 | dmiguelez | Resolution | invalid => open |
2021-05-05 15:53 | dmiguelez | Support ticket | => 23685 |
2021-05-11 14:15 | vmromanos | Status | new => scheduled |
2021-05-11 14:15 | vmromanos | Assigned To | Triage Finance => vmromanos |
2021-05-11 17:51 | vmromanos | Note Added: 0128007 | |
2021-05-12 11:16 | hgbot | Merge Request Status | => open |
2021-05-12 11:16 | hgbot | Note Added: 0128033 | |
2021-05-17 16:19 | hgbot | Merge Request Status | open => approved |
2021-05-17 16:20 | hgbot | Resolution | open => fixed |
2021-05-17 16:20 | hgbot | Status | scheduled => closed |
2021-05-17 16:20 | hgbot | Fixed in Version | => PR21Q3 |
2021-05-17 16:20 | hgbot | Note Added: 0128261 | |
2021-05-17 16:20 | hgbot | Note Added: 0128262 | |
Notes |
|
|
This is not an issue, it is the expected behavior.
From a functional point of view, within the Openbravo context, it does not make sense to create negative lines within a Requisition.
However, if the client is working with a different scenario, this can be easily customized through Application Dictionary.
It is possible to change the Min. Value of the Quantity column of the ProcurementRequisitionLine Table through a custom template |
|
|
|
David, no es poder meter líneas negativas. Sino que no permite poner 0,5 y esto debe ser posible. |
|
|
|
Thanks to the updated explanation of this issue we can consider this problem something to be fixed.
The solution should have 2 steps:
1. Update the definition of the Min. Value in Application Dictionary to 0
2. Ensure that only values greater than 0 are introduced by (0 should not be allowed):
- Option 1: Create a constraint in the DB (this implies to create a functional API change as the DB will be more restricted than before)
- Option 2: Create an Event Observer to implement this restriction |
|
|
|
Test plan:
Login as Openbravo admin
Go to Requisition window
Enter a new header and save it.
Create a new line. Fill the mandatory fields.
In quantity field enter 0 and save the record. Verify an error is raised.
In quantity field enter -1 and save the record. Verify an error is raised.
In quantity field enter -0.1 and save the record. Verify an error is raised
In quantity field enter 1 and save the record. Verify it's successfully saved.
In quantity field enter 0.01 and save the record. Verify it's successfully saved. |
|
|
(0128033)
|
hgbot
|
2021-05-12 11:16
|
|
|
|
(0128261)
|
hgbot
|
2021-05-17 16:20
|
|
|
|
(0128262)
|
hgbot
|
2021-05-17 16:20
|
|
|