function sales_groups_list($name, $selected_id=null, $special_option=false)
{
- $sql = "SELECT id, description, inactive FROM ".TB_PREF."groups";
+ $sql = "SELECT id, description, inactive FROM `".TB_PREF."groups`";
return combo_input($name, $selected_id, $sql, 'id', 'description', array(
'spec_option' => $special_option===true ? ' ' : $special_option,
'order' => 'description', 'spec_id' => 0,
'2'=> _("Unsettled transactions"),
'3' => _("Payments"),
'4' => _("Credit Notes"),
- '5' => _("Delivery Notes")
+ '5' => _("Delivery Notes"),
+ '6' => _("Journal Entries")
);
echo array_selector($name, $selected, $allocs, array('select_submit'=> $submit_on_change));
echo "</td>\n";
'2'=> _("Overdue Invoices"),
'3' => _("Payments"),
'4' => _("Credit Notes"),
- '5' => _("Overdue Credit Notes")
+ '5' => _("Overdue Credit Notes"),
+ '6' => _("Journal Entries")
);
echo array_selector($name, $selected, $allocs);
echo "</td>\n";
'2'=> _("Unsettled transactions"),
'3' => _("Payments"),
'4' => _("Credit Notes"),
- '5' => _("Overdue Credit Notes")
+ '5' => _("Overdue Credit Notes"),
+ '7' => _("Journal Entries")
);
echo array_selector($name, $selected, $allocs, array('select_submit'=> $submit_on_change));