Pārlūkot izejas kodu

Merge branch 'dev'

master
Guillaume pirms 3 gadiem
vecāks
revīzija
8da58d9f3a
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      common/models/Document.php

+ 4
- 1
common/models/Document.php Parādīt failu

@@ -348,7 +348,10 @@ class Document extends ActiveRecordCommon
} else {
$productOrderMatch = false;
foreach ($productsOrdersArray[$productOrder->id_product] as &$theProductOrder) {
if ($theProductOrder->unit == $productOrder->unit && $theProductOrder->price == $productOrder->price) {
if ($theProductOrder->unit == $productOrder->unit
&& ($theProductOrder->price == $productOrder->price
|| ($this->isInvoicePrice()
&& $theProductOrder->invoice_price == $productOrder->invoice_price))) {
$theProductOrder->quantity += $productOrder->quantity;
$productOrderMatch = true;
}

Notiek ielāde…
Atcelt
Saglabāt