Don't show delivery note option when emailing

This commit is contained in:
Hillel Coren 2023-11-12 11:40:52 +02:00
parent 6f743974ce
commit 59095a1c9d
1 changed files with 11 additions and 10 deletions

View File

@ -262,18 +262,19 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
: null, : null,
body: Column( body: Column(
children: [ children: [
Material( if (widget.showAppBar)
child: Padding( Material(
padding: const EdgeInsets.symmetric(vertical: 8), child: Padding(
child: Row( padding: const EdgeInsets.symmetric(vertical: 8),
children: [ child: Row(
if (supportsDesignTemplates()) designPicker, children: [
activityPicker, if (supportsDesignTemplates()) designPicker,
if (invoice.isInvoice && _activityId == null) deliveryNote, activityPicker,
], if (invoice.isInvoice && _activityId == null) deliveryNote,
],
),
), ),
), ),
),
Expanded( Expanded(
child: _isLoading || _response == null child: _isLoading || _response == null
? LoadingIndicator() ? LoadingIndicator()