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.

43 satır
2.1KB

  1. <tr class="<?php if(isset($displayOrders) && $displayOrders): ?>order<?php endif; ?>">
  2. <td class="align-left">
  3. <?php if($productOrder->product): ?>
  4. <?= Html::encode($productOrder->product->name) ?>
  5. <?php endif; ?>
  6. <?php if($productOrder->unit == 'piece' && isset($productOrder->product->weight) && $productOrder->product->weight): ?>
  7. <span class="weight"> / <?= $productOrder->product->weight ?> g</span>
  8. <?php endif; ?>
  9. <?php if($productOrder->product && strlen($productOrder->product->description) && $displayProductDescription): ?>
  10. <br /><small><?= Html::encode($productOrder->product->description) ?></small>
  11. <?php endif; ?>
  12. </td>
  13. <?php
  14. $price = $productOrder->getPrice() ;
  15. if($document->isInvoicePrice() && $productOrder->getInvoicePrice()) {
  16. $price = $productOrder->getInvoicePrice() ;
  17. }
  18. ?>
  19. <?php if($displayPrices): ?>
  20. <td class="align-center">
  21. <?= Price::format($price, $documentPriceDecimals) ?>
  22. </td>
  23. <?php endif; ?>
  24. <td class="align-center">
  25. <?= $productOrder->quantity * Product::$unitsArray[$productOrder->unit]['coefficient'] ?>
  26. </td>
  27. <td class="align-center"><?= Product::strUnit($productOrder->unit, 'wording') ?></td>
  28. <?php if($displayPrices): ?>
  29. <?php if($producer->taxRate->value != 0): ?>
  30. <td class="align-center"><?= $productOrder->taxRate->value * 100 ?> %</td>
  31. <?php endif; ?>
  32. <td class="align-center">
  33. <?php if($document->getClass() == ''): ?>
  34. <?= Price::format($price * $productOrder->quantity) ?>
  35. <?php else: ?>
  36. <?= Price::format($price * $productOrder->quantity) ?>
  37. <?php endif; ?>
  38. </td>
  39. <?php endif; ?>
  40. </tr>