Lines 61-69
my $manualinv_types = $sth_manualinv->fetchall_arrayref({});
Link Here
|
61 |
|
61 |
|
62 |
if ($do_it) { |
62 |
if ($do_it) { |
63 |
|
63 |
|
64 |
$fromDate = output_pref({ dt => eval { dt_from_string($input->param("from")) } || dt_from_string, |
64 |
$fromDate = output_pref({ dt => eval { dt_from_string(scalar $input->param("from")) } || dt_from_string, |
65 |
dateformat => 'sql', dateonly => 1 }); #for sql query |
65 |
dateformat => 'sql', dateonly => 1 }); #for sql query |
66 |
$toDate = output_pref({ dt => eval { dt_from_string($input->param("to")) } || dt_from_string, |
66 |
$toDate = output_pref({ dt => eval { dt_from_string(scalar $input->param("to")) } || dt_from_string, |
67 |
dateformat => 'sql', dateonly => 1 }); #for sql query |
67 |
dateformat => 'sql', dateonly => 1 }); #for sql query |
68 |
|
68 |
|
69 |
my $whereTType = q{}; |
69 |
my $whereTType = q{}; |
Lines 93-99
if ($do_it) {
Link Here
|
93 |
SELECT round(amount,2) AS amount, description, |
93 |
SELECT round(amount,2) AS amount, description, |
94 |
bo.surname AS bsurname, bo.firstname AS bfirstname, m.surname AS msurname, m.firstname AS mfirstname, |
94 |
bo.surname AS bsurname, bo.firstname AS bfirstname, m.surname AS msurname, m.firstname AS mfirstname, |
95 |
bo.cardnumber, br.branchname, bo.borrowernumber, |
95 |
bo.cardnumber, br.branchname, bo.borrowernumber, |
96 |
al.borrowernumber, DATE(al.date) as date, al.accounttype, al.amountoutstanding, al.note, |
96 |
al.borrowernumber, DATE(al.date) as date, al.timestamp, al.accounttype, al.amountoutstanding, al.note, |
97 |
bi.title, bi.biblionumber, i.barcode, i.itype |
97 |
bi.title, bi.biblionumber, i.barcode, i.itype |
98 |
FROM accountlines al |
98 |
FROM accountlines al |
99 |
LEFT JOIN borrowers bo ON (al.borrowernumber = bo.borrowernumber) |
99 |
LEFT JOIN borrowers bo ON (al.borrowernumber = bo.borrowernumber) |
100 |
- |
|
|