Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/public/notice.php
This commit is contained in:
commit
01914980d9
@ -184,7 +184,7 @@ llxHeader('', $langs->trans("MassBarcodeInit"));
|
|||||||
print load_fiche_titre($langs->trans("MassBarcodeInit"), '', 'title_setup.png');
|
print load_fiche_titre($langs->trans("MassBarcodeInit"), '', 'title_setup.png');
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print $langs->trans("MassBarcodeInitDesc").'<br>';
|
print '<span class="opacitymedium">'.$langs->trans("MassBarcodeInitDesc").'</span><br>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
//print img_picto('','puce').' '.$langs->trans("PrintsheetForOneBarCode").'<br>';
|
//print img_picto('','puce').' '.$langs->trans("PrintsheetForOneBarCode").'<br>';
|
||||||
@ -302,6 +302,12 @@ if ($conf->product->enabled || $conf->product->service)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("BarCodePrintsheet"), '', 'generic');
|
||||||
|
print '<br>'."\n";
|
||||||
|
print $langs->trans("ClickHereToGoTo").' : <a href="'.DOL_URL_ROOT.'/barcode/printsheet.php">'.$langs->trans("BarCodePrintsheet").'</a>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
|||||||
@ -265,7 +265,7 @@ llxHeader('', $langs->trans("BarCodePrintsheet"));
|
|||||||
print load_fiche_titre($langs->trans("BarCodePrintsheet"), '', 'barcode');
|
print load_fiche_titre($langs->trans("BarCodePrintsheet"), '', 'barcode');
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
print $langs->trans("PageToGenerateBarCodeSheets", $langs->transnoentitiesnoconv("BuildPageToPrint")).'<br>';
|
print '<span class="opacitymedium">'.$langs->trans("PageToGenerateBarCodeSheets", $langs->transnoentitiesnoconv("BuildPageToPrint")).'</span><br>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
dol_htmloutput_errors($mesg);
|
dol_htmloutput_errors($mesg);
|
||||||
|
|||||||
@ -34,7 +34,7 @@ NoInvoiceToWithdraw=No invoice open for '%s' is waiting. Go on tab '%s' on invoi
|
|||||||
NoSupplierInvoiceToWithdraw=No supplier invoice with open 'Direct credit requests' is waiting. Go on tab '%s' on invoice card to make a request.
|
NoSupplierInvoiceToWithdraw=No supplier invoice with open 'Direct credit requests' is waiting. Go on tab '%s' on invoice card to make a request.
|
||||||
ResponsibleUser=User Responsible
|
ResponsibleUser=User Responsible
|
||||||
WithdrawalsSetup=Direct debit payment setup
|
WithdrawalsSetup=Direct debit payment setup
|
||||||
CreditTransferSetup=Crebit transfer setup
|
CreditTransferSetup=Credit transfer setup
|
||||||
WithdrawStatistics=Direct debit payment statistics
|
WithdrawStatistics=Direct debit payment statistics
|
||||||
CreditTransferStatistics=Credit transfer statistics
|
CreditTransferStatistics=Credit transfer statistics
|
||||||
Rejects=Rejects
|
Rejects=Rejects
|
||||||
|
|||||||
@ -71,6 +71,7 @@ if ($action == 'add_prod' && ($user->rights->produit->creer || $user->rights->se
|
|||||||
{
|
{
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$maxprod = GETPOST("max_prod", 'int');
|
$maxprod = GETPOST("max_prod", 'int');
|
||||||
|
|
||||||
for ($i = 0; $i < $maxprod; $i++)
|
for ($i = 0; $i < $maxprod; $i++)
|
||||||
{
|
{
|
||||||
$qty = price2num(GETPOST("prod_qty_".$i, 'alpha'), 'MS');
|
$qty = price2num(GETPOST("prod_qty_".$i, 'alpha'), 'MS');
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2016-2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2016-2020 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
define('NOCSRFCHECK', 1);
|
define('NOCSRFCHECK', 1);
|
||||||
define('NOLOGIN', 1);
|
define('NOLOGIN', 1);
|
||||||
|
define('NOSESSION', 1);
|
||||||
|
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
|
|
||||||
@ -39,9 +40,8 @@ if (!GETPOST('transkey', 'alphanohtml') && !GETPOST('transphrase', 'alphanohtml'
|
|||||||
print 'Sorry, it seems your internet connexion is off.<br>';
|
print 'Sorry, it seems your internet connexion is off.<br>';
|
||||||
print 'You need to be connected to network to use this software.<br>';
|
print 'You need to be connected to network to use this software.<br>';
|
||||||
} else {
|
} else {
|
||||||
$langs->load("error");
|
$langs->loadLangs(array("error", "other"));
|
||||||
$langs->load("other");
|
|
||||||
|
|
||||||
if (GETPOST('transphrase', 'alphanohtml')) print GETPOST('transphrase', 'alphanohtml');
|
if (GETPOST('transphrase', 'alphanohtml')) print dol_escape_htmltag(GETPOST('transphrase', 'alphanohtml'));
|
||||||
if (GETPOST('transkey', 'alphanohtml')) print $langs->trans(GETPOST('transkey', 'alphanohtml'));
|
elseif (GETPOST('transkey', 'alphanohtml')) print dol_escape_htmltag($langs->trans(GETPOST('transkey', 'alphanohtml')));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -55,6 +55,7 @@ $object = new Societe($db);
|
|||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
$hookmanager->initHooks(array('thirdpartycustomerprice', 'globalcard'));
|
$hookmanager->initHooks(array('thirdpartycustomerprice', 'globalcard'));
|
||||||
|
|
||||||
|
$error = 0;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -73,6 +74,13 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'add_customer_price_confirm' && !$cancel && ($user->rights->produit->creer || $user->rights->service->creer)) {
|
if ($action == 'add_customer_price_confirm' && !$cancel && ($user->rights->produit->creer || $user->rights->service->creer)) {
|
||||||
|
if (! (GETPOST('prodid', 'int') > 0)) {
|
||||||
|
$error++;
|
||||||
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->trans("Product")), null, 'errors');
|
||||||
|
$action = 'add_customer_price';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! $error) {
|
||||||
$update_child_soc = GETPOST('updatechildprice');
|
$update_child_soc = GETPOST('updatechildprice');
|
||||||
|
|
||||||
// add price by customer
|
// add price by customer
|
||||||
@ -130,6 +138,7 @@ if (empty($reshook))
|
|||||||
|
|
||||||
$action = '';
|
$action = '';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($action == 'delete_customer_price' && ($user->rights->produit->creer || $user->rights->service->creer)) {
|
if ($action == 'delete_customer_price' && ($user->rights->produit->creer || $user->rights->service->creer)) {
|
||||||
// Delete price by customer
|
// Delete price by customer
|
||||||
@ -253,6 +262,9 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
|
|||||||
if ($action == 'add_customer_price') {
|
if ($action == 'add_customer_price') {
|
||||||
// Create mode
|
// Create mode
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
print '<!-- Price by customer -->'."\n";
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans('PriceByCustomer'));
|
print load_fiche_titre($langs->trans('PriceByCustomer'));
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'" method="POST">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$object->id.'" method="POST">';
|
||||||
@ -402,6 +414,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
|
|||||||
|
|
||||||
print '<br></form>';
|
print '<br></form>';
|
||||||
} elseif ($action == 'showlog_customer_price') {
|
} elseif ($action == 'showlog_customer_price') {
|
||||||
|
print '<br>';
|
||||||
print '<!-- showlog_customer_price -->'."\n";
|
print '<!-- showlog_customer_price -->'."\n";
|
||||||
|
|
||||||
$filter = array(
|
$filter = array(
|
||||||
@ -426,6 +439,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
|
|||||||
|
|
||||||
if (count($prodcustprice->lines) > 0) {
|
if (count($prodcustprice->lines) > 0) {
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'" method="POST">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||||
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
@ -510,6 +524,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
|
|||||||
print_barre_liste($langs->trans('PriceForEachProduct'), $page, $_SERVER['PHP_SELF'], $option, $sortfield, $sortorder, '', count($prodcustprice->lines), $nbtotalofrecords, '');
|
print_barre_liste($langs->trans('PriceForEachProduct'), $page, $_SERVER['PHP_SELF'], $option, $sortfield, $sortorder, '', count($prodcustprice->lines), $nbtotalofrecords, '');
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'" method="POST">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||||
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
@ -569,16 +584,16 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
|
|||||||
// Action
|
// Action
|
||||||
if ($user->rights->produit->creer || $user->rights->service->creer)
|
if ($user->rights->produit->creer || $user->rights->service->creer)
|
||||||
{
|
{
|
||||||
print '<td class="right">';
|
print '<td class="right nowraponall">';
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=showlog_customer_price&socid='.$object->id.'&prodid='.$line->fk_product.'">';
|
print '<a class="paddingleftonly paddingrightonly" href="'.$_SERVER["PHP_SELF"].'?action=showlog_customer_price&socid='.$object->id.'&prodid='.$line->fk_product.'">';
|
||||||
print img_info();
|
print img_info();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=edit_customer_price&socid='.$object->id.'&lineid='.$line->id.'">';
|
print '<a class="editfielda paddingleftonly paddingrightonly" href="'.$_SERVER["PHP_SELF"].'?action=edit_customer_price&socid='.$object->id.'&lineid='.$line->id.'">';
|
||||||
print img_edit('default', 0, 'style="vertical-align: middle;"');
|
print img_edit('default', 0, 'style="vertical-align: middle;"');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=delete_customer_price&socid='.$object->id.'&lineid='.$line->id.'">';
|
print '<a class="paddingleftonly paddingrightonly" href="'.$_SERVER["PHP_SELF"].'?action=delete_customer_price&socid='.$object->id.'&lineid='.$line->id.'">';
|
||||||
print img_delete('default', 'style="vertical-align: middle;"');
|
print img_delete('default', 'style="vertical-align: middle;"');
|
||||||
print '</a>';
|
print '</a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user