Merge branch 'change-AdminInvoice' into develop
This commit is contained in:
commit
1ad30ee09c
@ -296,6 +296,8 @@ class AdminInvoices extends AdminTab
|
||||
<input type="submit" name="submitPrintM2Bis" class="button" value="'.$this->l('Print M2\'').'" />
|
||||
</td>*/
|
||||
$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="resetPrintM2Plus" class="btn btn-default btn-xs" value="'.$this->l('Unselect all').'" />
|
||||
</td>
|
||||
@ -724,7 +726,7 @@ class AdminInvoices extends AdminTab
|
||||
if (empty($id_sales) || (count($id_sales) < 2) ) {
|
||||
$this->_errors[] = $this->l('You must select 2 sales minimum for print M2+');
|
||||
} 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'));
|
||||
if(sizeof($orders)) {
|
||||
if(Tools::getValue('gift') == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user