2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 07:12:21 +00:00

fix: show loyalty program option in POS only when enabled in settings

This commit is contained in:
AbleKSaju 2024-09-30 10:02:18 +05:30
parent 716e0109f7
commit c25fa0ab53

View File

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