2
0
mirror of https://github.com/frappe/books.git synced 2024-05-28 22:30:48 +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">
<!-- 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) => {