Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009397Openbravo ERP09. Financial managementpublic2009-06-08 18:502009-07-13 10:51
networkb 
vinothbabu 
immediateminoralways
closedfixed 
5
2.40 
2.40MP7 
Core
No
0009397: C_BankStatement_Post process fail when Settlement sequence has a preffix and/or suffix
If Settlement sequence is modified in order to add a suffix or preffix, C_BankStatement_Post process fails.

In C_BankStatement_Post process, in line

v_DocumentNo NUMBER(10) ;

This variable is used to insert a value in a varchar column.
1. Go to Financial management->Accounting->Setup->Document type
2. Select the document type Debt/Payment Settlement. Enter in form view
3. Click in document sequence
4. Add a prefix and a suffix. Save
5. Go to Sales management->Transactions->Sales invoice. Click new
6. Fill the mandatory fields
7. Move to lines. Select a product and save
8. Complete the sales invoice
9. Go to Financial management->Receivables and payables->Transactions->Bankstatement
10. Click new and save. Click on create lines from button and select the payment created above. click ok
11. Process the Bankstatement

you will see the error
v_DocumentNo NVARCHAR(60) ;
No tags attached.
related to defect 0009420 closed harikrishnan DocumentType variables declared as number but a document type can contains non-numeric chars (prefix,suffix) 
related to backport 0009490 closed vinothbabu C_Cash_Post fails when Settlement sequence contains a preffix or suffix with letters 
blocks defect 0009394 closed rajagopal C_BankStatement_Post process fail when Settlement sequence has a preffix and/or suffix 
Issue History
2009-06-09 09:04rafarodaTypedefect => backport
2009-06-09 09:04rafarodafix_in_branch => 2.40
2009-06-10 13:49shuehnerRelationship addedrelated to 0009420
2009-06-10 19:00psarobeProposed Solution updated
2009-06-16 08:53rafarodaRelationship addedrelated to 0009490
2009-06-23 09:23rafarodaAssigned Tovmromanos => rajagopal
2009-06-23 14:09rajagopalAssigned Torajagopal => vinothbabu
2009-06-24 13:07hgbotCheckin
2009-06-24 13:07hgbotNote Added: 0017562
2009-06-24 13:07hgbotStatusscheduled => resolved
2009-06-24 13:07hgbotResolutionopen => fixed
2009-06-24 13:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/87dd6f66cd7d5dd0d733b60f09a5e15dc8412466 [^]
2009-07-01 12:44sureshbabuStatusresolved => new
2009-07-01 12:44sureshbabuResolutionfixed => open
2009-07-01 12:44sureshbabuNote Added: 0017730
2009-07-01 13:16psarobeStatusnew => scheduled
2009-07-01 13:16psarobefix_in_branch2.40 => pi
2009-07-09 07:40vinothbabuNote Added: 0018031
2009-07-09 07:40vinothbabuStatusscheduled => resolved
2009-07-09 07:40vinothbabufix_in_branchpi =>
2009-07-09 08:00sureshbabuStatusresolved => closed
2009-07-09 08:00sureshbabuNote Added: 0018034
2009-07-09 08:00sureshbabuFixed in Version => pi
2009-07-10 11:19plujanStatusclosed => new
2009-07-10 11:19plujanNote Added: 0018087
2009-07-10 11:19plujanFixed in Versionpi =>
2009-07-10 11:20plujanStatusnew => scheduled
2009-07-10 11:20plujanfix_in_branch => pi
2009-07-10 11:20plujanStatusscheduled => resolved
2009-07-10 11:20plujanResolutionopen => fixed
2009-07-11 04:14vinothbabuNote Added: 0018126
2009-07-13 10:02psarobeFixed in Version => 2.40MP7
2009-07-13 10:02psarobefix_in_branchpi => 2.40
2009-07-13 10:51sureshbabuStatusresolved => closed
2009-07-13 10:51sureshbabuNote Added: 0018154

Notes
(0017562)
hgbot   
2009-06-24 13:07   
Repository: erp/stable/2.40
Changeset: 87dd6f66cd7d5dd0d733b60f09a5e15dc8412466
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Wed Jun 17 19:31:04 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/87dd6f66cd7d5dd0d733b60f09a5e15dc8412466 [^]

Fixes 0009397: C_BankStatement_Post process fail when Settlement sequence has a preffix and/or suffix

---
M src-db/database/model/functions/C_BANKSTATEMENT_POST.xml
---
(0017730)
sureshbabu   
2009-07-01 12:44   
i can able to reproduce the error, after i added both prefix and suffix.

"Error: Invalid input syntax for type numeric: "PR10027SF"
(0018031)
vinothbabu   
2009-07-09 07:40   
I was not able to reproduce in the latest version
(0018034)
sureshbabu   
2009-07-09 08:00   
Tested working fine
(0018087)
plujan   
2009-07-10 11:19   
Reopened for testing
(0018126)
vinothbabu   
2009-07-11 04:14   
Tested 2.40 Environment also . It is working fine
(0018154)
sureshbabu   
2009-07-13 10:51   
Tested working fine