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")
|
||
|
|
)
|