Credit Note Modification: fixed check whether transaction is editable.
[fa-stable.git] / purchasing / supplier_credit.php
index 9335c1f1e81348ceb72e96cda1858cd3698264ce..b7e30fcefa7904c0e4955518075f4e64099771b2 100644 (file)
@@ -29,7 +29,7 @@ if (user_use_date_picker())
 //----------------------------------------------------------------------------------------
 
 if (isset($_GET['ModifyCredit']))
-       check_is_editable(ST_SUPPINVOICE, $_GET['ModifyCredit']);
+       check_is_editable(ST_SUPPCREDIT, $_GET['ModifyCredit']);
 
 //---------------------------------------------------------------------------------------------------