mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:07:35 -05:00 
			
		
		
		
	Merge in change to include email when creating Stripe customer
This commit is contained in:
		
							parent
							
								
									41f4c98e08
								
							
						
					
					
						commit
						07a82870e1
					
				@ -83,6 +83,7 @@
 | 
			
		||||
                        routing_number: $('#routing_number').val().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''),
 | 
			
		||||
                        account_number: $('#account_number').val().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')
 | 
			
		||||
                        @else
 | 
			
		||||
                        email: $('#email').val(),
 | 
			
		||||
                        name: $('#first_name').val() + ' ' + $('#last_name').val(),
 | 
			
		||||
                        address_line1: $('#address1').val(),
 | 
			
		||||
                        address_line2: $('#address2').val(),
 | 
			
		||||
@ -280,6 +281,7 @@
 | 
			
		||||
        {{ Former::populate($client) }}
 | 
			
		||||
        {{ Former::populateField('first_name', $contact->first_name) }}
 | 
			
		||||
        {{ Former::populateField('last_name', $contact->last_name) }}
 | 
			
		||||
        {{ Former::populateField('email', $contact->email) }}
 | 
			
		||||
        @if (!$client->country_id && $client->account->country_id)
 | 
			
		||||
            {{ Former::populateField('country_id', $client->account->country_id) }}
 | 
			
		||||
            {{ Former::populateField('country', $client->account->country->iso_3166_2) }}
 | 
			
		||||
@ -351,8 +353,7 @@
 | 
			
		||||
                                        ->label('') !!}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        @if (isset($paymentTitle))
 | 
			
		||||
                            <div class="row">
 | 
			
		||||
                        <div class="row" style="display:{{ isset($paymentTitle) ? 'block' : 'none' }}">
 | 
			
		||||
                            <div class="col-md-12">
 | 
			
		||||
                                {!! Former::text('email')
 | 
			
		||||
                                        ->placeholder(trans('texts.email'))
 | 
			
		||||
@ -360,7 +361,6 @@
 | 
			
		||||
                                        ->label('') !!}
 | 
			
		||||
                            </div>
 | 
			
		||||
                        </div>
 | 
			
		||||
                        @endif
 | 
			
		||||
 | 
			
		||||
                        <p> <br/> </p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user