mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
Merge pull request #847 from akshayitzme/fix-pos-barcode-field
fix: hide barcode field in pos if not enabled
This commit is contained in:
commit
5dc5f8b4c3
@ -38,7 +38,11 @@
|
|||||||
<div class="flex gap-x-2">
|
<div class="flex gap-x-2">
|
||||||
<!-- Item Search -->
|
<!-- Item Search -->
|
||||||
<Link
|
<Link
|
||||||
class="flex-shrink-0 w-2/3"
|
:class="
|
||||||
|
fyo.singles.InventorySettings?.enableBarcodes
|
||||||
|
? 'flex-shrink-0 w-2/3'
|
||||||
|
: 'w-full'
|
||||||
|
"
|
||||||
:df="{
|
:df="{
|
||||||
label: t`Search an Item`,
|
label: t`Search an Item`,
|
||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
@ -54,6 +58,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<Barcode
|
<Barcode
|
||||||
|
v-if="fyo.singles.InventorySettings?.enableBarcodes"
|
||||||
class="w-1/3"
|
class="w-1/3"
|
||||||
@item-selected="
|
@item-selected="
|
||||||
async (name: string) => {
|
async (name: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user