From 1f3e98df7f5173913fa8690faf0dab935a221a82 Mon Sep 17 00:00:00 2001 From: "aditya.siregar" Date: Wed, 28 Aug 2024 01:34:46 +0700 Subject: [PATCH] Fix Product Pos --- internal/entity/product.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/entity/product.go b/internal/entity/product.go index 39e6062..9bfd8ea 100644 --- a/internal/entity/product.go +++ b/internal/entity/product.go @@ -105,7 +105,7 @@ func (b *ProductList) ToProductListPOS() []*Product { if isWeekend && p.IsWeekendTicket { Products = append(Products, p.ToProduct()) - } else { + } else if !isWeekend && !p.IsWeekendTicket { Products = append(Products, p.ToProduct()) } }