mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 07:45:44 +00:00
feat(BE-229,234,235,230,231,232,233): purchase request and purchase order and fix master data dto
This commit is contained in:
@@ -20,7 +20,8 @@ type Purchase struct {
|
||||
CreatedBy uint64 `gorm:"not null"`
|
||||
|
||||
// Relations
|
||||
Supplier Supplier `gorm:"foreignKey:SupplierId;references:Id"`
|
||||
Items []PurchaseItem `gorm:"foreignKey:PurchaseId"`
|
||||
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
|
||||
Supplier Supplier `gorm:"foreignKey:SupplierId;references:Id"`
|
||||
Items []PurchaseItem `gorm:"foreignKey:PurchaseId"`
|
||||
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
|
||||
LatestApproval *Approval `gorm:"-" json:"-"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user