Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012919Openbravo ERP07. Sales managementpublic2010-04-09 11:112010-04-19 07:41
adrianromero 
adrianromero 
immediatemajoralways
closedfixed 
5
2.40MP13 
2.50MP14 
No
Core
No
0012919: 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.
blocks defect 00128912.40MP14 closed adrianromero It is not possible to complete POS Order 
Issue History
2010-04-09 11:11adrianromeroNew Issue
2010-04-09 11:11adrianromeroAssigned To => adrianromero
2010-04-09 11:11adrianromeroOBNetwork customer => No
2010-04-09 11:11adrianromeroIssue generated from0012891
2010-04-09 11:11adrianromeroRelationship addedblocks 0012891
2010-04-09 11:11adrianromeroNote Added: 0026019
2010-04-09 11:11adrianromeroStatusnew => scheduled
2010-04-09 11:11adrianromerofix_in_branch => pi
2010-04-09 11:12adrianromeroStatusscheduled => resolved
2010-04-09 11:12adrianromeroFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/abde598fb3f1eb69d8c226f4f31c3cecc8450965 [^]
2010-04-09 11:12adrianromeroResolutionopen => fixed
2010-04-19 07:41arunkumarNote Added: 0026327
2010-04-19 07:41arunkumarStatusresolved => closed

Notes
(0026019)
adrianromero   
2010-04-09 11:11   
Repository: erp/stable/2.40
Changeset: abde598fb3f1eb69d8c226f4f31c3cecc8450965
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Mon Mar 29 15:32:01 2010 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/abde598fb3f1eb69d8c226f4f31c3cecc8450965 [^] [^]

Fixes Issue 12799: Generate Invoice process generates multiple invoices.

---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
M src-db/database/model/functions/C_INVOICE_POST.xml
(0026327)
arunkumar   
2010-04-19 07:41   
Tested & working fine