[-] BO: get the invoice prefix from the right shop

This commit is contained in:
Rémi Gaillard
2013-02-04 15:11:29 +01:00
parent d6bd352844
commit 7bd44ca1b1
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ abstract class PaymentModuleCore extends Module
{
$pdf = new PDF($order->getInvoicesCollection(), PDF::TEMPLATE_INVOICE, $this->context->smarty);
$file_attachement['content'] = $pdf->render(false);
$file_attachement['name'] = Configuration::get('PS_INVOICE_PREFIX', (int)$order->id_lang).sprintf('%06d', $order->invoice_number).'.pdf';
$file_attachement['name'] = Configuration::get('PS_INVOICE_PREFIX', (int)$order->id_lang, null, $order->id_shop).sprintf('%06d', $order->invoice_number).'.pdf';
$file_attachement['mime'] = 'application/pdf';
}
else