remove_customer (Sale_lib)

ospos · application/libraries/Sale_lib.php · php · MIT
pos, tag:session-state, tag:cart-management, tag:customer-removal

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