1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Refactor company gateways

This commit is contained in:
David Bomba 2019-09-10 19:35:18 +10:00
parent 1c2ba3a53e
commit f98f2902dc
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class Company extends BaseModel
*/
public function company_gateways()
{
return $this->hasMany(CompanyGateway::class)->orderBy('sort_id','ASC');
return $this->hasMany(CompanyGateway::class)->orderBy('priority_id','ASC');
}
/**

View File

@ -359,7 +359,7 @@ class CreateUsersTable extends Migration
$table->boolean('show_shipping_address')->default(true)->nullable();
$table->boolean('update_details')->default(false)->nullable();
$table->text('config');
$table->unsignedInteger('sort_id')->default(0);
$table->unsignedInteger('priority_id')->default(0);
$table->decimal('min_limit', 13, 2)->nullable();
$table->decimal('max_limit', 13, 2)->nullable();