2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: hide barcode field if not enabled

This commit is contained in:
akshayitzme 2024-02-08 10:10:49 +05:30
parent 6440527999
commit cf66dbdd48

View File

@ -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) => {