feat[BE]: Add GetClosingKeuanganByKandang endpoint and related service methods

This commit is contained in:
aguhh18
2026-01-16 20:53:47 +07:00
parent 8ad11af9c9
commit 31c48ee1da
6 changed files with 255 additions and 169 deletions
@@ -1,5 +1,29 @@
package dto
// === CLOSING KEUANGAN CODES ===
// Closing HPP Codes
type ClosingHPPCode string
const (
HPPCodePakan ClosingHPPCode = "PAKAN"
HPPCodeOVK ClosingHPPCode = "OVK"
HPPCodeDOC ClosingHPPCode = "DOC"
HPPCodeDepresiasi ClosingHPPCode = "DEPRESIASI"
HPPCodeOverhead ClosingHPPCode = "OVERHEAD"
HPPCodeEkspedisi ClosingHPPCode = "EKSPEDISI"
)
// Closing Profit Loss Codes
type ClosingProfitLossCode string
const (
PLCodeSales ClosingProfitLossCode = "SALES"
PLCodeSapronak ClosingProfitLossCode = "SAPRONAK"
PLCodeOverhead ClosingProfitLossCode = "OVERHEAD"
PLCodeEkspedisi ClosingProfitLossCode = "EKSPEDISI"
)
// === NEW CLOSING KEUANGAN DTO ===
// FinancialMetrics represents financial metrics with per unit and total amounts