Fixes for pro/trial plan

This commit is contained in:
Hillel Coren 2023-05-28 10:12:03 +03:00
parent 5553bb1585
commit b08f661a55
5 changed files with 5 additions and 5 deletions

View File

@ -270,7 +270,7 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
],
),
),
if (state.isProPlan || state.isTrial)
if (state.isProPlan)
ColoredBox(
color: Theme.of(context).canvasColor,
child: Padding(

View File

@ -678,7 +678,7 @@ class _MenuDrawerState extends State<MenuDrawer> {
icon: getEntityIcon(EntityType.transaction),
title: localization.transactions,
),
if ((state.isProPlan || state.isTrial) &&
if (state.isProPlan &&
state.userCompany.canViewReports)
DrawerTile(
company: company,

View File

@ -517,7 +517,7 @@ class _AccountOverview extends StatelessWidget {
child: ListDivider(),
),
],
if (state.isProPlan || state.isTrial)
if (state.isProPlan)
Padding(
padding: const EdgeInsets.all(16),
child: Row(children: [

View File

@ -280,7 +280,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
FormCard(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
if (state.isProPlan || state.isTrial) ...[
if (state.isProPlan) ...[
if (company.isModuleEnabled(EntityType.invoice)) ...[
DesignPicker(
label: localization.invoiceDesign,

View File

@ -313,7 +313,7 @@ class _TemplatesAndRemindersState extends State<TemplatesAndReminders>
final settings = viewModel.settings;
final template = widget.viewModel.selectedTemplate;
final company = state.company;
final enableCustomEmail = state.isProPlan || state.isTrial;
final enableCustomEmail = state.isProPlan;
return EditScaffold(
title: localization.templatesAndReminders,