mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 02:14:33 -04:00
Add amount column to history table
This commit is contained in:
parent
c5d093232c
commit
7b2e60a0d5
@ -147,6 +147,8 @@ class MigrationController extends BaseController
|
|||||||
{
|
{
|
||||||
|
|
||||||
$company->clients()->delete();
|
$company->clients()->delete();
|
||||||
|
$company->products()->delete();
|
||||||
|
|
||||||
$company->save();
|
$company->save();
|
||||||
|
|
||||||
return response()->json(['message' => 'Settings preserved'], 200);
|
return response()->json(['message' => 'Settings preserved'], 200);
|
||||||
|
@ -69,6 +69,7 @@ class ActivityRepository extends BaseRepository
|
|||||||
if (get_class($entity) == Invoice::class || get_class($entity) == Quote::class || get_class($entity) == Credit::class){
|
if (get_class($entity) == Invoice::class || get_class($entity) == Quote::class || get_class($entity) == Credit::class){
|
||||||
$contact = $entity->client->primary_contact()->first();
|
$contact = $entity->client->primary_contact()->first();
|
||||||
$backup->html_backup = $this->generateEntityHtml($entity->getEntityDesigner(), $entity, $contact);
|
$backup->html_backup = $this->generateEntityHtml($entity->getEntityDesigner(), $entity, $contact);
|
||||||
|
$backup->amount = $entity->amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
$backup->activity_id = $activity->id;
|
$backup->activity_id = $activity->id;
|
||||||
|
@ -27,7 +27,6 @@ class CreditTransformer extends EntityTransformer
|
|||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
'invitations',
|
'invitations',
|
||||||
'documents',
|
'documents',
|
||||||
'history',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $availableIncludes = [
|
protected $availableIncludes = [
|
||||||
|
@ -27,7 +27,6 @@ class QuoteTransformer extends EntityTransformer
|
|||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
'invitations',
|
'invitations',
|
||||||
'documents',
|
'documents',
|
||||||
'history'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $availableIncludes = [
|
protected $availableIncludes = [
|
||||||
|
@ -16,6 +16,10 @@ class AddIsPublicToDocumentsTable extends Migration
|
|||||||
Schema::table('documents', function (Blueprint $table) {
|
Schema::table('documents', function (Blueprint $table) {
|
||||||
$table->boolean('is_public')->default(false);
|
$table->boolean('is_public')->default(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('backups', function (Blueprint $table) {
|
||||||
|
$table->decimal('amount', 16, 4);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -25,8 +29,6 @@ class AddIsPublicToDocumentsTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('documents', function (Blueprint $table) {
|
|
||||||
$table->dropColumn('is_public');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user