Преглед на файлове

[Backend] Documents : problème montant facture #559

refactoring
Guillaume Bourgeois преди 2 години
родител
ревизия
cbab674a86
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. +1
    -1
      backend/views/document/_download_product_line.php
  2. +2
    -3
      common/models/Document.php

+ 1
- 1
backend/views/document/_download_product_line.php Целия файл

@@ -20,7 +20,7 @@

<?php if($displayPrices): ?>
<td class="align-center">
<?= Price::format($price) ?>
<?= Price::format($price) ?>
</td>
<?php endif; ?>
<td class="align-center">

+ 2
- 3
common/models/Document.php Целия файл

@@ -434,9 +434,8 @@ class Document extends ActiveRecordCommon
$productOrderMatch = false;
foreach ($productsOrdersArray[$indexProductOrder] as &$theProductOrder) {
if ($theProductOrder->unit == $productOrder->unit
&& ((!$this->isInvoicePrice() && $theProductOrder->price == $productOrder->price)
|| ($this->isInvoicePrice() && $theProductOrder->invoice_price == $productOrder->invoice_price)
)) {
&& $theProductOrder->price == $productOrder->price
&& $theProductOrder->invoice_price == $productOrder->invoice_price) {

$theProductOrder->quantity += $productOrder->quantity;
$productOrderMatch = true;

Loading…
Отказ
Запис