Codeunit 18122389 EOS038 CWS Param Calc.

Codeunit 18122389 EOS038 CWS Param Calc.

Methods

GetGeoParams

procedure GetGeoParams(var RecRef: RecordRef; var City: Text[30]; var PostCode: Code[20]; var County: Text[30]; var CountryCode: Code[10]; var TerritoryCode: Code[10]; var ISTATCityCode: Code[10]; var GeoErrorMessage: Text[250]): Boolean

Parameters / Return Value

  • RecRef RecordRef

  • City Text[30]

  • PostCode Code[20]

  • County Text[30]

  • CountryCode Code[10]

  • TerritoryCode Code[10]

  • ISTATCityCode Code[10]

  • GeoErrorMessage Text[250]

  • Returns Boolean


GetDocParams

procedure GetDocParams(var RecRef: RecordRef; var CustNo: Code[20]; var ShipToCode: Code[20]; var ShippingAgentCode: Code[20]; var ShippingAgentServiceCode: Code[20]; var LocationCode: Code[10]; var ToLocationCode: Code[10]; var TourCode: Code[10]; var RefDate: Date; var DocAmount: Decimal; var DocParcelNumber: Decimal; var DocWeight: Decimal; var DocVolume: Decimal; var DocPalletNumber: Decimal; var DocKm: Decimal; var DocHours: Decimal; var DocTourAmount: Decimal; var DocGrossWeight: Decimal; SkipTourTotals: Boolean)

Parameters / Return Value

  • RecRef RecordRef

  • CustNo Code[20]

  • ShipToCode Code[20]

  • ShippingAgentCode Code[20]

  • ShippingAgentServiceCode Code[20]

  • LocationCode Code[10]

  • ToLocationCode Code[10]

  • TourCode Code[10]

  • RefDate Date

  • DocAmount Decimal

  • DocParcelNumber Decimal

  • DocWeight Decimal

  • DocVolume Decimal

  • DocPalletNumber Decimal

  • DocKm Decimal

  • DocHours Decimal

  • DocTourAmount Decimal

  • DocGrossWeight Decimal

  • SkipTourTotals Boolean


Events

OnAfterCheckDataInCWSHeader

local procedure OnAfterCheckDataInCWSHeader(var Header: Record "EOS CWS Shipment Header")

Parameters / Return Value

  • Header Record "EOS CWS Shipment Header"

OnAfterCalcHeaderValues

local procedure OnAfterCalcHeaderValues(SourceDoc: RecordRef; var TotalNetWeight: Decimal; var TotalGrossWeight: Decimal; var TotalVolume: Decimal; var TotalParcels: Decimal; var TotalPallets: Decimal)

Raised after calculating the total values for the source document in the calculation of Transport Costs.

Parameters / Return Value

  • SourceDoc RecordRef

    the Source Document

  • TotalNetWeight Decimal

    Total Net Weight

  • TotalGrossWeight Decimal

    Total Gross Weight

  • TotalVolume Decimal

    Total Volume

  • TotalParcels Decimal

    Total Parcels

  • TotalPallets Decimal

    Total Pallets



EOS Labs -