Pull latest changes from upstream/main (GitHub) including: - Purchase RPC service (proto, server, logic, models) - Gateway route updates for purchase endpoints - SQL migration and config updates Excludes deploy/bin/ pre-compiled arm64 binaries (builds use multi-stage Dockerfiles targeting amd64).
16 lines
680 B
Go
16 lines
680 B
Go
package logic
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrSupplierNameExists = errors.New("supplier name already exists")
|
|
ErrSupplierNotFound = errors.New("supplier not found")
|
|
ErrOrderNotFound = errors.New("purchase order not found")
|
|
ErrOrderNotDraft = errors.New("order must be in draft status")
|
|
ErrOrderNotConfirmed = errors.New("order must be confirmed to create receipt")
|
|
ErrOrderAlreadyReceived = errors.New("order already fully received")
|
|
ErrReceiptNotFound = errors.New("purchase receipt not found")
|
|
ErrReceiptAlreadyConfirmed = errors.New("receipt already confirmed")
|
|
ErrPaymentNotFound = errors.New("payment record not found")
|
|
)
|