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
committed by Hafizh A. Y
parent 7dc5c9e9a5
commit ebf0f8c5ab
5 changed files with 72 additions and 52 deletions
+13
View File
@@ -398,6 +398,19 @@ var InjectionApprovalSteps = map[approvalutils.ApprovalStep]string{
InjectionStepDisetujui: "Disetujui",
}
// -------------------------------------------------------------------
// Document
// -------------------------------------------------------------------
type DocumentType string
type DocumentableType string
const (
DocumentTypeTransfer DocumentType = "STOCK_TRANSFER_DOCUMENT"
DocumentableTypeTransfer DocumentableType = "STOCK_TRANSFER"
)
// -------------------------------------------------------------------
// Validators
// -------------------------------------------------------------------