first commit
This commit is contained in:
23
plugins/stInvoicePlugin/lib/model/InvoiceProduct.php
Normal file
23
plugins/stInvoicePlugin/lib/model/InvoiceProduct.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user