$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;
continue;
$sign = 1;
$myrow = get_customer_trans($i, ST_SALESINVOICE);
+
+ if($customer && $myrow['debtor_no'] != $customer) {
+ continue;
+ }
$baccount = get_default_bank_account($myrow['curr_code']);
$params['bankaccount'] = $baccount['id'];
$rep->End();
}
-?>
\ No newline at end of file
+?>
_('email Customers') => 'YES_NO',
_('Payment Link') => 'PAYMENT_LINK',
_('Comments') => 'TEXTBOX',
- _('Orientation') => 'ORIENTATION'));
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Orientation') => 'ORIENTATION'
+));
$reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
array( _('From') => 'CREDIT',
_('To') => 'CREDIT',