Update template email

This commit is contained in:
aditya.siregar
2025-03-08 00:35:23 +07:00
parent 3c80b710af
commit 18003313dd
54 changed files with 2309 additions and 199 deletions
-8
View File
@@ -88,14 +88,6 @@ func (b *ProductRepository) GetAllProducts(ctx context.Context, req entity.Produ
query = query.Where("branch_id = ? ", req.BranchID)
}
if req.Available != "" {
if req.Available.IsAvailable() {
query = query.Where("stock_qty > 0 ")
} else if req.Available.IsUnavailable() {
query = query.Where("stock_qty < 1 ")
}
}
if req.Limit > 0 {
query = query.Limit(req.Limit)
}