Negative TDS Amount while calculating TDS

amol_dj_007
Member Posts: 14
Query : While doing calculate TDS negative TDS amount is getting calculated on Purchase Invoice Line.
Scenerio :
A perticular vendor V001 is selected. NOD Lines setup are created for the respective vendor.
Threshold overlook is set TRUE
TDS Threshold Amount set to a perticular value say 75000 for that TDS group
Per contract value set to perticular value say 30000 for that TDS group
Data Entry part:
Four different invoices are prepared for vendor V001 on different posting dates.
1. Amount = 32000 ;TDS deducted = YES
2. Amount = 4000 ;TDS deducted = No
3. Amount = 6000 ;TDS deducted = No
4. Amount = 12000 ;TDS deducted = No
Now while preparing the 5th Invoice for Amount 68000/- the TDS calculated is negative. Also TDS % is calculated wrong.
Reason: TDS Buffer[1] not cleared.
Just add as "CLEAR(TDSBuf[1]);" follows
Scenerio :
A perticular vendor V001 is selected. NOD Lines setup are created for the respective vendor.
Threshold overlook is set TRUE
TDS Threshold Amount set to a perticular value say 75000 for that TDS group
Per contract value set to perticular value say 30000 for that TDS group
Data Entry part:
Four different invoices are prepared for vendor V001 on different posting dates.
1. Amount = 32000 ;TDS deducted = YES
2. Amount = 4000 ;TDS deducted = No
3. Amount = 6000 ;TDS deducted = No
4. Amount = 12000 ;TDS deducted = No
Now while preparing the 5th Invoice for Amount 68000/- the TDS calculated is negative. Also TDS % is calculated wrong.
Reason: TDS Buffer[1] not cleared.
InsertTDSBuf(TDSEntry : Record "TDS Entry";PostingDate : Date;CalculateSurcharge : Boolean;CalculateTDS : Boolean) WITH TDSEntry DO BEGIN TDSBuf[1]."TDS Nature of Deduction" := "TDS Nature of Deduction"; TDSBuf[1]."Assessee Code" := "Assessee Code"; TDSBuf[1]."Party Code" := "Party Code"; TDSBuf[1]."Party Type" := "Party Type"; IF CalculateTDS THEN BEGIN TDSBuf[1]."TDS Base Amount" := "Invoice Amount" + "Service Tax Including eCess"; IF TDSEntry."Per Contract" THEN TDSBuf[1]."Contract TDS Ded. Base Amount" := "Invoice Amount" + "Service Tax Including eCess";
Just add as "CLEAR(TDSBuf[1]);" follows
InsertTDSBuf(TDSEntry : Record "TDS Entry";PostingDate : Date;CalculateSurcharge : Boolean;CalculateTDS : Boolean) CLEAR(TDSBuf[1]); WITH TDSEntry DO BEGIN TDSBuf[1]."TDS Nature of Deduction" := "TDS Nature of Deduction"; TDSBuf[1]."Assessee Code" := "Assessee Code"; TDSBuf[1]."Party Code" := "Party Code"; TDSBuf[1]."Party Type" := "Party Type"; IF CalculateTDS THEN BEGIN TDSBuf[1]."TDS Base Amount" := "Invoice Amount" + "Service Tax Including eCess"; IF TDSEntry."Per Contract" THEN TDSBuf[1]."Contract TDS Ded. Base Amount" := "Invoice Amount" + "Service Tax Including eCess";
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions