Added Scanner component
This commit is contained in:
parent
79cf772ef0
commit
b5577a45f3
|
|
@ -60,6 +60,7 @@ import { getPrintSelectionComponentData } from '../../Features/ThemeChange/Theme
|
||||||
import { PrintStyleFunction } from '../paymentpdfPage/PrintStyleFunction.js';
|
import { PrintStyleFunction } from '../paymentpdfPage/PrintStyleFunction.js';
|
||||||
import { isMobile } from 'react-device-detect';
|
import { isMobile } from 'react-device-detect';
|
||||||
import { PurchaseQtMobilePrint } from './PurchaseQtMobilePrint.js';
|
import { PurchaseQtMobilePrint } from './PurchaseQtMobilePrint.js';
|
||||||
|
import BarCodeScan from '../../Services/BarCodeScan.jsx';
|
||||||
const SalesQuotationForm = () => {
|
const SalesQuotationForm = () => {
|
||||||
const { SadminuserAccess } = useAuth();
|
const { SadminuserAccess } = useAuth();
|
||||||
let SAAccessCommonMaster = SadminuserAccess?.find(
|
let SAAccessCommonMaster = SadminuserAccess?.find(
|
||||||
|
|
@ -1865,7 +1866,7 @@ const SalesQuotationForm = () => {
|
||||||
</FloatLabel>
|
</FloatLabel>
|
||||||
<Tooltip title={'BarCode/QrCode'} placement={'top'}>
|
<Tooltip title={'BarCode/QrCode'} placement={'top'}>
|
||||||
<div className="BsUpcScanSQ">
|
<div className="BsUpcScanSQ">
|
||||||
<BsUpcScan
|
{!isMobile ? <BsUpcScan
|
||||||
strokeWidth={0.5}
|
strokeWidth={0.5}
|
||||||
color="#000"
|
color="#000"
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -1876,6 +1877,11 @@ const SalesQuotationForm = () => {
|
||||||
className="product-scan-Icon"
|
className="product-scan-Icon"
|
||||||
onClick={handleScanSearch}
|
onClick={handleScanSearch}
|
||||||
/>
|
/>
|
||||||
|
: <BarCodeScan
|
||||||
|
onScan={(value) => {
|
||||||
|
debouncedScannerSearch(value);
|
||||||
|
}}
|
||||||
|
/>}
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{ProductData?.length === 0 && (
|
{ProductData?.length === 0 && (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue