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:
parent
451d9049fc
commit
af55219ddd
@ -14,9 +14,7 @@ export class POSSettings extends Doc {
|
||||
checkDigits?: number;
|
||||
itemCodeDigits?: number;
|
||||
itemWeightDigits?: number;
|
||||
|
||||
posUI?: 'Classic' | 'Modern';
|
||||
submitInvoice?: string;
|
||||
|
||||
static filters: FiltersMap = {
|
||||
cashAccount: () => ({
|
||||
|
@ -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",
|
||||
|
@ -287,7 +287,7 @@
|
||||
>
|
||||
<slot>
|
||||
<p class="uppercase text-lg text-white font-semibold">
|
||||
{{ t`Submit` }}
|
||||
{{ t`Buy` }}
|
||||
</p>
|
||||
</slot>
|
||||
</Button>
|
||||
|
@ -210,7 +210,7 @@
|
||||
>
|
||||
<slot>
|
||||
<p class="uppercase text-lg text-white font-semibold">
|
||||
{{ t`Submit` }}
|
||||
{{ t`Buy` }}
|
||||
</p>
|
||||
</slot>
|
||||
</Button>
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user