diff options
-rw-r--r-- | src/containers/ContractorPanel.tsx | 3 | ||||
-rw-r--r-- | src/containers/Service/ServiceList.tsx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/containers/ContractorPanel.tsx b/src/containers/ContractorPanel.tsx index b68adec..6a209c3 100644 --- a/src/containers/ContractorPanel.tsx +++ b/src/containers/ContractorPanel.tsx @@ -10,6 +10,9 @@ const ContractorPanel: React.FC<PanelProps> = ({ item, mutate }) => { return ( <div className="lg:m-4 p-4 flex flex-col lg:pl-16 lg:border-l"> + <span className="text-lg mb-10"> + Долг контрагента: <span className="font-bold">{item.debt}</span> + </span> <div className="grid lg:grid-cols-2"> <Button route={`/waybills?contractorId=${item._id}`} variant="outlined"> Показать накладные diff --git a/src/containers/Service/ServiceList.tsx b/src/containers/Service/ServiceList.tsx index a0536b5..f716b24 100644 --- a/src/containers/Service/ServiceList.tsx +++ b/src/containers/Service/ServiceList.tsx @@ -13,7 +13,7 @@ const ServiceList: React.FC = () => { const actions = service.actions || [{ name: 'Добавить', - route: `/${service.route}/add`, + route: `/${service.route}/add${location.search}`, }]; const handleRowClick = (index: number) => { |