mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -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, ''),
 | 
					                        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, '')
 | 
					                        account_number: $('#account_number').val().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '')
 | 
				
			||||||
                        @else
 | 
					                        @else
 | 
				
			||||||
 | 
					                        email: $('#email').val(),
 | 
				
			||||||
                        name: $('#first_name').val() + ' ' + $('#last_name').val(),
 | 
					                        name: $('#first_name').val() + ' ' + $('#last_name').val(),
 | 
				
			||||||
                        address_line1: $('#address1').val(),
 | 
					                        address_line1: $('#address1').val(),
 | 
				
			||||||
                        address_line2: $('#address2').val(),
 | 
					                        address_line2: $('#address2').val(),
 | 
				
			||||||
@ -280,6 +281,7 @@
 | 
				
			|||||||
        {{ Former::populate($client) }}
 | 
					        {{ Former::populate($client) }}
 | 
				
			||||||
        {{ Former::populateField('first_name', $contact->first_name) }}
 | 
					        {{ Former::populateField('first_name', $contact->first_name) }}
 | 
				
			||||||
        {{ Former::populateField('last_name', $contact->last_name) }}
 | 
					        {{ Former::populateField('last_name', $contact->last_name) }}
 | 
				
			||||||
 | 
					        {{ Former::populateField('email', $contact->email) }}
 | 
				
			||||||
        @if (!$client->country_id && $client->account->country_id)
 | 
					        @if (!$client->country_id && $client->account->country_id)
 | 
				
			||||||
            {{ Former::populateField('country_id', $client->account->country_id) }}
 | 
					            {{ Former::populateField('country_id', $client->account->country_id) }}
 | 
				
			||||||
            {{ Former::populateField('country', $client->account->country->iso_3166_2) }}
 | 
					            {{ Former::populateField('country', $client->account->country->iso_3166_2) }}
 | 
				
			||||||
@ -351,16 +353,14 @@
 | 
				
			|||||||
                                        ->label('') !!}
 | 
					                                        ->label('') !!}
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                        @if (isset($paymentTitle))
 | 
					                        <div class="row" style="display:{{ isset($paymentTitle) ? 'block' : 'none' }}">
 | 
				
			||||||
                            <div class="row">
 | 
					                            <div class="col-md-12">
 | 
				
			||||||
                                <div class="col-md-12">
 | 
					                                {!! Former::text('email')
 | 
				
			||||||
                                    {!! Former::text('email')
 | 
					                                        ->placeholder(trans('texts.email'))
 | 
				
			||||||
                                            ->placeholder(trans('texts.email'))
 | 
					                                        ->autocomplete('email')
 | 
				
			||||||
                                            ->autocomplete('email')
 | 
					                                        ->label('') !!}
 | 
				
			||||||
                                            ->label('') !!}
 | 
					 | 
				
			||||||
                                </div>
 | 
					 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                        @endif
 | 
					                        </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        <p> <br/> </p>
 | 
					                        <p> <br/> </p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user