get correct prefix for invoices
One must use the shop id when getting invoices prefix
This commit is contained in:
@@ -325,7 +325,7 @@
|
|||||||
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
|
<td>{displayPrice price=$payment->amount currency=$payment->id_currency}</td>
|
||||||
<td>
|
<td>
|
||||||
{if $invoice = $payment->getOrderInvoice($order->id)}
|
{if $invoice = $payment->getOrderInvoice($order->id)}
|
||||||
{$invoice->getInvoiceNumberFormatted($current_id_lang)}
|
{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}
|
||||||
{else}
|
{else}
|
||||||
{l s='No invoice'}
|
{l s='No invoice'}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<select name="payment_invoice" id="payment_invoice">
|
<select name="payment_invoice" id="payment_invoice">
|
||||||
{foreach from=$invoices_collection item=invoice}
|
{foreach from=$invoices_collection item=invoice}
|
||||||
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang)}</option>
|
<option value="{$invoice->id}" selected="selected">{$invoice->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)}</option>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user