Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008405Openbravo ERP07. Sales managementpublic2009-04-02 16:422009-05-30 00:00
networkb 
gorkaion 
immediatemajoralways
closedfixed 
5
2.40 
pi 
Core
No
0008405: A POS order (sales order) can not be reactivated more than once
A completed POS order (Sales Order, POS order document type) can be reactivated once. Complete it again (see odd behaviours in the steps to reproduce). But if you try to reactive it again, it is not possible.
The application shows an error (please see the attached file)
1) Create a new sales order, using POS order as document type.
2) Add a line with quantity equal to 20.
3) Go back to header Complete it.
4) A shipment with quantity 20 and an invoice with quantity 20 are created: OK
5) Reactivate it.
6) The previous shipment and invoice are voided: OK
7) A new shipment with quantity -20 and a new invoice with quantity -20 are created to compensate previous ones: OK
8) Complete the POS Order again.
9A) A new shipment with quantity 20 is created: OK
9b) a new invoice with 2 lines with quantity 20 each is created: WRONG
10) Notice that even if Process successfull message displays, POS Order is in state Under Way.
10) Notice also that Complete button does not give you the option of reactivate.
250MP1
related to defect 0008395 closed AinhoaPagola Wrong error message when cannot complete POS order 
depends on backport 0008490 closed gorkaion A POS order (sales order) can not be reactivated more than once 
related to defect 0008524 closed rafaroda Duplicate lines are added to sales invoice, when the user create's Sales order (POS) for a product which has negative inventory 
jpg 1.jpg (104,788) 2009-04-02 16:42
https://issues.openbravo.com/file_download.php?file_id=1111&type=bug
jpg
Issue History
2009-04-02 16:42networkbNew Issue
2009-04-02 16:42networkbAssigned To => rafaroda
2009-04-02 16:42networkbFile Added: 1.jpg
2009-04-02 16:42networkbRegression testing => No
2009-04-07 17:51rafarodaAssigned Torafaroda => gorkaion
2009-04-07 17:51rafarodaDescription Updated
2009-04-07 17:51rafarodaProposed Solution updated
2009-04-07 17:53rafarodaStatusnew => scheduled
2009-04-07 17:53rafarodafix_in_branch => pi
2009-04-09 10:37rafarodaRelationship addedrelated to 0008524
2009-04-09 17:46rafarodaRelationship addedrelated to 0008395
2009-04-23 16:05psarobeTag Attached: 250MP1
2009-04-23 18:55hgbotCheckin
2009-04-23 18:55hgbotNote Added: 0015636
2009-04-23 18:55hgbotStatusscheduled => resolved
2009-04-23 18:55hgbotResolutionopen => fixed
2009-04-23 18:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5995236f7ac316f4d35f18012f4ad8cc4bb49bec [^]
2009-04-24 17:21networkbNote Added: 0015716
2009-05-29 10:27sureshbabuStatusresolved => closed
2009-05-29 10:27sureshbabuNote Added: 0016753
2009-05-29 10:27sureshbabuFixed in Version2.50MP1 => pi
2009-05-30 00:00anonymoussf_bug_id0 => 2798615

Notes
(0015636)
hgbot   
2009-04-23 18:55   
Repository: erp/devel/pi
Changeset: 5995236f7ac316f4d35f18012f4ad8cc4bb49bec
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Thu Apr 23 16:57:24 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5995236f7ac316f4d35f18012f4ad8cc4bb49bec [^]

Fixed bug 8405. POS Sales Orders cannot be reactivated now.
Other procedures has been fixed so in case that it is desired to
reactivate the POS Sales order it does it successfully.

---
M src-db/database/model/functions/C_INVOICE_CANCEL.xml
M src-db/database/model/functions/C_INVOICE_CREATE.xml
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0015716)
networkb   
2009-04-24 17:21   
The solution provided, is not correct. A funcionality can not be removed in the same version that the bug was found.
It can be removed for future releases, but not for the same release, because it can be used by clients/partners.

Please, provide a new solution for this bug instead of remove the funcionality
(0016753)
sureshbabu   
2009-05-29 10:27   
Tested working fine ( Error:This action is not supported)