use the correct translation for cancellations
* Some languages have different words for cancelling an action vs cancelling an invoice.
This commit is contained in:
parent
8a5eeea642
commit
fc52a2456c
@ -31,7 +31,7 @@ class Bills extends BulkAction
|
||||
],
|
||||
'cancelled' => [
|
||||
'icon' => 'cancel',
|
||||
'name' => 'general.cancel',
|
||||
'name' => 'documents.actions.cancel',
|
||||
'message' => 'bulk_actions.message.cancelled',
|
||||
'permission' => 'update-purchases-bills',
|
||||
],
|
||||
|
@ -31,7 +31,7 @@ class Invoices extends BulkAction
|
||||
],
|
||||
'cancelled' => [
|
||||
'icon' => 'cancel',
|
||||
'name' => 'general.cancel',
|
||||
'name' => 'documents.actions.cancel',
|
||||
'message' => 'bulk_actions.message.cancelled',
|
||||
'permission' => 'update-sales-invoices',
|
||||
],
|
||||
|
@ -614,7 +614,7 @@ class Document extends Model
|
||||
if (! in_array($this->status, ['cancelled', 'draft'])) {
|
||||
try {
|
||||
$actions[] = [
|
||||
'title' => trans('general.cancel'),
|
||||
'title' => trans('documents.actions.cancel'),
|
||||
'icon' => 'cancel',
|
||||
'url' => route($prefix . '.cancelled', $this->id),
|
||||
'permission' => 'update-' . $group . '-' . $permission_prefix,
|
||||
|
@ -10,6 +10,10 @@ return [
|
||||
'billing' => 'Billing',
|
||||
'advanced' => 'Advanced',
|
||||
|
||||
'actions' => [
|
||||
'cancel' => 'Cancel',
|
||||
],
|
||||
|
||||
'invoice_detail' => [
|
||||
'marked' => '<b>You</b> marked this invoice as',
|
||||
'services' => 'Services',
|
||||
|
@ -113,7 +113,7 @@
|
||||
<x-dropdown.divider />
|
||||
|
||||
<x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}">
|
||||
{{ trans('general.cancel') }}
|
||||
{{ trans('documents.actions.cancel') }}
|
||||
</x-dropdown.link>
|
||||
@endcan
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user