Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012891Openbravo ERP07. Sales managementpublic2010-04-07 10:562010-04-10 00:00
networkb 
adrianromero 
immediatemajoralways
closedno change required 
5
2.40MP13 
2.40MP14 
OBPS
Core
No
0012891: It is not possible to complete POS Order
It is not possible to complete POS Order.

After apply the solution for the following bug in an environment,
https://issues.openbravo.com/view.php?id=12520 [^]
you are not able to complete a POS Order
-Create a sales order with document type POS order.
-Add a line with tax
-Complete the order

-You get the following error:
NotNullError: C_INVOICETAX - CREATEDB
This is related with the change on the call to the post procdure.


   C_INVOICE_POST(p_PInstance_ID, p_Invoice_ID) ;

Now instead of null the p_PInstance_ID is passed to the funciont.

then in the c_invoice_post the updatedby variable is loaded with
the value of the user parameter of the p_instance__id passed.
   v_UpdatedBy:=Cur_Parameter.AD_User_ID;

The problem is that in this case the funciont c_invoice_created is called
from the c_order_post funciont and the first parameter passed is null instead the p_instnace_id, so you can not get the ad_user_id from the parameters of the p_instance__id because it is null.


No tags attached.
related to defect 00125202.40MP13 closed harikrishnan When you complete a sales invoice the database is not updated properly 
depends on backport 00129192.50MP14 closed adrianromero It is not possible to complete POS Order 
Issue History
2010-04-07 10:56networkbNew Issue
2010-04-07 10:56networkbAssigned To => adrianromero
2010-04-07 10:56networkbOBNetwork customer => Yes
2010-04-07 12:32networkbRelationship addedrelated to 0012520
2010-04-09 11:11adrianromeroIssue cloned0012919
2010-04-09 11:11adrianromeroRelationship addeddepends on 0012919
2010-04-09 11:13adrianromeroNote Added: 0026020
2010-04-09 11:13adrianromeroStatusnew => closed
2010-04-09 11:13adrianromeroResolutionopen => no change required
2010-04-10 00:00anonymoussf_bug_id0 => 2984779

Notes
(0026020)
adrianromero   
2010-04-09 11:13   
This issue is not reproducible in the 2.50 branch