This commit is contained in:
守护自己的云 2024-09-11 14:59:46 +08:00
parent 3838a43615
commit 2d96fdfe3b
2 changed files with 13 additions and 0 deletions

View File

@ -158,3 +158,14 @@ func (p *purchase) Edit(ctx context.Context, args ArgsPurchaseEdit) (err error)
err = xClient.Call(ctx, "Edit", args, &reply) err = xClient.Call(ctx, "Edit", args, &reply)
return 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
}

View File

@ -81,6 +81,8 @@ type SaleItem struct {
WorkflowId int64 `json:"workflowId"` WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"` WorkflowStatus int64 `json:"workflowStatus"`
HasPurchase int64 `json:"hasPurchase"` HasPurchase int64 `json:"hasPurchase"`
PurchaseStatus int64 `json:"purchaseStatus"`
ShipmentStatus int64 `json:"shipmentStatus"`
CreatedStaffId int64 `json:"createdStaffId"` CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"` CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"` UpdatedAt *time.Time `json:"updatedAt"`