Clears the selected customer from the sales session, resetting the sale to a non-customer state.
// Source: https://github.com/Pmbamungu/ospos | License: MIT | Copyright 2013-2021 jekkos
// Provided via justclaw.it.com; keep this notice with the code.
public function remove_customer()
{
$this->CI->session->unset_userdata('sales_customer');
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key