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.

39 lines
1.9KB

  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
  12. $price = $productOrder->getPrice() ;
  13. if($document->isInvoicePrice() && $productOrder->getInvoicePrice()) {
  14. $price = $productOrder->getInvoicePrice() ;
  15. }
  16. ?>
  17. <?php if($displayPrices): ?>
  18. <td class="align-center">
  19. <?= Price::format($price) ?>
  20. </td>
  21. <?php endif; ?>
  22. <td class="align-center"><?= $productOrder->quantity * Product::$unitsArray[$productOrder->unit]['coefficient'] ?></td>
  23. <td class="align-center"><?= Product::strUnit($productOrder->unit, 'wording') ?></td>
  24. <?php if($displayPrices): ?>
  25. <?php if(GlobalParam::getCurrentProducer()->taxRate->value != 0): ?>
  26. <td class="align-center"><?= $productOrder->taxRate->value * 100 ?> %</td>
  27. <?php endif; ?>
  28. <td class="align-center">
  29. <?php if($document->getClass() == ''): ?>
  30. <?= Price::format($price * $productOrder->quantity) ?>
  31. <?php else: ?>
  32. <?= Price::format($price * $productOrder->quantity) ?>
  33. <?php endif; ?>
  34. </td>
  35. <?php endif; ?>
  36. </tr>