Acc_Ledger::id == 0 for Main Ledger

This commit is contained in:
Dany De Bontridder 2019-11-17 13:16:09 +01:00
parent e8f235b935
commit 362d3d31f1

View file

@ -79,7 +79,7 @@ class Acc_Ledger extends jrn_def_sql
$this->db=$p_cn;
$this->row=null;
$this->nb=MAX_ARTICLE;
parent::__construct($p_cn, $p_id);
if ($p_id <> 0 ) parent::__construct($p_cn, $p_id);
}
function get_last_pj()