! -> Note
$ -> Affected files
+04-Aug-2009 Joe Hunt
++ Added email links after creating documents
+$ /includes/ui/ui_controls.inc
+ /manufacturing/work_order_entry.php
+ /purchasing/po_entry_items.php
+ /reporting/reports_main.php
+ /reporting/includes/reporting.inc
+ /sales/create_recurrent_invoices.php
+ /sales/credit_note_entry.php
+ /sales/customer_delivery.php
+ /sales/customer_invoice.php
+ /sales/sales_order_entry.php
+
03-Aug-2009 Janusz Dobrowolski
+ Clone record option added.
$ /includes/ui/ui_input.inc
display_note(get_trans_view_str($type, $number, $title, false, 'menu_option', $id), 0, 1);
}
-function submenu_print($title, $type, $number, $id=null)
+function submenu_print($title, $type, $number, $id=null, $email=0)
{
- display_note(print_document_link($number, $title, true, $type, false, 'menu_option', $id), 0, 1);
+ display_note(print_document_link($number, $title, true, $type, false, 'menu_option', $id, $email), 0, 1);
}
//-----------------------------------------------------------------------------------
if ($_GET['type'] != wo_types::advanced())
{
include_once($path_to_root . "/reporting/includes/reporting.inc");
- $ar = array('PARAM_0' => $id, 'PARAM_1' => $id);
+ $ar = array('PARAM_0' => $id, 'PARAM_1' => $id, 'PARAM_2' => 0);
display_note(print_link(_("Print this Work Order"), 409, $ar), 1);
+ $ar['PARAM_2'] = 1;
+ display_note(print_link(_("Email this Work Order"), 409, $ar), 1);
display_note(get_gl_view_str($stype, $id, _("View the GL Journal Entries for this Work Order")), 1);
$ar = array('PARAM_0' => $_GET['date'], 'PARAM_1' => $_GET['date'], 'PARAM_2' => $stype);
display_note(print_link(_("Print the GL Journal Entries for this Work Order"), 702, $ar), 1);
display_note(get_trans_view_str($trans_type, $order_no, _("&View this order")));
echo '<br>';
display_note(print_document_link($order_no, _("&Print This Order"), true, $trans_type));
+ display_note(print_document_link($order_no, _("&Email This Order"), true, $trans_type, false, "", "", 1),0, 1);
hyperlink_params($path_to_root . "/purchasing/po_receive_items.php", _("&Receive Items on this Purchase Order"), "PONumber=$order_no");
// You only need full parameter list for invoices/credit notes
function print_document_link($doc_no, $link_text, $link=true, $type_no,
- $icon=false, $class='printlink', $id='')
+ $icon=false, $class='printlink', $id='', $email=0)
{
global $path_to_root;
include_once($path_to_root . "/includes/types.inc");
'PARAM_1' => $doc_no,
'PARAM_2' => "",
'PARAM_3' => get_first_bank_account(),
- 'PARAM_4' => 0,
+ 'PARAM_4' => $email,
'PARAM_5' => 0,
'PARAM_6' => "");
break;
$ar = array(
'PARAM_0' => $doc_no,
'PARAM_1' => $doc_no,
- 'PARAM_2' => 0,
+ 'PARAM_2' => $email,
'PARAM_3' => "");
break;
case 10 : // Sales Invoice
'PARAM_1' => $doc_no,
'PARAM_2' => "",
'PARAM_3' => get_first_bank_account(),
- 'PARAM_4' => 0,
+ 'PARAM_4' => $email,
'PARAM_5' => "",
'PARAM_6' => "",
'PARAM_7' => $type_no);
'PARAM_1' => $doc_no,
'PARAM_2' => "",
'PARAM_3' => get_first_bank_account(),
- 'PARAM_4' => 0,
+ 'PARAM_4' => $email,
'PARAM_5' => "");
break;
// default: $ar = array();
$reports->addReport(_('Manufactoring'),409,_('Print &Work Orders'),
array( new ReportParam(_('From'),'WORKORDER'),
new ReportParam(_('To'),'WORKORDER'),
- new ReportParam(_('email Customers'),'YES_NO'),
+ new ReportParam(_('Email Locations'),'YES_NO'),
new ReportParam(_('Comments'),'TEXTBOX')));
$reports->addReportClass(_('Dimensions'));
if ($dim > 0)
$ar = array('PARAM_0' => $min, 'PARAM_1' => $max, 'PARAM_2' => "", 'PARAM_3' => get_first_bank_account(),
'PARAM_4' => 0, 'PARAM_5' => 0, 'PARAM_6' => "", 'PARAM_7' => 10);
display_note(print_link(_("&Print Recurrent Invoices # $min - # $max"), 107, $ar), 0, 1);
+ $ar['PARAM_4'] = 1;
+ display_note(print_link(_("&Email Recurrent Invoices # $min - # $max"), 107, $ar), 0, 1);
}
}
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("&View this credit note")), 0, 1);
display_note(print_document_link($credit_no, _("&Print This Credit Invoice"), true, 11),0, 1);
+ display_note(print_document_link($credit_no, _("&Email This Credit Invoice"), true, 11, false, "", "", 1),0, 1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL &Journal Entries for this Credit Note")));
display_note(get_customer_trans_view_str(13, $dispatch_no, _("&View This Delivery")), 0, 1);
display_note(print_document_link($dispatch_no, _("&Print Delivery Note"), true, 13));
+ display_note(print_document_link($dispatch_no, _("&Email Delivery Note"), true, 13, false, "", "", 1),0, 1);
display_note(get_gl_view_str(13, $dispatch_no, _("View the GL Journal Entries for this Dispatch")),1);
display_note(get_customer_trans_view_str($trans_type, $invoice_no, _("&View This Invoice")), 0, 1);
display_note(print_document_link($invoice_no, _("&Print This Invoice"), true, 10));
+ display_note(print_document_link($invoice_no, _("&Email This Invoice"), true, 10, false, "", "", 1),0, 1);
display_note(get_gl_view_str($trans_type, $invoice_no, _("View the GL &Journal Entries for this Invoice")),1);
submenu_view(_("&View This Order"), 30, $order_no);
submenu_print(_("&Print This Order"), 30, $order_no, 'prtopt');
+ submenu_print(_("&Email This Order"), 30, $order_no, null, 1);
set_focus('prtopt');
submenu_option(_("Make &Delivery Against This Order"),
submenu_view(_("&View This Order"), 30, $order_no);
submenu_print(_("&Print This Order"), 30, $order_no, 'prtopt');
+ submenu_print(_("&Email This Order"), 30, $order_no, null, 1);
set_focus('prtopt');
submenu_option(_("Confirm Order Quantities and Make &Delivery"),
submenu_view(_("&View This Delivery"), 13, $delivery);
submenu_print(_("&Print Delivery Note"), 13, $delivery, 'prtopt');
+ submenu_print(_("&Email Delivery Note"), 13, $delivery, null, 1);
set_focus('prtopt');
display_note(get_gl_view_str(13, $delivery, _("View the GL Journal Entries for this Dispatch")),0, 1);
submenu_view(_("&View This Invoice"), 10, $invoice);
submenu_print(_("&Print Sales Invoice"), 10, $invoice, 'prtopt');
+ submenu_print(_("&Email Sales Invoice"), 10, $invoice, null, 1);
set_focus('prtopt');
display_note(get_gl_view_str(10, $invoice, _("View the GL &Journal Entries for this Invoice")),0, 1);