check_db_has_suppliers(_("There are no suppliers defined in the system."));
if (isset($_GET['ModifyCredit']))
- check_is_closed(ST_SUPPINVOICE, $_GET['ModifyCredit']);
+ check_is_editable(ST_SUPPINVOICE, $_GET['ModifyCredit']);
//---------------------------------------------------------------------------------------------------