Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
Conflicts: htdocs/compta/facture/list.php htdocs/langs/fr_FR/bills.lang
This commit is contained in:
commit
2f269c75de
@ -5457,6 +5457,7 @@ class Facture extends CommonInvoice
|
|||||||
$sql .= ", ".MAIN_DB_PREFIX."c_paiement as cp";
|
$sql .= ", ".MAIN_DB_PREFIX."c_paiement as cp";
|
||||||
}
|
}
|
||||||
$sql .= " WHERE f.paye = 0";
|
$sql .= " WHERE f.paye = 0";
|
||||||
|
$sql .= " AND f.fk_statut = ".self::STATUS_VALIDATED;
|
||||||
$sql .= " AND f.date_lim_reglement = '".$this->db->idate($tmpidate, 'gmt')."'";
|
$sql .= " AND f.date_lim_reglement = '".$this->db->idate($tmpidate, 'gmt')."'";
|
||||||
$sql .= " AND f.entity IN (".getEntity('facture').")";
|
$sql .= " AND f.entity IN (".getEntity('facture').")";
|
||||||
if (!empty($paymentmode) && $paymentmode != 'all') {
|
if (!empty($paymentmode) && $paymentmode != 'all') {
|
||||||
|
|||||||
@ -1115,7 +1115,7 @@ if ($resql) {
|
|||||||
$langs->load("withdrawals");
|
$langs->load("withdrawals");
|
||||||
$arrayofmassactions['withdrawrequest'] = img_picto('', 'payment', 'class="pictofixedwidth"').$langs->trans("MakeWithdrawRequest");
|
$arrayofmassactions['withdrawrequest'] = img_picto('', 'payment', 'class="pictofixedwidth"').$langs->trans("MakeWithdrawRequest");
|
||||||
}
|
}
|
||||||
if ($user->rights->facture->supprimer) {
|
if (!empty($user->rights->facture->supprimer)) {
|
||||||
if (!empty($conf->global->INVOICE_CAN_REMOVE_DRAFT_ONLY)) {
|
if (!empty($conf->global->INVOICE_CAN_REMOVE_DRAFT_ONLY)) {
|
||||||
$arrayofmassactions['predeletedraft'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Deletedraft");
|
$arrayofmassactions['predeletedraft'] = img_picto('', 'delete', 'class="pictofixedwidth"').$langs->trans("Deletedraft");
|
||||||
} elseif (!empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) { // mass deletion never possible on invoices on such situation
|
} elseif (!empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) { // mass deletion never possible on invoices on such situation
|
||||||
|
|||||||
@ -74,6 +74,7 @@ if (!$error && $massaction == 'confirm_presend') {
|
|||||||
$nbignored = 0;
|
$nbignored = 0;
|
||||||
$langs->load("mails");
|
$langs->load("mails");
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/signature.lib.php';
|
||||||
|
|
||||||
$listofobjectid = array();
|
$listofobjectid = array();
|
||||||
$listofobjectthirdparties = array();
|
$listofobjectthirdparties = array();
|
||||||
|
|||||||
@ -610,7 +610,7 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
* Lines or orders with quantity shipped and remain to ship
|
* Lines or orders with quantity shipped and remain to ship
|
||||||
* Note: Qty shipped are already available into $object->expeditions[fk_product]
|
* Note: Qty shipped are already available into $object->expeditions[fk_product]
|
||||||
*/
|
*/
|
||||||
print '<table class="noborder noshadow" width="100%">';
|
print '<table id="tablelines" class="noborder noshadow" width="100%">';
|
||||||
|
|
||||||
$sql = "SELECT cd.rowid, cd.fk_product, cd.product_type as type, cd.label, cd.description,";
|
$sql = "SELECT cd.rowid, cd.fk_product, cd.product_type as type, cd.label, cd.description,";
|
||||||
$sql .= " cd.price, cd.tva_tx, cd.subprice,";
|
$sql .= " cd.price, cd.tva_tx, cd.subprice,";
|
||||||
@ -635,18 +635,19 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($resql) {
|
if ($resql) {
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
print '<thead>';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<th>'.$langs->trans("Description").'</th>';
|
||||||
print '<td class="center">'.$langs->trans("QtyOrdered").'</td>';
|
print '<th class="center">'.$langs->trans("QtyOrdered").'</th>';
|
||||||
print '<td class="center">'.$langs->trans("QtyShipped").'</td>';
|
print '<th class="center">'.$langs->trans("QtyShipped").'</th>';
|
||||||
print '<td class="center">'.$langs->trans("KeepToShip").'</td>';
|
print '<th class="center">'.$langs->trans("KeepToShip").'</th>';
|
||||||
if (!empty($conf->stock->enabled)) {
|
if (!empty($conf->stock->enabled)) {
|
||||||
print '<td class="center">'.$langs->trans("RealStock").'</td>';
|
print '<th class="center">'.$langs->trans("RealStock").'</th>';
|
||||||
} else {
|
} else {
|
||||||
print '<td> </td>';
|
print '<th> </th>';
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
print '</thead>';
|
||||||
|
|
||||||
$toBeShipped = array();
|
$toBeShipped = array();
|
||||||
$toBeShippedTotal = 0;
|
$toBeShippedTotal = 0;
|
||||||
|
|||||||
@ -137,7 +137,7 @@ if ($reshook < 0) {
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter', 'alpha') || GETPOST('valid')) { // Both test are required to be compatible with all browsers
|
if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter', 'alpha')) { // Both test are required to be compatible with all browsers
|
||||||
$search_ref = '';
|
$search_ref = '';
|
||||||
$search_label = '';
|
$search_label = '';
|
||||||
$sall = '';
|
$sall = '';
|
||||||
@ -669,6 +669,8 @@ if ($search_ref || $search_label || $sall || $salert || $draftorder || GETPOST('
|
|||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$filters .= '&limit='.urlencode($limit);
|
$filters .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
|
if (!empty($includeproductswithoutdesiredqty)) $filters .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty);
|
||||||
|
if (!empty($salert)) $filters .= '&salert='.urlencode($salert);
|
||||||
|
|
||||||
$param = (isset($type) ? '&type='.urlencode($type) : '');
|
$param = (isset($type) ? '&type='.urlencode($type) : '');
|
||||||
$param .= '&fourn_id='.urlencode($fourn_id).'&search_label='.urlencode($search_label).'&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty).'&salert='.urlencode($salert).'&draftorder='.urlencode($draftorder);
|
$param .= '&fourn_id='.urlencode($fourn_id).'&search_label='.urlencode($search_label).'&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty).'&salert='.urlencode($salert).'&draftorder='.urlencode($draftorder);
|
||||||
@ -676,6 +678,8 @@ $param .= '&search_ref='.urlencode($search_ref);
|
|||||||
$param .= '&mode='.urlencode($mode);
|
$param .= '&mode='.urlencode($mode);
|
||||||
$param .= '&fk_supplier='.urlencode($fk_supplier);
|
$param .= '&fk_supplier='.urlencode($fk_supplier);
|
||||||
$param .= '&fk_entrepot='.urlencode($fk_entrepot);
|
$param .= '&fk_entrepot='.urlencode($fk_entrepot);
|
||||||
|
if (!empty($includeproductswithoutdesiredqty)) $param .= '&includeproductswithoutdesiredqty='.urlencode($includeproductswithoutdesiredqty);
|
||||||
|
if (!empty($salert)) $param .= '&salert='.urlencode($salert);
|
||||||
|
|
||||||
$stocklabel = $langs->trans('Stock');
|
$stocklabel = $langs->trans('Stock');
|
||||||
$stocklabelbis = $langs->trans('Stock');
|
$stocklabelbis = $langs->trans('Stock');
|
||||||
|
|||||||
@ -85,7 +85,7 @@ print '<br><br>'."\n";
|
|||||||
print "*** TEST READ OF /test.txt FILE AND LS /dev/std*<br>\n";
|
print "*** TEST READ OF /test.txt FILE AND LS /dev/std*<br>\n";
|
||||||
|
|
||||||
exec('cat /test.txt; ls /dev/std*; sleep 1;', $out, $ret);
|
exec('cat /test.txt; ls /dev/std*; sleep 1;', $out, $ret);
|
||||||
print $ret."<br>\n";
|
print "ret=".$ret."<br>\n";
|
||||||
print_r($out);
|
print_r($out);
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
@ -97,5 +97,5 @@ print "*** TRY TO RUN CLAMDSCAN<br>\n";
|
|||||||
$ret = 0;
|
$ret = 0;
|
||||||
$out = null;
|
$out = null;
|
||||||
exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret);
|
exec('/usr/bin/clamdscan --fdpass filethatdoesnotexists.php', $out, $ret);
|
||||||
print $ret."<br>\n";
|
print "ret=".$ret."<br>\n";
|
||||||
print_r($out);
|
print_r($out);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user