commit
09d015c14c
@ -519,7 +519,7 @@ print '</table>';
|
|||||||
if (empty($conf->facture->enabled))
|
if (empty($conf->facture->enabled))
|
||||||
{
|
{
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print load_fiche_titre($langs->trans("SuggestedPaymentModesIfNotDefinedInProposal"),'','');
|
print load_fiche_titre($langs->trans("SuggestedPaymentModesIfNotDefinedInProposal"), '', '');
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'" />';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'" />';
|
||||||
@ -601,7 +601,7 @@ if (empty($conf->facture->enabled))
|
|||||||
|
|
||||||
print '<option value="'.$row[0].'"';
|
print '<option value="'.$row[0].'"';
|
||||||
print $conf->global->FACTURE_CHQ_NUMBER == $row[0] ? ' selected':'';
|
print $conf->global->FACTURE_CHQ_NUMBER == $row[0] ? ' selected':'';
|
||||||
print '>'.$langs->trans("OwnerOfBankAccount",$row[1]).'</option>';
|
print '>'.$langs->trans("OwnerOfBankAccount", $row[1]).'</option>';
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -288,13 +288,13 @@ elseif ($modecompta=="BOOKKEEPING")
|
|||||||
$j=1;
|
$j=1;
|
||||||
$sommes = array();
|
$sommes = array();
|
||||||
$totPerAccount = array();
|
$totPerAccount = array();
|
||||||
if (!is_array($cats) && $cats < 0) {
|
if (! is_array($cats) && $cats < 0) {
|
||||||
setEventMessages(null, $AccCat->errors, 'errors');
|
setEventMessages(null, $AccCat->errors, 'errors');
|
||||||
} elseif (is_array($cats) && count($cats)>0) {
|
} elseif (is_array($cats) && count($cats)>0) {
|
||||||
foreach ($cats as $cat) // Loop on each group
|
foreach ($cats as $cat) {
|
||||||
{
|
// Loop on each group
|
||||||
if (!empty($cat['category_type'])) // category calculed
|
if (!empty($cat['category_type'])) {
|
||||||
{
|
// category calculed
|
||||||
// When we enter here, $sommes was filled by group of accounts
|
// When we enter here, $sommes was filled by group of accounts
|
||||||
|
|
||||||
$formula = $cat['formula'];
|
$formula = $cat['formula'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user