projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Supplier Inquiry link in Supplier form.
[fa-stable.git]
/
reporting
/
rep112.php
diff --git
a/reporting/rep112.php
b/reporting/rep112.php
index d2e06c0964a0e4e221f097366220d21d19f9cf02..f04ee1d77f5cd1df851782269101da5492f0504d 100644
(file)
--- a/
reporting/rep112.php
+++ b/
reporting/rep112.php
@@
-71,14
+71,14
@@
function print_receipts()
$currency = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
$currency = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
- if ($from == null)
- $from = 0;
- if ($to == null)
- $to = 0;
+ if (!$from || !$to) return;
+
$dec = user_price_dec();
$fno = explode("-", $from);
$tno = explode("-", $to);
$dec = user_price_dec();
$fno = explode("-", $from);
$tno = explode("-", $to);
+ $from = min($fno[0], $tno[0]);
+ $to = max($fno[0], $tno[0]);
$cols = array(4, 85, 150, 225, 275, 360, 450, 515);
$cols = array(4, 85, 150, 225, 275, 360, 450, 515);
@@
-95,10
+95,10
@@
function print_receipts()
$rep->Font();
$rep->Info($params, $cols, null, $aligns);
$rep->Font();
$rep->Info($params, $cols, null, $aligns);
- for ($i = $f
no[0]; $i <= $tno[0]
; $i++)
+ for ($i = $f
rom; $i <= $to
; $i++)
{
{
- if ($f
no[0] == $tno[0]
)
- $types = array($f
no[1]
);
+ if ($f
rom == $to
)
+ $types = array($f
rom
);
else
$types = array(ST_BANKDEPOSIT, ST_CUSTPAYMENT);
foreach ($types as $j)
else
$types = array(ST_BANKDEPOSIT, ST_CUSTPAYMENT);
foreach ($types as $j)