mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:07:33 -05:00 
			
		
		
		
	Merge pull request #6157 from turbo124/v5-develop
Fixes for subscriptions
This commit is contained in:
		
						commit
						07e4cc715a
					
				@ -249,7 +249,7 @@ class SubscriptionService
 | 
			
		||||
     */
 | 
			
		||||
    private function calculateProRataRefundForSubscription($invoice) :float
 | 
			
		||||
    {
 | 
			
		||||
        if(!$invoice->date)
 | 
			
		||||
        if(!$invoice || !$invoice->date)
 | 
			
		||||
            return 0;
 | 
			
		||||
 | 
			
		||||
        $start_date = Carbon::parse($invoice->date);
 | 
			
		||||
@ -278,7 +278,7 @@ class SubscriptionService
 | 
			
		||||
     */
 | 
			
		||||
    private function calculateProRataRefund($invoice) :float
 | 
			
		||||
    {
 | 
			
		||||
        if(!$invoice->date)
 | 
			
		||||
        if(!$invoice || !$invoice->date)
 | 
			
		||||
            return 0;
 | 
			
		||||
 | 
			
		||||
        $start_date = Carbon::parse($invoice->date);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user