$type = #type#;
if ($type == “חשבונית מס קבלה”) { return 1; } elseif ($type == “חשבונית זיכוי”) { return 2; } else { return “”; }