feat: add wartosc_zlecenia field to projects table and update related functionalities

This commit is contained in:
2025-11-14 09:04:46 +01:00
parent 056198ff16
commit 3f87ea16f2
6 changed files with 78 additions and 3 deletions

View File

@@ -421,6 +421,19 @@ export default function ProjectViewPage() {
{project.investment_number || "N/A"}
</p>
</div>
{session?.user?.role === 'team_lead' && project.wartosc_zlecenia && (
<div>
<span className="text-sm font-medium text-gray-500 block mb-1">
Wartość zlecenia
</span>
<p className="text-gray-900 font-medium">
{parseFloat(project.wartosc_zlecenia).toLocaleString('pl-PL', {
style: 'currency',
currency: 'PLN'
})}
</p>
</div>
)}
</div>
{project.contact && (