mirror of
https://github.com/frappe/books.git
synced 2025-01-03 07:12:21 +00:00
Merge pull request #992 from AbleKSaju/fix-update-icons
fix: update icons in pos
This commit is contained in:
commit
0d967c1015
@ -818,8 +818,6 @@ export async function getPricingRulesOfCoupons(
|
|||||||
})) as CouponCode[];
|
})) as CouponCode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('pricingRuleDocNames', pricingRuleDocNames);
|
|
||||||
|
|
||||||
const filteredPricingRuleNames = appliedCoupons.filter(
|
const filteredPricingRuleNames = appliedCoupons.filter(
|
||||||
(val) => val.pricingRule === pricingRuleDocNames![0]
|
(val) => val.pricingRule === pricingRuleDocNames![0]
|
||||||
);
|
);
|
||||||
@ -842,7 +840,6 @@ export async function getPricingRulesOfCoupons(
|
|||||||
}
|
}
|
||||||
)) as PricingRule[];
|
)) as PricingRule[];
|
||||||
|
|
||||||
console.log('pricingRuleDocsForItem', pricingRuleDocsForItem);
|
|
||||||
return pricingRuleDocsForItem;
|
return pricingRuleDocsForItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,10 +122,10 @@
|
|||||||
|
|
||||||
<div class="flex fixed bottom-0 p-1 mb-7 gap-x-3">
|
<div class="flex fixed bottom-0 p-1 mb-7 gap-x-3">
|
||||||
<div class="relative group">
|
<div class="relative group">
|
||||||
<div class="bg-gray-100 p-1 rounded-md" @click="toggleView">
|
<div class="bg-gray-100 p-1.5 rounded-md" @click="toggleView">
|
||||||
<FeatherIcon
|
<FeatherIcon
|
||||||
:name="tableView ? 'grid' : 'list'"
|
:name="tableView ? 'grid' : 'list'"
|
||||||
class="w-6 h-6 text-black"
|
class="w-5 h-5 text-black"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
@ -137,7 +137,7 @@
|
|||||||
-translate-x-1/2
|
-translate-x-1/2
|
||||||
mb-2
|
mb-2
|
||||||
bg-gray-100
|
bg-gray-100
|
||||||
dark:bg-gray-850 dark:text-white
|
dark:bg-gray-800 dark:text-white
|
||||||
text-black text-xs
|
text-black text-xs
|
||||||
rounded-md
|
rounded-md
|
||||||
p-2
|
p-2
|
||||||
@ -153,6 +153,48 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="relative group">
|
||||||
|
<div
|
||||||
|
class="px-1.5 py-1 rounded-md bg-gray-100"
|
||||||
|
@click="routeToSinvList"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 -960 960 960"
|
||||||
|
width="21"
|
||||||
|
fill="#000"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M240-100q-41.92 0-70.96-29.04Q140-158.08 140-199.82V-300h120v-552.31l55.39 47.7 56.15-47.7 56.15 47.7 56.16-47.7 56.15 47.7 56.15-47.7 56.16 47.7 56.15-47.7 56.15 47.7 55.39-47.7V-200q0 41.92-29.04 70.96Q761.92-100 720-100H240Zm480-60q17 0 28.5-11.5T760-200v-560H320v460h360v100q0 17 11.5 28.5T720-160ZM367.69-610v-60h226.92v60H367.69Zm0 120v-60h226.92v60H367.69Zm310-114.62q-14.69 0-25.04-10.34-10.34-10.35-10.34-25.04t10.34-25.04q10.35-10.34 25.04-10.34t25.04 10.34q10.35 10.35 10.35 25.04t-10.35 25.04q-10.35 10.34-25.04 10.34Zm0 120q-14.69 0-25.04-10.34-10.34-10.35-10.34-25.04t10.34-25.04q10.35-10.34 25.04-10.34t25.04 10.34q10.35 10.35 10.35 25.04t-10.35 25.04q-10.35 10.34-25.04 10.34ZM240-160h380v-80H200v40q0 17 11.5 28.5T240-160Zm-40 0v-80 80Z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="
|
||||||
|
absolute
|
||||||
|
bottom-full
|
||||||
|
left-1/2
|
||||||
|
transform
|
||||||
|
-translate-x-1/2
|
||||||
|
rounded-md
|
||||||
|
opacity-0
|
||||||
|
bg-gray-100
|
||||||
|
dark:bg-gray-800 dark:text-white
|
||||||
|
text-black text-xs text-center
|
||||||
|
mb-2
|
||||||
|
p-2
|
||||||
|
w-28
|
||||||
|
group-hover:opacity-100
|
||||||
|
transition-opacity
|
||||||
|
duration-300
|
||||||
|
"
|
||||||
|
>
|
||||||
|
Sales Invoice List
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="relative group">
|
<div class="relative group">
|
||||||
<div
|
<div
|
||||||
class="p-1 rounded-md bg-gray-100"
|
class="p-1 rounded-md bg-gray-100"
|
||||||
@ -170,9 +212,9 @@
|
|||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
height="24px"
|
height="23px"
|
||||||
viewBox="0 -960 960 960"
|
viewBox="0 -960 960 960"
|
||||||
width="26px"
|
width="25px"
|
||||||
fill="#000"
|
fill="#000"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
@ -190,7 +232,7 @@
|
|||||||
-translate-x-1/2
|
-translate-x-1/2
|
||||||
mb-2
|
mb-2
|
||||||
bg-gray-100
|
bg-gray-100
|
||||||
dark:bg-gray-850 dark:text-white
|
dark:bg-gray-800 dark:text-white
|
||||||
text-black text-xs
|
text-black text-xs
|
||||||
rounded-md
|
rounded-md
|
||||||
p-2
|
p-2
|
||||||
@ -206,46 +248,6 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="relative group">
|
|
||||||
<div class="p-1 rounded-md bg-gray-100" @click="routeToSinvList">
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="24"
|
|
||||||
viewBox="0 -960 960 960"
|
|
||||||
width="24"
|
|
||||||
fill="currentColor"
|
|
||||||
class="text-gray-700 dark:text-gray-300"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M240-100q-41.92 0-70.96-29.04Q140-158.08 140-199.82V-300h120v-552.31l55.39 47.7 56.15-47.7 56.15 47.7 56.16-47.7 56.15 47.7 56.15-47.7 56.16 47.7 56.15-47.7 56.15 47.7 55.39-47.7V-200q0 41.92-29.04 70.96Q761.92-100 720-100H240Zm480-60q17 0 28.5-11.5T760-200v-560H320v460h360v100q0 17 11.5 28.5T720-160ZM367.69-610v-60h226.92v60H367.69Zm0 120v-60h226.92v60H367.69Zm310-114.62q-14.69 0-25.04-10.34-10.34-10.35-10.34-25.04t10.34-25.04q10.35-10.34 25.04-10.34t25.04 10.34q10.35 10.35 10.35 25.04t-10.35 25.04q-10.35 10.34-25.04 10.34Zm0 120q-14.69 0-25.04-10.34-10.34-10.35-10.34-25.04t10.34-25.04q10.35-10.34 25.04-10.34t25.04 10.34q10.35 10.35 10.35 25.04t-10.35 25.04q-10.35 10.34-25.04 10.34ZM240-160h380v-80H200v40q0 17 11.5 28.5T240-160Zm-40 0v-80 80Z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span
|
|
||||||
class="
|
|
||||||
absolute
|
|
||||||
bottom-full
|
|
||||||
left-1/2
|
|
||||||
transform
|
|
||||||
-translate-x-1/2
|
|
||||||
rounded-md
|
|
||||||
opacity-0
|
|
||||||
bg-gray-100
|
|
||||||
dark:bg-gray-850 dark:text-white
|
|
||||||
text-black text-xs text-center
|
|
||||||
mb-2
|
|
||||||
p-2
|
|
||||||
w-28
|
|
||||||
group-hover:opacity-100
|
|
||||||
transition-opacity
|
|
||||||
duration-300
|
|
||||||
"
|
|
||||||
>
|
|
||||||
Sales Invoice List
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="relative group">
|
<div class="relative group">
|
||||||
<div
|
<div
|
||||||
class="p-0.5 rounded-md bg-gray-100"
|
class="p-0.5 rounded-md bg-gray-100"
|
||||||
@ -268,7 +270,7 @@
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
stroke="#000000"
|
stroke="#000000"
|
||||||
stroke-width="9.312000000000001"
|
stroke-width="3.312000000000001"
|
||||||
transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)"
|
transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)"
|
||||||
>
|
>
|
||||||
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
||||||
@ -321,7 +323,7 @@
|
|||||||
-translate-x-1/2
|
-translate-x-1/2
|
||||||
mb-2
|
mb-2
|
||||||
bg-gray-100
|
bg-gray-100
|
||||||
dark:bg-gray-850 dark:text-white
|
dark:bg-gray-800 dark:text-white
|
||||||
text-black text-xs
|
text-black text-xs
|
||||||
rounded-md
|
rounded-md
|
||||||
p-2
|
p-2
|
||||||
|
Loading…
Reference in New Issue
Block a user