Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
aed4d69568
@ -190,7 +190,7 @@ $arrayfields = array(
|
|||||||
't.date_creation'=>array('label'=>$langs->trans("DateCreation"), 'checked'=>0),
|
't.date_creation'=>array('label'=>$langs->trans("DateCreation"), 'checked'=>0),
|
||||||
't.tms'=>array('label'=>$langs->trans("DateModification"), 'checked'=>0),
|
't.tms'=>array('label'=>$langs->trans("DateModification"), 'checked'=>0),
|
||||||
't.date_export'=>array('label'=>$langs->trans("DateExport"), 'checked'=>1),
|
't.date_export'=>array('label'=>$langs->trans("DateExport"), 'checked'=>1),
|
||||||
't.date_validated'=>array('label'=>$langs->trans("DateValidation"), 'checked'=>1),
|
't.date_validated'=>array('label'=>$langs->trans("DateValidationAndLock"), 'checked'=>1),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) {
|
if (empty($conf->global->ACCOUNTING_ENABLE_LETTERING)) {
|
||||||
@ -678,19 +678,28 @@ $formconfirm = '';
|
|||||||
if ($action == 'export_file') {
|
if ($action == 'export_file') {
|
||||||
$form_question = array();
|
$form_question = array();
|
||||||
|
|
||||||
|
// If 1 or not set, we check by default.
|
||||||
|
$checked = (!isset($conf->global->ACCOUNTING_DEFAULT_NOT_NOTIFIED_EXPORT_DATE) || !empty($conf->global->ACCOUNTING_DEFAULT_NOT_NOTIFIED_EXPORT_DATE));
|
||||||
$form_question['notifiedexportdate'] = array(
|
$form_question['notifiedexportdate'] = array(
|
||||||
'name' => 'notifiedexportdate',
|
'name' => 'notifiedexportdate',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => $langs->trans('NotifiedExportDate'),
|
'label' => $langs->trans('NotifiedExportDate'),
|
||||||
'value' => (empty($conf->global->ACCOUNTING_DEFAULT_NOTIFIED_EXPORT_DATE) ? false : true),
|
'value' => $checked,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$form_question['separator'] = array('name'=>'separator', 'type'=>'separator');
|
||||||
|
|
||||||
|
// If 0 or not set, we NOT check by default.
|
||||||
|
$checked = (isset($conf->global->ACCOUNTING_DEFAULT_NOT_NOTIFIED_VALIDATION_DATE) || !empty($conf->global->ACCOUNTING_DEFAULT_NOT_NOTIFIED_VALIDATION_DATE));
|
||||||
$form_question['notifiedvalidationdate'] = array(
|
$form_question['notifiedvalidationdate'] = array(
|
||||||
'name' => 'notifiedvalidationdate',
|
'name' => 'notifiedvalidationdate',
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => $langs->trans('NotifiedValidationDate'),
|
'label' => $langs->trans('NotifiedValidationDate'),
|
||||||
'value' => (empty($conf->global->ACCOUNTING_DEFAULT_NOTIFIED_VALIDATION_DATE) ? false : true),
|
'value' => $checked,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$form_question['separator2'] = array('name'=>'separator2', 'type'=>'separator');
|
||||||
|
|
||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?'.$param, $langs->trans("ExportFilteredList").' ('.$listofformat[$formatexportset].')', $langs->trans('ConfirmExportFile'), 'export_fileconfirm', $form_question, '', 1, 300, 600);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?'.$param, $langs->trans("ExportFilteredList").' ('.$listofformat[$formatexportset].')', $langs->trans('ConfirmExportFile'), 'export_fileconfirm', $form_question, '', 1, 300, 600);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -823,7 +832,7 @@ if (!empty($arrayfields['t.piece_num']['checked'])) {
|
|||||||
// Code journal
|
// Code journal
|
||||||
if (!empty($arrayfields['t.code_journal']['checked'])) {
|
if (!empty($arrayfields['t.code_journal']['checked'])) {
|
||||||
print '<td class="liste_titre center">';
|
print '<td class="liste_titre center">';
|
||||||
print $formaccounting->multi_select_journal($search_ledger_code, 'search_ledger_code', 0, 1, 1, 1, 'maxwidth150');
|
print $formaccounting->multi_select_journal($search_ledger_code, 'search_ledger_code', 0, 1, 1, 1, 'small maxwidth150');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Date document
|
// Date document
|
||||||
@ -845,10 +854,10 @@ if (!empty($arrayfields['t.doc_ref']['checked'])) {
|
|||||||
if (!empty($arrayfields['t.numero_compte']['checked'])) {
|
if (!empty($arrayfields['t.numero_compte']['checked'])) {
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
print '<div class="nowrap">';
|
print '<div class="nowrap">';
|
||||||
print $formaccounting->select_account($search_accountancy_code_start, 'search_accountancy_code_start', $langs->trans('From'), array(), 1, 1, 'maxwidth200', 'account');
|
print $formaccounting->select_account($search_accountancy_code_start, 'search_accountancy_code_start', $langs->trans('From'), array(), 1, 1, 'maxwidth150', 'account');
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '<div class="nowrap">';
|
print '<div class="nowrap">';
|
||||||
print $formaccounting->select_account($search_accountancy_code_end, 'search_accountancy_code_end', $langs->trans('to'), array(), 1, 1, 'maxwidth200', 'account');
|
print $formaccounting->select_account($search_accountancy_code_end, 'search_accountancy_code_end', $langs->trans('to'), array(), 1, 1, 'maxwidth150', 'account');
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
@ -1125,24 +1134,25 @@ while ($i < min($num, $limit)) {
|
|||||||
// Other type
|
// Other type
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="nowrap">';
|
$labeltoshow = '';
|
||||||
|
$labeltoshowalt = '';
|
||||||
print '<table class="nobordernopadding"><tr class="nocellnopadd">';
|
|
||||||
// Picto + Ref
|
|
||||||
print '<td class="nobordernopadding nowrap">';
|
|
||||||
|
|
||||||
if ($line->doc_type == 'customer_invoice' || $line->doc_type == 'supplier_invoice' || $line->doc_type == 'expense_report') {
|
if ($line->doc_type == 'customer_invoice' || $line->doc_type == 'supplier_invoice' || $line->doc_type == 'expense_report') {
|
||||||
print $objectstatic->getNomUrl(1, '', 0, 0, '', 0, -1, 1);
|
$labeltoshow .= $objectstatic->getNomUrl(1, '', 0, 0, '', 0, -1, 1);
|
||||||
print $documentlink;
|
$labeltoshow .= $documentlink;
|
||||||
|
$labeltoshowalt .= $objectstatic->ref;
|
||||||
} elseif ($line->doc_type == 'bank') {
|
} elseif ($line->doc_type == 'bank') {
|
||||||
print $objectstatic->getNomUrl(1);
|
$labeltoshow .= $objectstatic->getNomUrl(1);
|
||||||
|
$labeltoshowalt .= $objectstatic->ref;
|
||||||
$bank_ref = strstr($line->doc_ref, '-');
|
$bank_ref = strstr($line->doc_ref, '-');
|
||||||
print " " . $bank_ref;
|
$labeltoshow .= " " . $bank_ref;
|
||||||
|
$labeltoshowalt .= " " . $bank_ref;
|
||||||
} else {
|
} else {
|
||||||
print $line->doc_ref;
|
$labeltoshow .= $line->doc_ref;
|
||||||
|
$labeltoshowalt .= $line->doc_ref;
|
||||||
}
|
}
|
||||||
print '</td></tr></table>';
|
|
||||||
|
|
||||||
|
print '<td class="nowraponall tdoverflowmax200" title="'.dol_escape_htmltag($labeltoshowalt).'">';
|
||||||
|
print $labeltoshow;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
@ -1167,7 +1177,7 @@ while ($i < min($num, $limit)) {
|
|||||||
|
|
||||||
// Label operation
|
// Label operation
|
||||||
if (!empty($arrayfields['t.label_operation']['checked'])) {
|
if (!empty($arrayfields['t.label_operation']['checked'])) {
|
||||||
print '<td>'.$line->label_operation.'</td>';
|
print '<td class="small tdoverflowmax200" title="'.dol_escape_htmltag($line->label_operation).'">'.dol_escape_htmltag($line->label_operation).'</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
@ -1228,7 +1238,7 @@ while ($i < min($num, $limit)) {
|
|||||||
|
|
||||||
// Exported operation date
|
// Exported operation date
|
||||||
if (!empty($arrayfields['t.date_export']['checked'])) {
|
if (!empty($arrayfields['t.date_export']['checked'])) {
|
||||||
print '<td class="center">'.dol_print_date($line->date_export, 'dayhour').'</td>';
|
print '<td class="center nowraponall">'.dol_print_date($line->date_export, 'dayhour').'</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
@ -1236,7 +1246,7 @@ while ($i < min($num, $limit)) {
|
|||||||
|
|
||||||
// Validated operation date
|
// Validated operation date
|
||||||
if (!empty($arrayfields['t.date_validated']['checked'])) {
|
if (!empty($arrayfields['t.date_validated']['checked'])) {
|
||||||
print '<td class="center">'.dol_print_date($line->date_validation, 'dayhour').'</td>';
|
print '<td class="center nowraponall">'.dol_print_date($line->date_validation, 'dayhour').'</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4957,6 +4957,8 @@ class Form
|
|||||||
$moreonecolumn .= '</div>'."\n";
|
$moreonecolumn .= '</div>'."\n";
|
||||||
} elseif ($input['type'] == 'hidden') {
|
} elseif ($input['type'] == 'hidden') {
|
||||||
// Do nothing more, already added by a previous loop
|
// Do nothing more, already added by a previous loop
|
||||||
|
} elseif ($input['type'] == 'separator') {
|
||||||
|
$more .= '<br>';
|
||||||
} else {
|
} else {
|
||||||
$more .= 'Error type '.$input['type'].' for the confirm box is not a supported type';
|
$more .= 'Error type '.$input['type'].' for the confirm box is not a supported type';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -219,12 +219,12 @@ ByPredefinedAccountGroups=By predefined groups
|
|||||||
ByPersonalizedAccountGroups=By personalized groups
|
ByPersonalizedAccountGroups=By personalized groups
|
||||||
ByYear=By year
|
ByYear=By year
|
||||||
NotMatch=Not Set
|
NotMatch=Not Set
|
||||||
DeleteMvt=Delete some operation lines from accounting
|
DeleteMvt=Delete some lines from accounting
|
||||||
DelMonth=Month to delete
|
DelMonth=Month to delete
|
||||||
DelYear=Year to delete
|
DelYear=Year to delete
|
||||||
DelJournal=Journal to delete
|
DelJournal=Journal to delete
|
||||||
ConfirmDeleteMvt=This will delete all operation lines of the accounting for the year/month and/or for a specific journal (At least one criterion is required). You will have to reuse the feature '%s' to have the deleted record back in the ledger.
|
ConfirmDeleteMvt=This will delete all lines in accountancy for the year/month and/or for a specific journal (At least one criterion is required). You will have to reuse the feature '%s' to have the deleted record back in the ledger.
|
||||||
ConfirmDeleteMvtPartial=This will delete the transaction from the accounting (all operation lines related to the same transaction will be deleted)
|
ConfirmDeleteMvtPartial=This will delete the transaction from the accounting (all lines related to the same transaction will be deleted)
|
||||||
FinanceJournal=Finance journal
|
FinanceJournal=Finance journal
|
||||||
ExpenseReportsJournal=Expense reports journal
|
ExpenseReportsJournal=Expense reports journal
|
||||||
DescFinanceJournal=Finance journal including all the types of payments by bank account
|
DescFinanceJournal=Finance journal including all the types of payments by bank account
|
||||||
@ -301,7 +301,7 @@ Accounted=Accounted in ledger
|
|||||||
NotYetAccounted=Not yet transferred to accounting
|
NotYetAccounted=Not yet transferred to accounting
|
||||||
ShowTutorial=Show Tutorial
|
ShowTutorial=Show Tutorial
|
||||||
NotReconciled=Not reconciled
|
NotReconciled=Not reconciled
|
||||||
WarningRecordWithoutSubledgerAreExcluded=Warning, all operations without subledger account defined are filtered and excluded from this view
|
WarningRecordWithoutSubledgerAreExcluded=Warning, all lines without subledger account defined are filtered and excluded from this view
|
||||||
|
|
||||||
## Admin
|
## Admin
|
||||||
BindingOptions=Binding options
|
BindingOptions=Binding options
|
||||||
@ -329,8 +329,9 @@ ACCOUNTING_DISABLE_BINDING_ON_PURCHASES=Disable binding & transfer in accountanc
|
|||||||
ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS=Disable binding & transfer in accountancy on expense reports (expense reports will not be taken into account in accounting)
|
ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS=Disable binding & transfer in accountancy on expense reports (expense reports will not be taken into account in accounting)
|
||||||
|
|
||||||
## Export
|
## Export
|
||||||
NotifiedExportDate=Flag exported lines as exported (modification of the lines will not be possible)
|
NotifiedExportDate=Flag exported lines as Exported <span class="warning">(to modify a line, you will need to delete the whole transaction and re-transfert it into accounting)</span>
|
||||||
NotifiedValidationDate=Validate the exported entries (modification or deletion of the lines will not be possible)
|
NotifiedValidationDate=Validate and Lock the exported entries <span class="warning">(same effect than the "Closure" feature, modification and deletion of the lines will DEFINITELY not be possible)</span>
|
||||||
|
DateValidationAndLock=Date validation and lock
|
||||||
ConfirmExportFile=Confirmation of the generation of the accounting export file ?
|
ConfirmExportFile=Confirmation of the generation of the accounting export file ?
|
||||||
ExportDraftJournal=Export draft journal
|
ExportDraftJournal=Export draft journal
|
||||||
Modelcsv=Model of export
|
Modelcsv=Model of export
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user