diff --git a/config/type.php b/config/type.php index 81b1b4af9..89bb4621f 100644 --- a/config/type.php +++ b/config/type.php @@ -99,7 +99,8 @@ return [ //'create' => 'create-sales-revenues', ], 'translation' => [ - 'prefix' => 'revenues', // this translation file name. + 'prefix' => 'revenues', // this translation file name. + 'related_document_amount' => 'invoices.invoice_amount', ], 'contact_type' => 'customer', ], @@ -116,7 +117,8 @@ return [ //'create' => 'create-purchases-payments', ], 'translation' => [ - 'prefix' => 'payments', // this translation file name. + 'prefix' => 'payments', // this translation file name. + 'related_document_amount' => 'bills.bill_amount', ], 'contact_type' => 'vendor', ], diff --git a/resources/lang/en-GB/bills.php b/resources/lang/en-GB/bills.php index 0963c31af..34f0494f5 100644 --- a/resources/lang/en-GB/bills.php +++ b/resources/lang/en-GB/bills.php @@ -4,6 +4,7 @@ return [ 'bill_number' => 'Bill Number', 'bill_date' => 'Bill Date', + 'bill_amount' => 'Bill Amount', 'total_price' => 'Total Price', 'due_date' => 'Due Date', 'order_number' => 'Order Number', diff --git a/resources/lang/en-GB/invoices.php b/resources/lang/en-GB/invoices.php index c5daffdea..0bb50a0f0 100644 --- a/resources/lang/en-GB/invoices.php +++ b/resources/lang/en-GB/invoices.php @@ -4,6 +4,7 @@ return [ 'invoice_number' => 'Invoice Number', 'invoice_date' => 'Invoice Date', + 'invoice_amount' => 'Invoice Amount', 'total_price' => 'Total Price', 'due_date' => 'Due Date', 'order_number' => 'Order Number', diff --git a/resources/views/components/transactions/show/histories.blade.php b/resources/views/components/transactions/show/histories.blade.php index a7fec1bb9..9aeb18eed 100644 --- a/resources/views/components/transactions/show/histories.blade.php +++ b/resources/views/components/transactions/show/histories.blade.php @@ -33,7 +33,7 @@
- @stack('company_logo_start') - @if (!$hideCompanyLogo) + @if (!$hideCompanyLogo) + |
+ @stack('company_logo_start')
@if (!empty($document->contact->logo) && !empty($document->contact->logo->id))
|
- - @stack('company_details_start') - @if (!$hideCompanyDetails) + @stack('company_logo_end') + | + @endif + + @if (!$hideCompanyDetails) +
+ @stack('company_details_start')
@if (!$hideCompanyName)
{{ setting('company.name') }}@endif - @if (!$hideCompanyAddress) -{!! nl2br(setting('company.address')) !!} - @endif + @if (!$hideCompanyAddress) +{!! nl2br(setting('company.address')) !!} + @endif - @if (!$hideCompanyTaxNumber) -- @if (setting('company.tax_number')) - {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} - @endif - - @endif + @if (!$hideCompanyTaxNumber) ++ @if (setting('company.tax_number')) + {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} + @endif + + @endif - @if (!$hideCompanyPhone) -- @if (setting('company.phone')) - {{ setting('company.phone') }} - @endif - - @endif + @if (!$hideCompanyPhone) ++ @if (setting('company.phone')) + {{ setting('company.phone') }} + @endif + + @endif - @if (!$hideCompanyEmail) -{{ setting('company.email') }} - @endif - @endif - @stack('company_details_end') - |
+ @if (!$hideCompanyEmail)
+
- {{ trans('invoices.revenue_made') }}++ {{ trans($textContentTitle) }} + |
{{ trans('general.date') }}: | -@date($transaction->paid_at) | ++ {{ trans($textPaidAt) }}: + | + ++ @date($transaction->paid_at) + |
{{ trans_choice('general.accounts', 1) }}: | -{{ $transaction->account->name }} | ++ {{ trans_choice($textAccount, 1) }}: + | + ++ {{ $transaction->account->name }} + |
{{ trans_choice('general.categories', 1) }}: | -{{ $transaction->category->name }} | ++ {{ trans_choice($textCategory, 1) }}: + | + ++ {{ $transaction->category->name }} + |
{{ trans_choice('general.payment_methods', 1) }}: | -{{ $payment_methods[$transaction->payment_method] }} | ++ {{ trans_choice($textPaymentMethods, 1) }}: + | + ++ {{ $payment_methods[$transaction->payment_method] }} + |
{{ trans('general.reference') }}: | -{{ $transaction->reference }} | ++ {{ trans($textReference) }}: + | + ++ {{ $transaction->reference }} + |
{{ trans('general.description') }}: | ++ {{ trans($textDescription) }}: + | +- | +|
- {{ trans('general.paid_by') }}++ {{ trans($textDescription) }} + |
|||
- {{ trans($textContactInfo) }} - |
- |||
- {{ $transaction->contact->name }} - |
- |||
+ {{ trans($textContactInfo) }} + |
+ |||
- {!! nl2br($transaction->contact->address) !!} - |
- |||
+ {{ $transaction->contact->name }} + |
+ |||
- - @if ($transaction->contact->tax_number) - {{ trans('general.tax_number') }}: {{ $transaction->contact->tax_number }} - @endif - - |
- |||
+ + {!! nl2br($transaction->contact->address) !!} + + |
+ |||
- - @if ($transaction->contact->phone) - {{ $transaction->contact->phone }} - @endif - - |
- |||
+ + @if ($transaction->contact->tax_number) + {{ trans('general.tax_number') }}: {{ $transaction->contact->tax_number }} + @endif + + |
+ |||
- - {{ $transaction->contact->email }} - - |
- |||
+ + @if ($transaction->contact->phone) + {{ $transaction->contact->phone }} + @endif + + |
+ |||
+ + {{ $transaction->contact->email }} + + |
+
- {{ trans('general.amount') }}++ {{ trans($textAmount) }} ++@money($transaction->amount, $transaction->currency_code, true) @@ -203,81 +246,92 @@ |
- |
+ |
- {{ trans('invoices.related_revenue') }}+{{ trans($textReleatedTransansaction) }} |
- {{ trans_choice('general.numbers', 1) }} - | +|||||||||
---|---|---|---|---|---|---|---|---|---|
+ {{ trans_choice($textReleatedDocumentNumber, 1) }} + | + @endif -- {{ trans_choice('general.customers', 1) }} - | + @if (!$hideReletadContact) ++ {{ trans_choice($textReleatedContact, 1) }} + | + @endif -- {{ trans('invoices.invoice_date') }} - | + @if (!$hideReletadDocumentDate) ++ {{ trans($textReleatedDocumentDate) }} + | + @endif -- {{ trans('invoices.invoice_date') }} - | + @if (!$hideReletadDocumentAmount) ++ {{ trans($textReleatedDocumentAmount) }} + | + @endif -- {{ trans('general.amount') }} - | + @if (!$hideReletadAmount) ++ {{ trans($textReleatedAmount) }} + | + @endif|
- - {{ $transaction->document->document_number }} - - | + @if (!$hideReletadDocumentNumber) ++ + {{ $transaction->document->document_number }} + + | + @endif -- {{ $transaction->document->contact_name }} - | + @if (!$hideReletadContact) ++ {{ $transaction->document->contact_name }} + | + @endif -- @date($transaction->document->due_at) - | + @if (!$hideReletadDocumentDate) ++ @date($transaction->document->due_at) + | + @endif -- @money($transaction->document->amount, $transaction->document->currency_code, true) - | + @if (!$hideReletadDocumentAmount) ++ @money($transaction->document->amount, $transaction->document->currency_code, true) + | + @endif -- @money($transaction->amount, $transaction->currency_code, true) - | + @if (!$hideReletadAmount) ++ @money($transaction->amount, $transaction->currency_code, true) + | + @endif
- - {{ trans('invoices.overdue_revenue') }}: @money($transaction->amount, $transaction->currency_code, true) - - |
-