Update Member

This commit is contained in:
aditya.siregar
2025-03-15 15:51:18 +08:00
parent 18003313dd
commit c41826bb1b
29 changed files with 1840 additions and 65 deletions
+14
View File
@@ -0,0 +1,14 @@
package utils
import (
"enaklo-pos-be/internal/common/mycontext"
"fmt"
"time"
)
func GenerateMemberID(ctx mycontext.Context, branchID, sequence int64) string {
now := time.Now()
yearMonth := now.Format("200601")
return fmt.Sprintf("%s%04d%04d", yearMonth, branchID, sequence)
}