Accounting

Maintainers

Details

github.com/thatsenam/acc

Source

Issues

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Language:Blade

2.0.0 2020-12-02 10:39 UTC

This package is auto-updated.

Last update: 2024-04-29 04:39:47 UTC


README

Read Carefully

composer require kinetixbd/acc

Add this code in app/app.php's provider array

'providers' => [
 ...,
 Enam\Acc\AccountingServiceProvider::class 
 ]

Publish the migrations, run

php artisan vendor:publish --provider=Enam\Acc\AccountingServiceProvider

run the migrations, run

php artisan migrate

Example

    $vno = Accounting::generateUniqueVoucher();
    Accounting::makeTransaction("c_5", Accounting::$PRODUCT_SALES, $vno, 0, 50, null, 'Ops', Carbon::today()->subDays(5));
    Accounting::makeTransaction("c_5", Accounting::$CASH_IN_HAND, $vno, 50, 0, null, 'Hahah', Carbon::today()->subDays(5));
    Accounting::makeHeadIfNotExists('Product Sales', 'Sales', 'Expense');
    Accounting::makeHeadIfNotExists('Cash In Hand', 'Cash', 'Income');