diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index f4caa9c..c4fcf77 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -60,7 +60,8 @@ "user-management": "مدیریت کاربر", "role-management": "مدیریت نقش ها", "edit-profile": "ویرایش پروفایل", - "loan-history": "کارتابل نظارت" + "loan-history": "کارتابل نظارت", + "loan-history-province": "کارتابل نظارت استانی" }, "secondary": { "passenger-office": "توزیع درخواست", diff --git a/src/components/dashboard/passenger-boss/Buttons/printFormA.jsx b/src/components/dashboard/passenger-boss/Buttons/printFormA.jsx index 2396d5f..fa1e882 100644 --- a/src/components/dashboard/passenger-boss/Buttons/printFormA.jsx +++ b/src/components/dashboard/passenger-boss/Buttons/printFormA.jsx @@ -20,7 +20,7 @@ const PrintFormA = () => { params.set("filters", '[]'); params.set("sorting", '[]'); requestServer(`${GET_PASSENGER_BOSS}?${params}`, 'get').then((response) => { - const _chunkSize = 10 + const _chunkSize = 6 const _data = response.data.data const chunk = Array.from({length: Math.ceil(_data.length / _chunkSize)}, (v, i) => _data.slice(i * _chunkSize, i * _chunkSize + _chunkSize) diff --git a/src/components/dashboard/passenger-boss/Prints/form-a/Content.jsx b/src/components/dashboard/passenger-boss/Prints/form-a/Content.jsx index 8525b97..29231d3 100644 --- a/src/components/dashboard/passenger-boss/Prints/form-a/Content.jsx +++ b/src/components/dashboard/passenger-boss/Prints/form-a/Content.jsx @@ -42,69 +42,44 @@ const Content = ({data}) => { میزان تسهیلات مصوب
(میلیارد ریال) وضعیت طرح درصد پیشرفت
فیزیکی شهرستان محل
اجرا اشتغال
تعهد شده (نفر) پیش بینی تاریخ
بهره برداری پس
از اخذ تسهیلات بانک عامل نرخ سود (درصد) دوره تنفس (ماه) طول دوره
بازپرداخت (ماه) diff --git a/src/components/dashboard/passenger-boss/Prints/form-a/items.jsx b/src/components/dashboard/passenger-boss/Prints/form-a/items.jsx index 6d92f8c..67e0d91 100644 --- a/src/components/dashboard/passenger-boss/Prints/form-a/items.jsx +++ b/src/components/dashboard/passenger-boss/Prints/form-a/items.jsx @@ -6,7 +6,7 @@ const Items = ({data}) => { useEffect(() => { let arr = [] - for (let i = 0; i < 10; i++) { + for (let i = 0; i < 6; i++) { if (data[i]) { let _item = {} _item.name = data[i].name diff --git a/src/components/dashboard/passenger-boss/Prints/form-b/Content.jsx b/src/components/dashboard/passenger-boss/Prints/form-b/Content.jsx index 842dbfe..eb72049 100644 --- a/src/components/dashboard/passenger-boss/Prints/form-b/Content.jsx +++ b/src/components/dashboard/passenger-boss/Prints/form-b/Content.jsx @@ -38,7 +38,7 @@ const Content = ({data}) => { - {`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1402 کل کشور (فرم ب)`} + {`فرم خلاصه اطلاعات تایید شده طرح متقاضی استفاده از تسهیلات موضوع جزء 1 تا 9 بند (الف) تبصره (18) قانون بودجه سال 1401 کل کشور (فرم ب)`} diff --git a/src/core/data/sidebarMenu.jsx b/src/core/data/sidebarMenu.jsx index d53267f..a618eb7 100644 --- a/src/core/data/sidebarMenu.jsx +++ b/src/core/data/sidebarMenu.jsx @@ -44,6 +44,15 @@ const sidebarMenu = [ selected: false, permission: "view_navgan_loans", }, + { + key: "sidebar.loan-history-province", + name: "loan-history", + type: "page", + route: "/dashboard/loan-history", + icon: , + selected: false, + permission: "view_navgan_loans_province", + }, ], [ { key: "sidebar.passenger-office-chief", diff --git a/src/pages/dashboard/loan-history/index.jsx b/src/pages/dashboard/loan-history/index.jsx index 04ab36a..b451589 100644 --- a/src/pages/dashboard/loan-history/index.jsx +++ b/src/pages/dashboard/loan-history/index.jsx @@ -15,7 +15,7 @@ export async function getServerSideProps({req, locale}) { title: "Dashboard.loan_history", isBot, locale, - layout: {name: 'DashboardLayout', props: {permissions: ["view_navgan_loans"]}} + layout: {name: 'DashboardLayout', props: {permissions: ["view_navgan_loans", "view_navgan_loans_province"]}} }, }; }