Changeset 103684 in spip-zone


Ignore:
Timestamp:
Apr 1, 2017, 12:35:26 PM (3 years ago)
Author:
abelass@…
Message:

1.2.1 : enregistrement du montant payé

Location:
_plugins_/reservations_bank
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/reservations_bank/branches/v1/inc/reservation_bank.php

    r103237 r103684  
    1818                $id_reservations_detail = $data['id_reservations_detail'];
    1919                $montant_paye[$id_reservations_detail] = $data['montant_paye'];
     20                $montant = $data['prix'];
     21                if ($montant <= 0) {
     22                        $montant = $data['prix_ht'] + ($data['prix_ht'] * $data['taxe']);
     23                }
    2024
    21                 if ($montant = $data['prix'] <= 0) {
    22                         $montant = $data['prix_ht'] + $data['taxe'];
    23                 }
    2425                $montant_reservations_detail_total[$id_reservations_detail] = $montant;
    2526                set_request('montant_reservations_detail_' . $id_reservations_detail, $montant);
  • _plugins_/reservations_bank/branches/v1/paquet.xml

    r103680 r103684  
    22        prefix="reservation_bank"
    33        categorie="outil"
    4         version="1.2.0"
     4        version="1.2.1"
    55        etat="test"
    66        compatibilite="[3.0.20;3.1.*]"
  • _plugins_/reservations_bank/trunk/inc/reservation_bank.php

    r103236 r103684  
    1818                $id_reservations_detail = $data['id_reservations_detail'];
    1919                $montant_paye[$id_reservations_detail] = $data['montant_paye'];
     20                $montant = $data['prix'];
     21                if ($montant <= 0) {
     22                        $montant = $data['prix_ht'] + ($data['prix_ht'] * $data['taxe']);
     23                }
    2024
    21                 if ($montant = $data['prix'] <= 0) {
    22                         $montant = $data['prix_ht'] + $data['taxe'];
    23                 }
    2425                $montant_reservations_detail_total[$id_reservations_detail] = $montant;
    2526                set_request('montant_reservations_detail_' . $id_reservations_detail, $montant);
  • _plugins_/reservations_bank/trunk/paquet.xml

    r103680 r103684  
    22        prefix="reservation_bank"
    33        categorie="outil"
    4         version="1.2.0"
     4        version="1.2.1"
    55        etat="test"
    66        compatibilite="[3.0.20;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.