<?php

namespace Modules\Stock\Service\Export;

class BonTransfertExportService extends AbstractExportService
{
    /**
     * @return array<string,array<string,string>>
     */
    public function getArchitecture(): array
    {
        $fields =  [
            'SE.NO_BT' => ['nomChamp' => $this->trad->t('N° BT'), 'type' => 'TEXT'],
            'SE.DTE_CREAT' => ['nomChamp' => $this->trad->t('Date de création'), 'type' => 'DATE'],
            'SE.DTE_VAL_S' => ['nomChamp' => $this->trad->t('Date de validation de sortie'), 'type' => 'DATE'],
            'SE.DTE_VAL_E' => ['nomChamp' => $this->trad->t('Date de validation d\'entrée'), 'type' => 'DATE'],
            'SE.MAG' => ['nomChamp' => $this->trad->t('Magasinier'), 'type' => 'TEXT'],
            'SE.SITE' => ['nomChamp' => $this->trad->t('Site d\'origine'), 'type' => 'TEXT'],
            'SE.SITE_DEST' => ['nomChamp' => $this->trad->t('Site destinataire'), 'type' => 'TEXT'],
            'SE.CODE_STE' => ['nomChamp' => $this->trad->t('Société'), 'type' => 'TEXT'],
            'SE.DEVISE' => ['nomChamp' => $this->trad->t('Devise'), 'type' => 'TEXT'],
            'SE.VAL_DEVIS' => ['nomChamp' => $this->trad->t('Valeur devise'), 'type' => 'TEXT'],
            'SL.NO_LIG' => ['nomChamp' => $this->trad->t('N° de ligne'), 'type' => 'TEXT'],
            'SL.NO_DS' => ['nomChamp' => $this->trad->t('N° DS'), 'type' => 'TEXT'],
            'SL.NO_LIG_DS' => ['nomChamp' => $this->trad->t('N° de ligne de DS'), 'type' => 'TEXT'],
            'SL.CODE_ART' => ['nomChamp' => $this->trad->t('Code article'), 'type' => 'TEXT'],
            'SL.QTE_TRF' => ['nomChamp' => $this->trad->t('Quantités transférées'), 'type' => 'TEXT'],
            'SL.REAPPRO_FAIT' => ['nomChamp' => $this->trad->t('Réapprovisionnement fait'), 'type' => 'BOOL'],
            'SA.DESIGN' => ['nomChamp' => $this->trad->t('Designation article'), 'type' => 'TEXT'],
        ];

        if ($this->isPrixVisible()) {
            $fields['SL.PRIX'] = ['nomChamp' => $this->trad->t('Prix'), 'type' => 'TEXT'];
        }

        return $fields;
    }
}
