mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Fix for custom fields in invoice templates
This commit is contained in:
		
							parent
							
								
									c57c083740
								
							
						
					
					
						commit
						d76edb0fce
					
				@ -61,10 +61,10 @@ class TemplateService
 | 
				
			|||||||
            '$viewButton' => Form::emailViewButton($invitation->getLink(), $invoice->getEntityType()).'$password',
 | 
					            '$viewButton' => Form::emailViewButton($invitation->getLink(), $invoice->getEntityType()).'$password',
 | 
				
			||||||
            '$paymentLink' => $invitation->getLink('payment').'$password',
 | 
					            '$paymentLink' => $invitation->getLink('payment').'$password',
 | 
				
			||||||
            '$paymentButton' => Form::emailPaymentButton($invitation->getLink('payment')).'$password',
 | 
					            '$paymentButton' => Form::emailPaymentButton($invitation->getLink('payment')).'$password',
 | 
				
			||||||
            '$customClient1' => $account->custom_client_label1,
 | 
					            '$customClient1' => $client->custom_value1,
 | 
				
			||||||
            '$customClient2' => $account->custom_client_label2,
 | 
					            '$customClient2' => $client->custom_value2,
 | 
				
			||||||
            '$customInvoice1' => $account->custom_invoice_text_label1,
 | 
					            '$customInvoice1' => $invoice->custom_text_value1,
 | 
				
			||||||
            '$customInvoice2' => $account->custom_invoice_text_label2,
 | 
					            '$customInvoice2' => $invoice->custom_text_value2,
 | 
				
			||||||
            '$documents' => $documentsHTML,
 | 
					            '$documents' => $documentsHTML,
 | 
				
			||||||
            '$autoBill' => empty($data['autobill']) ? '' : $data['autobill'],
 | 
					            '$autoBill' => empty($data['autobill']) ? '' : $data['autobill'],
 | 
				
			||||||
            '$portalLink' => $invitation->contact->link,
 | 
					            '$portalLink' => $invitation->contact->link,
 | 
				
			||||||
 | 
				
			|||||||
@ -148,7 +148,7 @@
 | 
				
			|||||||
                            <li>$customInvoice1</li>
 | 
					                            <li>$customInvoice1</li>
 | 
				
			||||||
                        @endif
 | 
					                        @endif
 | 
				
			||||||
                        @if ($account->custom_invoice_text_label2)
 | 
					                        @if ($account->custom_invoice_text_label2)
 | 
				
			||||||
                            <li>$customInvoice1</li>
 | 
					                            <li>$customInvoice2</li>
 | 
				
			||||||
                        @endif
 | 
					                        @endif
 | 
				
			||||||
                        @if (count($account->account_gateways) > 0)
 | 
					                        @if (count($account->account_gateways) > 0)
 | 
				
			||||||
                            @foreach (\App\Models\Gateway::$gatewayTypes as $type)
 | 
					                            @foreach (\App\Models\Gateway::$gatewayTypes as $type)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user