Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007442Openbravo ERP02. Master data managementpublic2009-02-09 18:092009-04-21 10:54
mirurita 
AinhoaPagola 
normalminoralways
closedfixed 
20rPath Linux
pi 
2.50beta 
Core
No
0007442: Import Orders process fails selecting paymentrule
When paymentrule1 field of I_Order table is specified Import Order process fails.

Import Order error: javax.servlet.ServletException: @CODE=0@ERROR: column "amount" is of type numeric but expression is of type character varying

LOG
16:37:01 [http-8080-2] ERROR org.openbravo.erpCommon.ad_process.CDebtpaymentData - SQL error in query: INSERT INTO C_DEBT_PAYMENT (C_DEBT_PAYMENT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_BPARTNER_ID, C_CURRENCY_ID, PAYMENTRULE, ISPAID, AMOUNT, DATEPLANNED, ISMANUAL, ISVALID, CHANGESETTLEMENTCANCEL, CANCEL_PROCESSED, GENERATE_PROCESSED, GLITEMAMT, ISDIRECTPOSTING, STATUS, STATUS_INITIAL, C_ORDER_ID) VALUES ( ?, ?, ?, 'Y', TO_DATE(now()), ?, TO_DATE(now()), ?, ?, ?, ?, ?, ?, TO_DATE(?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)Exception:org.postgresql.util.PSQLException: ERROR: column "amount" is of type numeric but expression is of type character varying
Follow this test case:
http://wiki.openbravo.com/wiki/QA_test_plan_2.50/Test_cases [^]

with one modification:
- create one record more:
     Name: Paymentrule1
     Column: PaymentRule1
     Data type: constant
     Constant value: B

Then, go to Master Data Management -> Import Data -> Import Orders
Fill Price List field and press Import Orders button
commsup_sprint6
Issue History
2009-02-09 18:09miruritaNew Issue
2009-02-09 18:09miruritaAssigned To => rafaroda
2009-02-09 18:09miruritasf_bug_id0 => 2582133
2009-02-09 18:09miruritaIssue Monitored: mirurita
2009-02-09 18:09miruritaIssue End Monitor: mirurita
2009-02-09 18:11AinhoaPagolaAssigned Torafaroda => AinhoaPagola
2009-02-11 11:33AinhoaPagolaStatusnew => scheduled
2009-02-11 11:33AinhoaPagolafix_in_branch => trunk
2009-02-12 12:26svnbotCheckin
2009-02-12 12:26svnbotNote Added: 0013402
2009-02-12 12:26svnbotStatusscheduled => resolved
2009-02-12 12:26svnbotResolutionopen => fixed
2009-02-12 12:26svnbotsvn_revision => 13088
2009-02-13 10:43AinhoaPagolaTag Attached: commsup_sprint6
2009-04-21 10:54psarobeStatusresolved => closed

Notes
(0013402)
svnbot   
2009-02-12 12:26   
Repository: openbravo
Revision: 13088
Author: AinhoaPagola
Date: 2009-02-12 12:26:32 +0100 (Thu, 12 Feb 2009)

Fixes bug 0007442. Import orders process fails when selecting a paymentrule.

---
U trunk/src/org/openbravo/erpCommon/ad_process/CDebtpayment_data.xsql
U trunk/src/org/openbravo/erpCommon/ad_process/ImportOrder.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=13088&sc=1 [^]