Skip to content

Commit

Permalink
NEW : classify billed orders and trads
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-gauthier committed Oct 7, 2016
1 parent cdc62f4 commit fbd06e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions htdocs/commande/list.php
Expand Up @@ -369,14 +369,15 @@

}

// Une fois fini :
$cmd->classifyBilled($user);

if(!empty($createbills_onebythird) && empty($TOrderTMP[$cmd->socid])) $TOrderTMP[$cmd->socid] = $object;
}

if (! $error)
{
$db->commit();
setEventMessage($nb_bills_created.' factures créées');
setEventMessage($langs->trans('BillCreated', $nb_bills_created));
}
else
{
Expand Down Expand Up @@ -730,7 +731,7 @@
print '</tr>';
print '<tr>';
print '<td>';
print $langs->trans('Créer une facture par tiers');
print $langs->trans('CreateOneBillByThird');
print '</td>';
print '<td>';
print $form->selectyesno('createbills_onebythird', '', 1);
Expand Down
3 changes: 2 additions & 1 deletion htdocs/langs/en_US/bills.lang
Expand Up @@ -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.
DeleteRepeatableInvoice=Delete template invoice
ConfirmDeleteRepeatableInvoice=Are your sure you want to delete the template invoice ?

CreateOneBillByThird=Create one bill by third
BillCreated=%s bill(s) created

0 comments on commit fbd06e4

Please sign in to comment.