mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for client registration
This commit is contained in:
parent
447dfc1f8c
commit
62ac61fd93
@ -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([
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user