$class = ''; } $sel = new selectlist($id, $any->anylist, 'Select Training Catagory', 'Catagory_ID', 'Catagory', $class, '', '1'); break; case 'question': //machine list $que = new Question(); if (isset($_GET['cid'])) { $que->setValue('catagoryid', $_GET['cid']); } $que->createQuestionList(); $sel = new selectlist('Question_ID', $que->getQuestionList(), 'Select Question', 'Question_ID', 'ques', '', '', '1'); break; case 'polist': //machine list $po = new Purchaseorder(); if (isset($_GET['sid'])) { $po->setValue('supplierid', $_GET['sid']); } if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 'PO_ID'; } if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } $po->createPOList(); $sel = new selectlist($id, $po->getPOList(), 'Select Purchase Order', 'PO_ID', 'podes', '', '', '1');
<?php require_once "../../../lib/purchaseOrder.class.php"; require_once "../../../lib/helper_functions.php"; $purchase = new Purchaseorder(); $purchases = $purchase->find(); ?> <div id="inline_form"> <div class="mediumbody"> <div class="lowbanner1"> </div> <div class="lowbannertest"> <ul> <li style="width:310px">Items </li> <li style="width:110px">Supplier</li> <li style="width:100px">Date</li> <li style="width:100px">Terms Of Payment</li> </ul> </div> <div class="lowbanner3"> </div> </div> <?php if (!empty($purchases)) { ?> <?php foreach ($purchases as $pur) {
<?php require_once 'autoload.php'; date_default_timezone_set('Asia/Kolkata'); require_once '../tcpdf/tcpdf.php'; $po = new Purchaseorder(); if (isset($_POST['Supplier_ID'])) { if (isset($_POST['pono'])) { $po->setValue('pono', $_POST['pono']); $pono = $_POST['pono']; } if (isset($_POST['PO_ID'])) { $po->setValue('poid', $_POST['PO_ID']); $poid = $_POST['PO_ID']; } if (isset($_POST['podatedb'])) { $po->setValue('podatedb', $_POST['podatedb']); $podatedb = $_POST['podatedb']; } if (isset($_POST['requireddatedb'])) { $po->setValue('requireddatedb', $_POST['requireddatedb']); $requireddatedb = $_POST['requireddatedb']; } if (isset($_POST['requireddate'])) { $po->setValue('requireddate', $_POST['requireddate']); $requireddate = $_POST['requireddate']; } if (isset($_POST['notlaterdate'])) { $po->setValue('notlaterdate', $_POST['notlaterdate']); $notlaterdate = $_POST['notlaterdate']; }
<table class="table table-striped table-bordered table-hover" id="sample_1"> <thead> <tr> <!-- <th class="table-checkbox"><input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/></th> --> <th>Voucher No</th> <th>Product</th> <th>Quantity</th> <th>Voucher Date</th> <th>Saler/Purchaser Name</th> <th>Date Created</th> <th>Action</th> </tr> </thead> <tbody> <?php $results = Purchaseorder::getPurchaseorders(); if (count($results) > 0) { for ($index = 0; $index < count($results); $index++) { $rows = $results[$index]; ?> <tr class="<?php echo ($index + 1) % 2 == 0 ? 'even' : 'odd'; ?> gradeX"> <!-- <td> <input name="delete[]" type="checkbox" id="delete[]" value="<?php echo $rows['id']; ?> " class="checkboxes" /> </td> --> <td><?php echo $rows['voucherno']; ?>
<?php include_once 'config.php'; include_once '../checkAdminPagePermissions.php'; $dbBean = new DatabaseBean(); $general = new General($dbBean); $menu_id = empty($_REQUEST['menu_id']) ? $_SESSION['menu_id'] : $_REQUEST['menu_id']; $heading = $general->getPageHeading($menu_id); $Purchaseorder = new Purchaseorder($dbBean); $rows = $Purchaseorder->getPurchaseorderById($_REQUEST['id']); ?> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <?php include '../common.php'; ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_URL; ?> /assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.css"/> <!-- END PAGE LEVEL STYLES --> <?php
<?php require_once '../../lib/defination.class.php'; include '../../lib/supplier.class.php'; include '../../lib/stock.class.php'; include '../../lib/purchaseOrder.class.php'; include '../../lib/mrr.class.php'; $stock = new Stock(); $MRR = new MRR(); $output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name'); // get suppliers info for combo box; $Supplier = new Supplier(); $outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_id', 'sup_name', true); $Purchase = new Purchaseorder(); $outputPurchaseorder = options_for_select($Purchase->RetrivePurchaseOrder(), 'pm_id', 'pm_no', true); $locations = options_for_select($stock->retriveLocation(), 'stock_location_id', 'stock_location_name'); $num = $MRR->getNewId(); ?> <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" /> <div id="note"> </div> <form id="mrrForm" name="mrrForm" method="post" action="includes/model/mrr_order_actions.php" > <div class='morelabel'> <p> <label>MRR # </label> <input type="text" disabled value="<?php echo generate_timestamp('MRR', $num); ?> " />
<?php require_once "../../../lib/purchaseOrder.class.php"; require_once "../../../lib/helper_functions.php"; $P_order = new Purchaseorder(); $P_orders = $P_order->PrintPurchaseOrderById((int) $_GET[id]); // echo "<pre>"; // var_dump($getPassDetails); // echo "</pre>"; $row = count($P_orders); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Print Purchase Order</title> <style type="text/css"> .style1 { font-size: 14px; font-weight: bold; } .font_content { font-size:10px; } .style11 { font-size:12px; font-weight:bold; }
<?php require_once '../../lib/purchaseOrder.class.php'; $purchase_ms_id = (int) $_GET[purchase_ms_id]; $purchase = new Purchaseorder(); $purchaseDetails = $purchase->RetrivePurchaseOrderByMsId($purchase_ms_id); $output = ''; $output = '<div class="centerbody small_font"> <div class="lowbanner1"> </div> <div class="lowbanner2"> <ul> <li>Stock Item </li> <li>Code No</li> <li>Part No</li> <li>Descrip.</li> <li>Quantity</li> <li>Rate</li> <li>Total</li> </ul> </div> <div class="lowbanner3"> </div> </div> <div class="clear"> </div> '; $counter = count($purchaseDetails); for ($i = 0; $i < $counter; $i++) { $output .= ' <div class="small_row_elements"> <input type=hidden name=item_code[] value=' . $purchaseDetails[$i]["stock_item_id"] . '> <input type=text name=stock_item[] value=' . $purchaseDetails[$i]["stock_item_name"] . '> <input type=text value=' . $purchaseDetails[$i]["stock_code_m_id"] . '>
<?php require_once '../../lib/defination.class.php'; include '../../lib/supplier.class.php'; include '../../lib/stock.class.php'; include '../../lib/indent.class.php'; include '../../lib/purchaseOrder.class.php'; $stock = new Stock(); $output = options_for_select($stock->retriveStockItem(), 'stock_item_id', 'stock_item_name'); // get suppliers info for combo box; $Supplier = new Supplier(); $outputSupplierItem = options_for_select($Supplier->retriveSupplierInfo(), 'sup_id', 'sup_name', true); $Indent = new Indent(); $outputIndentNo = options_for_select($Indent->retriveIndendInfo(), 'indent_id', 'indent_code', true); $Purchaseorder = new Purchaseorder(); $num = $Purchaseorder->getNewId(); ?> <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" /> <div id="note"> </div> <form id="requisitionForm" name="requisitionForm" method="post" action="includes/model/purchase_order_actions.php" > <div class="vertical_form"> <p> <div align="left"> <label>Party Name:</label> <select name="selSupplier" id="selSupplier"> <?php echo $outputSupplierItem; ?>
<?php include 'config.php'; $dbBean = new DatabaseBean(); $general = new General($dbBean); $Purchaseorder = new Purchaseorder($dbBean); if ($_REQUEST['FLAG'] == 'ADD_PURCHASE') { if (trim($_REQUEST['product']) == "") { $_SESSION['msg'] = 'Please select product'; $num = 'danger'; $url = ADMIN_URL . "/purchaseorders/add.php"; $general->redirectUrl($url, $num); exit; } if (trim($_REQUEST['productqty']) == "") { $_SESSION['msg'] = 'Please enter product quantity'; $num = 'danger'; $url = ADMIN_URL . "/purchaseorders/add.php"; $general->redirectUrl($url, $num); exit; } else { $pattern = '/^[0-9]+$/'; if (preg_match($pattern, trim($_REQUEST['productqty'])) == '0') { $_SESSION['msg'] = 'Please enter valid product quantity'; $num = 'danger'; $url = ADMIN_URL . "/purchaseorders/add.php"; $general->redirectUrl($url, $num); exit; } } if (trim($_REQUEST['name']) == "") {
<?php session_start(); require_once '../../lib/requisition.class.php'; require_once '../../lib/indent.class.php'; require_once '../../lib/purchaseOrder.class.php'; extract($_POST); //print_r($_POST); $Purchaseorder = new Purchaseorder(); $num = $Purchaseorder->getNewId(); $getData = "'\${$num}','{$Purchase_num}','{$selSupplier}','{$date_of_submit}','{$indentNo}','{$naration}','{$delivery}', '{$termsofpayment}','{$support}','{$others}'"; extract($Purchaseorder->CreatePurchaseOrderMaster($getData)); $getData = ''; $counter = $id; for ($i = 0; $i < count($item_code); $i++) { $getData = "'null',\t'{$counter}',\n\t\t\t\t\t\t\t\t'{$item_code[$i]}',\n\t\t\t\t\t\t\t\t'{$item_qty[$i]}',\n\t\t\t\t\t\t\t\t'{$item_rate[$i]}',\n\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t'{$item_amount[$i]}'"; $Purchaseorder->CreatePurchaseOrderDetails($getData); } echo "Purchase Order Save Successfully";
<?php require_once "../../../lib/purchaseOrder.class.php"; require_once "../../../lib/helper_functions.php"; $purchase = new Purchaseorder(); $purchase_details = $purchase->FindDetailsOfPurchase((int) $_GET[id]); $purchase_m_id = $_GET[id]; ?> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a class="button" href="includes/contents/voucher_print/print_purchase_order.php?id=<?php echo $purchase_m_id; ?> " title="Purchase List">Print</a></td> </tr> </table> <div id="inline_form"> <div class="mediumbody"> <div class="lowbanner1"> </div> <div class="lowbannertest"> <ul> <li style="width:420px">Items </li> <li style="width:90px">Quantity</li> <li style="width:110px">Rate</li> <li style="width:30px">Amount</li> </ul> </div> <div class="lowbanner3"> </div> </div>
<?php include_once 'config.php'; include_once '../checkAdminPagePermissions.php'; $dbBean = new DatabaseBean(); $general = new General($dbBean); $menu_id = empty($_REQUEST['menu_id']) ? $_SESSION['menu_id'] : $_REQUEST['menu_id']; $heading = $general->getPageHeading($menu_id); $Purchaseorder = new Purchaseorder($dbBean); $rows = $Purchaseorder->getLastPurchaseordersId(); $v = VOUCHER_NO_CONST; if (count($rows) > 0) { $lastvoucherid = $rows[0]['id'] + 1; } else { $lastvoucherid = ''; } if ($lastvoucherid == '') { $voucherno = $v + 1; } else { $voucherno = $v + $lastvoucherid; } ?> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <?php