Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008490Openbravo ERP07. Sales managementpublic2009-04-02 16:422009-05-19 11:53
networkb 
gorkaion 
immediatemajoralways
closedfixed 
5
2.40 
 
Core
No
0008490: 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.
No tags attached.
related to backport 0008525 closed rafaroda Duplicate lines are added to sales invoice, when the user create's Sales order (POS) for a product which has negative inventory 
blocks defect 0008405 closed gorkaion A POS order (sales order) can not be reactivated more than once 
Issue History
2009-04-07 17:53rafarodaTypedefect => backport
2009-04-07 17:53rafarodafix_in_branch => 2.40
2009-04-09 10:37rafarodaRelationship addedrelated to 0008525
2009-04-23 19:03gorkaionStatusscheduled => resolved
2009-04-23 19:03gorkaionFixed in SCM revision => d930f7e2bfdf
2009-04-23 19:03gorkaionResolutionopen => fixed
2009-04-23 19:03gorkaionNote Added: 0015639
2009-05-10 19:37psarobeFixed in Version => 2.40MP4
2009-05-18 12:59sureshbabuStatusresolved => closed
2009-05-18 12:59sureshbabuNote Added: 0016421
2009-05-19 11:53hgbotCheckin
2009-05-19 11:53hgbotNote Added: 0016457
2009-05-19 11:53hgbotFixed in SCM revisiond930f7e2bfdf => http://code.openbravo.com/erp/stable/2.40/rev/4b9904e647db53c9612f03621a1de13e0e8d809e [^]

Notes
(0015639)
gorkaion   
2009-04-23 19:03   
Repository: erp/stable/2.40
Changeset: d930f7e2bfdfed340ab9fd07d682e96bbc963e68
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Thu Apr 23 18:56:32 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/d930f7e2bfdfed340ab9fd07d682e96bbc963e68 [^] [^]

Fixed bug 8524. 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
(0016421)
sureshbabu   
2009-05-18 12:59   
Tested & working fine
(0016457)
hgbot   
2009-05-19 11:53   
Repository: erp/stable/2.40
Changeset: 4b9904e647db53c9612f03621a1de13e0e8d809e
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue May 19 11:52:13 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/4b9904e647db53c9612f03621a1de13e0e8d809e [^]

Related to issue 8490. Enabled the ability to reactivate pos and warehouse orders.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---