You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
1.4KB

  1. <tr class="<?php if(isset($displayOrders) && $displayOrders): ?>order<?php endif; ?>">
  2. <td class="align-left">
  3. <?= Html::encode($productOrder->product->name) ?>
  4. <?php if($productOrder->unit == 'piece' && isset($productOrder->product->weight) && $productOrder->product->weight): ?>
  5. <span class="weight"> / <?= $productOrder->product->weight ?> g</span>
  6. <?php endif; ?>
  7. <?php if(strlen($productOrder->product->description)): ?>
  8. <br /><small><?= Html::encode($productOrder->product->description) ?></small>
  9. <?php endif; ?>
  10. </td>
  11. <?php if($displayPrices): ?>
  12. <td class="align-center"><?= Price::format($productOrder->getPrice()) ?></td>
  13. <?php endif; ?>
  14. <td class="align-center"><?= $productOrder->quantity * Product::$unitsArray[$productOrder->unit]['coefficient'] ?></td>
  15. <td class="align-center"><?= Product::strUnit($productOrder->unit, 'wording') ?></td>
  16. <?php if($displayPrices): ?>
  17. <?php if(GlobalParam::getCurrentProducer()->taxRate->value != 0): ?>
  18. <td class="align-center"><?= $productOrder->taxRate->value * 100 ?> %</td>
  19. <?php endif; ?>
  20. <td class="align-center"><?= Price::format($productOrder->getPrice() * $productOrder->quantity) ?></td>
  21. <?php endif; ?>
  22. </tr>