diff --git a/erp/shipment.go b/erp/shipment.go index 2666abc..b6cf0d6 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -233,6 +233,24 @@ func (s *shipment) Edit(ctx context.Context, args ArgsShipmentEdit) (err error) return } +type ArgsShipmentEditCost struct { + ShipmentId int64 // 订舱单id + DomesticShippingCost decimal.Decimal // 国内运费 + ForeignShippingCost decimal.Decimal // 国外运费 + ForeignCommission decimal.Decimal // 国外佣金 +} + +// EditCost @TITLE 编辑费用 +func (s *shipment) EditCost(ctx context.Context, args ArgsShipmentEditCost) (err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "EditCost", args, &reply) + return +} + // Customs @TITLE 报关信息 func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply bean2.ReplyCustoms, err error) { xClient, err := client.GetClient(s)