1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Added support for listing VAT numbers as used in all of EU

This commit is contained in:
Troels Liebe Bentsen 2014-10-01 16:33:09 +02:00
parent 713d15aa2c
commit b09ebf3229
5 changed files with 38 additions and 0 deletions

View File

@ -748,6 +748,7 @@ class AccountController extends \BaseController {
{
$account = Auth::user()->account;
$account->name = trim(Input::get('name'));
$account->vat_number = trim(Input::get('vat_number'));
$account->work_email = trim(Input::get('work_email'));
$account->work_phone = trim(Input::get('work_phone'));
$account->address1 = trim(Input::get('address1'));

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCompanySubtitle extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function($table)
{
$table->string('vat_number')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('accounts', function($table)
{
$table->dropColumn('vat_number');
});
}
}

View File

@ -29,6 +29,7 @@
{{ Former::legend('details') }}
{{ Former::text('name') }}
{{ Former::text('vat_number') }}
{{ Former::text('work_email') }}
{{ Former::text('work_phone') }}
{{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) }}

View File

@ -32202,6 +32202,7 @@ function displayAccount(doc, invoice, x, y, layout) {
var data = [
account.name,
account.vat_number,
account.work_email,
account.work_phone
];

View File

@ -1243,6 +1243,7 @@ function displayAccount(doc, invoice, x, y, layout) {
var data = [
account.name,
account.vat_number,
account.work_email,
account.work_phone
];