mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Private note in a payment #1478
This commit is contained in:
parent
7d466f5569
commit
a99065f70b
@ -189,6 +189,9 @@ class PaymentRepository extends BaseRepository
|
|||||||
if (isset($input['transaction_reference'])) {
|
if (isset($input['transaction_reference'])) {
|
||||||
$payment->transaction_reference = trim($input['transaction_reference']);
|
$payment->transaction_reference = trim($input['transaction_reference']);
|
||||||
}
|
}
|
||||||
|
if (isset($input['private_notes'])) {
|
||||||
|
$payment->private_notes = trim($input['private_notes']);
|
||||||
|
}
|
||||||
|
|
||||||
if (! $publicId) {
|
if (! $publicId) {
|
||||||
$clientId = $input['client_id'];
|
$clientId = $input['client_id'];
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
<td>{{ trans('texts.vat_number') }}</td>
|
<td>{{ trans('texts.vat_number') }}</td>
|
||||||
<td>{{ trans('texts.website') }}</td>
|
<td>{{ trans('texts.website') }}</td>
|
||||||
<td>{{ trans('texts.phone') }}</td>
|
<td>{{ trans('texts.phone') }}</td>
|
||||||
|
<td>{{ trans('texts.public_notes') }}</td>
|
||||||
|
<td>{{ trans('texts.private_notes') }}</td>
|
||||||
@if ($account->custom_client_label1)
|
@if ($account->custom_client_label1)
|
||||||
<td>{{ $account->custom_client_label1 }}</td>
|
<td>{{ $account->custom_client_label1 }}</td>
|
||||||
@endif
|
@endif
|
||||||
@ -41,6 +43,8 @@
|
|||||||
<td>{{ $client->vat_number }}</td>
|
<td>{{ $client->vat_number }}</td>
|
||||||
<td>{{ $client->website }}</td>
|
<td>{{ $client->website }}</td>
|
||||||
<td>{{ $client->work_phone }}</td>
|
<td>{{ $client->work_phone }}</td>
|
||||||
|
<td>{{ $client->public_notes }}</td>
|
||||||
|
<td>{{ $client->private_notes }}</td>
|
||||||
@if ($account->custom_client_label1)
|
@if ($account->custom_client_label1)
|
||||||
<td>{{ $client->custom_value1 }}</td>
|
<td>{{ $client->custom_value1 }}</td>
|
||||||
@endif
|
@endif
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
<td>{{ trans('texts.status') }}</td>
|
<td>{{ trans('texts.status') }}</td>
|
||||||
<td>{{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_date' : 'texts.invoice_date') }}</td>
|
<td>{{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_date' : 'texts.invoice_date') }}</td>
|
||||||
<td>{{ trans('texts.due_date') }}</td>
|
<td>{{ trans('texts.due_date') }}</td>
|
||||||
|
<td>{{ trans('texts.public_notes') }}</td>
|
||||||
|
<td>{{ trans('texts.private_notes') }}</td>
|
||||||
@if ($account->custom_invoice_label1)
|
@if ($account->custom_invoice_label1)
|
||||||
<td>{{ $account->custom_invoice_label1 }}</td>
|
<td>{{ $account->custom_invoice_label1 }}</td>
|
||||||
@endif
|
@endif
|
||||||
@ -40,6 +42,8 @@
|
|||||||
<td>{{ $invoice->present()->status }}</td>
|
<td>{{ $invoice->present()->status }}</td>
|
||||||
<td>{{ $invoice->present()->invoice_date }}</td>
|
<td>{{ $invoice->present()->invoice_date }}</td>
|
||||||
<td>{{ $invoice->present()->due_date }}</td>
|
<td>{{ $invoice->present()->due_date }}</td>
|
||||||
|
<td>{{ $invoice->public_notes }}</td>
|
||||||
|
<td>{{ $invoice->private_notes }}</td>
|
||||||
@if ($account->custom_invoice_label1)
|
@if ($account->custom_invoice_label1)
|
||||||
<td>{{ $invoice->custom_value1 }}</td>
|
<td>{{ $invoice->custom_value1 }}</td>
|
||||||
@endif
|
@endif
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
<td>{{ trans('texts.payment_date') }}</td>
|
<td>{{ trans('texts.payment_date') }}</td>
|
||||||
<td>{{ trans('texts.method') }}</td>
|
<td>{{ trans('texts.method') }}</td>
|
||||||
<td>{{ trans('texts.transaction_reference') }}</td>
|
<td>{{ trans('texts.transaction_reference') }}</td>
|
||||||
|
<td>{{ trans('texts.private_notes') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach ($payments as $payment)
|
@foreach ($payments as $payment)
|
||||||
@ -22,6 +23,7 @@
|
|||||||
<td>{{ $payment->present()->payment_date }}</td>
|
<td>{{ $payment->present()->payment_date }}</td>
|
||||||
<td>{{ $payment->present()->method }}</td>
|
<td>{{ $payment->present()->method }}</td>
|
||||||
<td>{{ $payment->transaction_reference }}</td>
|
<td>{{ $payment->transaction_reference }}</td>
|
||||||
|
<td>{{ $payment->private_notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -69,6 +69,7 @@
|
|||||||
->addGroupClass('payment_date')
|
->addGroupClass('payment_date')
|
||||||
->append('<i class="glyphicon glyphicon-calendar"></i>') !!}
|
->append('<i class="glyphicon glyphicon-calendar"></i>') !!}
|
||||||
{!! Former::text('transaction_reference') !!}
|
{!! Former::text('transaction_reference') !!}
|
||||||
|
{!! Former::textarea('private_notes') !!}
|
||||||
|
|
||||||
@if (!$payment)
|
@if (!$payment)
|
||||||
{!! Former::checkbox('email_receipt')
|
{!! Former::checkbox('email_receipt')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user