feat (orders): add guard if parents are done, cant create child

This commit is contained in:
dpurbosakti
2025-09-22 13:00:23 +07:00
parent 6304d8f02a
commit 37da1ee418
18 changed files with 365 additions and 3 deletions

No files matched your search

@@ -17,3 +17,7 @@ type McuOrderSubItem struct {
Result *string `json:"result"`
Status_Code erc.DataStatusCode `json:"status_code"`
}
func (d McuOrderSubItem) IsCompleted() bool {
return d.Status_Code == erc.DSCDone
}