implement => add buyer form
This commit is contained in:
@@ -486,8 +486,6 @@ export const SlaughterSellCarcassOutProvinceAddBuyer = ({
|
||||
}
|
||||
};
|
||||
|
||||
console.log(formik.errors);
|
||||
|
||||
return (
|
||||
<Grid
|
||||
container
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user