diff --git a/erp/shipment/customs.go b/erp/shipment/customs.go index 8bf467f..9950472 100644 --- a/erp/shipment/customs.go +++ b/erp/shipment/customs.go @@ -133,3 +133,23 @@ func (c *customs) Customs(ctx context.Context, customsId int64) (reply bean2.Rep err = xClient.Call(ctx, "Customs", customsId, &reply) return } + +type ArgsCustomsEdit struct { + CustomsId int64 // 报关单id + ArgsCustomsData +} +type ArgsCustomsData struct { + InvoiceDate *time.Time // 发票日期 + ContractDate *time.Time // 合同日期 +} + +// Edit @TITLE 编辑 +func (c *customs) Edit(ctx context.Context, args ArgsCustomsEdit) (err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Edit", args, &reply) + return +}