mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:27:29 -05:00 
			
		
		
		
	Fixes for template
This commit is contained in:
		
							parent
							
								
									9cc7723949
								
							
						
					
					
						commit
						18fbcf75f7
					
				@ -140,7 +140,7 @@ class EmailTemplateDefaults
 | 
			
		||||
 | 
			
		||||
    public static function emailPaymentFailedTemplate()
 | 
			
		||||
    {
 | 
			
		||||
        return '<p>$client<br><br>'.ctrans('texts.client_payment_failure_body', ['invoice' => '$number', 'amount' => '$amount']).'</p><div>$payment_error</div><br><div>$payment_button</div>';
 | 
			
		||||
        return '<p>$client<br><br>'.ctrans('texts.client_payment_failure_body', ['invoice' => '$number', 'amount' => '$amount']).'</p><div>$payment_error</div><br><div>$view_button</div>';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static function emailQuoteReminder1Subject()
 | 
			
		||||
 | 
			
		||||
@ -85,6 +85,10 @@ class Document extends BaseModel
 | 
			
		||||
        'deleted_at' => 'timestamp',
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    protected $touches = [
 | 
			
		||||
        'documentable'
 | 
			
		||||
    ];
 | 
			
		||||
    
 | 
			
		||||
    /**
 | 
			
		||||
     * @var array
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
@ -49,7 +49,7 @@ trait SavesDocuments
 | 
			
		||||
            ))->handle();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $entity->touch();
 | 
			
		||||
        // $entity->touch();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function saveDocument($document, $entity, $is_public = true)
 | 
			
		||||
@ -78,7 +78,7 @@ trait SavesDocuments
 | 
			
		||||
            $is_public
 | 
			
		||||
        ))->handle();
 | 
			
		||||
 | 
			
		||||
        $entity->touch();
 | 
			
		||||
        // $entity->touch();
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user