Invoice prefix wasn't used in filename

As invoice_prefix uses lang and shop ids they have to be passed has parameters
This commit is contained in:
BigZ
2013-07-12 03:01:33 +02:00
parent 5d8d7c0383
commit e28a1e793a
+1 -1
View File
@@ -139,7 +139,7 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate
*/
public function getFilename()
{
return Configuration::get('PS_INVOICE_PREFIX').sprintf('%06d', $this->order_invoice->number).'.pdf';
return Configuration::get('PS_INVOICE_PREFIX', Context::getContext()->language->id, null, $this->order->id_shop).sprintf('%06d', $this->order_invoice->number).'.pdf';
}
}