package cpmcuorderitem

import (
	emo "simrs-vx/internal/domain/main-entities/cp-mcu-order"
	emoib "simrs-vx/internal/domain/main-entities/cp-mcu-order-item/base"

	erc "simrs-vx/internal/domain/references/common"
)

type CpMcuOrderItem struct {
	emoib.CpMcuOrderItem
	CpMcuOrder *emo.CpMcuOrder `json:"cpMcuOrder,omitempty" gorm:"foreignKey:CpMcuOrder_Id;references:Id"`
}

func (d CpMcuOrderItem) IsCompleted() bool {
	return d.Status_Code == erc.DSCDone
}
