feat/BE/US-304/TASK-292,293-restriction expense not finish and stock not used,add status project flock completed, fix dto purchase, fix dto nonstock supplier, purchase

This commit is contained in:
ragilap
2025-12-10 16:30:17 +07:00
parent 0fbf04fc1d
commit 2b6ba3a41d
4 changed files with 69 additions and 31 deletions
+1
View File
@@ -23,6 +23,7 @@ type PurchaseItem struct {
ExpenseNonstockId *uint64
// Relations
ExpenseNonstock *ExpenseNonstock `gorm:"foreignKey:ExpenseNonstockId;references:Id"`
Purchase *Purchase `gorm:"foreignKey:PurchaseId;references:Id"`
Product *Product `gorm:"foreignKey:ProductId;references:Id"`
Warehouse *Warehouse `gorm:"foreignKey:WarehouseId;references:Id"`