feat(BE): finance (payment, initial_balance, injection). fix(BE): kandang capacity

This commit is contained in:
Hafizh A. Y
2025-12-27 14:30:03 +07:00
parent bb76d27f25
commit e30ef5ef10
+49 -4
View File
@@ -408,15 +408,60 @@ type DocumentType string
type DocumentableType string
const (
DocumentTypeTransfer DocumentType = "STOCK_TRANSFER_DOCUMENT"
DocumentTypeExpense DocumentType = "EXPENSE_DOCUMENT"
DocumentTypeTransfer DocumentType = "STOCK_TRANSFER_DOCUMENT"
DocumentTypeExpense DocumentType = "EXPENSE_DOCUMENT"
DocumentTypeExpenseRealization DocumentType = "EXPENSE_REALIZATION_DOCUMENT"
DocumentableTypeTransfer DocumentableType = "STOCK_TRANSFER"
DocumentableTypeExpense DocumentableType = "EXPENSE"
DocumentableTypeTransfer DocumentableType = "STOCK_TRANSFER"
DocumentableTypeExpense DocumentableType = "EXPENSE"
DocumentableTypeExpenseRealization DocumentableType = "EXPENSE_REALIZATION"
)
// -------------------------------------------------------------------
// Payment Approval
// -------------------------------------------------------------------
const (
ApprovalWorkflowPayment approvalutils.ApprovalWorkflowKey = approvalutils.ApprovalWorkflowKey("PAYMENTS")
PaymentStepPengajuan approvalutils.ApprovalStep = 1
PaymentStepDisetujui approvalutils.ApprovalStep = 2
)
var PaymentApprovalSteps = map[approvalutils.ApprovalStep]string{
PaymentStepPengajuan: "Pengajuan",
PaymentStepDisetujui: "Disetujui",
}
// -------------------------------------------------------------------
// Inisial Balance Approval
// -------------------------------------------------------------------
const (
ApprovalWorkflowInitial approvalutils.ApprovalWorkflowKey = approvalutils.ApprovalWorkflowKey("INITIAL_BALANCES")
InitialStepPengajuan approvalutils.ApprovalStep = 1
InitialStepDisetujui approvalutils.ApprovalStep = 2
)
var InitialApprovalSteps = map[approvalutils.ApprovalStep]string{
InitialStepPengajuan: "Pengajuan",
InitialStepDisetujui: "Disetujui",
}
// -------------------------------------------------------------------
// Injection Approval
// -------------------------------------------------------------------
const (
ApprovalWorkflowInjection approvalutils.ApprovalWorkflowKey = approvalutils.ApprovalWorkflowKey("INJECTIONS")
InjectionStepPengajuan approvalutils.ApprovalStep = 1
InjectionStepDisetujui approvalutils.ApprovalStep = 2
)
var InjectionApprovalSteps = map[approvalutils.ApprovalStep]string{
InjectionStepPengajuan: "Pengajuan",
InjectionStepDisetujui: "Disetujui",
}
// -------------------------------------------------------------------
// Validators
// -------------------------------------------------------------------