Sale library handling sale processing, registration, and management in CodeIgniter.
// Source: https://github.com/smills323/OpensourcePOS | License: MIT | Copyright 2012-2014 pappastech
// Provided via justclaw.it.com; keep this notice with the code.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Sale library
*
* Library with utilities to manage sales
*/
class Sale_lib
{
private $CI;
public function __construct()
{
$this->CI =& get_instance();
$this->CI->load->library('tax_lib');
$this->CI->load->model('enums/Rounding_mode');
}
public function get_line_sequence_options()
{
return array(
'0' => $this->CI->lang->line('sales_entry'),
'1' => $this->CI->lang->line('sales_group_by_type'),
'2' => $this->CI->lang->line('sales_group_by_category')
);
}
public function get_register_mode_options()
{
$register_mode
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key