Merge remote-tracking branch 'origin/3.8' into develop
Conflicts: htdocs/core/tpl/objectline_edit.tpl.php
This commit is contained in:
commit
91ddca6ab0
@ -259,8 +259,7 @@ if (! empty($conf->margin->enabled))
|
|||||||
|
|
||||||
/* Init field buying_price and fournprice */
|
/* Init field buying_price and fournprice */
|
||||||
$.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', {'idprod': <?php echo $line->fk_product?$line->fk_product:0; ?>}, function(data) {
|
$.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', {'idprod': <?php echo $line->fk_product?$line->fk_product:0; ?>}, function(data) {
|
||||||
console.log(data);
|
if (data && data.length > 0) {
|
||||||
if (data && data.length > 0) {
|
|
||||||
var options = '';
|
var options = '';
|
||||||
var trouve=false;
|
var trouve=false;
|
||||||
$(data).each(function() {
|
$(data).each(function() {
|
||||||
|
|||||||
@ -282,7 +282,7 @@ print "</tr>\n";
|
|||||||
// FILTRES
|
// FILTRES
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td class="liste_titre" align="left" width="50">';
|
print '<td class="liste_titre" align="left" width="50">';
|
||||||
print '<input class="flat" size="4" type="text" name="search_ref" value="'.$search_ref.'">';
|
print '<input class="flat" size="4" type="text" name="search_ref" value="'.dol_escape_htmltag($search_ref).'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// DATE CREATE
|
// DATE CREATE
|
||||||
|
|||||||
@ -339,7 +339,7 @@ MinLength=Minimum length
|
|||||||
LanguageFilesCachedIntoShmopSharedMemory=Files .lang loaded in shared memory
|
LanguageFilesCachedIntoShmopSharedMemory=Files .lang loaded in shared memory
|
||||||
ExamplesWithCurrentSetup=Examples with current running setup
|
ExamplesWithCurrentSetup=Examples with current running setup
|
||||||
ListOfDirectories=List of OpenDocument templates directories
|
ListOfDirectories=List of OpenDocument templates directories
|
||||||
ListOfDirectoriesForModelGenODT=List of directories containing templates files with OpenDocument format.<br><br>Put here full path of directories.<br>Add a carriage return between eah directory.<br>To add a directory of the GED module, add here <b>DOL_DATA_ROOT/ecm/yourdirectoryname</b>.<br><br>Files in those directories must end with <b>.odt</b>.
|
ListOfDirectoriesForModelGenODT=List of directories containing templates files with OpenDocument format.<br><br>Put here full path of directories.<br>Add a carriage return between eah directory.<br>To add a directory of the GED module, add here <b>DOL_DATA_ROOT/ecm/yourdirectoryname</b>.<br><br>Files in those directories must end with <b>.odt</b> or <b>.ods</b>.
|
||||||
NumberOfModelFilesFound=Number of ODT/ODS templates files found in those directories
|
NumberOfModelFilesFound=Number of ODT/ODS templates files found in those directories
|
||||||
ExampleOfDirectoriesForModelGen=Examples of syntax:<br>c:\mydir<br>/home/mydir<br>DOL_DATA_ROOT/ecm/ecmdir
|
ExampleOfDirectoriesForModelGen=Examples of syntax:<br>c:\mydir<br>/home/mydir<br>DOL_DATA_ROOT/ecm/ecmdir
|
||||||
FollowingSubstitutionKeysCanBeUsed=<br>To know how to create your odt document templates, before storing them in those directories, read wiki documentation:
|
FollowingSubstitutionKeysCanBeUsed=<br>To know how to create your odt document templates, before storing them in those directories, read wiki documentation:
|
||||||
|
|||||||
@ -310,10 +310,11 @@ if (empty($reshook))
|
|||||||
{
|
{
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
$upload_dir = $conf->projet->dir_output . "/";
|
$upload_dir = $conf->projet->dir_output . "/";
|
||||||
$file = $upload_dir . '/' . GETPOST('file');
|
$urlfile=GETPOST('urlfile','alpha');
|
||||||
|
$file = $upload_dir . '/' . $filetodelete;
|
||||||
$ret=dol_delete_file($file);
|
$ret=dol_delete_file($file);
|
||||||
if ($ret) setEventMessage($langs->trans("FileWasRemoved", GETPOST('urlfile')));
|
if ($ret) setEventMessage($langs->trans("FileWasRemoved", $urlfile));
|
||||||
else setEventMessage($langs->trans("ErrorFailToDeleteFile", GETPOST('urlfile')), 'errors');
|
else setEventMessage($langs->trans("ErrorFailToDeleteFile", $urlfile), 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user