Constructor.
<?php
require_once NOALYSS_INCLUDE."/class/acc_ledger_history.class.php";
echo Dossier::hidden();
echo
h1(
"Detailled Accounting");
echo
h2(
_(
"export detail html all ledgers result = Detailled Accounting from Acc_Ledger_History_Generic"));
echo '<a href="#n1">Detailled Accounting</a>';
$ledger_history->export_detail_html();
echo
h2(
_(
"Set mode to D etailled all_ledgers result = Detailled Accounting from Acc_Ledger_History_Generic" )
,'id="n1"');
echo '<a href="#n2">Sale Listing</a>';
$ledger_history->set_m_mode("D");
$ledger_history->export_html();
echo
h1(
_(
"Only VEN from Acc_Ledger_History_Sale"),
' id="n2"');
echo '<a href="#n3">Sale Detailed</a>';
$ledger_history->export_detail_html();
echo
h2(
_(
"Only VEN one line"));
$ledger_history->set_a_ledger([2]);
$ledger_history->set_m_mode("L");
$ledger_history->export_html();
echo
h2(
_(
"Only VEN Detailled"),
'id="n3"');
echo '<a href="#n4">Sale Extended</a>';
$ledger_history->set_a_ledger([2]);
$ledger_history->set_m_mode("D");
$ledger_history->export_html();
echo
h2(
_(
"Only VEN Extended"),
'id="n4"');
echo '<a href="#n5">Sale + Purchase</a>';
$ledger_history->set_a_ledger([2]);
$ledger_history->set_m_mode("E");
$ledger_history->export_html();
echo
h2(
"VEN + ACH",
'id="n5"');
echo '<a href="#n6">Purchase Detailed</a>';
$ledger_history->export_oneline_html();
echo
h1(
"ACH from Acc_Ledger_History_Purchase");
echo
h2(
"Detailled accouting",
'id="n6"');
echo '<a href="#n7">Purchase listing</a>';
$ledger_history->export_html();
echo
h2(
"Ach one line",
'id="n7"');
echo '<a href="#n8">Purchase Detailed</a>';
$ledger_history->set_m_mode("L");
$ledger_history->export_html();
echo
h2(
"Ach Detail" ,
'id="n8"');
echo '<a href="#n9">Purchase Extended</a>';
$ledger_history->set_m_mode("D");
$ledger_history->export_html();
echo
h2(
"Ach Extended" ,
'id="n9"');
echo '<a href="#n10">Financial</a>';
$ledger_history->set_m_mode("E");
$ledger_history->export_html();
echo
h1(
"FIN from Acc_Ledger_History_Financial");
echo
h2(
"Detailled accouting",
'id="n10"');
echo '<a href="#n11">Financial one line</a>';
$ledger_history->export_html();
echo
h2(
"FIN one line" ,
'id="n11"');
echo '<a href="#n12">Financial Detailed</a>';
$ledger_history->set_m_mode("L");
$ledger_history->export_html();
echo
h2(
">FIN Detail",
'id="n12"');
echo '<a href="#n13">Financial extended</a>';
$ledger_history->set_m_mode("D");
$ledger_history->export_html();
echo
h2(
"FIN Extended",
'id="n13"');
$ledger_history->set_m_mode("E");
$ledger_history->export_html();
h2($p_string, $p_class="", $raw="")
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
h1($p_string, $p_class="")
global $g_user
if no group available , then stop
_("actif, passif,charge,...")
display financial operations in HTML , PDF or CSV
Display the operations for Purchase.
static factory(Database $cn, $pa_ledger, $p_from, $p_to, $p_mode, $p_paid)
Build the right object.