diff --git a/erp/shipment.go b/erp/shipment.go index 3f2a59d..bdcb56d 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -242,3 +242,19 @@ func (s *shipment) Cancel(ctx context.Context, shipmentId int64) (err error) { err = xClient.Call(ctx, "Cancel", shipmentId, &reply) return } + +type ArgsShipmentClone struct { + StaffId int64 // 员工id + ShipmentId int64 // shipmentId + InvoiceSerial string // 出运发票号 +} + +// Clone @TITLE 克隆 +func (s *shipment) Clone(ctx context.Context, args ArgsShipmentClone) (reply int64, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + err = xClient.Call(ctx, "Clone", args, &reply) + return +}