diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php
index 8c873d281..b507d67ca 100644
--- a/include/class_acc_ledger.php
+++ b/include/class_acc_ledger.php
@@ -2338,6 +2338,7 @@ class Acc_Ledger extends jrn_def_sql
$doc->f_id = $e_client;
$doc->md_id = $gen_doc;
$doc->ag_id = 0;
+ $p_array['e_pj']=$this->pj;
$filename="";
$doc->Generate($p_array,$p_array['e_pj']);
// Move the document to the jrn
diff --git a/include/class_acc_ledger_purchase.php b/include/class_acc_ledger_purchase.php
index 946d45f75..0c664bc87 100644
--- a/include/class_acc_ledger_purchase.php
+++ b/include/class_acc_ledger_purchase.php
@@ -727,8 +727,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
if ( isset($_POST['gen_invoice']) )
{
$ref_doc= $this->create_document($internal,$p_array);
- $this->doc= _('Document généré')." : "."
";
- $this->doc.=''.$ref_doc.'';
+ $this->doc=''.$ref_doc.'';
}
//----------------------------------------
@@ -922,8 +921,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$r="";
$r.=dossier::hidden();
- $f_legend=_("En-tête facture fournisseur");
- $f_legend_detail=_("Détail articles acheté");
+ $f_legend_detail=_("Détail articles achetés");
// Date
//--
@@ -988,8 +986,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$wLedger=$this->select_ledger('ACH',2);
if ($wLedger == null) exit (_('Pas de journal disponible'));
$wLedger->javascript="onChange='update_predef(\"ach\",\"f\");$add_js'";
- $label=" Journal ".HtmlInput::infobulle(2) ;
-
+ $wLedger->table=1;
$f_jrn=$wLedger->input();
// Comment
@@ -1000,7 +997,7 @@ class Acc_Ledger_Purchase extends Acc_Ledger
$Commentaire->size=60;
$Commentaire->tabindex=3;
$label=HtmlInput::infobulle(1) ;
- $f_desc=$label.$Commentaire->input("e_comm",h($e_comm));
+ $f_desc=$Commentaire->input("e_comm",h($e_comm)).$label;
// PJ
//--
@@ -1275,46 +1272,69 @@ class Acc_Ledger_Purchase extends Acc_Ledger
}
$date_limit=$lPeriode->get_date_limit();
$r="";
- $r.="