1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Private note in a payment #1478

This commit is contained in:
Hillel Coren 2017-05-16 16:47:20 +03:00
parent 7d466f5569
commit a99065f70b
5 changed files with 14 additions and 0 deletions

View File

@ -189,6 +189,9 @@ class PaymentRepository extends BaseRepository
if (isset($input['transaction_reference'])) {
$payment->transaction_reference = trim($input['transaction_reference']);
}
if (isset($input['private_notes'])) {
$payment->private_notes = trim($input['private_notes']);
}
if (! $publicId) {
$clientId = $input['client_id'];

View File

@ -15,6 +15,8 @@
<td>{{ trans('texts.vat_number') }}</td>
<td>{{ trans('texts.website') }}</td>
<td>{{ trans('texts.phone') }}</td>
<td>{{ trans('texts.public_notes') }}</td>
<td>{{ trans('texts.private_notes') }}</td>
@if ($account->custom_client_label1)
<td>{{ $account->custom_client_label1 }}</td>
@endif
@ -41,6 +43,8 @@
<td>{{ $client->vat_number }}</td>
<td>{{ $client->website }}</td>
<td>{{ $client->work_phone }}</td>
<td>{{ $client->public_notes }}</td>
<td>{{ $client->private_notes }}</td>
@if ($account->custom_client_label1)
<td>{{ $client->custom_value1 }}</td>
@endif

View File

@ -11,6 +11,8 @@
<td>{{ trans('texts.status') }}</td>
<td>{{ trans(isset($entityType) && $entityType == ENTITY_QUOTE ? 'texts.quote_date' : 'texts.invoice_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)
<td>{{ $account->custom_invoice_label1 }}</td>
@endif
@ -40,6 +42,8 @@
<td>{{ $invoice->present()->status }}</td>
<td>{{ $invoice->present()->invoice_date }}</td>
<td>{{ $invoice->present()->due_date }}</td>
<td>{{ $invoice->public_notes }}</td>
<td>{{ $invoice->private_notes }}</td>
@if ($account->custom_invoice_label1)
<td>{{ $invoice->custom_value1 }}</td>
@endif

View File

@ -8,6 +8,7 @@
<td>{{ trans('texts.payment_date') }}</td>
<td>{{ trans('texts.method') }}</td>
<td>{{ trans('texts.transaction_reference') }}</td>
<td>{{ trans('texts.private_notes') }}</td>
</tr>
@foreach ($payments as $payment)
@ -22,6 +23,7 @@
<td>{{ $payment->present()->payment_date }}</td>
<td>{{ $payment->present()->method }}</td>
<td>{{ $payment->transaction_reference }}</td>
<td>{{ $payment->private_notes }}</td>
</tr>
@endif
@endforeach

View File

@ -69,6 +69,7 @@
->addGroupClass('payment_date')
->append('<i class="glyphicon glyphicon-calendar"></i>') !!}
{!! Former::text('transaction_reference') !!}
{!! Former::textarea('private_notes') !!}
@if (!$payment)
{!! Former::checkbox('email_receipt')