}
//-------------------------------------------------------------------------------------------------------------
-function get_allocatable_from_supp_sql($supplier_id=null, $settled)
+function get_allocatable_from_supp_sql($supplier_id, $settled)
{
$sql = "SELECT
trans.type,