24 lines
444 B
PHP
24 lines
444 B
PHP
<?php
|
|
|
|
/**
|
|
* Subclass for representing a row from the 'st_invoice_product' table.
|
|
*
|
|
*
|
|
*
|
|
* @package plugins.stInvoicePlugin.lib.model
|
|
*/
|
|
class InvoiceProduct extends BaseInvoiceProduct
|
|
{
|
|
public function getPriceBrutto()
|
|
{
|
|
$price = parent::getPriceBrutto();
|
|
|
|
if (null === $price)
|
|
{
|
|
$price = stPrice::calculate($this->getPriceNetto(), $this->getVat());
|
|
}
|
|
|
|
return $price;
|
|
}
|
|
}
|