[-] BO: Fix #PSCFV-7734 multiple order delivery number for the same order
This commit is contained in:
@@ -1175,6 +1175,9 @@ class OrderCore extends ObjectModel
|
|||||||
$order_invoice_collection = $this->getInvoicesCollection();
|
$order_invoice_collection = $this->getInvoicesCollection();
|
||||||
foreach ($order_invoice_collection as $order_invoice)
|
foreach ($order_invoice_collection as $order_invoice)
|
||||||
{
|
{
|
||||||
|
if ($order_invoice->delivery_number)
|
||||||
|
continue;
|
||||||
|
|
||||||
$number = (int)Configuration::get('PS_DELIVERY_NUMBER', null, null, $this->id_shop);
|
$number = (int)Configuration::get('PS_DELIVERY_NUMBER', null, null, $this->id_shop);
|
||||||
if (!$number)
|
if (!$number)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user