$val = time_to_decimal($val);
print "\t<duration><![CDATA[".$val."]]></duration>\n";
}
+ if ($bean->getAttribute('chunits')) {
+ print "\t<units><![CDATA[".$subtotal['units']."]]></units>\n";
+ }
if ($bean->getAttribute('chcost')) {
print "\t<cost><![CDATA[";
if ($user->can('manage_invoices') || $user->isClient())
$duration = time_to_decimal($duration);
print "\t<duration><![CDATA[".$duration."]]></duration>\n";
}
+ if ($bean->getAttribute('chunits')) print "\t<units><![CDATA[".$item['units']."]]></units>\n";
if ($bean->getAttribute('chnote')) print "\t<note><![CDATA[".$item['note']."]]></note>\n";
if ($bean->getAttribute('chcost')) {
print "\t<cost><![CDATA[";
// Print headers.
print '"'.$group_by_header.'"';
if ($bean->getAttribute('chduration')) print ',"'.$i18n->get('label.duration').'"';
+ if ($bean->getAttribute('chunits')) print ',"'.$i18n->get('label.work_units_short').'"';
if ($bean->getAttribute('chcost')) print ',"'.$i18n->get('label.cost').'"';
print "\n";
$val = time_to_decimal($val);
print ',"'.$val.'"';
}
+ if ($bean->getAttribute('chunits')) print ',"'.$subtotal['units'].'"';
if ($bean->getAttribute('chcost')) {
if ($user->can('manage_invoices') || $user->isClient())
print ',"'.$subtotal['cost'].'"';
if ($bean->getAttribute('chstart')) print ',"'.$i18n->get('label.start').'"';
if ($bean->getAttribute('chfinish')) print ',"'.$i18n->get('label.finish').'"';
if ($bean->getAttribute('chduration')) print ',"'.$i18n->get('label.duration').'"';
+ if ($bean->getAttribute('chunits')) print ',"'.$i18n->get('label.work_units_short').'"';
if ($bean->getAttribute('chnote')) print ',"'.$i18n->get('label.note').'"';
if ($bean->getAttribute('chcost')) print ',"'.$i18n->get('label.cost').'"';
if ($bean->getAttribute('chpaid')) print ',"'.$i18n->get('label.paid').'"';
$val = time_to_decimal($val);
print ',"'.$val.'"';
}
+ if ($bean->getAttribute('chunits')) print ',"'.$item['units'].'"';
if ($bean->getAttribute('chnote')) print ',"'.str_replace('"','""',$item['note']).'"';
if ($bean->getAttribute('chcost')) {
if ($user->can('manage_invoices') || $user->isClient())