CotisationTavApplication.php 1.69 KB
Newer Older
1 2 3 4 5 6 7 8 9
<?php

namespace App\Entity;

use App\Enum\CurrencyEnum;
use App\Utils\OperationFactory;
use Doctrine\ORM\Mapping as ORM;

/**
10
 * Application du calcul de l'allocation (emlc reçues) lors du paiement d'une cotisation (au sens TAV).
11 12 13
 * 
 * Au paiement d'une cotisation:
 *      - Un premier Flux est enregistré, correspondant à l'achat/vente d'emlc.
14 15 16 17 18
 *      - On crée un nouveau flux pour compléter la cotisation, en fonction du système de calcul choisi.
 * 
 * Systèmes de calculs possibles :
 *      - On applique le taux défini dans le ProfilDeCotisation de l'adhérent
 *      - On calcule le montant à recevoir en fonction du foyer de l'adhérent
19 20 21
 *
 * @ORM\Entity
 */
22
class CotisationTavApplication extends Flux
23 24 25
{
    const TYPE_REVERSEMENT_COTISATION_ADHERENT = 'reversement_cotisation_adherent';
    const TYPE_PRELEVEMENT_COTISATION_ADHERENT = 'prelevement_cotisation_adherent';
Yvon committed
26
    const TYPE_PRELEVEMENT_COTISATION_ADHERENT_DEPASSEMENT_PLAFOND = 'prelevement_cotisation_adherent_depassement_plafond';
27 28
    const TYPE_PRELEVEMENT_COTISATION_ADHERENT_CORRECTION_SOLDE = 'prelevement_cotisation_adherent_correction_solde';
    const TYPE_REVERSEMENT_COTISATION_ADHERENT_CORRECTION_SOLDE = 'reversement_cotisation_adherent_correction_solde';
29 30 31 32 33 34

    /**
     * @return string
     */
    public function getParenttype(): string
    {
35
        return parent::TYPE_APPLICATION_COTISATION_TAV;
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
    }

    public function getAllOperations($em)
    {
        return [];
    }

    public function operate($em)
    {
        return [];
    }

    /**
     * @return string
     */
    public function getType(): string
    {
        return '';
    }

    public function getUsersToNotify()
    {
        return [];
    }
}