RE: Need to display TDS Amount in Posted purchase invoices list page from posted purchase invoice page
Hi Nitin Verma,
In order to show TDS Amount in Posted Purchase Invoices list page. I extending the Posted Purchase Invoices list page as
pageextension 50102 TDSAmount extends "Posted Purchase Invoices"
{
layout
{
addafter("Amount Including VAT")
{
field(TDSAmount; TDSAmt)
{
ApplicationArea = All;
Caption = 'TDS Amount';
}
}
}
trigger OnAfterGetRecord()
var
TDSEntry: Record "TDS Entry"
begin
TDSEntry.Reset();
TDSEntry.SetRange("Document No.", Rec."No.");
if TDSEntry.FindFirst() then
begin
TDSAmt := TDSEntry."TDS Amount"
end
else
TDSAmt := '';
end;
var
TDSAmt: Decimal;
}
In the above code, I'm unable to get the table "TDS Entry" in VS Code. how to get the amount from the "TDS Entry Table"?
In posted purchase invoice page, The TDS amount is seen only on the factbox side in the table "Tax Transaction Value".