mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Expense module
This commit is contained in:
parent
cd2599fe58
commit
d3ee8ed813
@ -53,6 +53,13 @@ class AppServiceProvider extends ServiceProvider {
|
||||
$str .= '<li class="divider"></li>
|
||||
<li><a href="'.URL::to('credits').'">'.trans("texts.credits").'</a></li>
|
||||
<li><a href="'.URL::to('credits/create').'">'.trans("texts.new_credit").'</a></li>';
|
||||
} else if($type == 'expense'){
|
||||
$str .= '<li class="divider"></li>
|
||||
<li><a href="'.URL::to('expenses').'">'.trans("texts.expenses").'</a></li>
|
||||
<li><a href="'.URL::to('expensesn/create').'">'.trans("texts.new_expense").'</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="'.URL::to('vendors').'">'.trans("texts.vendors").'</a></li>
|
||||
<li><a href="'.URL::to('vendors/create').'">'.trans("texts.new_vendor").'</a></li>';
|
||||
}
|
||||
|
||||
$str .= '</ul>
|
||||
|
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateVendorsTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::dropIfExists('vendors');
|
||||
Schema::create('vendors', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->integer('user_id', false, true);
|
||||
$table->integer('account_id', false, true);
|
||||
$table->integer('currency_id',false, true)->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('address1');
|
||||
$table->string('address2');
|
||||
$table->string('city');
|
||||
$table->string('state');
|
||||
$table->string('postal_code');
|
||||
$table->integer('country_id',false, true);
|
||||
$table->string('work_phone');
|
||||
$table->text('private_notes');
|
||||
$table->decimal('balance',13,2);
|
||||
$table->decimal('paid_to_date',13,2);
|
||||
|
||||
//$table->dateTime('last_login');
|
||||
|
||||
$table->string('website');
|
||||
$table->integer('industry_id',false, true);
|
||||
$table->integer('size_id');
|
||||
$table->tinyInteger('is_deleted')->default(0);
|
||||
$table->integer('payment_terms')->nullable();
|
||||
$table->integer('public_id',false, true);
|
||||
$table->string('custom_value1')->nullable();
|
||||
$table->string('custom_value2')->nullable();
|
||||
$table->string('vat_number')->nullable();
|
||||
$table->string('id_number')->nullable();
|
||||
$table->integer('language_id', false, true)->nullable();
|
||||
});
|
||||
|
||||
// add relations
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('vendors');
|
||||
}
|
||||
|
||||
}
|
@ -374,6 +374,7 @@
|
||||
{!! HTML::menu_link('task') !!}
|
||||
{!! HTML::menu_link('invoice') !!}
|
||||
{!! HTML::menu_link('payment') !!}
|
||||
{!! HTML::menu_link('expense') !!}
|
||||
</ul>
|
||||
|
||||
<div class="navbar-form navbar-right">
|
||||
|
Loading…
x
Reference in New Issue
Block a user