Ticket #61: materials_float-20081013.patch

File materials_float-20081013.patch, 0.6 kB (added by jeremy@…, 3 months ago)

Material price total is being converted to int should be float

  • lib/bills.php

    old new  
    13721372        $summary['rows'][] = $qrow; 
    13731373        $summary['sum_amount'] += (float)$qrow['prj_amount']; 
    13741374        $summary['sum_duration'] += (int)$qrow['prj_duration']; 
    1375         $summary['sum_material'] += (int)$qrow['material_price']; 
     1375        $summary['sum_material'] += (float)$qrow['material_price']; 
    13761376    } 
    13771377 
    13781378    return $summary; 
     
    15031503    return $billInfo; 
    15041504} 
    15051505 
    1506 ?> 
    1507  No newline at end of file 
     1506?>