コード例 #1
0
function sheet($_POST)
{
    # get vars
    foreach ($_POST as $key => $value) {
        ${$key} = $value;
    }
    if ($summary == 'yes') {
        $oerep = new grp_report("oe", "Equity & Liabilities", "credit - debit");
        $asrep = new grp_report("as", "Assets", "debit - credit");
    } else {
        $oerep = new acc_report("oe", "Equity & Liabilities", "credit - debit");
        $asrep = new acc_report("as", "Assets", "debit - credit");
    }
    /* -- Final Layout -- */
    $details = "<center>\n\t<h3>\n\t  " . COMP_NAME . " Balance sheet as at<br>\n\t  " . date("Y-m-d") . "\n\t</h3>\n\t<b>Author:</b> " . USER_NAME . "\n\t<form action='" . SELF . "' method=post name=form1>\n\t<input type=hidden name=key value=update>\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\n\t<tr><th width=15%></th><th width=25%></th><th width=40%></th><th width=20%></th></tr>\n\t" . $oerep->getREport() . "\n\t<tr><td colspan=4><br></td></tr>\n\t" . $asrep->getREport() . "\n\t<tr><td><br></td></tr>\n\t</table></form>\n\t<p>\n\t<table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' width=25%>\n\t\t<tr><th>Quick Links</th></tr>\n\t\t<tr class=datacell><td align=center><a target=_blank href='../core/acc-new2.php'>Add account (New Window)</a></td></tr>\n\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t</table></center>";
    return $details;
}
コード例 #2
0
function sheet($_POST)
{
    # get vars
    foreach ($_POST as $key => $value) {
        ${$key} = $value;
    }
    if ($summary == 'yes') {
        $oerep = new grp_report("oe", "Equity & Liabilities", "credit - debit");
        $asrep = new grp_report("as", "Assets", "debit - credit");
    } else {
        $oerep = new acc_report("oe", "Equity & Liabilities", "credit - debit");
        $asrep = new acc_report("as", "Assets", "debit - credit");
    }
    /* -- Final Layout -- */
    $details = "Balance sheet\r\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\r\n\t<tr><th width=15%></th><th width=25%></th><th width=40%></th><th width=20%></th></tr>\r\n\t" . $oerep->getREport() . "\r\n\t<tr><td colspan=4><br></td></tr>\r\n\t" . $asrep->getREport() . "\r\n\t<tr><td><br></td></tr>\r\n\t</table>";
    return $details;
}
コード例 #3
0
function sheet($_POST)
{
    # get vars
    foreach ($_POST as $key => $value) {
        ${$key} = $value;
    }
    if ($summary == 'yes') {
        $increp = new grp_report("inc", "Income", "credit - debit");
        $cosrep = new grp_report("cos", "Cost Of Sales", "debit - credit");
        $exprep = new grp_report("exp", "Expenditure", "debit - credit");
    } else {
        $increp = new acc_report("inc", "Income", "credit - debit");
        $cosrep = new acc_report("cos", "Cost Of Sales", "debit - credit");
        $exprep = new acc_report("exp", "Expenditure", "debit - credit");
    }
    $incbal = sprint($increp->getBalance());
    $cosbal = sprint($cosrep->getBalance());
    $expbal = sprint($exprep->getBalance());
    $grosamt = sprint($incbal - $cosbal);
    $nettamt = sprint($grosamt - $expbal);
    /* -- Final Layout -- */
    $details = "Income Statement\r\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\r\n\t<tr><th width=30%></th><th width=50%></th><th width=20%></th></tr>\r\n\t" . $increp->getReport() . "\r\n\t<tr><td colspan=3><br></td></tr>\r\n\t" . $cosrep->getReport() . "\r\n\t<tr><td colspan=3><br></td></tr>\r\n\t<tr><td align=right class=tot><br></td><td class=tot><b><u>Gross Profit</u></b></td><td align=right class=tot><b>{$grosamt}</b></td></tr>\r\n\t<tr><td colspan=3><br></td></tr>\r\n\t" . $exprep->getReport() . "\r\n\t<tr><td><br></td></tr>\r\n\t<tr><td align=right class=tot><br></td><td class=tot><b><u>Nett Profit</u></b></td><td align=right class=tot><b>{$nettamt}</b></td></tr>\r\n\t</table>";
    return $details;
}
コード例 #4
0
function sheet($_POST)
{
    # get vars
    foreach ($_POST as $key => $value) {
        ${$key} = $value;
    }
    if ($summary == 'yes') {
        $increp = new grp_report("inc", "Income", "credit - debit");
        $cosrep = new grp_report("cos", "Cost Of Sales", "debit - credit");
        $exprep = new grp_report("exp", "Expenditure", "debit - credit");
    } else {
        $increp = new acc_report("inc", "Income", "credit - debit");
        $cosrep = new acc_report("cos", "Cost Of Sales", "debit - credit");
        $exprep = new acc_report("exp", "Expenditure", "debit - credit");
    }
    $incbal = sprint($increp->getBalance());
    $cosbal = sprint($cosrep->getBalance());
    $expbal = sprint($exprep->getBalance());
    $grosamt = sprint($incbal - $cosbal);
    $nettamt = sprint($grosamt - $expbal);
    /* -- Final Layout -- */
    $details = "<center>\n\t<h3>\n\t  " . COMP_NAME . " Income Statement as at<br>\n\t  " . date("Y-m-d") . "\n\t</h3>\n\t<b>Author:</b> " . USER_NAME . "\n\t<form action='" . SELF . "' method=post name=form1>\n\t<input type=hidden name=key value=update>\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' border=0 width=600>\n\t<tr><th width=30%></th><th width=50%></th><th width=20%></th></tr>\n\t" . $increp->getReport() . "\n\t<tr><td colspan=3><br></td></tr>\n\t" . $cosrep->getReport() . "\n\t<tr><td colspan=3><br></td></tr>\n\t<tr class='bg-even'><td align=right class=tot><br></td><td class=tot><b><u>Gross Profit</u></b></td><td align=right class=tot><b>{$grosamt}</b></td></tr>\n\t<tr><td colspan=3><br></td></tr>\n\t" . $exprep->getReport() . "\n\t<tr><td><br></td></tr>\n\t<tr class='bg-even'><td align=right class=tot><br></td><td class=tot><b><u>Nett Profit</u></b></td><td align=right class=tot><b>{$nettamt}</b></td></tr>\n\t</table></form>\n\t<p>\n\t<table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "' width=25%>\n\t\t<tr><th>Quick Links</th></tr>\n\t\t<tr class=datacell><td align=center><a target=_blank href='../core/acc-new2.php'>Add account (New Window)</a></td></tr>\n\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t</table></center>";
    return $details;
}