mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Add updateBalance method to credit service
This commit is contained in:
		
							parent
							
								
									d870bb5a87
								
							
						
					
					
						commit
						3c23d5e31f
					
				@ -104,6 +104,13 @@ class CreditService
 | 
			
		||||
        return $this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function updateBalance($adjustment)
 | 
			
		||||
    {
 | 
			
		||||
        $this->credit->balance -= $adjustment;
 | 
			
		||||
 | 
			
		||||
        return $this;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function fillDefaults()
 | 
			
		||||
    {
 | 
			
		||||
        $settings = $this->credit->client->getMergedSettings();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user