2
0
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:
Isaac-GC 2024-03-02 18:22:12 -08:00 committed by GitHub
commit 5dc5f8b4c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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