@if(admin_permission('creditnote.edit'))
@lang('crm.create_credit_note')
@endif
@include('admin.invoice.partials.sale_filter', ['statuses' => $statuses, 'sale_agents' => $sale_agents])
@lang('crm.credit_note_number') | @lang('crm.credit_note_date') | @lang('crm.client') | @lang('crm.credit_note_status') | @lang('crm.reference_no') | @lang('crm.credit_note_amount') | @lang('crm.credit_note_remaining_credits') |
---|
{!! format_credit_note_status($creditnote['status']) !!}
@if(admin_permission('creditnote.edit', $creditnote['clientid']))
id}/edit") }}" class="btn btn-outline bg-grey text-default btn-icon ml-2">
@endif
@if($creditnote->status == \CRM\Support\Enum\CreditNoteStatus::STATUS_OPEN)
@lang('crm.apply_to_invoice')
@endif
id}").'?output_type=I' }}" class="dropdown-item">@lang('crm.view_pdf')
id}").'?output_type=I' }}" target="_blank" class="dropdown-item">@lang('crm.view_pdf_in_new_window')
id}") }}" class="dropdown-item">@lang('crm.download')
id}").'?print=true' }}" target="_blank" class="dropdown-item">@lang('crm.print')
@if($creditnote->status == 1)
id}/void") }}" class="dropdown-item"> @lang('crm.credit_note_status_void')
@endif
@if(admin_permission('creditnote.delete', $creditnote['clientid']))
id}") }}" class="dropdown-item"
@if($creditnote->status == 2 && $creditnote->credits_used > 0)
data-popup="tooltip" data-placement="bottom" data-title="This credit note is with status Closed, you need first to delete the credits in order to delete the credit note." disabled
style="cursor: not-allowed;" onclick="javascript:;" @else
data-method="DELETE"
data-confirm-title="@lang('app.please_confirm')"
data-confirm-text="@lang('crm.confirm_action_prompt')"
data-confirm-delete="@lang('app.yes_delete_it')" @endif
> @lang('crm.delete_invoice')
@endif
@php
$credit_note_name = format_credit_note_number($creditnote['id']);
// Bill to
$creditnote_info = '' . trans('crm.invoice_bill_to') . '';
$creditnote_info .= '
' . trans('crm.ship_to') . ''; $creditnote_info .= '
' . trans('crm.credit_note_date') . ' : ' . local_date_format($creditnote->date) . '
'; if (!empty($creditnote->reference_no)) { $creditnote_info .= trans('crm.reference_no') . ' ' . $creditnote->reference_no . '
'; } @endphp
';
$creditnote_info .= format_customer_info($creditnote, 'credit_note', 'billing');
$creditnote_info .= '
';
// ship to to
if ($creditnote->include_shipping == 1 && $creditnote->show_shipping_on_credit_note == 1) {
$creditnote_info .= '' . trans('crm.ship_to') . ''; $creditnote_info .= '
';
$creditnote_info .= format_customer_info($creditnote, 'credit_note', 'shipping');
$creditnote_info .= '
';
}
$creditnote_info .= '' . trans('crm.credit_note_date') . ' : ' . local_date_format($creditnote->date) . '
'; if (!empty($creditnote->reference_no)) { $creditnote_info .= trans('crm.reference_no') . ' ' . $creditnote->reference_no . '
'; } @endphp
{!! format_organization_info() !!}
{!! $creditnote_info !!}
# | @lang('crm.invoice_table_item_heading') | Qty | @lang('crm.invoice_table_rate_heading') | @lang('crm.invoice_table_amount_heading') | @foreach($itemables as $itemable)
---|---|---|---|---|
{{$itemable['item_order']}} |
{{$itemable['item']}}
{{$itemable['description']}}
|
{{$itemable['qty']}} | {{$itemable['rate']}} | {{$itemable['qty'] * $itemable['rate']}} |
SubTotal
{!! $creditnote['currency_symbol'] !!}{{$creditnote['subtotal']}}
Total
{!! $creditnote['currency_symbol'] !!}{{$creditnote['total']}}
@lang('crm.credits_used')
{!! $creditnote['currency_symbol'] !!}{{ $creditnote->credits_used }}
@lang('crm.credits_remaining')
{!! $creditnote['currency_symbol'] !!}{{ $creditnote->remaining_credits }}
@lang('crm.credit_invoice_number') | @lang('crm.amount_credited') | @lang('crm.credit_date') |
---|---|---|
{{ format_invoice_number($credit['invoice_id'])}} | {!! $creditnote['currency_symbol'] !!}{{ $credit['amount'] }} | {{ local_date_format($credit['date_applied']) }} |
Credited Invoices Not Found |