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

feat: add save order option in POS

This commit is contained in:
AbleKSaju 2024-10-11 11:42:44 +05:30
parent 62d52bc7ce
commit 55aa8bf111

View File

@ -325,31 +325,49 @@
/> />
</div> </div>
</div> </div>
<div class="flex w-full gap-2">
<div class="w-full">
<Button
class="w-full bg-green-500 dark:bg-green-700 py-6"
@click="
sinvDoc.party && sinvDoc.items?.length
? null
: null
"
:disabled="!sinvDoc.party || !sinvDoc.items?.length"
>
<slot>
<p class="uppercase text-lg text-white font-semibold">
{{ t`Save` }}
</p>
</slot>
</Button>
</div>
<div class="w-full">
<Button
class="w-full bg-red-500 dark:bg-red-700 py-6"
:disabled="!sinvDoc.items?.length"
@click="clearValues"
>
<slot>
<p class="uppercase text-lg text-white font-semibold">
{{ t`Cancel` }}
</p>
</slot>
</Button>
<div class=""> <Button
<Button class="mt-4 w-full bg-green-500 dark:bg-green-700 py-6"
class="w-full bg-red-500 dark:bg-red-700 py-6" :disabled="disablePayButton"
:disabled="!sinvDoc.items?.length" @click="toggleModal('Payment', true)"
@click="clearValues" >
> <slot>
<slot> <p class="uppercase text-lg text-white font-semibold">
<p class="uppercase text-lg text-white font-semibold"> {{ t`Pay` }}
{{ t`Cancel` }} </p>
</p> </slot>
</slot> </Button>
</Button> </div>
<Button
class="mt-4 w-full bg-green-500 dark:bg-green-700 py-6"
:disabled="disablePayButton"
@click="toggleModal('Payment', true)"
>
<slot>
<p class="uppercase text-lg text-white font-semibold">
{{ t`Pay` }}
</p>
</slot>
</Button>
</div> </div>
</div> </div>
</div> </div>