Fix: Le chp date fin adhésion n'était pas mis a jour par la fiche adhésion en édition
This commit is contained in:
parent
31b6ec783f
commit
b213e0fb09
@ -465,7 +465,7 @@ class Adherent extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief Fonction qui met e jour l'adherent (sauf mot de passe)
|
\brief Fonction qui met a jour l'adherent (sauf mot de passe)
|
||||||
\param user Utilisateur qui realise la mise a jour
|
\param user Utilisateur qui realise la mise a jour
|
||||||
\param notrigger 1=desactive le trigger UPDATE (quand appele par creation)
|
\param notrigger 1=desactive le trigger UPDATE (quand appele par creation)
|
||||||
\param nosyncuser Do not synchronize linked user
|
\param nosyncuser Do not synchronize linked user
|
||||||
@ -731,7 +731,7 @@ class Adherent extends CommonObject
|
|||||||
* \param nosyncuser Do not synchronize linked user
|
* \param nosyncuser Do not synchronize linked user
|
||||||
* \return string If OK return clear password, 0 if no change, < 0 if error
|
* \return string If OK return clear password, 0 if no change, < 0 if error
|
||||||
*/
|
*/
|
||||||
function password($user, $password='', $isencrypted=0, $notrigger=0, $nosyncuser=0)
|
function setPassword($user, $password='', $isencrypted=0, $notrigger=0, $nosyncuser=0)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
|
|||||||
@ -158,6 +158,7 @@ class Cotisation extends CommonObject
|
|||||||
$sql .= " note=".($this->note ? "'".addslashes($this->note)."'" : 'null').",";
|
$sql .= " note=".($this->note ? "'".addslashes($this->note)."'" : 'null').",";
|
||||||
$sql .= " cotisation = '".price2num($this->amount)."',";
|
$sql .= " cotisation = '".price2num($this->amount)."',";
|
||||||
$sql .= " dateadh='".$this->db->idate($this->dateh)."',";
|
$sql .= " dateadh='".$this->db->idate($this->dateh)."',";
|
||||||
|
$sql .= " datef='".$this->db->idate($this->datef)."',";
|
||||||
$sql .= " datec='".$this->db->idate($this->datec)."'";
|
$sql .= " datec='".$this->db->idate($this->datec)."'";
|
||||||
$sql .= " WHERE rowid = ".$this->id;
|
$sql .= " WHERE rowid = ".$this->id;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -91,7 +91,9 @@ if ($user->rights->adherent->cotisation->creer && $_REQUEST["action"] == 'update
|
|||||||
{
|
{
|
||||||
// Modifie valeures
|
// Modifie valeures
|
||||||
$subscription->dateh=dolibarr_mktime($_POST['datesubhour'], $_POST['datesubmin'], 0, $_POST['datesubmonth'], $_POST['datesubday'], $_POST['datesubyear']);
|
$subscription->dateh=dolibarr_mktime($_POST['datesubhour'], $_POST['datesubmin'], 0, $_POST['datesubmonth'], $_POST['datesubday'], $_POST['datesubyear']);
|
||||||
|
$subscription->datef=dolibarr_mktime($_POST['datesubendhour'], $_POST['datesubendmin'], 0, $_POST['datesubendmonth'], $_POST['datesubendday'], $_POST['datesubendyear']);
|
||||||
$subscription->amount=$_POST["amount"];
|
$subscription->amount=$_POST["amount"];
|
||||||
|
//print 'datef='.$subscription->datef.' '.$_POST['datesubendday'];
|
||||||
|
|
||||||
$result=$subscription->update($user);
|
$result=$subscription->update($user);
|
||||||
if ($result >= 0 && ! sizeof($subscription->errors))
|
if ($result >= 0 && ! sizeof($subscription->errors))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user