mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:47:32 -05:00 
			
		
		
		
	Fixes for payment ledger when credits are applied
This commit is contained in:
		
							parent
							
								
									f79f31c89e
								
							
						
					
					
						commit
						4371c080f6
					
				@ -120,9 +120,9 @@ class ApplyPayment
 | 
			
		||||
             ->credits()
 | 
			
		||||
             ->attach($this->credit->id, ['amount' => $this->amount_applied]);
 | 
			
		||||
 | 
			
		||||
        $this->payment
 | 
			
		||||
                 ->ledger()
 | 
			
		||||
                 ->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit");
 | 
			
		||||
        // $this->payment
 | 
			
		||||
        //          ->ledger()
 | 
			
		||||
        //          ->updatePaymentBalance($this->amount_applied * -1, "ApplyPaymentCredit"); // this duplicated the company ledger paid to date amount.
 | 
			
		||||
 | 
			
		||||
        $this->payment
 | 
			
		||||
                 ->client
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user