class items_cart
{
-
+ var $trans_type;
var $line_items;
var $gl_items;
var $person_id;
var $branch_id;
- function items_cart()
+ function items_cart($type)
{
+ $this->trans_type = $type;
$this->clear_items();
}
if ($item_ret != null)
return $line_no;
}
+ return -1;
}
// ----------- GL item functions
else
{
// shouldn't come here under normal circumstances
- display_db_error("unexpected - adding an invalid item or null quantity", "", true);
+ display_db_error("unexpected - invalid parameters in add_gl_item($code_id, $dimension_id, $dimension2_id, $amount,...)", "", true);
}
return false;