Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0045716Openbravo ERP07. Sales managementpublic2021-01-12 17:032021-01-25 12:43
a_singh 
Triage Omni OMS 
normalmajoralways
closedno change required 
5
 
 
dmiguelez
Core
No
0045716: After rejecting a sales quotation, qtyordered must be updated to zero
After rejecting a booked sales quotation,the field ordered quantity(qty ordered) must be updated to zero but its not happening.
If the field ordered quantity is 1 or more when the document is booked and after rejection it should be updated to 0 which is not happening.
tried to reproduce the same on the livebuilds:
1. Create a sales quotation and book it.
2. Select reject reason and click on the Close button.
3. Select Reject option from the action list and click Ok button which rejects the quotation and document status changes from Under evaluation to Closed - Rejected.
4. The expected behaviour for the field ordered quantity must be updated to zero but it remains the same.
No tags attached.
Issue History
2021-01-12 17:03a_singhNew Issue
2021-01-12 17:03a_singhAssigned To => Triage Finance
2021-01-12 17:03a_singhModules => Core
2021-01-12 17:03a_singhResolution time => 1611615600
2021-01-12 17:03a_singhTriggers an Emergency Pack => No
2021-01-25 09:04egoitzResolution time1611615600 => 1611788400
2021-01-25 09:04egoitzSeverityminor => major
2021-01-25 12:43dmiguelezReview Assigned To => dmiguelez
2021-01-25 12:43dmiguelezNote Added: 0125757
2021-01-25 12:43dmiguelezStatusnew => closed
2021-01-25 12:43dmiguelezResolutionopen => no change required

Notes
(0125757)
dmiguelez   
2021-01-25 12:43   
This is the expected behavior.

When a Sales Order is closed, the ordered quantity is updated taking into account the delivered quantity.

However, a Sales Quotation is a different document and the rejection is a different action.
In this case, the quantity is not updated because it reflects what was included originally in the quotation.

In the database, the way to differentiate between the data of the quotations and the sales orders is to check the document subtype.