Changeset 497 for trunk/finance/clenove.php
- Timestamp:
- Mar 3, 2013, 1:03:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/clenove.php
r479 r497 17 17 'Subject.Name, NetworkDevice, '. 18 18 '(SELECT GROUP_CONCAT(Service.Name) FROM ServiceCustomerRel LEFT JOIN Service '. 19 'ON Service.Id=ServiceCustomerRel.Service WHERE ServiceCustomerRel.Customer=Member.Id AND ServiceCustomerRel.Period=0) AS ServicesCurrentMonth, '. 20 '(SELECT GROUP_CONCAT(Service.Name) FROM ServiceCustomerRel LEFT JOIN Service '. 21 'ON Service.Id=ServiceCustomerRel.Service WHERE ServiceCustomerRel.Customer=Member.Id AND ServiceCustomerRel.Period=1) AS ServicesNextMonth, '. 19 'ON Service.Id=ServiceCustomerRel.Service WHERE ServiceCustomerRel.Customer=Member.Id AND '. 20 'ServiceCustomerRel.Action IS NULL) AS ServicesCurrentMonth, '. 21 //'(SELECT GROUP_CONCAT(Service.Name) FROM ServiceCustomerRel LEFT JOIN Service '. 22 //'ON Service.Id=ServiceCustomerRel.Service WHERE ServiceCustomerRel.Customer=Member.Id AND '. 23 //'ServiceCustomerRel.Period=1) AS ServicesNextMonth, '. 22 24 'User.Name AS FullName FROM MemberPayment LEFT JOIN Member ON '. 23 25 'Member.Id=MemberPayment.Member LEFT JOIN Subject ON Subject.Id=Member.Subject '. … … 36 38 array('Name' => 'Cash', 'Title' => 'Stav účtu [Kč]'), 37 39 array('Name' => 'ServicesCurrentMonth', 'Title' => 'Běžící tarif'), 38 array('Name' => 'ServicesNextMonth', 'Title' => 'Příští tarif'),40 //array('Name' => 'ServicesNextMonth', 'Title' => 'Příští tarif'), 39 41 array('Name' => 'Note', 'Title' => 'Poznámky'), 40 42 array('Name' => 'WWW', 'Title' => 'WWW'), … … 55 57 if($Row['Cash'] < 0) $Row['Cash'] = '<span style="color: red;">'.$Row['Cash'].'</span>'; 56 58 $Tarif = $Row['ServicesCurrentMonth']; 57 $PristiTarif = $Row['ServicesNextMonth'];59 //$PristiTarif = $Row['ServicesNextMonth']; 58 60 $Output .= '<tr><td>'.$Row['FullName'].'</td><td><a href="user_state.php?Subject='.$Row['Id'].'">'.$Row['Name'].'</a></td>'; 59 61 //<td align="right">'.$Row['network_device'].'</td> 60 $Output .= '<td align="right">'.$Row['MonthlyTotal'].'</td><td align="right">'.$Row['Cash'].'</td><td align="center">'.$Tarif.'</td><td align="center">'.$PristiTarif.'</td><td>'.$Row['Note'].'</td><td>'.$Row['WWW'].'</td></tr>'; 62 $Output .= '<td align="right">'.$Row['MonthlyTotal'].'</td><td align="right">'.$Row['Cash'].'</td>'. 63 '<td align="center">'.$Tarif.'</td>'. 64 //'<td align="center">'.$PristiTarif.'</td>'. 65 '<td>'.$Row['Note'].'</td><td>'.$Row['WWW'].'</td></tr>'; 61 66 $TotalDevice += $Row['NetworkDevice']; 62 67 $TotalMonth += ($Row['MonthlyTotal']); … … 64 69 $Output .= '<tr><td><strong>Celkem</strong></td><td> </td>'; 65 70 //<td align="right"><strong>'.$TotalDevice.'</strong></td> 66 $Output .= '<td align="right"><strong>'.$TotalMonth.'</strong></td><td align="right"><strong>'.$TotalCash.'</strong></td><td align="right"> </td><td align="right"> </td><td align="right"> </td><td align="right"> </td></tr>'; 71 $Output .= '<td align="right"><strong>'.$TotalMonth.'</strong></td>'. 72 '<td align="right"><strong>'.$TotalCash.'</strong></td><td align="right"> </td>'. 73 //'<td align="right"> </td>'. 74 '<td align="right"> </td><td align="right"> </td></tr>'; 67 75 $Output .= '</table>'; 68 76 $Output .= $PageList['Output'];
Note:
See TracChangeset
for help on using the changeset viewer.