Skip to content

Instantly share code, notes, and snippets.

<template>
<ui-modal
ref="modal"
:title="'inventory.receive_inventory | __t() | titleCase '"
:errorMessage="errorMessage"
@shown="init"
>
<p>{{ 'inventory.confirm_lot_exp_codes' | __t() | titleCase }}</p>
<template v-if="inventory === null">
(function () {
var error = {
BarcodeNotAString: 1,
EmptyBarcode: 2,
BarcodeNotHIBC: 3,
InvalidBarcode: 4,
InvalidDate: 5,
EmptyCheckCharacter: 6,
EmptyLinkCharacter: 7,
InvalidQuantity: 8,
(function () {
var error = {
BarcodeNotAString: 1,
EmptyBarcode: 2,
BarcodeNotHIBC: 3,
InvalidBarcode: 4,
InvalidDate: 5,
EmptyCheckCharacter: 6,
EmptyLinkCharacter: 7,
InvalidQuantity: 8,
public function filter($aid, array $data)
{
//concatenate all input and use as cache key
$cache_tag = __FUNCTION__ . preg_replace('/[^a-zA-Z0-9]/', '', implode('.', $data));
$start_date = ($data['start_date']) ? self::formatDate($data['start_date']) : Carbon::now()->startOfDay();
$data['sort'] = (isset($data['sort'])) ? $data['sort'] : 'asc';
$query = $this->appointment->byAccountId($aid)->withBaseRelations()->byStartDate($start_date);
@import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails
// Neat Overrides
// $column: 90px;
// $gutter: 30px;
// $grid-columns: 12;
// $max-width: em(1088);
// Neat Breakpoints
$small-screen: em(480);
array(91) { ["account_number"]=> string(0) "" ["amount"]=> string(3) "1.0" ["amount_requested"]=> string(0) "" ["authorization"]=> string(0) "" ["authorization_num"]=> string(6) "038343" ["avs"]=> string(1) "Q" ["bank_id"]=> string(0) "" ["bank_message"]=> string(8) "Approved" ["bank_resp_code"]=> string(3) "100" ["bank_resp_code_2"]=> string(0) "" ["card_cost"]=> string(0) "" ["cardholder_name"]=> string(12) "Jeff Claeson" ["cavv"]=> string(0) "" ["cavv_algorithm"]=> string(0) "" ["cavv_response"]=> string(0) "" ["cc_expiry"]=> string(4) "0217" ["cc_number"]=> string(16) "############5292" ["cc_verification_str1"]=> string(0) "" ["cc_verification_str2"]=> string(0) "" ["check_number"]=> string(0) "" ["check_type"]=> string(0) "" ["clerk_id"]=> string(0) "" ["client_email"]=> string(20) "[email protected]" ["client_ip"]=> string(11) "67.185.6.69" ["correlation_id"]=> string(0) "" ["credit_card_type"]=> string(4) "Visa" ["ctr"]=> string(555) "=========== TRANSACTION RECORD ========== SPOKANE TRANSIT AUTHORI
public static function createOrUpdate($id = null, array $data)
{
$user = new User;
$user->account_id = $data['account_id'];
$user->role = $data['role'];
$user->email = $data['email'];
$user->username = $data['username'];
$user->password = $data['password'];
public function store()
{
$input = Input::all();
$input['account_id'] = 1;
$input['role'] = 2;
$registered = $this->user->createOrUpdate(null, $input);
if (gettype($registered) == 'array')
{
public static function createOrUpdate($id = null, array $data)
{
$user = new User;
$user->account_id = $data['account_id'];
$user->role = $data['role'];
$user->email = $data['email'];
$user->username = $data['username'];
$user->password = $data['password'];
<?php namespace Scheduler\Repositories;
use Illuminate\Database\Eloquent\Model;
class EloquentAppointmentRepository implements AppointmentRepositoryInterface {
protected $appointment;
public function __construct(Model $appointment)
{