mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:47:32 -05:00 
			
		
		
		
	Add float casts in transformer
This commit is contained in:
		
							parent
							
								
									9fa05a7e5a
								
							
						
					
					
						commit
						a895ffd1c5
					
				@ -24,8 +24,8 @@ class ProductTransformer extends EntityTransformer
 | 
			
		||||
            'id' => (int) $product->public_id,
 | 
			
		||||
            'product_key' => $product->product_key,
 | 
			
		||||
            'notes' => $product->notes,
 | 
			
		||||
            'cost' => $product->cost,
 | 
			
		||||
            'qty' => $product->qty,
 | 
			
		||||
            'cost' => (float) $product->cost,
 | 
			
		||||
            'qty' => (float) $product->qty,
 | 
			
		||||
            'tax_name1' => $product->tax_name1 ?: '',
 | 
			
		||||
            'tax_rate1' => (float) $product->tax_rate1,
 | 
			
		||||
            'tax_name2' => $product->tax_name2 ?: '',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user