web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

I want to add a column VAT in the Purch.Inv.Line table and I want to add a column

(1) ShareShare
ReportReport
Posted on by 21
 I want to add a column VAT in the Purch.Inv.Line table and I want to add a column which will have values = Amount including Vat - Amount. how to do this? Please help !!!!!!!!!!!!!
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    95,305 Super User 2025 Season 2 on at
    I want to add a column VAT in the Purch.Inv.Line table and I want to add a column
    Hi, this requires customization. Hope the following helps.
    pageextension 50122 MyExtension7 extends "Posted Purch. Invoice Subform"
    {
        layout
        {
            addafter("Line Amount")
            {
                field(TotalVAT; TotalVAT)
                {
                    Caption = 'Total VAT';
                    ApplicationArea = All;
                }
            }
        }
    
        trigger OnAfterGetRecord()
        begin
            TotalVAT := 0;
            TotalVAT := Rec."Amount Including VAT" - Rec.Amount;
        end;
    
        var
            TotalVAT: Decimal;
    }
     
     
    Thanks.
    ZHU
     
  • Community member Profile Picture
    21 on at
    I want to add a column VAT in the Purch.Inv.Line table and I want to add a column
    Thanks a lot.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans