Skip to main content

Notifications

Business Central forum
Suggested answer

Ship To details on Sales Pro Forma Invoice Report : No Visible

Posted on by 67
Hello all,
 
I wanted to ask how I can get ship to details on Sales Pro Forma Report.
 
I was trying to duplicate the code from the base code using Format Address Code unit, I think I am doing something wrong as it is not working.
Can you please tell me a better way to get Ship-To Details onto the report.
 
reportextension 50100 ProformaInvExt extends /Standard Sales - Pro Forma Inv/
{
    dataset
    {
        add(Header)
        {
            column(ShipToAddress1; ShipToAddr[1])
            {
            }
            column(ShipToAddress2; ShipToAddr[2])
            {
            }
            column(ShipToAddress3; ShipToAddr[3])
            {
            }
            column(ShipToAddress4; ShipToAddr[4])
            {
            }
            column(ShipToAddress5; ShipToAddr[5])
            {
            }
            column(ShipToAddress6; ShipToAddr[6])
            {
            }
            column(ShipToAddress7; ShipToAddr[7])
            {
            }
            column(ShipToAddress8; ShipToAddr[8])
            {
            }
        }
    }
    var
        ShipToAddr: array[8] of Text[100];
        ShowShippingAddr: Boolean;
 
    trigger OnPreReport()
    var
        FormatAddress: Codeunit /Format Address/;
    begin
        ShowShippingAddr := FormatAddress2.SalesHeaderShipTo(ShipToAddr, CustomerAddress, Header);
    end;
Categories:
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 3,288 Super User on at
    Ship To details on Sales Pro Forma Invoice Report : No Visible
    Hi
    I hope this can help you
    BR
    GR

Helpful resources

Quick Links

Contextual content recommendations & SharePoint Q&A

Instantly access relevant sales materials…

Beyond the DRA Cloud Label Printing

Explore cloud-based label printing within Dynamics 365…

HR Infrastructure Customer merge

Important considerations for HR Customer migrations…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,418 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,760 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,142

Featured topics

Product updates

Dynamics 365 release plans