echo "Invoice Total <b>" . number_format(round($invoiceTotal1, 2), 2) . "</b>"; $vattable = round($invoiceTotal1 / 1.12, 2); $vat = round($invoiceTotal1 - $vattable, 2); $wTax = round($vattable * 0.01, 2); $netTotal = round($invoiceTotal1 - $wTax, 2); $ro->coconutHidden("invoiceNo", $invoiceNo); $ro->coconutHidden("username", $username); $ro->coconutHidden("vat", $vat); $ro->coconutHidden("voucherNo", $voucherNo); $ro->coconutBoxStart("500", "420"); echo "<br>"; echo "<table>"; echo "<tr>"; echo "<TD>Check#</tD>"; echo "<TD>"; $ro->coconutTextBox("checkNo", ""); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<TD>Bank</tD>"; echo "<TD>"; $ro->coconutComboBoxStart_long("bank"); echo "<option value=''> </option>"; echo "<option value='RCBC'>RCBC</option>"; echo "<option value='MBTC'>MBTC</option>"; $ro->coconutComboBoxStop(); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<TD>OR#</tD>"; echo "<TD>";
$fgqty = $ro->selectNow("salesInvoiceItems", "fgquantity", "inventoryCode", $inventoryCode); $unit = $ro->selectNow("salesInvoiceItems", "unit", "inventoryCode", $inventoryCode); echo "<br><br>"; $ro->coconutFormStart("post", "editPurchasing1.php"); $ro->coconutHidden("inventoryCode", $inventoryCode); $ro->coconutHidden("refNo", $refNo); $ro->coconutHidden("sino", $sino); $ro->coconutHidden("page", $page); $ro->coconutHidden("username", $username); $ro->coconutBoxStart("500", "300"); echo "<br>"; echo "<table border=0>"; echo "<tr>"; echo "<td>Description</td>"; echo "<td>"; $ro->coconutTextBox("description", $description); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Generic</td>"; echo "<td>"; $ro->coconutTextBox("generic", $generic); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Unitcost</td>"; echo "<td>"; $ro->coconutTextBox("unitcost", $unitcost); echo "</td>"; echo "</tr>"; echo "<tr>";
$ro->coconutFormStart("get", "attributes1.php"); $ro->coconutHidden("date", $date); $ro->coconutHidden("shift", $shift); echo "<table border=0>"; echo "<tr>"; echo "<td>"; $ro->coconutComboboxStart_long("attributes"); echo "<option></option>"; echo "<option>Cash</option>"; echo "<option>Cr.Card</option>"; echo "<option>Voucher</option>"; echo "<option>Check</option>"; echo "<option>Change</option>"; $ro->coconutComboBoxStop(); echo "</td>"; echo "<td>"; $ro->coconutTextBox_short("amount", ""); echo "</td>"; echo "</tr>"; echo "<Tr>"; echo "<td>"; $ro->coconutTextBox("attributeName", ""); echo "</td>"; echo "<td>"; $ro->coconutTextBox_short("attributeValue", ""); echo "</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; $ro->coconutButton("Proceed"); $ro->coconutFormStop();
$ro->coconutHidden("chargeBy", $chargeBy); $ro->coconutHidden("service", $service); $ro->coconutHidden("title", $title); $ro->coconutHidden("paidVia", $paidVia); $ro->coconutHidden("cashPaid", $cashPaid); $ro->coconutHidden("batchNo", $batchNo); $ro->coconutHidden("username", $username); $ro->coconutHidden("quantity", $quantity); $ro->coconutHidden("inventoryFrom", $inventoryFrom); $ro->coconutHidden("paycash", $paycash); $ro->coconutHidden("remarks", $remarks); echo "<Br>"; echo "<table>"; echo "<tr>"; echo "<td>Balance</td>"; echo "<td>"; $ro->coconutTextBox("sellingPrice", ""); echo "</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; $ro->coconutButton("Proceed"); $ro->coconutBoxStop(); $ro->coconutFormStop(); } else { if ($title == "OT" || $title == "ST") { $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/therapyCharges.php?status=UNPAID®istrationNo={$registrationNo}&chargesCode={$chargesCode}&description={$description}&sellingPrice={$sellingPrice}&discount={$discount}&timeCharge={$timeCharge}&chargeBy={$chargeBy}&service={$service}&title={$title}&paidVia={$paidVia}&cashPaid={$cashPaid}&batchNo={$batchNo}&username={$username}&quantity={$quantity}&inventoryFrom={$inventoryFrom}&paycash={$paycash}&remarks={$remarks}"); } else { $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/availableCharges/addCharges.php?status=UNPAID®istrationNo={$registrationNo}&chargesCode={$chargesCode}&description={$description}&sellingPrice={$sellingPrice}&discount={$discount}&timeCharge={$timeCharge}&chargeBy={$chargeBy}&service={$service}&title={$title}&paidVia={$paidVia}&cashPaid={$cashPaid}&batchNo={$batchNo}&username={$username}&quantity={$quantity}&inventoryFrom={$inventoryFrom}&paycash={$paycash}&remarks={$remarks}"); } }
<?php include "../../myDatabase3.php"; $username = $_GET['username']; $ro = new database3(); $ro->coconutDesign(); echo "<br><br><br>"; $ro->coconutFormStart("get", "purchase_handler.php"); $ro->coconutHidden("username", $username); $ro->coconutBoxStart("500", "225"); echo "<br>"; echo "<Table border=0>"; echo "<tr>"; echo "<td>Invoice#</td>"; echo "<td>"; $ro->coconutTextBox("invoiceNo", ""); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Supplier</td>"; echo "<td>"; $ro->coconutComboBoxStart_long("supplier"); echo "<option></option>"; $ro->showOption("supplier", "supplierName"); $ro->coconutComboBoxStop(); echo "</td>"; echo "<tr>"; echo "<tr>"; echo "<td>Terms</td>"; echo "<td>"; $ro->coconutComboBoxStart_long("terms");