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:
1 parent
5d8d7c0383
commit
e28a1e793a
1 file changed
+1
-1
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user