2017 © Pedro Peláez
 

yii2-extension yii2-spending

Spending module

image

halumein/yii2-spending

Spending module

  • Wednesday, March 1, 2017
  • by halumein
  • Repository
  • 3 Watchers
  • 0 Stars
  • 120 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Yii2-spending

Модуль учта затрат, (*1)

php composer require halumein/yii2-spending "*"

миграция:, (*2)

php yii migrate --migrationPath=vendor/halumein/yii2-spending/migrations

В конфигурационный файл приложения добавить модуль test, (*3)

    'modules' => [
        'spending' => [
            'class' => 'halumein\spending\Module',
            'userModel' => 'app\models\User',
            'adminRoles' => ['superadmin', 'administrator'],
            'on create' => function($event) {
                \Yii::$app->cashbox->addTransaction('outcome', $event->model->cost, $event->model->cashbox_id);
            },
        ],
        //...
    ]

The Versions

01/03 2017

dev-master

9999999-dev https://github.com/halumein

Spending module

  Sources   Download

BSD-3-Clause

The Requires

 

by Vadim Trishlin

yii2 application nethammer