mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:57:33 -05:00 
			
		
		
		
	pass inclusive taxes
This commit is contained in:
		
							parent
							
								
									03cdb516c7
								
							
						
					
					
						commit
						3d5730d653
					
				@ -41,7 +41,7 @@ class AddGatewayFee extends AbstractService
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public function run()
 | 
					    public function run()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount, false, $this->gateway_type_id), $this->invoice->client->currency()->precision);
 | 
					        $gateway_fee = round($this->company_gateway->calcGatewayFee($this->amount, $this->invoice->uses_inclusive_taxes, $this->gateway_type_id), $this->invoice->client->currency()->precision);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((int)$gateway_fee == 0) {
 | 
					        if ((int)$gateway_fee == 0) {
 | 
				
			||||||
            return $this->invoice;
 | 
					            return $this->invoice;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user