This commit is contained in:
Samandar Turg'unboev
2025-06-30 11:42:44 +05:00
parent 95f07507b5
commit 131e1386d9

View File

@@ -372,11 +372,20 @@ const DashboardBoxesPage = (props: Props) => {
// Calculate completion statistics
const boxOptions = (inputValue: string) => {
return box_requests.getAll({ cargoId: inputValue }).then(res => {
return box_requests
.getAll({
cargoId: inputValue,
partyId: partyFilter?.value, // Bu qatorni qo'shing
})
.then(res => {
return res.data.data.data.map(p => ({ label: p.name, value: p.id }));
});
};
useEffect(() => {
setBoxFilter(undefined);
}, [partyFilter]);
const columns: ColumnData<IBox>[] = [
{
label: t('No'),