feat: track wartosc_zlecenia in project updates and display in ProjectViewPage for team leads
This commit is contained in:
@@ -422,17 +422,17 @@ export default function ProjectViewPage() {
|
||||
</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>
|
||||
<FieldWithHistory
|
||||
tableName="projects"
|
||||
recordId={project.project_id}
|
||||
fieldName="wartosc_zlecenia"
|
||||
currentValue={project.wartosc_zlecenia}
|
||||
displayValue={parseFloat(project.wartosc_zlecenia).toLocaleString('pl-PL', {
|
||||
style: 'currency',
|
||||
currency: 'PLN'
|
||||
})}
|
||||
label="Wartość zlecenia"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user