Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012680Openbravo ERPZ. Otherspublic2010-03-15 10:252010-12-09 15:59
gorkaion 
gorkaion 
highmajoralways
closedfixed 
20Gentoo
2.50 
 
Advanced Payables and Receivables Mngmt
No
0012680: DocumentNo wrongly calculated on windows based on FIN_Payment and FIN_Payment_Proposal tables
On windows based on those tables when a new record is being created the document number proposed is based on the sequence of the table instead of the sequence assigned to the selected document type. But if this proposed document number is not changed when the record is saved it is properly recalculated.
Go to Receipt Payment window and press new. A document number is proposed. Fill mandatory fields and save the record. A different document number is saved.
All tables with DocumentNo and c_doctype_id columns needs a callout assigned to the c_doctype_id that calculates the proper document number. New callouts are needed for the following tables:
FIN_Payment, FIN_Payment_Proposal and FIN_Reconciliation

These callouts shall be developed making use of the newly created SimpleCallout.

To get the DocumentNo use:
Utility.getDocumentNo(this, vars, "", "FIN_Payment", strDocTypeId, strDocTypeId, false, false);

Remember to add the "<" and ">".
No tags attached.
Issue History
2010-03-15 10:25gorkaionNew Issue
2010-03-15 10:25gorkaionAssigned To => gorkaion
2010-03-23 13:48gorkaionStatusnew => scheduled
2010-03-23 13:48gorkaionfix_in_branch => pi
2010-03-31 18:12hgbotCheckin
2010-03-31 18:12hgbotNote Added: 0025845
2010-03-31 18:12hgbotStatusscheduled => resolved
2010-03-31 18:12hgbotResolutionopen => fixed
2010-03-31 18:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c4ac0459ec4102ed116b241d1eecefa87ea296d6 [^]
2010-04-19 21:12hudsonbotCheckin
2010-04-19 21:12hudsonbotNote Added: 0026406
2010-07-28 13:18sureshbabuNote Added: 0029642
2010-07-28 13:18sureshbabuStatusresolved => closed
2010-12-09 15:59anonymoussf_bug_id0 => 3133052

Notes
(0025845)
hgbot   
2010-03-31 18:12   
Repository: erp/devel/pi
Changeset: c4ac0459ec4102ed116b241d1eecefa87ea296d6
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Mar 23 18:24:37 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c4ac0459ec4102ed116b241d1eecefa87ea296d6 [^]

Fixed issue 12680.Minor adjustments on the callout.

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src/org/openbravo/erpCommon/ad_callouts/SL_AdvPayment_Document.java
---
(0026406)
hudsonbot   
2010-04-19 21:12   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/c4ac0459ec41 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]
(0029642)
sureshbabu   
2010-07-28 13:18   
verified