Feat[BE]: refactor document handling in transfer service and introduce document type constants

This commit is contained in:
aguhh18
2025-12-23 17:51:42 +07:00
parent c55fdb75a7
commit e935843cba
5 changed files with 73 additions and 53 deletions
+14 -1
View File
@@ -314,6 +314,19 @@ var ExpenseApprovalSteps = map[approvalutils.ApprovalStep]string{
ExpenseStepSelesai: "Selesai",
}
// -------------------------------------------------------------------
// Document
// -------------------------------------------------------------------
type DocumentType string
type DocumentableType string
const (
DocumentTypeTransfer DocumentType = "STOCK_TRANSFER_DOCUMENT"
DocumentableTypeTransfer DocumentableType = "STOCK_TRANSFER"
)
// -------------------------------------------------------------------
// Validators
// -------------------------------------------------------------------
@@ -448,7 +461,7 @@ func IsValidExpenseCategory(v string) bool {
return false
}
// example use
// e xample use
// Recording helper