Author: danydb
Date: 2012-01-09 12:22:20 +0100 (Mon, 09 Jan 2012)
New Revision: 4685
Modified:
phpcompta/trunk/include/class_fiche.php
Log:
bug fiche : champs non rempli
Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php 2012-01-09 11:17:20 UTC (rev
4684)
+++ phpcompta/trunk/include/class_fiche.php 2012-01-09 11:22:20 UTC (rev
4685)
@@ -581,7 +581,7 @@
}
if ($p_readonly == false)
{
-
+
if ($r->ad_id == ATTR_DEF_ACCOUNT)
{
$w = new IPoste("av_text" . $r->ad_id);
@@ -589,6 +589,7 @@
$w->set_attribute('account', "av_text"
. $r->ad_id);
// account created automatically
$w->table = 0;
+ $w->value = $r->av_text;
// account created automatically
$sql = "select
account_auto($this->fiche_def)";
$ret_sql = $this->cn->exec_sql($sql);
@@ -602,6 +603,7 @@
{
$w = new ITva_Popup('popup_tva');
$w->table = 1;
+ $w->value = $r->av_text;
}
elseif ($r->ad_id == ATTR_DEF_COMPANY)
{
@@ -617,8 +619,7 @@
$w->set_attribute('typecard', $filter);
$w->set_attribute('inp', "av_text" .
$r->ad_id);
$w->set_attribute('label', "av_text" .
$r->ad_id . "_label");
-
-
+ $w->value = $r->av_text;
$msg = $w->search();
$msg.=$label->input();
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev