feat(t245): use ERP images as procurement references
This commit is contained in:
@@ -3,6 +3,7 @@ package domain
|
||||
import "time"
|
||||
|
||||
type ProcurementRequestStatus string
|
||||
type ProcurementReferenceOrigin string
|
||||
|
||||
const (
|
||||
ProcurementBlocked ProcurementRequestStatus = "BLOCKED"
|
||||
@@ -20,6 +21,11 @@ const (
|
||||
ProcurementBlockSourceChanged = "SOURCE_CHANGED"
|
||||
)
|
||||
|
||||
const (
|
||||
ProcurementReferenceERP ProcurementReferenceOrigin = "ERP_FREIGHT_IMAGE"
|
||||
ProcurementReferenceManual ProcurementReferenceOrigin = "MANUAL_UPLOAD"
|
||||
)
|
||||
|
||||
type ProcurementSourceItem struct {
|
||||
Item FreightOrderItem
|
||||
IsCanceled *bool
|
||||
@@ -42,12 +48,23 @@ type ProcurementRequest struct {
|
||||
Status ProcurementRequestStatus
|
||||
BlockingCode *string
|
||||
ReferenceAssetID *string
|
||||
ReferenceOrigin *ProcurementReferenceOrigin
|
||||
ReferenceProductThumbRef *string
|
||||
ReferenceSourceImageSHA256 *string
|
||||
ReferenceBoundAt *time.Time
|
||||
PurchaseTaskID *string
|
||||
SourceChanged bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type ProcurementReferenceSource struct {
|
||||
Origin ProcurementReferenceOrigin
|
||||
ProductThumbRef *string
|
||||
SourceImageSHA256 *string
|
||||
BoundAt time.Time
|
||||
}
|
||||
|
||||
type PurchaseTaskSource struct {
|
||||
TaskID string
|
||||
ProcurementRequestID string
|
||||
|
||||
Reference in New Issue
Block a user