projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed multipart email structure.
[fa-stable.git]
/
reporting
/
rep409.php
diff --git
a/reporting/rep409.php
b/reporting/rep409.php
index 24d2cd82deb3f191c46e194677dbe268e85a4a5b..4b65d59f81f314b79a04a9181eb57251a6d27acd 100644
(file)
--- a/
reporting/rep409.php
+++ b/
reporting/rep409.php
@@
-12,12
+12,7
@@
$page_security = $_POST['PARAM_0'] == $_POST['PARAM_1'] ?
'SA_MANUFTRANSVIEW' : 'SA_MANUFBULKREP';
// ----------------------------------------------------------------
$page_security = $_POST['PARAM_0'] == $_POST['PARAM_1'] ?
'SA_MANUFTRANSVIEW' : 'SA_MANUFBULKREP';
// ----------------------------------------------------------------
-// $ Revision: 2.0 $
-// Creator: Janusz Dobrowolski
-// date_: 2008-01-14
-// Title: Print Workorders
-// draft version!
-// ----------------------------------------------------------------
+// Title: Work Orders
$path_to_root="..";
include_once($path_to_root . "/includes/session.inc");
$path_to_root="..";
include_once($path_to_root . "/includes/session.inc");
@@
-33,7
+28,7
@@
print_workorders();
function print_workorders()
{
function print_workorders()
{
- global $path_to_root, $SysPrefs;
+ global $path_to_root, $SysPrefs
, $dflt_lang
;
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
include_once($path_to_root . "/reporting/includes/pdf_report.inc");
@@
-74,7
+69,7
@@
function print_workorders()
$myrow = get_work_order($i);
if ($myrow === false)
continue;
$myrow = get_work_order($i);
if ($myrow === false)
continue;
- $date_ = sql2date($myrow["date_"]);
+ $date_ = sql2date($myrow["date_"]);
if ($email == 1)
{
$rep = new FrontReport("", "", user_pagesize());
if ($email == 1)
{
$rep = new FrontReport("", "", user_pagesize());
@@
-82,12
+77,16
@@
function print_workorders()
$rep->currency = $cur;
$rep->Font();
$rep->title = _('WORK ORDER');
$rep->currency = $cur;
$rep->Font();
$rep->title = _('WORK ORDER');
- $rep->filename = "WorkOrder" . $myrow['
reference
'] . ".pdf";
+ $rep->filename = "WorkOrder" . $myrow['
wo_ref
'] . ".pdf";
$rep->Info($params, $cols, null, $aligns);
}
else
$rep->title = _('WORK ORDER');
$rep->Info($params, $cols, null, $aligns);
}
else
$rep->title = _('WORK ORDER');
- $rep->SetCommonData($myrow, null, null, '', 26);
+
+ $contact[] = array('email' =>$myrow['email'],'lang' => $dflt_lang,
+ 'name' => $myrow['contact'], 'name2' => '', 'contact');
+
+ $rep->SetCommonData($myrow, null, null, '', 26, $contact);
$rep->NewPage();
$result = get_wo_requirements($i);
$rep->NewPage();
$result = get_wo_requirements($i);
@@
-141,6
+140,13
@@
function print_workorders()
while ($comment=db_fetch($comments))
$rep->TextColLines(0, 6, $comment['memo_'], -2);
}
while ($comment=db_fetch($comments))
$rep->TextColLines(0, 6, $comment['memo_'], -2);
}
+ if ($email == 1)
+ {
+// $myrow['contact_email'] = $myrow['email'];
+ $myrow['DebtorName'] = $myrow['contact'];
+ $myrow['reference'] = $myrow['wo_ref'];
+ $rep->End($email, _("Work Order No.") . " " . $myrow['wo_ref'], $myrow);
+ }
}
if ($email == 0)
$rep->End();
}
if ($email == 0)
$rep->End();