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:
parent
713d15aa2c
commit
b09ebf3229
@ -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'));
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
}
|
@ -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')) }}
|
||||
|
@ -32202,6 +32202,7 @@ function displayAccount(doc, invoice, x, y, layout) {
|
||||
|
||||
var data = [
|
||||
account.name,
|
||||
account.vat_number,
|
||||
account.work_email,
|
||||
account.work_phone
|
||||
];
|
||||
|
@ -1243,6 +1243,7 @@ function displayAccount(doc, invoice, x, y, layout) {
|
||||
|
||||
var data = [
|
||||
account.name,
|
||||
account.vat_number,
|
||||
account.work_email,
|
||||
account.work_phone
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user