Support adding tasks to quotes
This commit is contained in:
parent
8ac4bed3e1
commit
828a1e84c1
|
|
@ -250,7 +250,8 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
||||||
.length;
|
.length;
|
||||||
|
|
||||||
final showTasksTable =
|
final showTasksTable =
|
||||||
invoice.hasTasks || (company.showTasksTable ?? false);
|
(invoice.hasTasks || (company.showTasksTable ?? false)) &&
|
||||||
|
(invoice.isInvoice || invoice.isQuote);
|
||||||
|
|
||||||
final settings = getClientSettings(state, client);
|
final settings = getClientSettings(state, client);
|
||||||
final terms = entityType == EntityType.quote
|
final terms = entityType == EntityType.quote
|
||||||
|
|
@ -601,7 +602,7 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (invoice.isInvoice && showTasksTable)
|
if (showTasksTable)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 18),
|
padding: const EdgeInsets.symmetric(horizontal: 18),
|
||||||
child: AppTabBar(
|
child: AppTabBar(
|
||||||
|
|
@ -640,7 +641,7 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
||||||
if (entityType == EntityType.credit)
|
if (entityType == EntityType.credit)
|
||||||
CreditEditItemsScreen(
|
CreditEditItemsScreen(
|
||||||
viewModel: widget.entityViewModel,
|
viewModel: widget.entityViewModel,
|
||||||
isTasks: _selectTasksTable && showTasksTable,
|
isTasks: _selectTasksTable,
|
||||||
)
|
)
|
||||||
else if (entityType == EntityType.quote)
|
else if (entityType == EntityType.quote)
|
||||||
QuoteEditItemsScreen(
|
QuoteEditItemsScreen(
|
||||||
|
|
@ -649,7 +650,7 @@ class InvoiceEditDesktopState extends State<InvoiceEditDesktop>
|
||||||
else if (entityType == EntityType.invoice)
|
else if (entityType == EntityType.invoice)
|
||||||
InvoiceEditItemsScreen(
|
InvoiceEditItemsScreen(
|
||||||
viewModel: widget.entityViewModel,
|
viewModel: widget.entityViewModel,
|
||||||
isTasks: _selectTasksTable && showTasksTable,
|
isTasks: _selectTasksTable,
|
||||||
)
|
)
|
||||||
else if (entityType == EntityType.recurringInvoice)
|
else if (entityType == EntityType.recurringInvoice)
|
||||||
RecurringInvoiceEditItemsScreen(
|
RecurringInvoiceEditItemsScreen(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue