diff --git a/include/class/acc_ledger.class.php b/include/class/acc_ledger.class.php index 1ee0c9ab0..7db721ace 100644 --- a/include/class/acc_ledger.class.php +++ b/include/class/acc_ledger.class.php @@ -1534,10 +1534,10 @@ class Acc_Ledger extends jrn_def_sql $acc_end->pj=$e_pj; /* if e_suggest != e_pj then do not increment sequence */ - if (strcmp($e_pj, $e_pj_suggest)==0&&noalyss_strlentrim($e_pj)!=0) - { - $this->inc_seq_pj(); - } +// if (strcmp($e_pj, $e_pj_suggest)==0&&noalyss_strlentrim($e_pj)!=0) +// { +// $this->inc_seq_pj(); +// } $this->pj=$acc_end->set_pj(); diff --git a/include/class/acc_ledger_purchase.class.php b/include/class/acc_ledger_purchase.class.php index 9722f4ee7..d94a36977 100644 --- a/include/class/acc_ledger_purchase.class.php +++ b/include/class/acc_ledger_purchase.class.php @@ -921,10 +921,10 @@ class Acc_Ledger_Purchase extends Acc_Ledger array($internal,$seq)); /**= e_pj then do not increment sequence */ - if ( strcmp($e_pj,$e_pj_suggest) == 0 && noalyss_strlentrim($e_pj) != 0 ) - { - $this->inc_seq_pj(); - } +// if ( strcmp($e_pj,$this->pj) == 0 && noalyss_strlentrim($e_pj) != 0 ) +// { +// $this->inc_seq_pj(); +// } /* Save the attachment */ if ( isset ($_FILES)) diff --git a/include/class/acc_ledger_sale.class.php b/include/class/acc_ledger_sale.class.php index bfee92fa6..f793c8e5b 100644 --- a/include/class/acc_ledger_sale.class.php +++ b/include/class/acc_ledger_sale.class.php @@ -621,9 +621,9 @@ class Acc_Ledger_Sale extends Acc_Ledger { /* * = e_pj then do not increment sequence */ /* and e_pj is not null */ - if (strcmp($e_pj, $e_pj_suggest) == 0 && noalyss_strlentrim($e_pj) != 0) { - $this->inc_seq_pj(); - } +// if (strcmp($e_pj, $this->pj ) == 0 && noalyss_strlentrim($e_pj) != 0) { +// $this->inc_seq_pj(); +// } $this->db->exec_sql("update jrn set jr_internal=$1 where jr_grpt_id = $2" ,[$internal,$seq]);