diff --git a/ipi-survey-platform/src/components/dashboard/SurveyCarousel.jsx b/ipi-survey-platform/src/components/dashboard/SurveyCarousel.jsx index 180b75c..737133d 100644 --- a/ipi-survey-platform/src/components/dashboard/SurveyCarousel.jsx +++ b/ipi-survey-platform/src/components/dashboard/SurveyCarousel.jsx @@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import { ChevronLeft, ChevronRight, Pause } from 'lucide-react'; import { CalendarDays, Clock3 } from 'lucide-react'; +import { GrTasks } from "react-icons/gr"; import { fetchSubmissionDetail } from '@/services/submissions/submissionService'; const SurveyCarousel = ({ @@ -57,6 +58,7 @@ const SurveyCarousel = ({ + Status: {current?.status || '—'} diff --git a/ipi-survey-platform/src/components/overview/DetailedOverview.jsx b/ipi-survey-platform/src/components/overview/DetailedOverview.jsx index cc1d544..4146a48 100644 --- a/ipi-survey-platform/src/components/overview/DetailedOverview.jsx +++ b/ipi-survey-platform/src/components/overview/DetailedOverview.jsx @@ -425,7 +425,7 @@ export const DetailedOverview = ({ submission, onBack }) => { 'Product', 'Unit', 'Quantity', - 'Cost(AED)', + 'Value (AED)', 'Status', 'Submission Date & Time', 'Action' @@ -436,7 +436,7 @@ export const DetailedOverview = ({ submission, onBack }) => { 'Product': '1%', 'Unit': '15%', 'Quantity': '10%', - 'Cost(AED)': '10%', + 'Value (AED)': '10%', 'Status': '15%', 'Submission Date & Time': '15%', 'Action': { width: '10%', className: 'justify-start' } diff --git a/ipi-survey-platform/src/components/overview/ProductDetails.jsx b/ipi-survey-platform/src/components/overview/ProductDetails.jsx index cb11604..a36a229 100644 --- a/ipi-survey-platform/src/components/overview/ProductDetails.jsx +++ b/ipi-survey-platform/src/components/overview/ProductDetails.jsx @@ -523,7 +523,7 @@ const ProductDetails = ({ {/* Cost Row */} - Cost (AED) + Value (AED) {formattedProduct.q4_oct_cost} {formattedProduct.q4_nov_cost} diff --git a/ipi-survey-platform/src/components/survey/ProductData/ProductData.jsx b/ipi-survey-platform/src/components/survey/ProductData/ProductData.jsx index b87055c..10407cb 100644 --- a/ipi-survey-platform/src/components/survey/ProductData/ProductData.jsx +++ b/ipi-survey-platform/src/components/survey/ProductData/ProductData.jsx @@ -1760,7 +1760,7 @@ useEffect(() => { )}
-

Step 2: Product Data — Monthly Output & Cost

+

Step 2: Product Data — Monthly Output & Value

{(() => { // Try to get survey period from localStorage first const savedSurveyPeriod = localStorage.getItem('currentSurveyPeriod'); @@ -1829,7 +1829,7 @@ useEffect(() => {

Why we collect monthly product data

- This step collects monthly output quantity and production cost for each product you manufacture or process. The data inform the Index of Industrial Production (IIP) and capacity-utilization statistics. Results are published only in aggregated form and your information is protected by national statistics confidentiality provisions. + This step collects monthly output quantity and production value for each product you manufacture or process. The data inform the Index of Industrial Production (IIP) and capacity-utilization statistics. Results are published only in aggregated form and your information is protected by national statistics confidentiality provisions.

@@ -1869,7 +1869,7 @@ useEffect(() => {
What you'll do: - Add products → select HS code & unit → enter monthly Qty & Cost →set next-quarter targets. + Add products → select HS code & unit → enter monthly Qty & Value →set next-quarter targets.
@@ -1899,7 +1899,7 @@ useEffect(() => {

Data definitions

Product (HS Code – Name): Standard trade classification. Start typing to search by code or name.

Quantity (Qty): Physical output produced in the month, measured in the selected unit.

-

Value (AED AED): Total production cost for that month for a single product, excluding VAT/ duties. sales value for that product - VAT.

+

Value (AED AED): Total production value for that month for a single product, excluding VAT/ duties. sales value for that product - VAT.

Annual Installed Capacity: Maximum achievable annual output under normal operating conditions with existing equipment; do not include extraordinary overtime.

)} @@ -1909,7 +1909,7 @@ useEffect(() => {

Entry rules & validation

Mandatory: All fields in this step are required except "Reason for variation/0 Target" and free-text Notes.

-

Monthly entries: Enter Qty and Cost for each month in the Current and Forecast quarters. Use 0 where there is no output or cost.

+

Monthly entries: Enter Qty and Value for each month in the Current and Forecast quarters. Use 0 where there is no output or value.

Number only: Use a decimal point where needed. No negative values.

Units: Use one measurement unit per product across all months.

{/*

Delete: Removing a product here affects this survey only; it does not change your profile.

*/} diff --git a/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx b/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx index 0d91004..77a2b61 100644 --- a/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx +++ b/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx @@ -1108,7 +1108,7 @@ if (!establishment) { {/* Cost Row */} - Cost (AED) + Value (AED) {product.q4_oct_cost || '—'} {product.q4_nov_cost || '—'} diff --git a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx index 76e3d93..6951c72 100644 --- a/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx +++ b/ipi-survey-platform/src/pages/Admin/ValidationReview.jsx @@ -165,7 +165,7 @@ const ProductChart = ({ product, establishmentId }) => { // Cost bars { type: 'bar', - label: 'Cost (AED)', + label: 'Value (AED)', data: costData, backgroundColor: backgroundColors, borderColor: backgroundColors.map(c => c.replace('0.8', '1')), @@ -198,7 +198,7 @@ const ProductChart = ({ product, establishmentId }) => { position: 'left', title: { display: true, - text: 'Total Cost (AED)', + text: 'Total Value (AED)', font: { weight: 'bold' } @@ -1511,7 +1511,7 @@ setAdditionalForecastMonths([ - Cost (AED) + Value (AED) {showPreviousNext ? ( diff --git a/ipi-survey-platform/src/pages/Admin/configuration/EditCompanyProfile.jsx b/ipi-survey-platform/src/pages/Admin/configuration/EditCompanyProfile.jsx index 59e8cf7..e8efec9 100644 --- a/ipi-survey-platform/src/pages/Admin/configuration/EditCompanyProfile.jsx +++ b/ipi-survey-platform/src/pages/Admin/configuration/EditCompanyProfile.jsx @@ -812,6 +812,8 @@ const EditCompanyProfile = () => { width="100%" required readOnly + disabled + style={{ pointerEvents: 'none' }} error={fieldErrors.contactEmirate} /> { const downloadCsv = React.useCallback(() => { if (!filteredRows.length) return; - const headers = ['Year', 'Quarter', 'Submission Window', 'Total Products', 'Products Submitted', 'Total Cost (AED)', 'Status', 'Date Submitted', 'Action']; + const headers = ['Year', 'Quarter', 'Submission Window', 'Total Products', 'Products Submitted', 'Total Value (AED)', 'Status', 'Date Submitted', 'Action']; const csvRows = [headers.join(',')]; filteredRows.forEach((record) => { @@ -467,7 +467,7 @@ const showToast = (message, type = 'success') => {
{ const downloadCsv = React.useCallback(() => { if (!filteredRows.length) return; - const headers = ['Year', 'Quarter', 'Submission Window', 'Total Products', 'Products Submitted', 'Total Cost (AED)', 'Status', 'Date Submitted']; + const headers = ['Year', 'Quarter', 'Submission Window', 'Total Products', 'Products Submitted', 'Total Value (AED)', 'Status', 'Date Submitted']; const csvRows = [headers.join(',')]; filteredRows.forEach((record) => { csvRows.push([ @@ -202,7 +202,7 @@ const Overview = () => {