Browse Source

[Administration] Documents PDF : correctif unité colonne quantités

feature/souke
Guillaume Bourgeois 11 months ago
parent
commit
41fb6b64ae
1 changed files with 5 additions and 7 deletions
  1. +5
    -7
      backend/views/document/_download_product_line.php

+ 5
- 7
backend/views/document/_download_product_line.php View File

<?php <?php


use common\helpers\Price; use common\helpers\Price;
use common\logic\Config\Unit\Module\UnitModule;
use common\logic\Order\ProductOrder\Module\ProductOrderModule; use common\logic\Order\ProductOrder\Module\ProductOrderModule;
use common\logic\Producer\Producer\Module\ProducerModule; use common\logic\Producer\Producer\Module\ProducerModule;
use common\logic\Product\Product\Model\Product; use common\logic\Product\Product\Model\Product;
$productModule = $this->getProductModule(); $productModule = $this->getProductModule();
$productOrderModule = ProductOrderModule::getInstance(); $productOrderModule = ProductOrderModule::getInstance();
$producerModule = ProducerModule::getInstance(); $producerModule = ProducerModule::getInstance();
$unitModule = UnitModule::getInstance();


?> ?>


<?php endif; ?> <?php endif; ?>
<td class="align-center column-quantity"> <td class="align-center column-quantity">
<?= $productOrder->quantity * Product::$unitsArray[$productOrder->unit]['coefficient'] ?> <?= $productOrder->quantity * Product::$unitsArray[$productOrder->unit]['coefficient'] ?>
<?= $productModule->getSolver()->strUnit($productOrder->product, 'wording') ?>
<?= $unitModule->getSolver()->strUnit($productOrder->unit, 'wording') ?>
</td> </td>
<?php if($displayPrices): ?> <?php if($displayPrices): ?>
<?php if($producer->taxRate->value != 0): ?> <?php if($producer->taxRate->value != 0): ?>
<td class="align-center column-tax-rate"><?= $productOrder->taxRate->value * 100 ?> %</td>
<td class="align-center column-tax-rate"><?= $productOrder->taxRate->value * 100 ?> %</td>
<?php endif; ?> <?php endif; ?>
<td class="align-center column-price"> <td class="align-center column-price">
<?php if($documentModule->getClass($document) == ''): ?>
<?= Price::format($price * $productOrder->quantity) ?>
<?php else: ?>
<?= Price::format($price * $productOrder->quantity) ?>
<?php endif; ?>
<?= Price::format($price * $productOrder->quantity) ?>
</td> </td>
<?php endif; ?> <?php endif; ?>
</tr> </tr>

Loading…
Cancel
Save