Skip to content

Commit

Permalink
fix: add prefix J-00001 to manual journals increments
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Aug 25, 2024
1 parent 959ef7a commit d9fda48
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class SeedSettings extends TenantSeeder {

// Manual journals settings.
{ group: 'manual_journals', key: 'next_number', value: '00001' },
{ group: 'manual_journals', key: 'number_prefix', value: 'J-' },
{ group: 'manual_journals', key: 'auto_increment', value: true },

// Sale invoices settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ exports.up = function (knex) {
currency: 'USD',
invoice_period: 1,
invoice_interval: 'month',
lemon_variant_id: '446152',
// lemon_variant_id: '450016',
// lemon_variant_id: '446152',
lemon_variant_id: '450016',
},
{
name: 'Capital Basic (Annually)',
Expand All @@ -20,8 +20,8 @@ exports.up = function (knex) {
currency: 'USD',
invoice_period: 1,
invoice_interval: 'year',
lemon_variant_id: '446153',
// lemon_variant_id: '450018',
// lemon_variant_id: '446153',
lemon_variant_id: '450018',
},

// # Capital Essential
Expand All @@ -33,8 +33,8 @@ exports.up = function (knex) {
currency: 'USD',
invoice_period: 1,
invoice_interval: 'month',
lemon_variant_id: '446155',
// lemon_variant_id: '450028',
// lemon_variant_id: '446155',
lemon_variant_id: '450028',
},
{
name: 'Capital Essential (Annually)',
Expand All @@ -43,8 +43,8 @@ exports.up = function (knex) {
active: true,
invoice_period: 1,
invoice_interval: 'year',
lemon_variant_id: '446156',
// lemon_variant_id: '450029',
// lemon_variant_id: '446156',
lemon_variant_id: '450029',
},

// # Capital Plus
Expand All @@ -55,8 +55,8 @@ exports.up = function (knex) {
active: true,
invoice_period: 1,
invoice_interval: 'month',
lemon_variant_id: '446165',
// lemon_variant_id: '450031',
// lemon_variant_id: '446165',
lemon_variant_id: '450031',
},
{
name: 'Capital Plus (Annually)',
Expand All @@ -65,8 +65,8 @@ exports.up = function (knex) {
active: true,
invoice_period: 1,
invoice_interval: 'year',
lemon_variant_id: '446164',
// lemon_variant_id: '450032',
// lemon_variant_id: '446164',
lemon_variant_id: '450032',
},

// # Capital Big
Expand All @@ -77,8 +77,8 @@ exports.up = function (knex) {
active: true,
invoice_period: 1,
invoice_interval: 'month',
lemon_variant_id: '446167',
// lemon_variant_id: '450024',
// lemon_variant_id: '446167',
lemon_variant_id: '450024',
},
{
name: 'Capital Big (Annually)',
Expand All @@ -87,8 +87,8 @@ exports.up = function (knex) {
active: true,
invoice_period: 1,
invoice_interval: 'year',
lemon_variant_id: '446168',
// lemon_variant_id: '450025',
// lemon_variant_id: '446168',
lemon_variant_id: '450025',
},
]);
};
Expand Down
10 changes: 5 additions & 5 deletions packages/webapp/src/constants/preferencesMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default [
disabled: false,
href: '/preferences/items',
},
{
text: <T id={'sms_integration.label'} />,
disabled: false,
href: '/preferences/sms-message',
},
// {
// text: <T id={'sms_integration.label'} />,
// disabled: false,
// href: '/preferences/sms-message',
// },
];
8 changes: 4 additions & 4 deletions packages/webapp/src/constants/subscriptionModels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export const SubscriptionPlans = [
monthlyPriceLabel: 'Per month',
annuallyPrice: '$15',
annuallyPriceLabel: 'Per month',
monthlyVariantId: '446152',
// monthlyVariantId: '450016',
annuallyVariantId: '446153',
// annuallyVariantId: '450018',
// monthlyVariantId: '446152',
monthlyVariantId: '450016',
// annuallyVariantId: '446153',
annuallyVariantId: '450018',
},
{
name: 'Capital Essential',
Expand Down
12 changes: 6 additions & 6 deletions packages/webapp/src/routes/preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Roles from '../containers/Preferences/Users/Roles/RolesForm/RolesFormPage
import Accountant from '@/containers/Preferences/Accountant/Accountant';
import Currencies from '@/containers/Preferences/Currencies/Currencies';
import Item from '@/containers/Preferences/Item';
import SMSIntegration from '../containers/Preferences/SMSIntegration';
// import SMSIntegration from '../containers/Preferences/SMSIntegration';
import DefaultRoute from '../containers/Preferences/DefaultRoute';
import Warehouses from '../containers/Preferences/Warehouses';
import Branches from '../containers/Preferences/Branches';
Expand Down Expand Up @@ -85,11 +85,11 @@ export default [
component: Item,
exact: true,
},
{
path: `${BASE_URL}/sms-message`,
component: SMSIntegration,
exact: true,
},
// {
// path: `${BASE_URL}/sms-message`,
// component: SMSIntegration,
// exact: true,
// },
{
path: `${BASE_URL}/billing`,
component: BillingPage,
Expand Down

0 comments on commit d9fda48

Please sign in to comment.