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>,
|
||||
unit.uom || 'N/A',
|
||||
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
|
||||
// key={`status-${index}`}
|
||||
// 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>
|
||||
<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>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>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@ -106,8 +106,8 @@ const Overview = () => {
|
||||
10, // Always show 10 for Total Products
|
||||
record.product_count || 0, // Show actual submitted products count
|
||||
record.total_cost !== undefined ? (
|
||||
<span className="inline-flex items-center">
|
||||
<img src={uae_currency} alt="AED" className="inline-block w-3.5 h-3 -mt-0.5 opacity-80 mr-1" />
|
||||
<span className="flex items-center">
|
||||
<img src={uae_currency} alt="AED" className="inline-block w-6 h-6 -mt-0.5 opacity-80 mr-1" />
|
||||
{record.total_cost}
|
||||
</span>
|
||||
) : '-',
|
||||
@ -143,10 +143,9 @@ const Overview = () => {
|
||||
record.year,
|
||||
record.quarter,
|
||||
`${record.quarter} ${record.year}`,
|
||||
10, // Always show 10 for Total Products in CSV
|
||||
record.product_count || 0, // Show actual submitted products count
|
||||
record.total_cost !== undefined ? record.total_cost : '-', // Show total cost from API or '-' if not available
|
||||
record.status,
|
||||
10,
|
||||
record.product_count || 0,
|
||||
record.total_cost !== undefined ? record.total_cost : '-',
|
||||
formatDate(record.created_at)
|
||||
].map((value) => `"${String(value).replace(/"/g, '""')}"`).join(','));
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user