fix bugs
This commit is contained in:
parent
3d34054aec
commit
0dd562f216
@ -296,6 +296,8 @@ class AdminInvoices extends AdminTab
|
|||||||
<input type="submit" name="submitPrintM2Bis" class="button" value="'.$this->l('Print M2\'').'" />
|
<input type="submit" name="submitPrintM2Bis" class="button" value="'.$this->l('Print M2\'').'" />
|
||||||
</td>*/
|
</td>*/
|
||||||
$form .= '<td align="center" style="padding:5px;">
|
$form .= '<td align="center" style="padding:5px;">
|
||||||
|
<input type="hidden" name="date_to" value="'. Tools::getValue('date_to') .'" />
|
||||||
|
<input type="hidden" name="date_from" value="'. Tools::getValue('date_from') .'" />
|
||||||
<input type="submit" name="submitPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Print M2+').'" />
|
<input type="submit" name="submitPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Print M2+').'" />
|
||||||
<input type="submit" name="resetPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Unselect all').'" />
|
<input type="submit" name="resetPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Unselect all').'" />
|
||||||
</td>
|
</td>
|
||||||
@ -724,7 +726,7 @@ class AdminInvoices extends AdminTab
|
|||||||
if (empty($id_sales) || (count($id_sales) < 2) ) {
|
if (empty($id_sales) || (count($id_sales) < 2) ) {
|
||||||
$this->_errors[] = $this->l('You must select 2 sales minimum for print M2+');
|
$this->_errors[] = $this->l('You must select 2 sales minimum for print M2+');
|
||||||
} else {
|
} else {
|
||||||
$statuts = array(17, Configuration::get('PS_OS_PAYMENT'));
|
$statuts = array(17, (int)Configuration::get('PS_OS_PAYMENT'));
|
||||||
$orders = Sale::getOrdersM2($statuts, $id_sales, Tools::getValue('date_from'), Tools::getValue('date_to'));
|
$orders = Sale::getOrdersM2($statuts, $id_sales, Tools::getValue('date_from'), Tools::getValue('date_to'));
|
||||||
if(sizeof($orders)) {
|
if(sizeof($orders)) {
|
||||||
if(Tools::getValue('gift') == 1) {
|
if(Tools::getValue('gift') == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user