Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015127Openbravo ERP07. Sales managementpublic2010-11-08 15:402012-03-07 12:30
zardi 
Sandrahuguet 
highmajoralways
closedout of date 
20Ubuntu 9.10
pi 
 
Core
No
0015127: Copy product template in simple sales order does not work
When clicking Copy product template the following error is thrown :

ERROR: invalid input syntax for type numeric "......"

The problem is in the PL/SQL function m_copy_product_template.
- Create a simpe sale order
- Select a Business Partner with 'Product template'
- Copy products from the business partner's template
I checked the function 'src-db/database/model/functions/M_COPY_PRODUCT_TEMPLATE.xml'and found

- Line 41: v_BillTo has data type numeric and should be a character variable.
- Line 43: v_PriceList has data type character variable and should be a numeric.
- Line 47 : v_Discount has data type character variable and should be a numeric.
- Line 128 : if a model product is not in the selected price list, v_Pricelist is set to zero and an error "division by zero" will be raised. Execute statement, only if Pricelist<> 0

OB3-Reviewed, UUID project, VMA-Reviewed
txt m_copy_product_template.txt (7,729) 2011-05-10 17:44
https://issues.openbravo.com/file_download.php?file_id=3966&type=bug
Issue History
2010-11-08 15:40zardiNew Issue
2010-11-08 15:40zardiAssigned To => adrianromero
2011-05-10 17:44rashidFile Added: m_copy_product_template.txt
2011-05-10 17:44rashidNote Added: 0036648
2011-05-11 16:05shuehnerIssue Monitored: shuehner
2011-05-11 16:05shuehnerTag Attached: UUID project
2011-06-03 10:58dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:16dalsasuaAssigned Todalsasua => jonalegriaesarte
2011-09-19 11:14psarobePrioritynormal => high
2011-09-19 11:14psarobeSeverityminor => major
2011-09-19 11:14psarobeStatusnew => scheduled
2011-09-19 11:14psarobeversion2.50MP23 => pi
2011-10-29 21:44psarobeTag Attached: OB3-Reviewed
2012-02-15 19:04iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 17:31vmromanosTag Attached: VMA-Reviewed
2012-03-07 12:15SandrahuguetAssigned Tovmromanos => Sandrahuguet
2012-03-07 12:30SandrahuguetNote Added: 0046128
2012-03-07 12:30SandrahuguetStatusscheduled => closed
2012-03-07 12:30SandrahuguetResolutionopen => out of date

Notes
(0036648)
rashid   
2011-05-10 17:44   
Here is a fixed version of the M_COPY_PRODUCT_TEMPLATE
(0046128)
Sandrahuguet   
2012-03-07 12:30   
This window was removed in 3.0 in cleanup project