Merge pull request 'Fix = TaxInvoice Printer Design Issue #41' (#42) from StandPrint into main

Reviewed-on: Pozomind/pozo-retail-app#42
This commit is contained in:
karthikalakshmi 2026-01-30 16:24:10 +05:30
commit 2f680dbd1a
7 changed files with 1021 additions and 1001 deletions

View File

@ -1,17 +1,18 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { getSession } from "../../../../Services/Others"; import { getSession } from "../../../../Services/Others";
import { useDispatch } from "react-redux"; import { useDispatch } from "react-redux";
import { getmultipleSearch, PostProductSearch } from "../../../../Features/BookingScreen/BookingData/BookingData"; import {
getmultipleSearch,
PostProductSearch,
} from "../../../../Features/BookingScreen/BookingData/BookingData";
import Buttons from "../../../../Components/Forms/Buttons"; import Buttons from "../../../../Components/Forms/Buttons";
const MultipleSearch = ({ close }) => { const MultipleSearch = ({ close }) => {
const CompId = getSession("CompId"); const CompId = getSession("CompId");
const BranchId = getSession("BranchId"); const BranchId = getSession("BranchId");
const AppId = getSession("AppId"); const AppId = getSession("AppId");
const dispatch = useDispatch(); const dispatch = useDispatch();
const options = [ const options = [
{ label: "Product Name", value: "ProdName" }, { label: "Product Name", value: "ProdName" },
{ label: "Product Variant Name", value: "ProdVariantName" }, { label: "Product Variant Name", value: "ProdVariantName" },
@ -24,15 +25,13 @@ const MultipleSearch = ({ close }) => {
{ label: "Brand Name", value: "BrandName" }, { label: "Brand Name", value: "BrandName" },
]; ];
const [selectedValues, setSelectedValues] = useState([]); const [selectedValues, setSelectedValues] = useState([]);
console.log(selectedValues, 'selectedValuesselectedValues'); console.log(selectedValues, "selectedValuesselectedValues");
useEffect(() => { useEffect(() => {
GetmultipleSearchData(); GetmultipleSearchData();
}, []); }, []);
const postMultipleSearch = async () => { const postMultipleSearch = async () => {
if (selectedValues.length === 0) { if (selectedValues.length === 0) {
alert("Please select at least one option!"); alert("Please select at least one option!");
@ -48,7 +47,7 @@ const MultipleSearch = ({ close }) => {
const response = await dispatch(PostProductSearch(data)).unwrap(); const response = await dispatch(PostProductSearch(data)).unwrap();
console.log("Search Response:", response); console.log("Search Response:", response);
if (response?.data?.statusCode == 1) { if (response?.data?.statusCode == 1) {
setSelectedValues('') setSelectedValues("");
close(false); close(false);
} }
} catch (error) { } catch (error) {
@ -56,7 +55,6 @@ const MultipleSearch = ({ close }) => {
} }
}; };
const GetmultipleSearchData = async () => { const GetmultipleSearchData = async () => {
const data = { const data = {
AppId, AppId,
@ -68,8 +66,9 @@ const MultipleSearch = ({ close }) => {
const response = await dispatch(getmultipleSearch(data)).unwrap(); const response = await dispatch(getmultipleSearch(data)).unwrap();
if (response?.data?.statusCode === 1) { if (response?.data?.statusCode === 1) {
const selected = response?.data?.data?.[0]?.SearchTermDtl?.map( const selected =
(item) => item?.SearchTerm response?.data?.data?.[0]?.SearchTermDtl?.map(
(item) => item?.SearchTerm,
) || []; ) || [];
setSelectedValues(selected); setSelectedValues(selected);
@ -81,7 +80,9 @@ const MultipleSearch = ({ close }) => {
return ( return (
<> <>
<div> <div
style={{ fontFamily: "Poppins", fontWeight: "500", marginTop: "10px" }}
>
{options.map((item) => ( {options.map((item) => (
<label <label
key={item.value} key={item.value}
@ -91,6 +92,7 @@ const MultipleSearch = ({ close }) => {
cursor: "pointer", cursor: "pointer",
fontSize: "14px", fontSize: "14px",
color: "#333", color: "#333",
margin: "6px 0",
}} }}
> >
<input <input
@ -100,7 +102,7 @@ const MultipleSearch = ({ close }) => {
setSelectedValues((prev) => setSelectedValues((prev) =>
prev.includes(item.value) prev.includes(item.value)
? prev.filter((i) => i !== item.value) ? prev.filter((i) => i !== item.value)
: [...prev, item.value] : [...prev, item.value],
); );
}} }}
style={{ marginRight: "8px" }} style={{ marginRight: "8px" }}
@ -108,17 +110,14 @@ const MultipleSearch = ({ close }) => {
{item.label} {item.label}
</label> </label>
))} ))}
</div> </div>
<div> <div style={{ display: "flex", width: "100%", marginTop: "2rem" }}>
<Buttons <Buttons
buttonText={'Submit'} buttonText={"Submit"}
handleSubmit={postMultipleSearch} handleSubmit={postMultipleSearch}
color="901D77" color="901D77"
// icon={<PlusOutlined />}
/> />
</div> </div>
</> </>
); );
}; };

File diff suppressed because it is too large Load Diff

View File

@ -750,7 +750,16 @@ const PreferenceList = () => {
{renderCheckbox('scanlayout', 'Do you Want Scan Layout Page?')} {renderCheckbox('scanlayout', 'Do you Want Scan Layout Page?')}
</div> </div>
<div className="submitButton"> </Form>
</div>
<Form
ref={formRef}
layout="vertical"
onFinish={handleSubmit}
initialValues={initialValues}
className="preferences-list"
>
<div className="PreferencesBTN">
<Buttons <Buttons
buttonText="Submit Preferences" buttonText="Submit Preferences"
color="901D77" color="901D77"
@ -761,7 +770,6 @@ const PreferenceList = () => {
</div> </div>
</Form> </Form>
</div> </div>
</div>
</> </>
); );
}; };

View File

@ -1,12 +1,12 @@
.preferences-list { .preferences-list {
max-height: 84vh; max-height: 75vh;
overflow-y: auto; overflow-y: auto;
background: #fff; background: #fff;
width: 100%; width: 100%;
scrollbar-width: thin; scrollbar-width: thin;
scroll-behavior: smooth; scroll-behavior: smooth;
border-radius: 12px; border-radius: 12px;
padding-bottom: 4rem; padding-bottom: 3rem;
.preference-headers { .preference-headers {
font-size: 1.2rem; font-size: 1.2rem;
@ -41,7 +41,7 @@
} }
.ant-form-item { .ant-form-item {
margin-bottom: 1.2rem; margin-bottom: 1rem;
} }
.ant-checkbox-wrapper, .ant-checkbox-wrapper,
@ -49,11 +49,6 @@
margin-right: 1rem; margin-right: 1rem;
} }
.ant-btn {
margin-top: 2rem;
float: right;
}
// Optional: Scrollbar for long modals // Optional: Scrollbar for long modals
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 6px; width: 6px;
@ -89,7 +84,7 @@
padding: 10px 0; padding: 10px 0;
> div { > div {
font-family: 'Poppins'; font-family: "Poppins";
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
margin: 4px 0; margin: 4px 0;
@ -154,3 +149,13 @@
} }
} }
} }
.PreferencesBTN {
display: flex;
align-items: flex-start;
justify-content: flex-end;
width: 100%;
margin-top: 1rem;
.primary_Button {
width: 200px !important;
}
}

View File

@ -325,7 +325,7 @@
} }
.CategoryHorizontalNew { .CategoryHorizontalNew {
padding: 1rem 1rem; padding: 10px 10px;
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -116,7 +116,7 @@
.CustomerActions { .CustomerActions {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.1rem; gap: 0.3rem;
.RiVerifiedBadgeFill { .RiVerifiedBadgeFill {
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;

View File

@ -71,7 +71,7 @@
.kot-date { .kot-date {
display: flex; display: flex;
font-size: 14px; font-size: 14px;
font-family: 'Gilroy'; font-family: "Gilroy";
font-weight: 500; font-weight: 500;
border-radius: 5px; border-radius: 5px;
color: #212529 !important; color: #212529 !important;
@ -122,7 +122,7 @@
right: 0; right: 0;
} }
.ant-segmented-item-label { .ant-segmented-item-label {
font-family: 'Poppins'; font-family: "Poppins";
font-size: 12px !important; font-size: 12px !important;
} }
.ant-segmented-item-selected { .ant-segmented-item-selected {
@ -134,9 +134,7 @@
} }
} }
.kot-search-dev .kot-search-dev :where(.css-dev-only-do-not-override-2i2tap).ant-segmented .ant-segmented-group {
:where(.css-dev-only-do-not-override-2i2tap).ant-segmented
.ant-segmented-group {
position: relative; position: relative;
display: flex; display: flex;
//srinath //srinath
@ -149,9 +147,7 @@
rgba(0, 0, 0, 0.3) 0px 3px 7px -3px; rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
} }
.kot-search-dev .kot-search-dev :where(.css-dev-only-do-not-override-2i2tap).ant-segmented .ant-segmented-item-selected {
:where(.css-dev-only-do-not-override-2i2tap).ant-segmented
.ant-segmented-item-selected {
background-color: #ffffff; background-color: #ffffff;
box-shadow: box-shadow:
0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 2px 0 rgba(0, 0, 0, 0.03),
@ -168,6 +164,13 @@
margin: 12px 0 12px 0; margin: 12px 0 12px 0;
height: 70vh; height: 70vh;
overflow: scroll; overflow: scroll;
.ant-table-thead {
background-color: #2c88ee !important;
}
.ant-table-cell {
padding: 6px !important;
}
@media (max-width: 768px) { @media (max-width: 768px) {
height: 60vh; height: 60vh;
scrollbar-width: thin; scrollbar-width: thin;
@ -179,7 +182,7 @@
} }
table { table {
tbody { tbody {
font-family: 'Poppins'; font-family: "Poppins";
> tr:nth-child(even) { > tr:nth-child(even) {
background-color: #b4b4b4; background-color: #b4b4b4;
} }
@ -221,7 +224,7 @@
transition: all 0.2s ease; transition: all 0.2s ease;
min-width: 70px; min-width: 70px;
text-align: center; text-align: center;
font-family: 'Poppins', sans-serif; font-family: "Poppins", sans-serif;
color: #fff; color: #fff;
-webkit-text-stroke-width: 0.1px; -webkit-text-stroke-width: 0.1px;