Merge pull request #49 from bigcapitalhq/billingplans

Billingplans
This commit is contained in:
Ahmed Bouhuolia
2022-04-05 05:16:28 +02:00
committed by GitHub
6 changed files with 111 additions and 50 deletions

View File

@@ -43,7 +43,10 @@ export function ActionsCellRenderer({
const exampleMenu = ( const exampleMenu = (
<Menu> <Menu>
<MenuItem onClick={onRemoveRole} text={'item_entries.remove_row'} /> <MenuItem
onClick={onRemoveRole}
text={<T id={'item_entries.remove_row'} />}
/>
</Menu> </Menu>
); );

View File

@@ -147,7 +147,7 @@ function InvoiceFormHeaderFields({
</FastField> </FastField>
</Col> </Col>
<Col className={'col--due-date'}> <Col xs={6}>
{/* ----------- Due date ----------- */} {/* ----------- Due date ----------- */}
<FastField name={'due_date'}> <FastField name={'due_date'}>
{({ form, field: { value }, meta: { error, touched } }) => ( {({ form, field: { value }, meta: { error, touched } }) => (

View File

@@ -1960,6 +1960,7 @@
"invoice_form.label.payment_amount": "مبلغ المدفوع", "invoice_form.label.payment_amount": "مبلغ المدفوع",
"invoice_form.label.invoice_message": "رسالة الفاتورة", "invoice_form.label.invoice_message": "رسالة الفاتورة",
"invoice_form.invoice_message.placeholder": "Thanks for your business and have a great day!", "invoice_form.invoice_message.placeholder": "Thanks for your business and have a great day!",
"invoice_form.label.terms_conditions": "الشروط والأحكام",
"invoice_form.terms_and_conditions.placeholder": "Enter the terms and conditions of your business to be displayed in your transaction", "invoice_form.terms_and_conditions.placeholder": "Enter the terms and conditions of your business to be displayed in your transaction",
"receipt_form.label.total": "إجمالي", "receipt_form.label.total": "إجمالي",
"receipt_form.label.subtotal": "المجموع", "receipt_form.label.subtotal": "المجموع",

View File

@@ -1259,12 +1259,41 @@
"setup.initializing.please_refresh_the_page": "Please refresh the page", "setup.initializing.please_refresh_the_page": "Please refresh the page",
"setup.organization.title": "Lets Get Started", "setup.organization.title": "Lets Get Started",
"setup.organization.description": "Tell the system a little bit about your organization.", "setup.organization.description": "Tell the system a little bit about your organization.",
"plan.capital_basic.title": "Capital Basic",
"plan.feature.sales_invoices": "Sales Invoices.",
"plan.feature.sales_estimates": "Sales Estimates.",
"plan.feature.customers": "Customers.",
"plan.feature.credit_notes": "Credit notes.",
"plan.feature.manual_journals": "Manual Journals.",
"plan.feature.expenses_tracking": "Expenses Tracking",
"plan.feature.basic_financial_reports": "Basic Financial Reports.",
"plan.capital_plus.title": "Capital Plus",
"plan.feature.all_capital_basic": "All Capital Basic features.",
"plan.feature.predefined_user_roles": "Predefined User Roles.",
"plan.feature.custom_tables_views": "Custom Tables Views.",
"plan.feature.transactions_locking": "Transactions Locking.",
"plan.feature.plus_financial_reports": "Plus Financial Reports.",
"plan.feature.custom_fields_resources": "Custom Fields & Resources.",
"plan.essential.title": "Capital Essential",
"plan.feature.all_capital_plus": "All Capital Basic features.",
"plan.feature.sales_purchases_order": "Sales & Purchases Order.",
"plan.feature.purchase_invoices": "Purchase Invoices.",
"plan.feature.inventory_tracking": "Inventory Tracking.",
"plan.feature.custom_roles": "Custom Roles.",
"plan.feature.multiply_currency_transcations": "Multiply Currency Transcations.",
"plan.feature.inventory_reports": "Inventory Reports.",
"plan.feature.landed_cost": "Landed cost.",
"plan.capital_enterprise.title": "Capital Enterprise",
"plan.feature.all_capital_essential": "All Capital Essential features.",
"plan.feature.multiply_branches": "Multiply Branches.",
"plan.feature.multiply_warehouses": "Multiply Warehouses.",
"plan.feature.accounting_dimensions": "Accounting Dimensions.",
"plan.feature.warehouses_reports": "Warehouses Reports.",
"plan.feature.branches_reports": "Branches Reports.",
"plan.professional.title": "Pro", "plan.professional.title": "Pro",
"plan.essential.title": "Essential",
"plan.plus.title": "Plus+", "plan.plus.title": "Plus+",
"plan.feature.sale_purchase_invoice": "Sale and purchase invoices.", "plan.feature.sale_purchase_invoice": "Sale and purchase invoices.",
"plan.feature.receivable_payable_accounts": "Customers/vendors accounts.", "plan.feature.receivable_payable_accounts": "Customers/vendors accounts.",
"plan.feature.expenses_tracking": "Expenses tracking",
"plan.feature.manual_journal": "Manual journals.", "plan.feature.manual_journal": "Manual journals.",
"plan.feature.financial_reports": "Financial reports.", "plan.feature.financial_reports": "Financial reports.",
"plan.feature.one_user_with_accountant": "For one user and accountant", "plan.feature.one_user_with_accountant": "For one user and accountant",
@@ -1275,9 +1304,7 @@
"plan.feature.three_users": "Three users with your accountant", "plan.feature.three_users": "Three users with your accountant",
"plan.feature.advanced_financial_reports": "Advanced financial reports", "plan.feature.advanced_financial_reports": "Advanced financial reports",
"plan.feature.tracking_multi_locations": "Track multi-branches and locations", "plan.feature.tracking_multi_locations": "Track multi-branches and locations",
"plan.feature.all_capital_essential": "All Capital Essential features.",
"plan.feature.projects_accounting": "Projects accounting and timesheets", "plan.feature.projects_accounting": "Projects accounting and timesheets",
"plan.feature.accounting_dimensions": "Accounting dimensions.",
"plan.monthly": "Monthly", "plan.monthly": "Monthly",
"plan.yearly": "Yearly", "plan.yearly": "Yearly",
"payment_via_voucher.success_message": "Payment has been done successfully.", "payment_via_voucher.success_message": "Payment has been done successfully.",

View File

@@ -2,7 +2,6 @@ import { createReducer } from '@reduxjs/toolkit';
import intl from 'react-intl-universal'; import intl from 'react-intl-universal';
import t from 'store/types'; import t from 'store/types';
const getSubscriptionPeriods = () => [ const getSubscriptionPeriods = () => [
{ {
slug: 'month', slug: 'month',
@@ -15,79 +14,110 @@ const getSubscriptionPeriods = () => [
]; ];
const getSubscriptionPlans = () => [ const getSubscriptionPlans = () => [
{
name: intl.get('plan.capital_basic.title'),
slug: 'capital_basic',
description: [
intl.get('plan.feature.sales_invoices'),
intl.get('plan.feature.sales_estimates'),
intl.get('plan.feature.customers'),
intl.get('plan.feature.credit_notes'),
intl.get('plan.feature.manual_journals'),
intl.get('plan.feature.expenses_tracking'),
intl.get('plan.feature.basic_financial_reports'),
],
price: '55',
periods: [
{
slug: 'month',
label: intl.get('plan.monthly'),
price: '55',
},
{
slug: 'year',
label: intl.get('plan.yearly'),
price: '595',
},
],
currencyCode: 'LYD',
},
{
name: intl.get('plan.capital_plus.title'),
slug: 'capital_plus',
description: [
intl.get('plan.feature.all_capital_basic'),
intl.get('plan.feature.predefined_user_roles'),
intl.get('plan.feature.custom_tables_views'),
intl.get('plan.feature.transactions_locking'),
intl.get('plan.feature.plus_financial_reports'),
intl.get('plan.feature.custom_fields_resources'),
],
price: '75',
periods: [
{
slug: 'month',
label: intl.get('plan.monthly'),
price: '75',
},
{
slug: 'year',
label: intl.get('plan.yearly'),
price: '795',
},
],
currencyCode: 'LYD',
},
{ {
name: intl.get('plan.essential.title'), name: intl.get('plan.essential.title'),
slug: 'essentials', slug: 'essentials',
description: [ description: [
intl.get('plan.feature.sale_purchase_invoice'), intl.get('plan.feature.all_capital_plus'),
intl.get('plan.feature.receivable_payable_accounts'), intl.get('plan.feature.sales_purchases_order'),
intl.get('plan.feature.expenses_tracking'), intl.get('plan.feature.purchase_invoices'),
intl.get('plan.feature.manual_journal'), intl.get('plan.feature.inventory_tracking'),
intl.get('plan.feature.financial_reports'), intl.get('plan.feature.custom_roles'),
intl.get('plan.feature.one_user_with_accountant'), intl.get('plan.feature.multiply_currency_transcations'),
intl.get('plan.feature.inventory_reports'),
intl.get('plan.feature.landed_cost'),
], ],
price: '100', price: '95',
periods: [ periods: [
{ {
slug: 'month', slug: 'month',
label: intl.get('plan.monthly'), label: intl.get('plan.monthly'),
price: '100' price: '95',
}, },
{ {
slug: 'year', slug: 'year',
label: intl.get('plan.yearly'), label: intl.get('plan.yearly'),
price: '1,200', price: '995',
}, },
], ],
currencyCode: 'LYD', currencyCode: 'LYD',
}, },
{ {
name: intl.get('plan.professional.title'), name: intl.get('plan.capital_enterprise.title'),
slug: 'plus',
description: [
intl.get('plan.feature.all_capital_essential'),
intl.get('plan.feature.multi_currency'),
intl.get('plan.feature.purchase_sell_orders'),
intl.get('plan.feature.multi_inventory_managment'),
intl.get('plan.feature.three_users'),
intl.get('plan.feature.advanced_financial_reports'),
],
price: '200',
currencyCode: 'LYD',
periods: [
{
slug: 'month',
label: intl.get('plan.monthly'),
price: '200'
},
{
slug: 'year',
label: intl.get('plan.yearly'),
price: '1,200',
},
],
},
{
name: intl.get('plan.plus.title'),
slug: 'enterprise', slug: 'enterprise',
description: [ description: [
intl.get('plan.feture.all_capital_professional_features'), intl.get('plan.feature.all_capital_essential'),
intl.get('plan.feature.tracking_multi_locations'), intl.get('plan.feature.multiply_branches'),
intl.get('plan.feature.projects_accounting'), intl.get('plan.feature.multiply_warehouses'),
intl.get('plan.feature.accounting_dimensions'), intl.get('plan.feature.accounting_dimensions'),
intl.get('plan.feature.warehouses_reports'),
intl.get('plan.feature.branches_reports'),
], ],
price: '300', price: '120',
currencyCode: 'LYD', currencyCode: 'LYD',
periods: [ periods: [
{ {
slug: 'month', slug: 'month',
label: intl.get('plan.monthly'), label: intl.get('plan.monthly'),
price: '300' price: '120',
}, },
{ {
slug: 'year', slug: 'year',
label: intl.get('plan.yearly'), label: intl.get('plan.yearly'),
price: '1,200', price: '1,195',
}, },
], ],
}, },

View File

@@ -1,6 +1,6 @@
.billing-plans{ .billing-plans{
max-width: 753px;
.paragraph{ .paragraph{
font-size: 15px; font-size: 15px;
} }