I am writing a small module for our billing stuff, and the output works fine, there's just some behaviour I can't understand, I have the following DTL:
Code: Select all
<!-- dtl:block:BillingResultRow -->
<tr>
<td>$QData{"FirstName"} $QData{"LastName"}</td>
<td>$QData{"Description"}</td>
<td>$QData{"TicketID"}</td>
<td>$QData{"Billable"}</td>
<td>$QData{"Unbillable"}</td>
<td>$QData{"Shift"}</td>
</tr>
<!-- dtl:block:BillingResultRow -->
Code: Select all
foreach my $key (@ResultSet) {
$Self->{LogObject}->Log( Priority => 'info', Message => "$key->[0] $key->[1]");
$Output .= $Self->{LayoutObject}->Block(
Name => "BillingResultRow",
Data => {
FirstName => $key->[0],
LastName => $key->[1],
Description => $key->[2],
TicketID => $key->[3],
Date => $key->[4],
Billable => $key->[5],
Unbillable => $key->[6],
Shift => $key->[7],
},);
}