Manages sales transactions and order processing in a CodeIgniter e-commerce application.
// 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');
require_once("Secure_Controller.php");
define('PRICE_MODE_STANDARD', 0);
define('PRICE_MODE_KIT', 1);
class Sales extends Secure_Controller
{
public function __construct()
{
parent::__construct('sales');
$this->load->library('sale_lib');
$this->load->library('barcode_lib');
$this->load->library('email_lib');
$this->load->library('token_lib');
}
public function index()
{
$this->_reload();
}
public function manage()
{
$person_id = $this->session->userdata('person_id');
if(!$this->Employee->has_grant('reports_sales', $person_id
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key