projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the GL accounts in Manufacturing to go from Cost accounts to Assembly Account...
[fa-stable.git]
/
reporting
/
rep107.php
diff --git
a/reporting/rep107.php
b/reporting/rep107.php
index 94681d9010e20f2203b04cd37efae6a419708ad3..d3f74dd7999b3e826cc0443fa59196c95edd2b8c 100644
(file)
--- a/
reporting/rep107.php
+++ b/
reporting/rep107.php
@@
-42,7
+42,8
@@
function print_invoices()
$email = $_POST['PARAM_3'];
$pay_service = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
$email = $_POST['PARAM_3'];
$pay_service = $_POST['PARAM_4'];
$comments = $_POST['PARAM_5'];
- $orientation = $_POST['PARAM_6'];
+ $customer = $_POST['PARAM_6'];
+ $orientation = $_POST['PARAM_7'];
if (!$from || !$to) return;
if (!$from || !$to) return;
@@
-73,6
+74,13
@@
function print_invoices()
continue;
$sign = 1;
$myrow = get_customer_trans($i, ST_SALESINVOICE);
continue;
$sign = 1;
$myrow = get_customer_trans($i, ST_SALESINVOICE);
+
+ if ($customer && $myrow['debtor_no'] != $customer) {
+ continue;
+ }
+ if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+ continue;
+ }
$baccount = get_default_bank_account($myrow['curr_code']);
$params['bankaccount'] = $baccount['id'];
$baccount = get_default_bank_account($myrow['curr_code']);
$params['bankaccount'] = $baccount['id'];
@@
-208,4
+216,4
@@
function print_invoices()
$rep->End();
}
$rep->End();
}
-?>
\ No newline at end of file
+?>