mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:17:32 -05:00 
			
		
		
		
	Minor Fixes
This commit is contained in:
		
							parent
							
								
									6696d2ba36
								
							
						
					
					
						commit
						e1b052a843
					
				@ -297,6 +297,9 @@ trait MakesInvoiceValues
 | 
				
			|||||||
            $data[$key][$table_type.'.notes'] = $this->processReservedKeywords($item->notes);
 | 
					            $data[$key][$table_type.'.notes'] = $this->processReservedKeywords($item->notes);
 | 
				
			||||||
            $data[$key][$table_type.'.description'] = $this->processReservedKeywords($item->notes);
 | 
					            $data[$key][$table_type.'.description'] = $this->processReservedKeywords($item->notes);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            /* need to test here as this is new - 18/09/2021*/
 | 
				
			||||||
 | 
					            if(!array_key_exists($table_type.'.gross_line_total', $data[$key]))
 | 
				
			||||||
 | 
					                $data[$key][$table_type.'.gross_line_total'] = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            $data[$key][$table_type . ".{$_table_type}1"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}1", $item->custom_value1, $this->client);
 | 
					            $data[$key][$table_type . ".{$_table_type}1"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}1", $item->custom_value1, $this->client);
 | 
				
			||||||
            $data[$key][$table_type . ".{$_table_type}2"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}2", $item->custom_value2, $this->client);
 | 
					            $data[$key][$table_type . ".{$_table_type}2"] = $helpers->formatCustomFieldValue($this->client->company->custom_fields, "{$_table_type}2", $item->custom_value2, $this->client);
 | 
				
			||||||
@ -312,9 +315,6 @@ trait MakesInvoiceValues
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            $data[$key][$table_type.'.line_total'] = Number::formatMoney($item->line_total, $this->client);
 | 
					            $data[$key][$table_type.'.line_total'] = Number::formatMoney($item->line_total, $this->client);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
            /* need to test here as this is new - 18/09/2021*/
 | 
					 | 
				
			||||||
            if(array_key_exists($table_type.'.gross_line_total', $data[$key]))
 | 
					 | 
				
			||||||
                $data[$key][$table_type.'.gross_line_total'] = Number::formatMoney($item->gross_line_total, $this->client);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (isset($item->discount) && $item->discount > 0) {
 | 
					            if (isset($item->discount) && $item->discount > 0) {
 | 
				
			||||||
                if ($item->is_amount_discount) {
 | 
					                if ($item->is_amount_discount) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user