3ktech / General

2 stars 0 forks source link

NKG - Depreciation Calculation issue CAS-01315-G4P4Y2 #566

Open Amar-3KT opened 1 year ago

Amar-3KT commented 1 year ago

Need To debug the scenario.

As of now 1hr and 30min taken by Functional.

Amar-3KT commented 1 year ago

@panduc when we can connect for this issue?

panduc commented 1 year ago

@Amar-3KT

Please check the current logic for FA G/L Journal Amount calculation logic.

CU5611 CalcSLAmount() : IF DeprYears > 0 THEN BEGIN IF DeprBook."Fiscal Year 365 Days" THEN RemainingLife := (DeprEndingDate - DeprStartingDate) - (FirstDeprDate - DeprStartingDate) + 1 ELSE RemainingLife := (DeprYears DaysInFiscalYear) - DepreciationCalc.DeprDays( DeprStartingDate,DepreciationCalc.Yesterday(FirstDeprDate,Year365Days),Year365Days); IF RemainingLife < 1 THEN EXIT(-BookValue); EXIT(-(BookValue + SalvageValue - MinusBookValue) NumberOfDays / RemainingLife);

Exit(- (12440635.66900617 + (-945159) - 0) * 90 / 3679) if u calculate the above values it will come. 281216

Please let me know for further quries.

3ktech commented 1 year ago

@panduc , we have to discuss on the time spent for the analysis.

Amar-3KT commented 1 year ago

As of now we have taken 3 hrs for analysis. We required 4hrs to fix this issue.

Amar-3KT commented 1 year ago

As discussed with Mr. Suresh. He is saying its working fine. We can close this ticket.