".htmlentities($msg['acquisition_rent_ges'],ENT_QUOTES, $charset)." : ".htmlentities($msg['acquisition_rent_invoices'],ENT_QUOTES, $charset)."";
switch($action) {
case 'list' :
entites::setSessionBibliId($id_bibli);
$rent_invoices = new rent_invoices();
print $rent_invoices->get_display_list();
break;
case 'edit' :
$rent_invoice = new rent_invoice($id);
print $rent_invoice->get_form();
break;
case 'update' :
$rent_invoice = new rent_invoice($id);
$rent_invoice->set_properties_from_form();
$rent_invoice->save();
$rent_invoices = new rent_invoices();
print $rent_invoices->get_display_list();
break;
case 'delete' :
$rent_invoice = new rent_invoice($id);
$rent_invoice->delete();
$rent_invoices = new rent_invoices();
print $rent_invoices->get_display_list();
break;
case 'create_from_accounts' :
$created = false;
if($ids) {
$accounts = explode(',', $ids);
$created = rent_invoices::create_from_accounts($accounts);
}
$rent_invoices = new rent_invoices();
if(!$created) {
$rent_invoices->set_messages($msg['acquisition_account_cant_invoice_create'].'
');
}
print $rent_invoices->get_display_list();
break;
case 'validate' :
if($ids) {
$invoices = explode(',', $ids);
rent_invoices::validate($invoices);
}
$rent_invoices = new rent_invoices();
print $rent_invoices->get_display_list();
break;
default:
print entites::show_list_biblio('get_display_list', 'rent_invoices');
break;
}