display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View This Credit Note")), 0, 0);
- display_note(print_document_link($credit_no, _("&Print This Credit Note"), true, $trans_type),1);
+ display_note(print_document_link($credit_no."-".$trans_type, _("&Print This Credit Note"), true, $trans_type),1);
+ display_note(print_document_link($credit_no."-".$trans_type, _("&Email This Credit Note"), true, $trans_type, false, "printlink", "", 1),1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")),1);
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View This Credit Note")), 0, 0);
- display_note(print_document_link($credit_no, _("&Print This Credit Note"), true, $trans_type),1);
+ display_note(print_document_link($credit_no."-".$trans_type, _("&Print This Credit Note"), true, $trans_type),1);
+ display_note(print_document_link($credit_no."-".$trans_type, _("&Email This Credit Note"), true, $trans_type, false, "printlink", "", 1),1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")),1);
if (isset($_POST['ProcessCredit']) && can_process()) {
- $newcredit = ($_SESSION['Items']->trans_no == 0);
+ $new_credit = ($_SESSION['Items']->trans_no == 0);
if (!isset($_POST['WriteOffGLCode']))
$_POST['WriteOffGLCode'] = 0;
$credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']);
processing_end();
- if ($newcredit) {
+ if ($new_credit) {
meta_forward($_SERVER['PHP_SELF'], "AddedID=$credit_no");
} else {
meta_forward($_SERVER['PHP_SELF'], "UpdatedID=$credit_no");
global $Ajax;
br();
-i f (isset($_POST['_CreditType_update']))
+ if (isset($_POST['_CreditType_update']))
$Ajax->activate('options');
div_start('options');