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

feat: remove price list

This commit is contained in:
AbleKSaju 2024-11-29 09:58:53 +05:30
parent f573f13dff
commit 6fc0c85531

View File

@ -4,16 +4,25 @@
<div class="px-10">
<hr class="dark:border-gray-800" />
<div class="flex justify-center pt-10">
<div class="w-80 mb-20">
<div class="flex justify-between w-full mb-20">
<div class="w-full">
<Link
v-if="sinvDoc.fieldMap"
class="flex-shrink-0"
class="flex-shrink-0 w-full"
:border="true"
:value="priceList"
:df="sinvDoc.fieldMap.priceList"
@change="(value) => (priceList = value)"
/>
</div>
<div class="w-10 flex justify-end items-center">
<feather-icon
name="trash"
class="w-5 text-xl text-red-500"
@click="removePriceList()"
/>
</div>
</div>
</div>
<div class="row-start-6 grid grid-cols-2 gap-4 mt-auto mb-2">
@ -79,6 +88,10 @@ export default defineComponent({
};
},
methods: {
async removePriceList() {
this.priceList = '';
await this.setPriceList();
},
async setPriceList() {
try {
await this.sinvDoc.set('priceList', this.priceList);