2
0
mirror of https://github.com/frappe/books.git synced 2025-01-08 01:14:39 +00:00

fix: removed submitInvoice option from POS settings; enabled by default

This commit is contained in:
AbleKSaju 2025-01-03 17:30:54 +05:30
parent 451d9049fc
commit af55219ddd
5 changed files with 4 additions and 20 deletions

View File

@ -14,9 +14,7 @@ export class POSSettings extends Doc {
checkDigits?: number;
itemCodeDigits?: number;
itemWeightDigits?: number;
posUI?: 'Classic' | 'Modern';
submitInvoice?: string;
static filters: FiltersMap = {
cashAccount: () => ({

View File

@ -57,14 +57,6 @@
"required": true,
"section": "Default"
},
{
"fieldname": "submitInvoice",
"label": "Post Payment",
"fieldtype": "Check",
"default": false,
"description": "create invoice and shipment with payment option later.",
"section": "Default"
},
{
"fieldname": "weightEnabledBarcode",
"label": "Weigth Enabled Barcode",

View File

@ -287,7 +287,7 @@
>
<slot>
<p class="uppercase text-lg text-white font-semibold">
{{ t`Submit` }}
{{ t`Buy` }}
</p>
</slot>
</Button>

View File

@ -210,7 +210,7 @@
>
<slot>
<p class="uppercase text-lg text-white font-semibold">
{{ t`Submit` }}
{{ t`Buy` }}
</p>
</slot>
</Button>

View File

@ -131,7 +131,7 @@
</div>
<div class="grid grid-cols-2 gap-4 bottom-8">
<div v-if="fyo.singles.POSSettings?.submitInvoice" class="col-span-1">
<div class="col-span-1">
<Button
class="w-full bg-violet-500 dark:bg-violet-700"
style="padding: 1.35rem"
@ -149,13 +149,7 @@
</Button>
</div>
<div
:class="
!fyo.singles.POSSettings?.submitInvoice
? 'col-span-2'
: 'col-span-1'
"
>
<div class="col-span-1">
<Button
class="w-full bg-red-500 dark:bg-red-700"
style="padding: 1.35rem"