This commit is contained in:
dpurbosakti
2025-12-02 13:37:26 +07:00
parent 7e454b0a2d
commit 5adb4e5666
8 changed files with 361 additions and 43 deletions
+7
View File
@@ -65,6 +65,13 @@ func (a AuthInfo) IsPharmacist() bool {
return *a.Employee_Position_Code == string(ero.EPCPha)
}
func (a AuthInfo) IsScreener() bool { // MPP, petugas skrining
if a.Employee_Position_Code == nil {
return false
}
return *a.Employee_Position_Code == string(ero.EPCScr)
}
// func (a AuthInfo) IsPayment() bool {
// if a.Employee_Position_Code == nil {
// return false