Add alert for outstanding bill

This commit is contained in:
simnandez 2013-11-15 17:43:13 +01:00
parent 1e008ede3c
commit 0aba9b02b8
4 changed files with 7 additions and 2 deletions

View File

@ -2314,12 +2314,14 @@ if ($action == 'create')
if ($soc->outstanding_limit)
{
$outstandigBills=$soc->get_OutstandingBill();
// Outstanding Bill
print '<tr><td>';
print $langs->trans('OutstandingBill');
print '</td><td align=right>';
print price($soc->get_OutstandingBill()).' / ';
print price($soc->outstanding_limit).'</td><td colspan=2>';
print price($outstandigBills);
if (price($outstandigBills)>price($soc->outstanding_limit)) print img_warning($langs->trans("OutstandingBillReached"));
print ' / '.price($soc->outstanding_limit).'</td><td colspan=2>';
print '</td>';
print '</tr>';
}

View File

@ -399,6 +399,7 @@ ActivityCeased=Closed
ActivityStateFilter=Activity status
ProductsIntoElements=List of products into
OutstandingBill=Max. for outstanding bill
OutstandingBillReached=Reached max. for outstanding bill
# Monkey
MonkeyNumRefModelDesc=Return numero with format %syymm-nnnn for customer code and %syymm-nnnn for supplier code where yy is year, mm is month and nnnn is a sequence with no break and no return to 0.
# Leopard

View File

@ -399,6 +399,7 @@ ActivityCeased=Cerrado
ActivityStateFilter=Estado de actividad
ProductsIntoElements=Listado de productos en %s
OutstandingBill=Importe máximo para facturas pendientes
OutstandingBillReached=Importe máximo alcanzado
# Monkey
MonkeyNumRefModelDesc=Devuelve un número bajo el formato %syymm-nnnn para los códigos de clientes y %syymm-nnnn para los códigos de los proveedores, donde yy es el año, mm el mes y nnnn un contador secuencial sin ruptura y sin volver a 0.
# Leopard

View File

@ -399,6 +399,7 @@ ActivityCeased=Clos
ActivityStateFilter=Statut d'activité
ProductsIntoElements=Liste des produits dans les %s
OutstandingBill=Montant max. en attente
OutstandingBillReached=Montant max. endetté
# Monkey
MonkeyNumRefModelDesc=Renvoie le numéro sous la forme %syymm-nnnn pour les codes clients et %syymm-nnnn pour les codes fournisseurs où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0.
# Leopard