mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:27:33 -05:00 
			
		
		
		
	Merge pull request #4056 from beganovich/v2-show-gateway-fees-on-product-table
PDFs: Show gateway fess as invoice item
This commit is contained in:
		
						commit
						6e94d4460e
					
				@ -592,12 +592,16 @@ trait MakesInvoiceValues
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        foreach ($items as $key => $item) {
 | 
					        foreach ($items as $key => $item) {
 | 
				
			||||||
            if ($table_type == '$product' && $item->type_id != 1) {
 | 
					            if ($table_type == '$product' && $item->type_id != 1) {
 | 
				
			||||||
 | 
					                if ($item->type_id != 4) {
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                } 
 | 
					                } 
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if ($table_type == '$task' && $item->type_id != 2) {
 | 
					            if ($table_type == '$task' && $item->type_id != 2) {
 | 
				
			||||||
 | 
					                if ($item->type_id != 4) {
 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                } 
 | 
					                } 
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $data[$key][$table_type.'.product_key'] = $item->product_key;
 | 
					            $data[$key][$table_type.'.product_key'] = $item->product_key;
 | 
				
			||||||
            $data[$key][$table_type.'.notes'] = $item->notes;
 | 
					            $data[$key][$table_type.'.notes'] = $item->notes;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user