feat(BE): fix fifo system recording and uniformity dto

This commit is contained in:
ragilap
2025-12-31 15:10:06 +07:00
parent 3a1a2b436d
commit e0dd2799fc
5 changed files with 73 additions and 22 deletions
@@ -715,7 +715,7 @@ func (s *fifoService) releaseUsagePortion(
}
} else {
if err := s.allocations.PatchOne(ctx, allocation.Id, map[string]any{
"quantity": allocation.Qty - releaseAmt,
"qty": allocation.Qty - releaseAmt,
}, func(db *gorm.DB) *gorm.DB {
return s.txOrDB(tx, db)
}); err != nil {