mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix(biling): Subscription billing system.
fix(GeneralLedger): running balance.
This commit is contained in:
@@ -6,7 +6,6 @@ exports.up = function(knex) {
|
||||
table.string('name');
|
||||
table.string('description');
|
||||
table.decimal('price');
|
||||
table.decimal('signup_fee');
|
||||
table.string('currency', 3);
|
||||
|
||||
table.integer('trial_period');
|
||||
@@ -14,7 +13,6 @@ exports.up = function(knex) {
|
||||
|
||||
table.integer('invoice_period');
|
||||
table.string('invoice_interval');
|
||||
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -6,21 +6,42 @@ exports.seed = (knex) => {
|
||||
// Inserts seed entries
|
||||
return knex('subscription_plans').insert([
|
||||
{
|
||||
id: 1,
|
||||
name: 'free',
|
||||
name: 'Free',
|
||||
slug: 'free',
|
||||
price: 0,
|
||||
active: true,
|
||||
currency: 'LYD',
|
||||
|
||||
trial_period: 15,
|
||||
trial_period: 7,
|
||||
trial_interval: 'days',
|
||||
|
||||
invoice_period: 3,
|
||||
index: 1,
|
||||
voucher_required: true,
|
||||
},
|
||||
{
|
||||
name: 'Starter',
|
||||
slug: 'starter',
|
||||
price: 500,
|
||||
active: true,
|
||||
currency: 'LYD',
|
||||
|
||||
invoice_period: 12,
|
||||
invoice_interval: 'month',
|
||||
|
||||
index: 1,
|
||||
}
|
||||
index: 2,
|
||||
},
|
||||
{
|
||||
name: 'Growth',
|
||||
slug: 'growth',
|
||||
price: 1000,
|
||||
active: true,
|
||||
currency: 'LYD',
|
||||
|
||||
invoice_period: 12,
|
||||
invoice_interval: 'month',
|
||||
|
||||
index: 3,
|
||||
},
|
||||
]);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user