liujiandao
2024-03-15 e1c0fe2768d32f79920ceda92383981d4ff12058
constvar/salesDetails.go
@@ -14,7 +14,13 @@
const (
   WaitConfirmed SalesDetailsStatus = iota + 1 //待确认
   WaitDecompose                               //待分解
   InStock                                     //备货中
   WaitOutbound                                //待出库
   OverOutbound                                //出库完成
   OverCLose                                   //已关闭
)
func (s SalesDetailsStatus) Valid() bool {
   return s == WaitConfirmed || s == WaitOutbound || s == OverOutbound || s == OverCLose
}