diff --git a/erp/purchase.go b/erp/purchase.go index abbe1c7..c844345 100644 --- a/erp/purchase.go +++ b/erp/purchase.go @@ -158,3 +158,14 @@ func (p *purchase) Edit(ctx context.Context, args ArgsPurchaseEdit) (err error) err = xClient.Call(ctx, "Edit", args, &reply) return } + +// Cancel @TITLE 作废采购合同 +func (p *purchase) Cancel(ctx context.Context, purchaseId int64) (err error) { + xClient, err := client.GetClient(p) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Cancel", purchaseId, &reply) + return +} diff --git a/erp/sale.go b/erp/sale.go index fc3c925..6b00a7a 100644 --- a/erp/sale.go +++ b/erp/sale.go @@ -81,6 +81,8 @@ type SaleItem struct { WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` HasPurchase int64 `json:"hasPurchase"` + PurchaseStatus int64 `json:"purchaseStatus"` + ShipmentStatus int64 `json:"shipmentStatus"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"`