Sales Order Form - Add Shipment Fax

paddypowerpaddypower Member Posts: 98
Hi Everyone,

I am try to pull through the Shipment Fax after the shipment address has been selected.

I amended T36 Sales Header and added a new field for Ship-To Fax and add this to all other occurances:

"Ship-To Fax" := ShipToAddr."Fax No.";

The system errors stating that the cariable Ship-to fax is not a variable. So I look for the other "Ship-to" variables and I cannot find them in any of the Locals or Globals.

Where are these variables set and where I am going wrong adding the fax number to the Sales Orders. As you can tell I am not a very experienced developer.

Cheers

PP

Comments

  • SavatageSavatage Member Posts: 7,142
    If I'm understand you - you want a field called "Ship-To Fax" filled on the sales header once a ship-to code has been selected by pulling the Fax# from the Ship-To's table.

    First add a field to the Sales Header 50000 - "Ship-to Fax"

    the other code should be on the OnValidate of the Ship-To Code field in the sales header TABLE.
    Ship-to Code - OnValidate()
    IF "Ship-to Code" <> '' THEN BEGIN
      ShipToAddr.GET("Sell-to Customer No.","Ship-to Code");
      "Ship-to Name" := ShipToAddr.Name;
      "Ship-to Name 2" := ShipToAddr."Name 2";
      "Ship-to Address" := ShipToAddr.Address;
      "Ship-to Address 2" := ShipToAddr."Address 2";
      "Ship-to City" := ShipToAddr.City;
      "Ship-to ZIP Code" := ShipToAddr."ZIP Code";
    //you would add something like below to the ones already there
    "Ship-to Fax" := ShipToAddr."Ship-to Fax";
    
  • paddypowerpaddypower Member Posts: 98
    Thanks for your reply Harry,

    I missed that completely :)

    Thanks for you time!!!

    Paddy Power
Sign In or Register to comment.