Identify A/P charge details for selective surcharge invoicing
For tariff based customers that selectively use carrier surcharging, all of the A/P vouchers related to a shipment must be identified. Charge details attached to these A/P vouchers will be candidates for replication when all of the following are true:
The Status of the charge detail is not "Canceled" or "Ineligible".
The charge detail references a Master Charge code (it corresponds to a "Condition" or "Option" and not a "Service" level charge).
The Master Charge code on the A/P voucher is also enabled as a tariff charge for the A/R tariff/service combination assigned to the shipment by Routing and Rating.
The Charge Based on Carrier flag for the tariff charge for the A/R tariff/service combination is True.
For each shipment leg for the shipment, the A/R Voucher Generation process will isolate the corresponding initial A/P vouchers:
If the shipment leg is attached to a Planned Load, there will be a single initial A/P voucher corresponding to the entire load. This voucher could reference charge details generated based on A/P Routing, Rating and Scheduling results as well as any charge detail manually added to the initial A/P voucher as an Adjustment. If the charge detail does not reference a shipment leg, the applicable pro-rated amount for the load or stop will be applied to the A/R voucher. If the charge detail does reference a shipment leg, the entire amount associated with the charge detail will be replicated to the A/R voucher, but only if the shipment leg is associated with the applicable shipment.
If the shipment leg is attached to a Manifest Load, a single initial A/P voucher could collect all charge details for all shipment legs attached to the Manifest Load. Alternatively, there could be a separate initial A/P voucher corresponding to each shipment leg attached to the Manifest Load. A third possibility would see a separate initial A/P voucher associated with individual shipment leg containers for the Manifest Load. Regardless of which level the initial A/P vouchers are created, any charge details associated with these vouchers will reference a specific shipment leg. Any charge detail referencing a shipment leg for the applicable shipment will be replicated if it also meets other selection criteria.
For each initial A/P voucher, there could potentially be one or more corresponding post charge A/P vouchers. As initial A/P vouchers are identified, the charge details on any corresponding post charge A/P vouchers will also be considered.