mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:57:33 -05:00 
			
		
		
		
	Add gross line total to inclusive item sum calcs
This commit is contained in:
		
							parent
							
								
									db2606b907
								
							
						
					
					
						commit
						a8a33e9fed
					
				@ -89,9 +89,6 @@ class InvoiceItemSumInclusive
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        $this->setLineTotal($this->item->cost * $this->item->quantity);
 | 
					        $this->setLineTotal($this->item->cost * $this->item->quantity);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //11-02-2022
 | 
					 | 
				
			||||||
        // $this->setLineTotal($this->formatValue($this->item->cost, $this->currency->precision) * $this->formatValue($this->item->quantity, $this->currency->precision));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        return $this;
 | 
					        return $this;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -171,6 +168,8 @@ class InvoiceItemSumInclusive
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public function setLineTotal($total)
 | 
					    public function setLineTotal($total)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					        $this->item->gross_line_total = $total;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $this->item->line_total = $total;
 | 
					        $this->item->line_total = $total;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $this;
 | 
					        return $this;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user