feat: add customer contract number to project view and update project query
This commit is contained in:
@@ -588,10 +588,19 @@ export default function ProjectViewPage() {
|
||||
</div>
|
||||
<div>
|
||||
<span className="text-sm font-medium text-gray-500 block mb-1">
|
||||
Nazwa umowy
|
||||
Numer umowy klienta
|
||||
</span>
|
||||
<p className="text-gray-900 font-medium">
|
||||
{project.contract_name || "N/A"}
|
||||
{project.customer_contract_number ? (
|
||||
<Link
|
||||
href={`/contracts/${project.contract_id}`}
|
||||
className="text-inherit hover:text-inherit no-underline"
|
||||
>
|
||||
{project.customer_contract_number}
|
||||
</Link>
|
||||
) : (
|
||||
"N/A"
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -222,6 +222,7 @@ export function getProjectWithContract(id) {
|
||||
p.*,
|
||||
c.contract_number,
|
||||
c.contract_name,
|
||||
c.customer_contract_number,
|
||||
c.customer,
|
||||
c.investor,
|
||||
creator.name as created_by_name,
|
||||
|
||||
Reference in New Issue
Block a user