Closed tranmsactions not editable.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 13 May 2009 12:47:50 +0000 (12:47 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 13 May 2009 12:47:50 +0000 (12:47 +0000)
gl/inquiry/journal_inquiry.php

index 834c444bdb10645159fab7844571f3ca3d9c7023..119c34be951718a577a24c35fc80d5ec35a97a0d 100644 (file)
@@ -105,7 +105,7 @@ function edit_link($row)
 {
        global $editors;
 
-       return isset($editors[$row["type"]]) ? 
+       return isset($editors[$row["type"]]) && !is_closed_trans($row["type"]], $row["type_no"]) 
                pager_link(_("Edit"), 
                        sprintf($editors[$row["type"]], $row["type_no"], $row["type"]),
                        ICON_EDIT) : '';