2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

fix: hide coupon codes in pos when not enabled in settings

This commit is contained in:
AbleKSaju 2024-10-22 10:57:55 +05:30
parent 1e67214796
commit 28d0e67a51

View File

@ -250,7 +250,7 @@
<div
class="p-0.5 rounded-md bg-gray-100"
:class="{
hidden: !fyo.singles.AccountingSettings?.enableLoyaltyProgram,
hidden: !fyo.singles.AccountingSettings?.enableCouponCode,
'bg-gray-100': loyaltyPoints,
'dark:bg-gray-600 cursor-not-allowed':
!sinvDoc.party || !sinvDoc.items?.length,