Commit 433881e8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Add new tab "Loss" to record invoices never paid and considered losses.

parent 1e528799
This diff is collapsed.
...@@ -45,6 +45,7 @@ $tabBox = new CTabBox( "?m=invoice", dPgetConfig('root_dir') . '/modules/invoice ...@@ -45,6 +45,7 @@ $tabBox = new CTabBox( "?m=invoice", dPgetConfig('root_dir') . '/modules/invoice
$tabBox->add( "vw_open", 'Invoices (Open)' ); $tabBox->add( "vw_open", 'Invoices (Open)' );
$tabBox->add( "vw_pend", 'Invoices (Pending)' ); $tabBox->add( "vw_pend", 'Invoices (Pending)' );
$tabBox->add( "vw_paid", 'Invoices (Paid)' ); $tabBox->add( "vw_paid", 'Invoices (Paid)' );
$tabBox->add( "vw_loss", 'Invoices (Loss)' );
$tabBox->show(); $tabBox->show();
?> ?>
...@@ -46,6 +46,8 @@ function showtask_inv( &$a, $level=0 ) { ...@@ -46,6 +46,8 @@ function showtask_inv( &$a, $level=0 ) {
$invoice_status="Pending"; $invoice_status="Pending";
}elseif ($a["invouce_status"] == "2") { }elseif ($a["invouce_status"] == "2") {
$invoice_status="Paid"; $invoice_status="Paid";
}elseif ($a["invouce_status"] == "3") {^M
$invoice_status="Loss";
} }
$start_date=strftime($df,$a["invoice_date"]); $start_date=strftime($df,$a["invoice_date"]);
......
<?php
include("vw_inc.php");
echo invoices(3);
?>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment