Openbravo Issue Tracking System - Modules
View Issue Details
0013656ModulesAccruals and Deferralspublic2010-06-15 09:182010-06-18 14:00
psanjuan 
balamurugan 
immediatemajoralways
closedfixed 
20Ubuntu 8.04.1
 
 
0013656: Acc&Def Plan-amount divided by periods (monthly). Constrains to the "To Date"
monthly bases =>
 Example: 01.5.09 - 31.7.10 amount 14.000,-
 => 14 month => amount per month = 1000,-
05/09 1000,-
06/09 1000,-
.
.
.
06/10 1000,-
07/10 1000,-

If the day in From-date is not the first of a month, the amount for the first and the last month is distributed proportionally for the count of days in the first month.
    the way to implement this new feature request is:
There should be a new system key at client level (application path: General Setup || Client || Client || Client >> Information )
sistem key name: "Acc&Def calculation"
that system key should have 2 options:
- daily - if the user select this one system should behavied the way it behavies now.
- monthly - if the user select this one system should behavied as explained below:
Monthly:
Constraint for the ‚To’ date: The day in the To-date must be the predecessor from the day in the From-date (with 28/29/30/31, according to the month as predecessor of 1)
If the day in From-date is not the first of a month, the amount for the first and the last month is distributed proportionally for the count of days in the first month.

From 01.06.2010 To 31.12.2010 Net Amount = 7000 => 1000 in every month

From 15.06.2010 To 14.08.2010 Net Amount = 2000 => 500 in June, 1000 in July, 500 in August

From 10.06.2010 To 09.08.2010 Net Amount = 1800 => 600 in June, 900 in July, 300 in August

Daily:

No constraints for the ‘To’ date and it should work as it currently works.
No tags attached.
depends on feature request 0013440 closed vmromanos Accruals and Deferrals enhancements - amount divided by period - New Calculation Type = Monthly 
Issue History
2010-06-15 09:18psanjuanNew Issue
2010-06-15 09:18psanjuanAssigned To => sathiyan
2010-06-15 09:18psanjuanDescription Updatedbug_revision_view_page.php?rev_id=504#r504
2010-06-15 09:19psanjuanNote Added: 0028431
2010-06-15 09:19psanjuanProposed Solution updated
2010-06-15 09:20psanjuanRelationship addeddepends on 0013440
2010-06-15 09:20psanjuanAssigned Tosathiyan => balamurugan
2010-06-17 12:10hgbotCheckin
2010-06-17 12:10hgbotNote Added: 0028545
2010-06-17 12:10hgbotStatusnew => resolved
2010-06-17 12:10hgbotResolutionopen => fixed
2010-06-17 12:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/0d027143487f0ed541b9e44e7d76bd6214f23122 [^]
2010-06-17 14:15hgbotCheckin
2010-06-17 14:15hgbotNote Added: 0028556
2010-06-17 14:15hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/0d027143487f0ed541b9e44e7d76bd6214f23122 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/451183449ab1e74dab54f7f8af4517716bcb4389 [^]
2010-06-18 14:00arunkumarNote Added: 0028583
2010-06-18 14:00arunkumarStatusresolved => closed

Notes
(0028431)
psanjuan   
2010-06-15 09:19   
This inmediate is due to a wrong requirements definition in Feature Request 13440.
(0028545)
hgbot   
2010-06-17 12:10   
Repository: erp/pmods/org.openbravo.accrualsanddeferrals
Changeset: 0d027143487f0ed541b9e44e7d76bd6214f23122
Author: Balamurugan Ramadoss <balamurugan.ramadoss <at> openbravo.com>
Date: Thu Jun 17 15:40:20 2010 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/0d027143487f0ed541b9e44e7d76bd6214f23122 [^]

Fixes Issue 13656: Acc&Def Plan-amount divided by periods (monthly)

---
M src-db/database/model/functions/ACCDEF_GENERATE_PLAN.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0028556)
hgbot   
2010-06-17 14:15   
Repository: erp/pmods/org.openbravo.accrualsanddeferrals
Changeset: 451183449ab1e74dab54f7f8af4517716bcb4389
Author: Balamurugan Ramadoss <balamurugan.ramadoss <at> openbravo.com>
Date: Thu Jun 17 17:45:06 2010 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/451183449ab1e74dab54f7f8af4517716bcb4389 [^]

Fixes Issue 13656: Acc&Def Plan-amount divided by periods (monthly)

---
M src-db/database/model/functions/ACCDEF_GENERATE_PLAN.xml
---
(0028583)
arunkumar   
2010-06-18 14:00   
Tested working fine