src/Entity/CommandeSpecialeDetail.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * CommandeSpecialeDetail.php
  4.  * Created by Stéphane Brun
  5.  * Date: 08/06/2018 at 10:50
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="commande_speciale_detail")
  12.  */
  13. class CommandeSpecialeDetail
  14. {
  15.     const HISTORY_WATCH = array(
  16.         'quantite' => 'Quantité',
  17.         'motes' => 'Note',
  18.         'pvu' => 'Prix de vente unitaire',
  19.         'reponse' => 'Réponse',
  20.         'status' => 'Status',
  21.         'comptant' => 'Comptant',
  22.         'mastercard' => 'Mastercard',
  23.         'visa' => 'Visa',
  24.         'interact' => 'Interact',
  25.         'certificatCadeau' => 'Certificat cadeau',
  26.         'quantiteRecu' => 'Quantité reçue',
  27.         'quantiteFacturee' => 'Quantité facturée',
  28.         'dateAnnule' => 'Date d\'annulation',
  29.         'dateRembourse' => 'Date de remboursement',
  30.         'dateEnvoye' => 'Date d\'envoi',
  31.     );
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      * @ORM\Id
  35.      * @ORM\GeneratedValue(strategy="AUTO")
  36.      */
  37.     protected $id;
  38.     /**
  39.      * @ORM\Column(name="bon_commande", type="string", length=100, nullable=true)
  40.      */
  41.     protected $bonCommande;
  42.     /**
  43.      * @ORM\Column(name="client_telephone", type="string", length=50, nullable=true)
  44.      */
  45.     protected $clientTelephone;
  46.     /**
  47.      * @ORM\Column(name="client_nom", type="string", length=50, nullable=true)
  48.      */
  49.     protected $clientNom;
  50.     /**
  51.      * @ORM\Column(name="titre", type="string", length=150, nullable=true)
  52.      */
  53.     protected $titre;
  54.     /**
  55.      * @ORM\Column(name="diff", type="integer", nullable=true)
  56.      */
  57.     protected $diff;
  58.     /**
  59.      * @ORM\Column(name="quantite", type="integer")
  60.      */
  61.     protected $quantite;
  62.     /**
  63.      * @ORM\Column(name="notes", type="text", nullable=true)
  64.      */
  65.     protected $notes;
  66.     /**
  67.      * @ORM\Column(name="commentaire_interne", type="text", nullable=true)
  68.      */
  69.     protected $commentaireInterne;
  70.     /**
  71.      * @ORM\Column(name="pvu", type="float", nullable=true)
  72.      */
  73.     protected $pvu;
  74.     /**
  75.      * @ORM\Column(name="commander", type="boolean")
  76.      */
  77.     protected $commander false;
  78.     /**
  79.      * @ORM\Column(name="repondu", type="boolean")
  80.      */
  81.     protected $repondu false;
  82.     /**
  83.      * @ORM\Column(name="acompte_recu", type="boolean")
  84.      */
  85.     protected $acompteRecu false;
  86.     /**
  87.      * @ORM\Column(name="imprime", type="boolean")
  88.      */
  89.     protected $imprime false;
  90.     /**
  91.      * TODO: c'est une liaison HasOne(Factures)
  92.      * @ORM\Column(name="acompte_pris_sur", type="integer", nullable=true)
  93.      */
  94.     protected $acomptePrisSur;
  95.     /**
  96.      * @ORM\Column(name="comptant", type="float", nullable=true)
  97.      */
  98.     protected $comptant;
  99.     /**
  100.      * @ORM\Column(name="mastercard", type="float", nullable=true)
  101.      */
  102.     protected $mastercard;
  103.     /**
  104.      * @ORM\Column(name="visa", type="float", nullable=true)
  105.      */
  106.     protected $visa;
  107.     /**
  108.      * @ORM\Column(name="interact", type="float", nullable=true)
  109.      */
  110.     protected $interact;
  111.     /**
  112.      * @ORM\Column(name="certificat_cadeau", type="float", nullable=true)
  113.      */
  114.     protected $certificatCadeau;
  115.     /**
  116.      * @ORM\Column(name="commande_passee", type="boolean")
  117.      */
  118.     protected $commandePassee false;
  119.     /**
  120.      * @ORM\Column(name="quantite_recue", type="integer", nullable=true)
  121.      */
  122.     protected $quantiteRecue 0;
  123.     /**
  124.      * @ORM\Column(name="quantite_facturee", type="integer", nullable=true)
  125.      */
  126.     protected $quantiteFacturee 0;
  127.     /**
  128.      * @ORM\Column(name="init", type="string", length=10, nullable=true)
  129.      */
  130.     protected $init;
  131.     /**
  132.      * @ORM\Column(name="date", type="datetime")
  133.      */
  134.     protected $date;
  135.     /**
  136.      * @ORM\Column(name="prix_fixe", type="boolean")
  137.      */
  138.     protected $prixFixe false;
  139.     /**
  140.      * @ORM\Column(name="date_annule", type="datetime", nullable=true)
  141.      */
  142.     protected $dateAnnule;
  143.     /**
  144.      * @ORM\Column(name="date_rembourse", type="datetime", nullable=true)
  145.      */
  146.     protected $dateRembourse;
  147.     /**
  148.      * @ORM\Column(name="date_envoye", type="datetime", nullable=true)
  149.      */
  150.     protected $dateEnvoye;
  151.     /**
  152.      * @ORM\Column(name="commentaire_client", type="string", length=50, nullable=true)
  153.      */
  154.     protected $commentaireClient;
  155.     /**
  156.      * has one Commande
  157.      *
  158.      * @ORM\ManyToOne(targetEntity="App\Entity\Commande")
  159.      * @ORM\JoinColumn(name="commande_id", referencedColumnName="id", nullable=true)
  160.      */
  161.     protected $commande;
  162.     /**
  163.      * has one CommandeSpeciale
  164.      *
  165.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeSpeciale", inversedBy="details", cascade={"persist"})
  166.      * @ORM\JoinColumn(name="commande_speciale_id", referencedColumnName="id")
  167.      */
  168.     protected $commandeSpeciale;
  169.     /**
  170.      * has one Titre
  171.      *
  172.      * @ORM\ManyToOne(targetEntity="App\Entity\Titre", inversedBy="commandesSpecialesDetail")
  173.      * @ORM\JoinColumn(name="titre_id", referencedColumnName="TISBN")
  174.      */
  175.     protected $produit;
  176.     /**
  177.      * has one TitreCompany
  178.      *
  179.      * @ORM\ManyToOne(targetEntity="App\Entity\TitreCompany", inversedBy="commandesSpecialeDetails")
  180.      * @ORM\JoinColumn(name="titre_company_id", referencedColumnName="id")
  181.      */
  182.     protected $titreCompany;
  183.     /**
  184.      * has one Company
  185.      *
  186.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  187.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  188.      */
  189.     protected $company;
  190.     /**
  191.      * has one CommandeSpecialeDetailType
  192.      *
  193.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeReponse")
  194.      * @ORM\JoinColumn(name="type_id", referencedColumnName="id")
  195.      */
  196.     protected $reponse;
  197.     /**
  198.      * has one CommandeSpecialeDetailStatus
  199.      *
  200.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeSpecialeDetailStatus")
  201.      * @ORM\JoinColumn(name="status_id", referencedColumnName="id")
  202.      */
  203.     protected $status;
  204.     /**
  205.      * @ORM\OneToMany(targetEntity="ReceptionDetail", mappedBy="commandeSpecialeDetail")
  206.      */
  207.     protected $receptionDetail;
  208.     /**
  209.      * @ORM\OneToMany(targetEntity="FacturesDetail", mappedBy="recuAcompte")
  210.      */
  211.     protected $facturesDetail;
  212.     public function __construct()
  213.     {
  214.         // Default values
  215.         $this->quantite 1;
  216.         $this->date = new \DateTime();
  217.     }
  218.     public function __toString()
  219.     {
  220.         return (string)$this->getId();
  221.     }
  222.     /**
  223.      * @return mixed
  224.      */
  225.     public function getId()
  226.     {
  227.         return $this->id;
  228.     }
  229.     /**
  230.      * @return mixed
  231.      */
  232.     public function getClientTelephone()
  233.     {
  234.         return $this->clientTelephone;
  235.     }
  236.     /**
  237.      * @param mixed $clientTelephone
  238.      * @return CommandeSpecialeDetail
  239.      */
  240.     public function setClientTelephone($clientTelephone)
  241.     {
  242.         $this->clientTelephone $clientTelephone;
  243.         return $this;
  244.     }
  245.     /**
  246.      * @return mixed
  247.      */
  248.     public function getClientNom()
  249.     {
  250.         return $this->clientNom;
  251.     }
  252.     /**
  253.      * @param mixed $clientNom
  254.      * @return CommandeSpecialeDetail
  255.      */
  256.     public function setClientNom($clientNom)
  257.     {
  258.         $this->clientNom $clientNom;
  259.         return $this;
  260.     }
  261.     /**
  262.      * @return mixed
  263.      */
  264.     public function getTitre()
  265.     {
  266.         return $this->titre;
  267.     }
  268.     /**
  269.      * @param mixed $titre
  270.      * @return CommandeSpecialeDetail
  271.      */
  272.     public function setTitre($titre)
  273.     {
  274.         $this->titre $titre;
  275.         return $this;
  276.     }
  277.     /**
  278.      * @return mixed
  279.      */
  280.     public function getDiff()
  281.     {
  282.         return $this->diff;
  283.     }
  284.     /**
  285.      * @param mixed $diff
  286.      * @return CommandeSpecialeDetail
  287.      */
  288.     public function setDiff($diff)
  289.     {
  290.         $this->diff $diff;
  291.         return $this;
  292.     }
  293.     /**
  294.      * @return mixed
  295.      */
  296.     public function getQuantite()
  297.     {
  298.         return $this->quantite;
  299.     }
  300.     /**
  301.      * @param mixed $quantite
  302.      * @return CommandeSpecialeDetail
  303.      */
  304.     public function setQuantite($quantite)
  305.     {
  306.         $this->quantite $quantite;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @return mixed
  311.      */
  312.     public function getNotes()
  313.     {
  314.         return $this->notes;
  315.     }
  316.     /**
  317.      * @param mixed $notes
  318.      * @return CommandeSpecialeDetail
  319.      */
  320.     public function setNotes($notes)
  321.     {
  322.         $this->notes $notes;
  323.         return $this;
  324.     }
  325.     /**
  326.      * @return mixed
  327.      */
  328.     public function getCommentaireInterne()
  329.     {
  330.         return $this->commentaireInterne;
  331.     }
  332.     /**
  333.      * @param mixed $commentaireInterne
  334.      * @return CommandeSpecialeDetail
  335.      */
  336.     public function setCommentaireInterne($commentaireInterne)
  337.     {
  338.         $this->commentaireInterne $commentaireInterne;
  339.         return $this;
  340.     }
  341.     /**
  342.      * @return mixed
  343.      */
  344.     public function getPvu()
  345.     {
  346.         return $this->pvu;
  347.     }
  348.     /**
  349.      * @param mixed $pvu
  350.      * @return CommandeSpecialeDetail
  351.      */
  352.     public function setPvu($pvu)
  353.     {
  354.         $this->pvu $pvu;
  355.         return $this;
  356.     }
  357.     /**
  358.      * @return mixed
  359.      */
  360.     public function getCommander()
  361.     {
  362.         return $this->commander;
  363.     }
  364.     /**
  365.      * @param mixed $commander
  366.      * @return CommandeSpecialeDetail
  367.      */
  368.     public function setCommander($commander)
  369.     {
  370.         $this->commander $commander;
  371.         return $this;
  372.     }
  373.     /**
  374.      * @return mixed
  375.      */
  376.     public function getRepondu()
  377.     {
  378.         return $this->repondu;
  379.     }
  380.     /**
  381.      * @param mixed $repondu
  382.      * @return CommandeSpecialeDetail
  383.      */
  384.     public function setRepondu($repondu)
  385.     {
  386.         $this->repondu $repondu;
  387.         return $this;
  388.     }
  389.     /**
  390.      * @return mixed
  391.      */
  392.     public function getAcompteRecu()
  393.     {
  394.         return $this->acompteRecu;
  395.     }
  396.     /**
  397.      * @param mixed $acompteRecu
  398.      * @return CommandeSpecialeDetail
  399.      */
  400.     public function setAcompteRecu($acompteRecu)
  401.     {
  402.         $this->acompteRecu $acompteRecu;
  403.         return $this;
  404.     }
  405.     /**
  406.      * @return mixed
  407.      */
  408.     public function getImprime()
  409.     {
  410.         return $this->imprime;
  411.     }
  412.     /**
  413.      * @param mixed $imprime
  414.      * @return CommandeSpecialeDetail
  415.      */
  416.     public function setImprime($imprime)
  417.     {
  418.         $this->imprime $imprime;
  419.         return $this;
  420.     }
  421.     /**
  422.      * @return mixed
  423.      */
  424.     public function getAcomptePrisSur()
  425.     {
  426.         return $this->acomptePrisSur;
  427.     }
  428.     /**
  429.      * @param mixed $acomptePrisSur
  430.      * @return CommandeSpecialeDetail
  431.      */
  432.     public function setAcomptePrisSur($acomptePrisSur)
  433.     {
  434.         $this->acomptePrisSur $acomptePrisSur;
  435.         return $this;
  436.     }
  437.     /**
  438.      * @return mixed
  439.      */
  440.     public function getComptant()
  441.     {
  442.         return $this->comptant;
  443.     }
  444.     /**
  445.      * @param mixed $comptant
  446.      * @return CommandeSpecialeDetail
  447.      */
  448.     public function setComptant($comptant)
  449.     {
  450.         $this->comptant $comptant;
  451.         return $this;
  452.     }
  453.     /**
  454.      * @return mixed
  455.      */
  456.     public function getMastercard()
  457.     {
  458.         return $this->mastercard;
  459.     }
  460.     /**
  461.      * @param mixed $mastercard
  462.      * @return CommandeSpecialeDetail
  463.      */
  464.     public function setMastercard($mastercard)
  465.     {
  466.         $this->mastercard $mastercard;
  467.         return $this;
  468.     }
  469.     /**
  470.      * @return mixed
  471.      */
  472.     public function getVisa()
  473.     {
  474.         return $this->visa;
  475.     }
  476.     /**
  477.      * @param mixed $visa
  478.      * @return CommandeSpecialeDetail
  479.      */
  480.     public function setVisa($visa)
  481.     {
  482.         $this->visa $visa;
  483.         return $this;
  484.     }
  485.     /**
  486.      * @return mixed
  487.      */
  488.     public function getInteract()
  489.     {
  490.         return $this->interact;
  491.     }
  492.     /**
  493.      * @param mixed $interact
  494.      * @return CommandeSpecialeDetail
  495.      */
  496.     public function setInteract($interact)
  497.     {
  498.         $this->interact $interact;
  499.         return $this;
  500.     }
  501.     /**
  502.      * @return mixed
  503.      */
  504.     public function getCertificatCadeau()
  505.     {
  506.         return $this->certificatCadeau;
  507.     }
  508.     /**
  509.      * @param mixed $certificatCadeau
  510.      * @return CommandeSpecialeDetail
  511.      */
  512.     public function setCertificatCadeau($certificatCadeau)
  513.     {
  514.         $this->certificatCadeau $certificatCadeau;
  515.         return $this;
  516.     }
  517.     /**
  518.      * @return mixed
  519.      */
  520.     public function getCommandePassee()
  521.     {
  522.         return $this->commandePassee;
  523.     }
  524.     /**
  525.      * @param mixed $commandePassee
  526.      * @return CommandeSpecialeDetail
  527.      */
  528.     public function setCommandePassee($commandePassee)
  529.     {
  530.         $this->commandePassee $commandePassee;
  531.         return $this;
  532.     }
  533.     /**
  534.      * @return mixed
  535.      */
  536.     public function getQuantiteRecue()
  537.     {
  538.         return $this->quantiteRecue;
  539.     }
  540.     /**
  541.      * @param mixed $quantiteRecue
  542.      * @return CommandeSpecialeDetail
  543.      */
  544.     public function setQuantiteRecue($quantiteRecue)
  545.     {
  546.         $this->quantiteRecue $quantiteRecue;
  547.         return $this;
  548.     }
  549.     /**
  550.      * @return mixed
  551.      */
  552.     public function getQuantiteFacturee()
  553.     {
  554.         return $this->quantiteFacturee;
  555.     }
  556.     /**
  557.      * @param mixed $quantiteFacturee
  558.      * @return CommandeSpecialeDetail
  559.      */
  560.     public function setQuantiteFacturee($quantiteFacturee)
  561.     {
  562.         $this->quantiteFacturee $quantiteFacturee;
  563.         return $this;
  564.     }
  565.     /**
  566.      * @return mixed
  567.      */
  568.     public function getInit()
  569.     {
  570.         return $this->init;
  571.     }
  572.     /**
  573.      * @param mixed $init
  574.      * @return CommandeSpecialeDetail
  575.      */
  576.     public function setInit($init)
  577.     {
  578.         $this->init $init;
  579.         return $this;
  580.     }
  581.     /**
  582.      * @return mixed
  583.      */
  584.     public function getDate()
  585.     {
  586.         return $this->date;
  587.     }
  588.     /**
  589.      * @param mixed $date
  590.      * @return CommandeSpecialeDetail
  591.      */
  592.     public function setDate($date)
  593.     {
  594.         $this->date $date;
  595.         return $this;
  596.     }
  597.     /**
  598.      * @return mixed
  599.      */
  600.     public function getPrixFixe()
  601.     {
  602.         return $this->prixFixe;
  603.     }
  604.     /**
  605.      * @param mixed $prixFixe
  606.      * @return CommandeSpecialeDetail
  607.      */
  608.     public function setPrixFixe($prixFixe)
  609.     {
  610.         $this->prixFixe $prixFixe;
  611.         return $this;
  612.     }
  613.     /**
  614.      * @return mixed
  615.      */
  616.     public function getDateAnnule()
  617.     {
  618.         return $this->dateAnnule;
  619.     }
  620.     /**
  621.      * @param mixed $dateAnnule
  622.      * @return CommandeSpecialeDetail
  623.      */
  624.     public function setDateAnnule($dateAnnule)
  625.     {
  626.         $this->dateAnnule $dateAnnule;
  627.         return $this;
  628.     }
  629.     /**
  630.      * @return mixed
  631.      */
  632.     public function getDateRembourse()
  633.     {
  634.         return $this->dateRembourse;
  635.     }
  636.     /**
  637.      * @param mixed $dateRembourse
  638.      * @return CommandeSpecialeDetail
  639.      */
  640.     public function setDateRembourse($dateRembourse)
  641.     {
  642.         $this->dateRembourse $dateRembourse;
  643.         return $this;
  644.     }
  645.     /**
  646.      * @return mixed
  647.      */
  648.     public function getCommentaireClient()
  649.     {
  650.         return $this->commentaireClient;
  651.     }
  652.     /**
  653.      * @param mixed $commentaireClient
  654.      * @return CommandeSpecialeDetail
  655.      */
  656.     public function setCommentaireClient($commentaireClient)
  657.     {
  658.         $this->commentaireClient $commentaireClient;
  659.         return $this;
  660.     }
  661.     /**
  662.      * @return mixed
  663.      */
  664.     public function getCommandeSpeciale()
  665.     {
  666.         return $this->commandeSpeciale;
  667.     }
  668.     /**
  669.      * @param mixed $commandeSpeciale
  670.      * @return CommandeSpecialeDetail
  671.      */
  672.     public function setCommandeSpeciale($commandeSpeciale)
  673.     {
  674.         $this->commandeSpeciale $commandeSpeciale;
  675.         return $this;
  676.     }
  677.     /**
  678.      * @return mixed
  679.      */
  680.     public function getProduit()
  681.     {
  682.         return $this->produit;
  683.     }
  684.     /**
  685.      * @param mixed $produit
  686.      * @return CommandeSpecialeDetail
  687.      */
  688.     public function setProduit($produit)
  689.     {
  690.         $this->produit $produit;
  691.         return $this;
  692.     }
  693.     /**
  694.      * @return mixed
  695.      */
  696.     public function getCompany()
  697.     {
  698.         return $this->company;
  699.     }
  700.     /**
  701.      * @param mixed $company
  702.      * @return CommandeSpecialeDetail
  703.      */
  704.     public function setCompany($company)
  705.     {
  706.         $this->company $company;
  707.         return $this;
  708.     }
  709.     /**
  710.      * @return mixed
  711.      */
  712.     public function getReponse()
  713.     {
  714.         return $this->reponse;
  715.     }
  716.     /**
  717.      * @param mixed $reponse
  718.      * @return CommandeSpecialeDetail
  719.      */
  720.     public function setReponse(CommandeReponse $reponse)
  721.     {
  722.         $this->reponse $reponse;
  723.         return $this;
  724.     }
  725.     /**
  726.      * @return mixed
  727.      */
  728.     public function getStatus()
  729.     {
  730.         return $this->status;
  731.     }
  732.     /**
  733.      * @param mixed $status
  734.      * @return CommandeSpecialeDetail
  735.      */
  736.     public function setStatus($status)
  737.     {
  738.         $this->status $status;
  739.         return $this;
  740.     }
  741.     /**
  742.      * @return mixed
  743.      */
  744.     public function getDateEnvoye()
  745.     {
  746.         return $this->dateEnvoye;
  747.     }
  748.     /**
  749.      * @param mixed $dateEnvoye
  750.      * @return CommandeSpecialeDetail
  751.      */
  752.     public function setDateEnvoye($dateEnvoye)
  753.     {
  754.         $this->dateEnvoye $dateEnvoye;
  755.         return $this;
  756.     }
  757.     /**
  758.      * @return TitreCompany
  759.      */
  760.     public function getTitreCompany()
  761.     {
  762.         return $this->titreCompany;
  763.     }
  764.     /**
  765.      * @param TitreCompany $titreCompany
  766.      * @return CommandeSpecialeDetail
  767.      */
  768.     public function setTitreCompany(TitreCompany $titreCompany)
  769.     {
  770.         $this->titreCompany $titreCompany;
  771.         return $this;
  772.     }
  773.     /**
  774.      * @return Commande
  775.      */
  776.     public function getCommande()
  777.     {
  778.         return $this->commande;
  779.     }
  780.     /**
  781.      * @param Commande $commande
  782.      * @return CommandeSpecialeDetail
  783.      */
  784.     public function setCommande(Commande $commande null)
  785.     {
  786.         $this->commande $commande;
  787.         return $this;
  788.     }
  789.     /**
  790.      * @return mixed
  791.      */
  792.     public function getReceptionDetail()
  793.     {
  794.         return $this->receptionDetail;
  795.     }
  796.     /**
  797.      * @param mixed $receptionDetail
  798.      */
  799.     public function setReceptionDetail($receptionDetail)
  800.     {
  801.         $this->receptionDetail $receptionDetail;
  802.     }
  803.     /**
  804.      * @return mixed
  805.      */
  806.     public function getFacturesDetail()
  807.     {
  808.         return $this->facturesDetail;
  809.     }
  810.     /**
  811.      * @param mixed $facturesDetail
  812.      */
  813.     public function setFacturesDetail($facturesDetail): void
  814.     {
  815.         $this->facturesDetail $facturesDetail;
  816.     }
  817.     /**
  818.      * @return mixed
  819.      */
  820.     public function getBonCommande()
  821.     {
  822.         return $this->bonCommande;
  823.     }
  824.     /**
  825.      * @param mixed $bonCommande
  826.      * @return CommandeSpecialeDetail
  827.      */
  828.     public function setBonCommande($bonCommande)
  829.     {
  830.         $this->bonCommande $bonCommande;
  831.         return $this;
  832.     }
  833.     public function getTotalDetail()
  834.     {
  835.         return $this->getQuantite() * $this->getPvu();
  836.     }
  837.     public function getTotalAccompte()
  838.     {
  839.         $total 0;
  840.         $total += $this->getComptant();
  841.         $total += $this->getMastercard();
  842.         $total += $this->getVisa();
  843.         $total += $this->getInteract();
  844.         $total += $this->getCertificatCadeau();
  845.         $accomptes['comptant'] = $this->getComptant();
  846.         $accomptes['mastercard'] = $this->getMastercard();
  847.         $accomptes['visa'] = $this->getVisa();
  848.         $accomptes['interact'] = $this->getInteract();
  849.         $accomptes['certificatCadeau'] = $this->getCertificatCadeau();
  850.         $accomptes['total'] = $total;
  851.         return $accomptes;
  852.     }
  853. }