Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop
This commit is contained in:
commit
fdfcc064dc
@ -558,7 +558,7 @@ if ($object->fetch($id) >= 0)
|
|||||||
{
|
{
|
||||||
if ($object->statut < 2)
|
if ($object->statut < 2)
|
||||||
{
|
{
|
||||||
print '<tr '.$bc[false].'><td colspan="8">';
|
print '<tr '.$bc[false].'><td colspan="8" class="opacitymedium">';
|
||||||
print $langs->trans("NoTargetYet");
|
print $langs->trans("NoTargetYet");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -962,7 +962,7 @@ class FactureRec extends CommonInvoice
|
|||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
$this->date_when = $date;
|
$this->date_when = $date;
|
||||||
if ($increment_nb_gen_done>0) $_facrec->nb_gen_done++;
|
if ($increment_nb_gen_done>0) $this->nb_gen_done++;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -1269,7 +1269,7 @@ else
|
|||||||
// Nb of generation already done
|
// Nb of generation already done
|
||||||
print '<tr><td width="20%">'.$langs->trans("NbOfGenerationDone").'</td>';
|
print '<tr><td width="20%">'.$langs->trans("NbOfGenerationDone").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $object->nb_gen_done?$object->nb_gen_done:'';
|
print $object->nb_gen_done?$object->nb_gen_done:'0';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -1337,6 +1337,12 @@ else
|
|||||||
//if ($object->statut == Facture::STATUS_DRAFT) // there is no draft status on templates.
|
//if ($object->statut == Facture::STATUS_DRAFT) // there is no draft status on templates.
|
||||||
//{
|
//{
|
||||||
if ($user->rights->facture->creer)
|
if ($user->rights->facture->creer)
|
||||||
|
{
|
||||||
|
if (! empty($object->frequency) && $object->nb_gen_max > 0 && ($object->nb_gen_done >= $object->nb_gen_max))
|
||||||
|
{
|
||||||
|
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("MaxGenerationReached")).'">'.$langs->trans("CreateBill").'</a></div>';
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (empty($object->frequency) || $object->date_when <= $today)
|
if (empty($object->frequency) || $object->date_when <= $today)
|
||||||
{
|
{
|
||||||
@ -1347,6 +1353,7 @@ else
|
|||||||
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("DateIsNotEnough")).'">'.$langs->trans("CreateBill").'</a></div>';
|
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("DateIsNotEnough")).'">'.$langs->trans("CreateBill").'</a></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans("CreateBill").'</a></div>';
|
print '<div class="inline-block divButAction"><a class="butActionRefused" href="#">'.$langs->trans("CreateBill").'</a></div>';
|
||||||
|
|||||||
@ -4135,8 +4135,7 @@ function yn($yesno, $case=1, $color=0)
|
|||||||
/**
|
/**
|
||||||
* Return a path to have a directory according to object.
|
* Return a path to have a directory according to object.
|
||||||
* New usage: $conf->product->multidir_output[$object->entity].'/'.get_exdir(0, 0, 0, 1, $object, 'modulepart')
|
* New usage: $conf->product->multidir_output[$object->entity].'/'.get_exdir(0, 0, 0, 1, $object, 'modulepart')
|
||||||
* Old usage: '001' with level 3->"0/0/1/", '015' with level 3->"0/1/5/"
|
* Old usage: '015' with level 3->"0/1/5/", '015' with level 1->"5/", 'ABC-1' with level 3 ->"0/0/1/"
|
||||||
* Old usage: 'ABC-1' with level 3 ->"0/0/1/", '015' with level 1->"5/"
|
|
||||||
*
|
*
|
||||||
* @param string $num Id of object (deprecated, $object will be used in future)
|
* @param string $num Id of object (deprecated, $object will be used in future)
|
||||||
* @param int $level Level of subdirs to return (1, 2 or 3 levels). (deprecated, global option will be used in future)
|
* @param int $level Level of subdirs to return (1, 2 or 3 levels). (deprecated, global option will be used in future)
|
||||||
|
|||||||
@ -3,9 +3,9 @@ ACCOUNTING_EXPORT_SEPARATORCSV=Column separator for export file
|
|||||||
ACCOUNTING_EXPORT_DATE=Date format for export file
|
ACCOUNTING_EXPORT_DATE=Date format for export file
|
||||||
ACCOUNTING_EXPORT_PIECE=Export the number of piece
|
ACCOUNTING_EXPORT_PIECE=Export the number of piece
|
||||||
ACCOUNTING_EXPORT_GLOBAL_ACCOUNT=Export with global account
|
ACCOUNTING_EXPORT_GLOBAL_ACCOUNT=Export with global account
|
||||||
ACCOUNTING_EXPORT_LABEL=Export the label
|
ACCOUNTING_EXPORT_LABEL=Export label
|
||||||
ACCOUNTING_EXPORT_AMOUNT=Export the amount
|
ACCOUNTING_EXPORT_AMOUNT=Export amount
|
||||||
ACCOUNTING_EXPORT_DEVISE=Export the devise
|
ACCOUNTING_EXPORT_DEVISE=Export currency
|
||||||
Selectformat=Select the format for the file
|
Selectformat=Select the format for the file
|
||||||
ACCOUNTING_EXPORT_PREFIX_SPEC=Specify the prefix for the file name
|
ACCOUNTING_EXPORT_PREFIX_SPEC=Specify the prefix for the file name
|
||||||
|
|
||||||
|
|||||||
@ -142,7 +142,7 @@ Update=Update
|
|||||||
AddActionToDo=Add event to do
|
AddActionToDo=Add event to do
|
||||||
AddActionDone=Add event done
|
AddActionDone=Add event done
|
||||||
Close=Close
|
Close=Close
|
||||||
CloseBox=Remove box from your dashboard
|
CloseBox=Remove widget from your dashboard
|
||||||
Confirm=Confirm
|
Confirm=Confirm
|
||||||
ConfirmSendCardByMail=Do you really want to send content of this card by mail to <b>%s</b> ?
|
ConfirmSendCardByMail=Do you really want to send content of this card by mail to <b>%s</b> ?
|
||||||
Delete=Delete
|
Delete=Delete
|
||||||
@ -611,7 +611,7 @@ RecordsModified=%s records modified
|
|||||||
AutomaticCode=Automatic code
|
AutomaticCode=Automatic code
|
||||||
NotManaged=Not managed
|
NotManaged=Not managed
|
||||||
FeatureDisabled=Feature disabled
|
FeatureDisabled=Feature disabled
|
||||||
MoveBox=Move box %s
|
MoveBox=Move widget
|
||||||
Offered=Offered
|
Offered=Offered
|
||||||
NotEnoughPermissions=You don't have permission for this action
|
NotEnoughPermissions=You don't have permission for this action
|
||||||
SessionName=Session name
|
SessionName=Session name
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user