Feat(BE-334):Fixing dto closing hpp expedisi

This commit is contained in:
ragilap
2025-12-18 16:02:57 +07:00
parent 3bfc401206
commit 14a4d9e944
4 changed files with 1 additions and 16 deletions
@@ -55,9 +55,7 @@ type SapronakRow struct {
}
type ExpeditionHPPRow struct {
SupplierID uint64 `gorm:"column:supplier_id"`
SupplierName string `gorm:"column:supplier_name"`
Qty float64 `gorm:"column:qty"`
TotalAmount float64 `gorm:"column:total_amount"`
}
@@ -147,7 +145,6 @@ func (r *ClosingRepositoryImpl) GetExpeditionHPP(ctx context.Context, projectFlo
Select(
"e.supplier_id AS supplier_id, " +
"s.name AS supplier_name, " +
"SUM(er.qty) AS qty, " +
"SUM(er.qty * er.price) AS total_amount",
).
Group("e.supplier_id, s.name").
@@ -645,4 +642,4 @@ func (r *ClosingRepositoryImpl) FetchSapronakTransfers(ctx context.Context, kand
return fmt.Sprintf("TRF-%d", row.ID)
})
return in, out, nil
}
}