Skip to content
Code-Schnipsel Gruppen Projekte
CalculationVatValue.php 1,36 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    /**
     * This file contains QUI\ERP\Accounting\CalculationVatValue
     */
    
    namespace QUI\ERP\Accounting;
    
    use QUI;
    
    use QUI\ERP\Currency\Currency;
    
    
    /**
     * Class CalculationVatValue
     * - represent a number for the calculations
     * - additional represent a vat number
     *
     * @package QUI\ERP\Accounting
     */
    class CalculationVatValue extends CalculationValue
    {
        /**
         * @var string
         */
    
    Henning Leutz's avatar
    Henning Leutz committed
        protected string $text = '';
    
    Henning Leutz's avatar
    Henning Leutz committed
         * @var float
    
    Henning Leutz's avatar
    Henning Leutz committed
        protected float $vat;
    
    Henning Leutz's avatar
    Henning Leutz committed
         * @param int|float $number
    
         * @param float|int $vat
         * @param Currency|null $Currency
         * @param bool|int $precision - The optional number of decimal digits to round to.
    
            int | float $number,
    
            float | int $vat,
            null | QUI\ERP\Currency\Currency $Currency = null,
            bool | int $precision = false
    
            parent::__construct($number, $Currency, $precision);
    
            $this->text = $text;
    
    Henning Leutz's avatar
    Henning Leutz committed
        public function getTitle(): string
    
    Henning Leutz's avatar
    Henning Leutz committed
         * @return float
    
    Henning Leutz's avatar
    Henning Leutz committed
        public function getVat(): float