NEW : classify billed orders and trads

This commit is contained in:
gauthier 2016-10-07 09:20:34 +02:00
parent cdc62f4054
commit fbd06e48cd
2 changed files with 6 additions and 4 deletions

View File

@ -369,14 +369,15 @@ if($massaction == 'confirm_createbills') {
} }
// Une fois fini : $cmd->classifyBilled($user);
if(!empty($createbills_onebythird) && empty($TOrderTMP[$cmd->socid])) $TOrderTMP[$cmd->socid] = $object; if(!empty($createbills_onebythird) && empty($TOrderTMP[$cmd->socid])) $TOrderTMP[$cmd->socid] = $object;
} }
if (! $error) if (! $error)
{ {
$db->commit(); $db->commit();
setEventMessage($nb_bills_created.' factures créées'); setEventMessage($langs->trans('BillCreated', $nb_bills_created));
} }
else else
{ {
@ -730,7 +731,7 @@ if ($resql)
print '</tr>'; print '</tr>';
print '<tr>'; print '<tr>';
print '<td>'; print '<td>';
print $langs->trans('Créer une facture par tiers'); print $langs->trans('CreateOneBillByThird');
print '</td>'; print '</td>';
print '<td>'; print '<td>';
print $form->selectyesno('createbills_onebythird', '', 1); print $form->selectyesno('createbills_onebythird', '', 1);

View File

@ -482,4 +482,5 @@ ToCreateARecurringInvoiceGene=To generate future invoices regularly and manually
ToCreateARecurringInvoiceGeneAuto=If you need to have such invoices generated automatically, ask you administrator to enable and setup module <strong>%s</strong>. Note that both method (manual and automatic) can be used together with no risk of duplication. ToCreateARecurringInvoiceGeneAuto=If you need to have such invoices generated automatically, ask you administrator to enable and setup module <strong>%s</strong>. Note that both method (manual and automatic) can be used together with no risk of duplication.
DeleteRepeatableInvoice=Delete template invoice DeleteRepeatableInvoice=Delete template invoice
ConfirmDeleteRepeatableInvoice=Are your sure you want to delete the template invoice ? ConfirmDeleteRepeatableInvoice=Are your sure you want to delete the template invoice ?
CreateOneBillByThird=Create one bill by third
BillCreated=%s bill(s) created