Openbravo Issue Tracking System - Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0013440 | Modules | Accruals and Deferrals | public | 2010-05-26 11:07 | 2010-09-10 18:54 | |||||||
Reporter | psanjuan | |||||||||||
Assigned To | vmromanos | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 20 | OS Version | Ubuntu 8.04.1 | ||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 1.0.10 | ||||||||||
Merge Request Status | ||||||||||||
Regression date | ||||||||||||
Regression introduced by commit | ||||||||||||
Regression level | ||||||||||||
Review Assigned To | ||||||||||||
Support ticket | ||||||||||||
OBNetwork customer | ||||||||||||
Regression introduced in release | ||||||||||||
Summary | 0013440: Accruals and Deferrals enhancements - amount divided by period - New Calculation Type = Monthly | |||||||||||
Description | Calculation of acc&def-plan should be done in two ways which can be chosen by the user (only once can be setup in the system as the one to use by default, see proposed solution below). - Daily = daily basis calculation which is the way it works now. For an explanation on daily calculation see issue 13984 - Monthly = monthly bases => which is the new one explained in this Feature Request. | |||||||||||
Steps To Reproduce | Purchase Management || Transactions || Purchase Invoice || Header and enter a new invoice by entering below information: Transaction document = AP invoice Invoice date = Accounting Date = Tax Date = 10-01-2010 Acc & Def Type = Prepaid Expenses Date From = 10-01-2010 Date To = 09-09-2011 Go to Lines and enter a line with a Line Net Amount = 21.000 Go back to the header and complete/Post the invoice. Realize there is no way for a monthly calculation. | |||||||||||
Proposed Solution | 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, see issue 13984 for more information. - monthly - if the user select this one system should behavied as explained below: (1) It is only possible to enter full months in Periods fields, therefore: The day of the Date to must be the day of the Data from -1 (2) If the day in the "Date From" is not the first day of a month, the amount for the first and the last month is distributed proportionally for the count of days in the first month (3) all of the above according to below formulas - Avg. monthly amount = Line Net Amount / Nº of months - First month amount = (30-Day in "date from"+1) x Avg. monthly amount/30 - Last month amount = Line net amount - accumulated amount It is important to highlight that for the Monthly Calculation: 30 days to be consider for each month Example 1 Accounting date: 01.05.09 Date From: 01.5.09 Date To: 31.7.10 Amount 15.000,- => Number of months = 15 month => Average amount per month = 1000,- System will generate 15 lines in the Plan. 05/09 1000,- 06/09 1000,- . . . 06/10 1000,- 07/10 1000,- Example2 : Accounting Date=10-01-2010 From Date = 10-01-2010 To Date = 09-09-2011 Nº of months = 20 Amount = 20.000 Average amount = 20.000/20 = 1.000 system will create 21 lines line 1 = First month amount (from 10-01-2010 to 30-01-2010)) = (30-10+1)*1.000/30 = 700 Line 2 to 20 = Middle months (from 01-02-2010 to 01-08-2011) = 1000 x 19 months = 19.000 Line 21 = Last month amount (from 01-09-2011 to 09-09-2011) = 20.000 - 19.700 = 300 Total = 700 + 19000 + 300 = 20000 | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | 13440.png (67,879) 2010-08-31 12:25 https://issues.openbravo.com/file_download.php?file_id=3000&type=bug 13440_1.png (56,565) 2010-08-31 12:25 https://issues.openbravo.com/file_download.php?file_id=3001&type=bug 13440_2.png (56,626) 2010-08-31 12:25 https://issues.openbravo.com/file_download.php?file_id=3002&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2010-05-26 11:07 | psanjuan | New Issue | ||||||||||
2010-05-26 11:07 | psanjuan | Assigned To | => sathiyan | |||||||||
2010-05-26 11:45 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=446#r446 | |||||||||
2010-05-26 16:47 | psanjuan | Priority | normal => urgent | |||||||||
2010-06-09 12:01 | psanjuan | Proposed Solution updated | ||||||||||
2010-06-10 07:54 | balamurugan | Assigned To | sathiyan => balamurugan | |||||||||
2010-06-10 15:19 | psanjuan | Proposed Solution updated | ||||||||||
2010-06-11 13:04 | hgbot | Checkin | ||||||||||
2010-06-11 13:04 | hgbot | Note Added: 0028305 | ||||||||||
2010-06-11 13:04 | hgbot | Status | new => resolved | |||||||||
2010-06-11 13:04 | hgbot | Resolution | open => fixed | |||||||||
2010-06-11 13:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/8a22f25e073110fc61b77d9afc889271a5fb6eaf [^] | |||||||||
2010-06-14 16:25 | psanjuan | Proposed Solution updated | ||||||||||
2010-06-14 16:27 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=498#r498 | |||||||||
2010-06-15 09:20 | psanjuan | Relationship added | blocks 0013656 | |||||||||
2010-06-18 14:02 | arunkumar | Note Added: 0028584 | ||||||||||
2010-06-18 14:02 | arunkumar | Status | resolved => closed | |||||||||
2010-07-16 13:30 | psanjuan | Note Added: 0029363 | ||||||||||
2010-08-27 13:57 | psanjuan | Proposed Solution updated | ||||||||||
2010-08-31 11:17 | psanjuan | Summary | Accruals and Deferrals enhancements - amount divided by period => Accruals and Deferrals enhancements - amount divided by period - New Calculation Type = Montly | |||||||||
2010-08-31 11:17 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=774#r774 | |||||||||
2010-08-31 12:08 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=775#r775 | |||||||||
2010-08-31 12:08 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=777#r777 | |||||||||
2010-08-31 12:08 | psanjuan | Proposed Solution updated | ||||||||||
2010-08-31 12:19 | psanjuan | Summary | Accruals and Deferrals enhancements - amount divided by period - New Calculation Type = Montly => Accruals and Deferrals enhancements - amount divided by period - New Calculation Type = Monthly | |||||||||
2010-08-31 12:19 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=782#r782 | |||||||||
2010-08-31 12:20 | psanjuan | Proposed Solution updated | ||||||||||
2010-08-31 12:25 | psanjuan | File Added: 13440.png | ||||||||||
2010-08-31 12:25 | psanjuan | File Added: 13440_1.png | ||||||||||
2010-08-31 12:25 | psanjuan | File Added: 13440_2.png | ||||||||||
2010-08-31 12:27 | psanjuan | Note Added: 0030533 | ||||||||||
2010-08-31 13:18 | psanjuan | Assigned To | balamurugan => dalsasua | |||||||||
2010-09-06 10:04 | psanjuan | Status | closed => new | |||||||||
2010-09-09 12:47 | psanjuan | Proposed Solution updated | ||||||||||
2010-09-09 12:57 | psanjuan | Proposed Solution updated | ||||||||||
2010-09-09 16:23 | psanjuan | Proposed Solution updated | ||||||||||
2010-09-09 17:22 | vmromanos | Status | new => scheduled | |||||||||
2010-09-09 17:22 | vmromanos | Assigned To | dalsasua => vmromanos | |||||||||
2010-09-09 17:22 | vmromanos | fix_in_branch | => pi | |||||||||
2010-09-09 18:47 | hgbot | Checkin | ||||||||||
2010-09-09 18:47 | hgbot | Note Added: 0030909 | ||||||||||
2010-09-09 18:47 | hgbot | Status | scheduled => resolved | |||||||||
2010-09-09 18:47 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/8a22f25e073110fc61b77d9afc889271a5fb6eaf [^] => http://code.openbravo.com/erp/pmods/org.openbravo.accrualsanddeferrals/rev/9c98ac73a4e265c3d1ecc3f939e815bf29cfeed5 [^] | |||||||||
2010-09-10 16:43 | psanjuan | fix_in_branch | pi => | |||||||||
2010-09-10 16:43 | psanjuan | Proposed Solution updated | ||||||||||
2010-09-10 18:41 | psanjuan | Status | resolved => closed | |||||||||
2010-09-10 18:54 | psanjuan | Note Added: 0030950 | ||||||||||
2010-09-10 18:54 | psanjuan | Fixed in Version | => 1.0.10 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|