课程内容

Fleet cards facilitate the tracking of costs and managing statistical information of a fleet of vehicles.

A Fleet transaction refer to special processing for a Fleet card.

 

Fleet transactions are currently only available within distributor Nedbank.

If a fleet card is received with other distributors, then the fleet specific parameters are ignored.

 

Coding for Fleetcards

The following optional input parameters are Fleet specific per transaction:

  •     CustomerReferenceIdentifier

The following optional input parameters are Fleet specific per Line item:

  • ProductCode
  • Quantity
  • QuantityDecimalPlaces
  • UnitCost

 

The latest available values of the ProductCode field are obtained via the “Inventory” download command (See section 22). Only use the ProductCodes with Type='Fleet'. The list at the time of writing is given in 7.4

Since Line items are repeated, the advanced Enterprise methods openElement and closeElement must be used. The following is a code snippet in C#:

 

enterprise.setTag("CustomerReferenceIdentifier", customerReferenceIdentifier);

 

foreach (DataRow dr in myTable.Rows)

{

           enterprise.openElement("LineItem");

           enterprise.setTag("ProductCode", dr["Product Code"]);

           enterprise.setTag("Quantity", dr["Quantity"]);

           enterprise.setTag("QuantityDecimalPlaces", dr["QuantityDecimalPlaces"]);

           enterprise.setTag("UnitCost", dr["Unit Cost"]);

           enterprise.closeElement();

}



视图
0 总浏览
0 成员的观点
0 公众浏览
操作
0 喜爱
0 不喜欢
0 注释
分享到社交网络
分享链接
通过邮件分享

登录 分享这个 webpage 通过电子邮件。