Merge pull request #40 from dikstub-rssa/feat/medicine-mix-prescription-37

update libhelper on case sensitive
This commit is contained in:
Dwi Atmoko Purbo Sakti
2025-10-01 11:15:14 +07:00
committed by GitHub
+1 -1
View File
@@ -4,6 +4,6 @@ import "gorm.io/gorm"
func SearchCodeOrName(search string, tx *gorm.DB) {
if search != "" {
tx.Where("\"Code\" LIKE ? OR \"Name\" LIKE ?", "%"+search+"%", "%"+search+"%")
tx.Where("\"Code\" ILIKE ? OR \"Name\" ILIKE ?", "%"+search+"%", "%"+search+"%")
}
}