コード例 #1
0
}
if (!isset($statusmasterObj)) {
    include_once SITE_CLASS_APPLICATION . "class.StatusMaster.php";
    $statusmasterObj = new StatusMaster();
}
if (!isset($orgUserPermObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.OrganizationUserPermission.php";
    $orgUserPermObj = new OrganizationUserPermission();
}
if (!isset($orgprefObj)) {
    include_once SITE_CLASS_APPLICATION . "organization/class.OrganizationPreference.php";
    $orgprefObj = new OrganizationPreference();
}
if (!isset($poAttachmentObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderAttachment.php";
    $poAttachmentObj = new PurchaseOrderAttachment();
}
if (!isset($invOrdObj)) {
    include_once SITE_CLASS_APPLICATION . "user/class.InvoiceOrderHeading.php";
    $invOrdObj = new InvoiceOrderHeading();
}
$mmsg = "";
$msg = $_GET['msg'];
/*if($msg == 'ras') {
     $msg = $smarty->get_template_vars('MSG_ADD_SUCC');
} elseif($msg == 'raserr') {
     $msg = $smarty->get_template_vars('MSG_ADD_ERR');
} else*/
if ($msg == 'tmm') {
    $mmsg = $smarty->get_template_vars('LBL_PO_TOTAL_MISMATCH');
    $msg = '';
コード例 #2
0
ファイル: invpref_a.php プロジェクト: nstungxd/F2CA5
 $tbody_fr = str_replace($rplarr, " ", $db_email[0]['tBody_fr']);
 $emailContent_fr = trim(str_replace($body, $post, $tbody_fr));
 $dt['iOrganizationID'] = $invdt[0]['iSupplierOrganizationID'];
 $dt['vMailSubject_en'] = $db_email[0]['vSub_en'];
 $dt['vMailSubject_fr'] = $db_email[0]['vSub_fr'];
 $dt['tMailContent_en'] = $emailContent_en;
 $dt['tMailContent_fr'] = $emailContent_fr;
 $dt['eSubject'] = "Invoice";
 $dt['iCreatedBy'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_ID'];
 $dt['eCreatedType'] = $_SESSION['SESS_' . PRJ_CONST_PREFIX . '_USER_TYPE_SHORT'];
 $dt['dActionDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
 $userActionObj->setAllVar($dt);
 $userActionObj->insert();
 if (!isset($poaObj)) {
     include_once SITE_CLASS_APPLICATION . "user/class.PurchaseOrderAttachment.php";
     $poaObj = new PurchaseOrderAttachment();
 }
 $po_attach = $poaObj->getDetails('*', " AND iPurchaseOrderID={$iPurchaseOrderID}");
 // $po_attach = $poaObj->getDetails('*'," AND iPurchaseOrderID=39");
 //prints($po_attach); exit;
 if (is_array($po_attach) && count($po_attach) > 0) {
     //				$semi_rand = md5(time());
     //				$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
     //				$h_append .= "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\"";
     // prints($po_attach); exit;
     for ($l = 0; $l < count($po_attach); $l++) {
         $filepath = $generalobj->GetImagePath(array('section' => 'PO', 'type' => 'docs', 'id' => $iPurchaseOrderID, 'name' => $po_attach[$l]['vFile']));
         // prints($filepath); exit;
         $attachments[$l]['path'] = $filepath;
         $attachments[$l]['name'] = $po_attach[$l]['vFile'];
         // file attachment