fannie/modules/plugins2.0/OverShortTools/OsCashierReport.php
Method fetch_report_data
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetch_report_data()
{
$emp = FormLib::get('emp', false);
$dlog = DTransactionsModel::selectDlog($this->form->date1, $this->form->date2);
$cashP = $this->connection->prepare("SELECT d.emp_no, e.FirstName, YEAR(tdate), MONTH(tdate), DAY(tdate), -1 * SUM(total) AS ttl