bug fixed
This commit is contained in:
parent
a2db3ef468
commit
fb078d7968
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 18 KiB |
@ -272,7 +272,7 @@ export const DetailedOverview = ({ submission, onBack }) => {
|
|||||||
</div>,
|
</div>,
|
||||||
unit.uom || 'N/A',
|
unit.uom || 'N/A',
|
||||||
product.current_quantity || '0',
|
product.current_quantity || '0',
|
||||||
<span><img src={uae_currency} alt="AED" className="inline-block w-3.5 h-3 -mt-0.5 opacity-80" /> {product.current_cost || '0'}</span>,
|
<span><img src={uae_currency} alt="AED" className="inline-block w-5 h-5 -mt-0.5 opacity-80" /> {product.current_cost || '0'}</span>,
|
||||||
// <span
|
// <span
|
||||||
// key={`status-${index}`}
|
// key={`status-${index}`}
|
||||||
// className={`inline-flex items-center justify-center rounded-md px-3 py-1 text-xs font-medium ${
|
// className={`inline-flex items-center justify-center rounded-md px-3 py-1 text-xs font-medium ${
|
||||||
|
|||||||
@ -1198,7 +1198,7 @@ const location = useLocation();
|
|||||||
<h3 className="font-semibold mb-4 text-base">Data definitions</h3>
|
<h3 className="font-semibold mb-4 text-base">Data definitions</h3>
|
||||||
<p className="mb-3"><strong>Product (HS Code – Name):</strong> Standard trade classification. Start typing to search by code or name.</p>
|
<p className="mb-3"><strong>Product (HS Code – Name):</strong> Standard trade classification. Start typing to search by code or name.</p>
|
||||||
<p className="mb-3"><strong>Quantity (Qty):</strong> Physical output produced in the month, measured in the selected unit.</p>
|
<p className="mb-3"><strong>Quantity (Qty):</strong> Physical output produced in the month, measured in the selected unit.</p>
|
||||||
<p className="mb-3"><strong>Cost (AED <img src={uae_currency} alt="AED" className="inline-block w-2 h-2 -mt-0.5" />):</strong> Total production cost for that month, excluding VAT (e.g., materials, energy, direct labour, and manufacturing expenses). Do not include sales margins.</p>
|
<p className="mb-3"><strong>Cost (AED <img src={uae_currency} alt="AED" className="inline-block w-5 h-5 -mt-0.5" />):</strong> Total production cost for that month, excluding VAT (e.g., materials, energy, direct labour, and manufacturing expenses). Do not include sales margins.</p>
|
||||||
<p className="mb-0"><strong>Annual Installed Capacity:</strong> Maximum achievable annual output under normal operating conditions with existing equipment; do not include extraordinary overtime.</p>
|
<p className="mb-0"><strong>Annual Installed Capacity:</strong> Maximum achievable annual output under normal operating conditions with existing equipment; do not include extraordinary overtime.</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -106,8 +106,8 @@ const Overview = () => {
|
|||||||
10, // Always show 10 for Total Products
|
10, // Always show 10 for Total Products
|
||||||
record.product_count || 0, // Show actual submitted products count
|
record.product_count || 0, // Show actual submitted products count
|
||||||
record.total_cost !== undefined ? (
|
record.total_cost !== undefined ? (
|
||||||
<span className="inline-flex items-center">
|
<span className="flex items-center">
|
||||||
<img src={uae_currency} alt="AED" className="inline-block w-3.5 h-3 -mt-0.5 opacity-80 mr-1" />
|
<img src={uae_currency} alt="AED" className="inline-block w-6 h-6 -mt-0.5 opacity-80 mr-1" />
|
||||||
{record.total_cost}
|
{record.total_cost}
|
||||||
</span>
|
</span>
|
||||||
) : '-',
|
) : '-',
|
||||||
@ -143,10 +143,9 @@ const Overview = () => {
|
|||||||
record.year,
|
record.year,
|
||||||
record.quarter,
|
record.quarter,
|
||||||
`${record.quarter} ${record.year}`,
|
`${record.quarter} ${record.year}`,
|
||||||
10, // Always show 10 for Total Products in CSV
|
10,
|
||||||
record.product_count || 0, // Show actual submitted products count
|
record.product_count || 0,
|
||||||
record.total_cost !== undefined ? record.total_cost : '-', // Show total cost from API or '-' if not available
|
record.total_cost !== undefined ? record.total_cost : '-',
|
||||||
record.status,
|
|
||||||
formatDate(record.created_at)
|
formatDate(record.created_at)
|
||||||
].map((value) => `"${String(value).replace(/"/g, '""')}"`).join(','));
|
].map((value) => `"${String(value).replace(/"/g, '""')}"`).join(','));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user