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:
parent
6440527999
commit
cf66dbdd48
@ -38,7 +38,11 @@
|
||||
<div class="flex gap-x-2">
|
||||
<!-- Item Search -->
|
||||
<Link
|
||||
class="flex-shrink-0 w-2/3"
|
||||
:class="
|
||||
fyo.singles.InventorySettings?.enableBarcodes
|
||||
? 'flex-shrink-0 w-2/3'
|
||||
: 'w-full'
|
||||
"
|
||||
:df="{
|
||||
label: t`Search an Item`,
|
||||
fieldtype: 'Link',
|
||||
@ -54,6 +58,7 @@
|
||||
/>
|
||||
|
||||
<Barcode
|
||||
v-if="fyo.singles.InventorySettings?.enableBarcodes"
|
||||
class="w-1/3"
|
||||
@item-selected="
|
||||
async (name: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user