Ejemplo n.º 1
0
        $account = NULL;
        $account_type = NULL;
    }
    $date = new DateTime('now', new DateTimeZone('Asia/Karachi'));
    $date = $date->format("j-n-Y");
    // Add General Ladger
    // $results = $accounts->create_general_ledger($amount, $type, $account, $account_type, $date);
    //$results_general_ledger = $accounts->create_general_ledger($bill_amount, $type, $account, $account_type, $date);
    $account = 'supplier';
    $account_type = $supplier_id;
    $type = 'payable';
    $status = 0;
    // Add Account Payable
    //$results = $accounts->create_payable_receviable($amount, $account, $person, $date, $due_date, $type, $status);
    //$results_account_payable = $accounts->create_payable_receviable($bill_amount, $account, $account_type, $date, $due_date, $type, $status);
    $results = $suppliers->add_bill($_POST);
    if (isset($results)) {
        echo '<div class="alert alert-success" role="alert"> Add Purchase Sucessfully </div>';
    } else {
        echo '<div class="alert alert-danger" role="alert"> Error </div>';
    }
}
?>
			<div class="the-box noborder">
				<form id="ExampleBootstrapValidationForm" method="post" action="" class="form-horizontal">
					<fieldset>
						<legend>Bill Detail:</legend>
						
						<div class="form-group">
							<label class="col-lg-3 control-label">Supplier Name</label>
							<div class="col-lg-5">