implement => add buyer form

This commit is contained in:
2026-01-31 17:14:08 +03:30
parent fa3543f43e
commit 2705e226e1
12 changed files with 1327 additions and 27 deletions

View File

@@ -486,8 +486,6 @@ export const SlaughterSellCarcassOutProvinceAddBuyer = ({
}
};
console.log(formik.errors);
return (
<Grid
container

View File

@@ -22,6 +22,7 @@ import { SlaughterSellCarcassOutProvinceAddBuyer } from "../slaughter-sell-carca
import EditIcon from "@mui/icons-material/Edit";
import { RiSearchLine } from "react-icons/ri";
import { checkPathStartsWith } from "../../../../utils/checkPathStartsWith";
import { StewardAddBuyer } from "../../../steward/components/steward-add-buyer/StewardAddBuyer";
export const SlaughterSellCarcassOutProvinceBuyers = () => {
const handleTextChange = (event) => {
@@ -83,16 +84,11 @@ export const SlaughterSellCarcassOutProvinceBuyers = () => {
right: !(window.innerWidth <= 600),
bottom: window.innerWidth <= 600,
content: (
<SlaughterSellCarcassOutProvinceAddBuyer
<StewardAddBuyer
updateTable={updateTable}
isEdit
data={item}
defaultPersonType={
item?.buyer?.parentLegalPersonNationalCode
? "legal"
: "real"
}
defaultNationalCode={item?.buyer?.nationalCode}
isRealPerson={personType === "real"}
/>
),
title: "ویرایش خریدار",
@@ -203,7 +199,8 @@ export const SlaughterSellCarcassOutProvinceBuyers = () => {
right: !(window.innerWidth <= 600),
bottom: window.innerWidth <= 600,
content: (
<SlaughterSellCarcassOutProvinceAddBuyer
<StewardAddBuyer
isRealPerson={personType === "real"}
updateTable={updateTable}
/>
),