This commit is contained in:
richboo111
2023-09-25 15:08:47 +08:00
parent 30cf99eec3
commit 446b412c56
4 changed files with 49 additions and 0 deletions

View File

@@ -526,6 +526,11 @@ func IsPrinterVendorExist(vendorID int) bool {
return ok && vendorID >= VendorIDPrinterBegin && vendorID <= VendorIDPrinterEnd
}
func IsImVendorExist(vendorID int) bool {
_, ok := VendorNames[vendorID]
return ok && vendorID >= VendorIDPurchaseBegin && vendorID <= VendorIDPurchaseEnd
}
func IsOrderLockStatus(status int) bool {
return status == OrderStatusLocked || status == OrderStatusApplyCancel
}