Skip to content

Commit

Permalink
fix: adjust POS quick actions padding, remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Nov 27, 2024
1 parent 95d9ee6 commit bcf298c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/POS/Classic/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { fyo } from 'src/initFyo';
import { POSItem } from '../types';
export default defineComponent({
Expand Down
1 change: 0 additions & 1 deletion src/components/POS/Modern/ModernPOSItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@

<script lang="ts">
import { defineComponent } from 'vue';
import { fyo } from 'src/initFyo';
import { POSItem } from '../types';
export default defineComponent({
Expand Down
1 change: 0 additions & 1 deletion src/components/POS/Modern/ModernPOSSelectedItemRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ import { fyo } from 'src/initFyo';
import { defineComponent } from 'vue';
import { SalesInvoiceItem } from 'models/baseModels/SalesInvoiceItem/SalesInvoiceItem';
import { Money } from 'pesa';
import { DiscountType } from '../types';
import { validateSerialNumberCount } from 'src/utils/pos';
import { updatePricingRuleItem } from 'models/helpers';
import { SalesInvoice } from 'models/baseModels/SalesInvoice/SalesInvoice';
Expand Down
16 changes: 12 additions & 4 deletions src/pages/POS/POSQuickActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,15 @@
</span>
</div>

<div class="relative group">
<div
class="relative group"
:class="{
hidden: !fyo.singles.AccountingSettings?.enableLoyaltyProgram,
}"
>
<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,
Expand Down Expand Up @@ -126,11 +130,15 @@
</span>
</div>

<div class="relative group">
<div
class="relative group"
:class="{
hidden: !fyo.singles.AccountingSettings?.enableCouponCode,
}"
>
<div
class="p-0.5 rounded-md bg-gray-100"
:class="{
hidden: !fyo.singles.AccountingSettings?.enableCouponCode,
'bg-gray-100': loyaltyPoints,
'dark:bg-gray-600 cursor-not-allowed':
!sinvDoc?.party || !sinvDoc?.items?.length,
Expand Down

0 comments on commit bcf298c

Please sign in to comment.