App\Entity\Payment:

    # --- Paiements intégraux sur contrats terminés (1..8) ---
    payment_completed_{1..8}:
        rentalContract: '@contract_completed_<current()>'
        agency: '@agency_casa_centre'
        amount: '<numberBetween(500, 8000)>'
        paymentDate: '<dateTimeBetween("-2 months", "-1 week")>'
        method: '<randomElement(["Espèces", "Carte bancaire", "Virement", "Chèque"])>'
        reference: null
        notes: null
        createdBy: 'system'
        updatedBy: 'system'

    # --- Paiements sur contrats terminés avec 2ème conducteur (9..15) ---
    payment_completed2_{9..15}:
        rentalContract: '@contract_completed_<current()>'
        agency: '@agency_casa_centre'
        amount: '<numberBetween(400, 6000)>'
        paymentDate: '<dateTimeBetween("-2 months", "-3 weeks")>'
        method: '<randomElement(["Espèces", "Carte bancaire", "Virement"])>'
        reference: null
        notes: null
        createdBy: 'system'
        updatedBy: 'system'

    # Avoir (correction) sur 3 contrats terminés
    payment_avoir_9:
        rentalContract: '@contract_completed_9'
        agency: '@agency_casa_centre'
        amount: '-200'
        paymentDate: '<dateTimeBetween("-3 weeks", "-1 week")>'
        method: 'Virement'
        reference: 'AVOIR-001'
        notes: 'Erreur de saisie sur le montant initial'
        createdBy: 'system'
        updatedBy: 'system'

    payment_avoir_11:
        rentalContract: '@contract_completed_11'
        agency: '@agency_casa_centre'
        amount: '-150'
        paymentDate: '<dateTimeBetween("-3 weeks", "-1 week")>'
        method: 'Espèces'
        reference: null
        notes: 'Remboursement partiel suite à retour anticipé'
        createdBy: 'system'
        updatedBy: 'system'

    payment_avoir_13:
        rentalContract: '@contract_completed_13'
        agency: '@agency_casa_centre'
        amount: '-300'
        paymentDate: '<dateTimeBetween("-3 weeks", "-1 week")>'
        method: 'Virement'
        reference: 'AVOIR-002'
        notes: 'Montant saisi incorrect, correction effectuée'
        createdBy: 'system'
        updatedBy: 'system'

    # --- Paiements partiels sur contrats en cours (1..5) ---
    payment_active_{1..5}:
        rentalContract: '@contract_active_<current()>'
        agency: '@agency_casa_centre'
        amount: '<numberBetween(150, 1500)>'
        paymentDate: '<dateTimeBetween("-1 week", "now")>'
        method: '<randomElement(["Espèces", "Carte bancaire"])>'
        reference: null
        notes: null
        createdBy: 'system'
        updatedBy: 'system'

    # --- Paiements sur contrats en cours avec 2ème conducteur (6..8) ---
    payment_active2_{6..8}:
        rentalContract: '@contract_active_<current()>'
        agency: '@agency_casa_centre'
        amount: '<numberBetween(300, 2000)>'
        paymentDate: '<dateTimeBetween("-5 days", "now")>'
        method: '<randomElement(["Espèces", "Carte bancaire", "Chèque"])>'
        reference: '<regexify("CHQ-[0-9]{5}")>'
        notes: null
        createdBy: 'system'
        updatedBy: 'system'

    # --- Paiements sur contrats en retard ---
    payment_overdue_{1..3}:
        rentalContract: '@contract_overdue_<current()>'
        agency: '@agency_casa_centre'
        amount: '<numberBetween(100, 500)>'
        paymentDate: '<dateTimeBetween("-2 weeks", "-1 week")>'
        method: 'Espèces'
        reference: null
        notes: null
        createdBy: 'system'
        updatedBy: 'system'
