Fixes for client registration

This commit is contained in:
David Bomba 2022-02-12 16:05:05 +11:00
parent 447dfc1f8c
commit 62ac61fd93
3 changed files with 7 additions and 1 deletions

View File

@ -387,6 +387,9 @@ class PreviewController extends BaseController
'user_id' => auth()->user()->id, 'user_id' => auth()->user()->id,
'company_id' => auth()->user()->company()->id, 'company_id' => auth()->user()->company()->id,
'client_id' => $client->id, 'client_id' => $client->id,
'terms' => 'Sample Terms',
'footer' => 'Sample Footer',
'public_notes' => 'Sample Public Notes',
]); ]);
$invitation = InvoiceInvitation::factory()->create([ $invitation = InvoiceInvitation::factory()->create([

View File

@ -243,6 +243,9 @@ class PaymentEmailEngine extends BaseEmailEngine
$data['$invoice.po_number'] = ['value' => $this->formatPoNumber(), 'label' => ctrans('texts.po_number')]; $data['$invoice.po_number'] = ['value' => $this->formatPoNumber(), 'label' => ctrans('texts.po_number')];
$data['$poNumber'] = &$data['$invoice.po_number']; $data['$poNumber'] = &$data['$invoice.po_number'];
$arrKeysLength = array_map('strlen', array_keys($data));
array_multisort($arrKeysLength, SORT_DESC, $data);
return $data; return $data;
} }

View File

@ -53,7 +53,7 @@
<select <select
id="shipping_country" id="shipping_country"
class="input w-full form-select" class="input w-full form-select"
name="shipping_country"> name="country_id">
<option value="none"></option> <option value="none"></option>
@foreach(App\Utils\TranslationHelper::getCountries() as $country) @foreach(App\Utils\TranslationHelper::getCountries() as $country)
<option <option