mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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 = Auth::user()->account;
|
||||||
$account->name = trim(Input::get('name'));
|
$account->name = trim(Input::get('name'));
|
||||||
|
$account->vat_number = trim(Input::get('vat_number'));
|
||||||
$account->work_email = trim(Input::get('work_email'));
|
$account->work_email = trim(Input::get('work_email'));
|
||||||
$account->work_phone = trim(Input::get('work_phone'));
|
$account->work_phone = trim(Input::get('work_phone'));
|
||||||
$account->address1 = trim(Input::get('address1'));
|
$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::legend('details') }}
|
||||||
{{ Former::text('name') }}
|
{{ Former::text('name') }}
|
||||||
|
{{ Former::text('vat_number') }}
|
||||||
{{ Former::text('work_email') }}
|
{{ Former::text('work_email') }}
|
||||||
{{ Former::text('work_phone') }}
|
{{ Former::text('work_phone') }}
|
||||||
{{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) }}
|
{{ 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 = [
|
var data = [
|
||||||
account.name,
|
account.name,
|
||||||
|
account.vat_number,
|
||||||
account.work_email,
|
account.work_email,
|
||||||
account.work_phone
|
account.work_phone
|
||||||
];
|
];
|
||||||
|
@ -1243,6 +1243,7 @@ function displayAccount(doc, invoice, x, y, layout) {
|
|||||||
|
|
||||||
var data = [
|
var data = [
|
||||||
account.name,
|
account.name,
|
||||||
|
account.vat_number,
|
||||||
account.work_email,
|
account.work_email,
|
||||||
account.work_phone
|
account.work_phone
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user