mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-26 00:05:44 +00:00
Feat(BE-334):Fixing dto closing hpp expedisi
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user