Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014564 | Openbravo ERP | 09. Financial management | public | 2010-09-15 10:34 | 2010-10-30 11:24 |
|
Reporter | networkb | |
Assigned To | sivaraman | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.50MP20 | |
Target Version | 2.50MP23 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0014564: Writeoff accounting error in settlements |
Description | When canceling a debtpayment via settlemenet, the Write-off account of bussines partner is not taking into account. |
Steps To Reproduce | 1. Master Data Management || Business Partner Setup || Business Partner Category || Business Partner Category : search for Vendor and modify its Accounting tab to set writeoff account= 69300
2. check Financial Management || Accounting || Setup || Accounting Schema || Accounting Schema >> Defaults writeoff account: for explample 69400
3. make an invoice to bussines partner McGiver and post it
4. make a settelment: Financial Management || Receivables & Payables || Transactions || Settlement || Settlement
by clicking "Create Lines from" and selecting previuos invoice. Fill "canceled" cell with the total amount of the invoice
5. process settlement
6. post it. Now, the general ledger entry is 430 to 69400 instead of 430 to 69300. It continue using defaults values instead of BP values |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-09-15 10:34 | networkb | New Issue | |
2010-09-15 10:34 | networkb | Assigned To | => dalsasua |
2010-09-15 10:34 | networkb | OBNetwork customer | => Yes |
2010-09-30 12:51 | adrianromero | Note Added: 0031513 | |
2010-09-30 12:51 | adrianromero | Status | new => feedback |
2010-09-30 13:14 | adrianromero | Assigned To | dalsasua => adrianromero |
2010-10-07 09:18 | networkb | Status | feedback => new |
2010-10-07 09:18 | networkb | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=1016#r1016 |
2010-10-14 10:48 | networkb | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=1052#r1052 |
2010-10-19 14:34 | sivaraman | Assigned To | adrianromero => sivaraman |
2010-10-19 14:40 | hgbot | Checkin | |
2010-10-19 14:40 | hgbot | Note Added: 0031977 | |
2010-10-19 14:40 | hgbot | Status | new => resolved |
2010-10-19 14:40 | hgbot | Resolution | open => fixed |
2010-10-19 14:40 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bc42f5aa4e930dfc6f96a23820e70455c2571463 [^] |
2010-10-19 14:57 | sivaraman | Note Added: 0031979 | |
2010-10-20 04:39 | hudsonbot | Checkin | |
2010-10-20 04:39 | hudsonbot | Note Added: 0031995 | |
2010-10-20 23:07 | hudsonbot | Checkin | |
2010-10-20 23:07 | hudsonbot | Note Added: 0032029 | |
2010-10-22 07:12 | sureshbabu | Note Added: 0032091 | |
2010-10-22 07:12 | sureshbabu | Status | resolved => closed |
2010-10-30 11:24 | anonymous | sf_bug_id | 0 => 3098731 |
Notes |
|
|
Hello
Steps to reproduce are not very clear.For example write off account in what accounting tab is defined?
Please rewrite the steps to reproduce more specific and detailed.
Thanks |
|
|
(0031977)
|
hgbot
|
2010-10-19 14:40
|
|
Repository: erp/devel/pi
Changeset: bc42f5aa4e930dfc6f96a23820e70455c2571463
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Tue Oct 19 18:09:39 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/bc42f5aa4e930dfc6f96a23820e70455c2571463 [^]
Fixes issue 14564: Writeoff accounting error in settlements
Root cause:
It can be found AcctServer.ACCTTYPE_WriteOffDefault account type that was used earlier in DocPayment.java. That's why it was always taking the write off line at accounting schema level.
Solution:
Simply changing the account type from ACCTTYPE_WriteOffDefault to ACCTTYPE_WriteOff in WRITEOFF calculation would not work as C_BPartner_ID in AcctServer is nowhere populated with value (Please note, C_BPartner_ID is used in AcctServer.getAccount method). Therefore, the code has been modified in order to directly create Account object rather than calling getAccount method. This will resolve the issue as per the expected behaviour without any impacts.
---
M src/org/openbravo/erpCommon/ad_forms/DocPayment.java
---
|
|
|
|
Steps to test:
1. Log on to Openbravo with Admin role
2. Go to Master Data Management || Business Partner Setup || Business Partner Category || Business Partner Category
3. Search for Vendor and modify its Accounting tab to set writeoff account = 69300
4. Go to Financial Management || Accounting || Setup || Accounting Schema || Accounting Schema >> Defaults
5. Verify writeoff account: for example 69400
6. Make an invoice to business partner McGiver and post it
7. Go to Financial Management || Receivables & Payables || Transactions || Settlement
8. Make a settlement by clicking "Create Lines from" and selecting previous invoice. Fill "canceled" cell with the total amount of the invoice
9. Process settlement and post it
10. Verify if general ledger entry is 43000 to 69300
also verify the following
11. Go to Master Data Management || Business Partner Setup || Business Partner Category || Business Partner Category
12. Search for Vendor and delete its Accounting record
13. Follow the steps 5 to 9
14. Verify if general ledger entry is 43000 to 69400 |
|
|
|
|
|
|
|
|
|
verified in oracle context(pi) |
|