mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 13:41:09 -04:00 
			
		
		
		
	fix tax-per-item issue display for estimates
This commit is contained in:
		| @ -72,16 +72,16 @@ | ||||
|         </tr> | ||||
|  | ||||
|         @if ($estimate->tax_per_item === 'YES') | ||||
|             @for ($i = 0; $i < count($labels); $i++) | ||||
|             @foreach ($taxes as $tax) | ||||
|                 <tr> | ||||
|                     <td class="border-0 total-table-attribute-label"> | ||||
|                         {{$labels[$i]}} | ||||
|                         {{$tax->name.' ('.$tax->percent.'%)'}} | ||||
|                     </td> | ||||
|                     <td class="border-0 item-cell total-table-attribute-value"> | ||||
|                         {!! format_money_pdf($taxes[$i], $estimate->user->currency) !!} | ||||
|                     <td class="py-2 border-0 item-cell total-table-attribute-value"> | ||||
|                         {!! format_money_pdf($tax->amount, $estimate->user->currency) !!} | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             @endfor | ||||
|             @endforeach | ||||
|         @else | ||||
|             @foreach ($estimate->taxes as $tax) | ||||
|                 <tr> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user