mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Feat[BE]: refactor document handling in transfer service and introduce document type constants
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user