Show a monthly fee job's billed periods on a page of its own
The new billing::job-months page lists the months that created billing materials have billed for a monthly fee job, with links to the materials and the total, and the months still to bill up to the current month, counted the same way as a new material counts them. The job page links to it next to the payment basis for those who manage billing. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -248,7 +248,14 @@ new class extends Component
|
||||
<dd>{{ __('jobs.kinds.'.$job->kind->value) }}</dd>
|
||||
|
||||
<dt class="font-medium">{{ __('jobs.fields.payment_basis') }}</dt>
|
||||
<dd>{{ $job->paymentBasis === null ? __('jobs.not_set') : __('jobs.payment_bases.'.$job->paymentBasis->value) }}</dd>
|
||||
<dd>
|
||||
{{ $job->paymentBasis === null ? __('jobs.not_set') : __('jobs.payment_bases.'.$job->paymentBasis->value) }}
|
||||
@if ($job->paymentBasis?->value === 'monthly_fee')
|
||||
@can('billing.manage')
|
||||
<x-link :href="route('billing.job-months', $job->id)" navigate class="ml-2">{{ __('jobs.monthly_billing_link') }}</x-link>
|
||||
@endcan
|
||||
@endif
|
||||
</dd>
|
||||
|
||||
<dt class="font-medium">{{ __('jobs.fields.estimated_hours') }}</dt>
|
||||
<dd>{{ $job->estimatedHours === null ? __('jobs.not_set') : str_replace('.', ',', $job->estimatedHours).' h' }}</dd>
|
||||
|
||||
Reference in New Issue
Block a user