mirror of
https://github.com/frappe/books.git
synced 2025-01-09 09:50:27 +00:00
fix: removed submitInvoice option from POS settings; enabled by default
This commit is contained in:
parent
451d9049fc
commit
af55219ddd
@ -14,9 +14,7 @@ export class POSSettings extends Doc {
|
|||||||
checkDigits?: number;
|
checkDigits?: number;
|
||||||
itemCodeDigits?: number;
|
itemCodeDigits?: number;
|
||||||
itemWeightDigits?: number;
|
itemWeightDigits?: number;
|
||||||
|
|
||||||
posUI?: 'Classic' | 'Modern';
|
posUI?: 'Classic' | 'Modern';
|
||||||
submitInvoice?: string;
|
|
||||||
|
|
||||||
static filters: FiltersMap = {
|
static filters: FiltersMap = {
|
||||||
cashAccount: () => ({
|
cashAccount: () => ({
|
||||||
|
@ -57,14 +57,6 @@
|
|||||||
"required": true,
|
"required": true,
|
||||||
"section": "Default"
|
"section": "Default"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "submitInvoice",
|
|
||||||
"label": "Post Payment",
|
|
||||||
"fieldtype": "Check",
|
|
||||||
"default": false,
|
|
||||||
"description": "create invoice and shipment with payment option later.",
|
|
||||||
"section": "Default"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "weightEnabledBarcode",
|
"fieldname": "weightEnabledBarcode",
|
||||||
"label": "Weigth Enabled Barcode",
|
"label": "Weigth Enabled Barcode",
|
||||||
|
@ -287,7 +287,7 @@
|
|||||||
>
|
>
|
||||||
<slot>
|
<slot>
|
||||||
<p class="uppercase text-lg text-white font-semibold">
|
<p class="uppercase text-lg text-white font-semibold">
|
||||||
{{ t`Submit` }}
|
{{ t`Buy` }}
|
||||||
</p>
|
</p>
|
||||||
</slot>
|
</slot>
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -210,7 +210,7 @@
|
|||||||
>
|
>
|
||||||
<slot>
|
<slot>
|
||||||
<p class="uppercase text-lg text-white font-semibold">
|
<p class="uppercase text-lg text-white font-semibold">
|
||||||
{{ t`Submit` }}
|
{{ t`Buy` }}
|
||||||
</p>
|
</p>
|
||||||
</slot>
|
</slot>
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-2 gap-4 bottom-8">
|
<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
|
<Button
|
||||||
class="w-full bg-violet-500 dark:bg-violet-700"
|
class="w-full bg-violet-500 dark:bg-violet-700"
|
||||||
style="padding: 1.35rem"
|
style="padding: 1.35rem"
|
||||||
@ -149,13 +149,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div class="col-span-1">
|
||||||
:class="
|
|
||||||
!fyo.singles.POSSettings?.submitInvoice
|
|
||||||
? 'col-span-2'
|
|
||||||
: 'col-span-1'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<Button
|
<Button
|
||||||
class="w-full bg-red-500 dark:bg-red-700"
|
class="w-full bg-red-500 dark:bg-red-700"
|
||||||
style="padding: 1.35rem"
|
style="padding: 1.35rem"
|
||||||
|
Loading…
Reference in New Issue
Block a user