//Changed English strings using the translationsenglish module.
This commit is contained in:
@@ -38,7 +38,7 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
'fields' => array(
|
||||
'PS_INVOICE' => array(
|
||||
'title' => $this->l('Enable invoices:'),
|
||||
'desc' => $this->l('If enabled, your customers will be able to receive an invoice for their purchases'),
|
||||
'desc' => $this->l('If enabled, your customers will be able to receive an invoice for their purchase(s).'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'bool'
|
||||
),
|
||||
@@ -50,7 +50,7 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
),
|
||||
'PS_INVOICE_START_NUMBER' => array(
|
||||
'title' => $this->l('Invoice number:'),
|
||||
'desc' => $this->l('The next invoice will begin with this number, and then increase with each additional invoice. Set to 0 if you want to keep the current number (#').(Order::getLastInvoiceNumber() + 1).').',
|
||||
'desc' => $this->l('The next invoice will begin with this number, and then increase with each additional invoice. Set to 0 if you want to keep the current number.').(Order::getLastInvoiceNumber() + 1).').',
|
||||
'size' => 6,
|
||||
'type' => 'text',
|
||||
'cast' => 'intval'
|
||||
@@ -144,11 +144,11 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
'id' => 'id_order_state',
|
||||
'name' => 'name'
|
||||
),
|
||||
'desc' => $this->l('You can also export orders which have not been charged yet').' (<img src="../img/admin/charged_ko.gif" alt="" />).'
|
||||
'desc' => $this->l('You can also export orders which have not been charged yet.').' (<img src="../img/admin/charged_ko.gif" alt="" />).'
|
||||
)
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Generate PDF file by status'),
|
||||
'title' => $this->l('Generate PDF file by status.'),
|
||||
'class' => 'button',
|
||||
'id' => 'submitPrint2'
|
||||
)
|
||||
@@ -206,7 +206,7 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
|
||||
$this->toolbar_btn['save-status'] = array(
|
||||
'href' => '#',
|
||||
'desc' => $this->l('Generate PDF file by status')
|
||||
'desc' => $this->l('Generate PDF file by status.')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -225,20 +225,20 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
if (count(OrderInvoice::getByDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to'))))
|
||||
Tools::redirectAdmin($this->context->link->getAdminLink('AdminPdf').'&submitAction=generateInvoicesPDF&date_from='.urlencode(Tools::getValue('date_from')).'&date_to='.urlencode(Tools::getValue('date_to')));
|
||||
|
||||
$this->errors[] = $this->l('No invoice found for this period');
|
||||
$this->errors[] = $this->l('No invoice has been found for this period.');
|
||||
}
|
||||
}
|
||||
else if (Tools::isSubmit('submitAddinvoice_status'))
|
||||
{
|
||||
if (!is_array($status_array = Tools::getValue('id_order_state')) || !count($status_array))
|
||||
$this->errors[] = $this->l('You must select at least one order status');
|
||||
$this->errors[] = $this->l('You must select at least one order status.');
|
||||
else
|
||||
{
|
||||
foreach ($status_array as $id_order_state)
|
||||
if (count(OrderInvoice::getByStatus((int)$id_order_state)))
|
||||
Tools::redirectAdmin($this->context->link->getAdminLink('AdminPdf').'&submitAction=generateInvoicesPDF2&id_order_state='.implode('-', $status_array));
|
||||
|
||||
$this->errors[] = $this->l('No invoice found for this status');
|
||||
$this->errors[] = $this->l('No invoice has been found for this status.');
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -248,7 +248,7 @@ class AdminInvoicesControllerCore extends AdminController
|
||||
public function beforeUpdateOptions()
|
||||
{
|
||||
if ((int)Tools::getValue('PS_INVOICE_START_NUMBER') != 0 && (int)Tools::getValue('PS_INVOICE_START_NUMBER') <= Order::getLastInvoiceNumber())
|
||||
$this->errors[] = $this->l('Invalid invoice number (must be > ').Order::getLastInvoiceNumber().')';
|
||||
$this->errors[] = $this->l('Invalid invoice number.').Order::getLastInvoiceNumber().')';
|
||||
}
|
||||
|
||||
protected function getInvoicesModels()
|
||||
|
||||
Reference in New Issue
Block a user