{* Module center module configuration template *} {extends file="get_usermod:layouts/main/layout.html"} {block name="content"} {load_language_text section="module_center_module"} {load_language_text section="buttons" name="buttons"}
{if $content.lexofficeProfile != null && $content.lexofficeProfile.companyName != null}
{$txt.lexoffice_invoice_info|sprintf:$content.lexofficeProfile.companyName}
{/if} {if $content.lxo_messages} {foreach $content.lxo_messages as $message}
{$message.content}
{if $message.details} {foreach $message.details as $detail} {if $detail->field} {$detail->field}: {$detail->message}
{else} {$detail} {/if} {/foreach} {/if}
{/foreach} {/if}

{$txt.lexoffice_invoice_legend_license}
{if $content.configuration['license_key']}
{if $content.isLicenseValid eq true} {$txt.lexoffice_invoice_license_key_status_valid} {else} {$txt.lexoffice_invoice_license_key_status_invalid} {/if}
{/if}
{$txt.lexoffice_invoice_legend_authorization}
{$txt.lexoffice_invoice_auth_description|sprintf:$content.lexofficeAuthUrl|unescape:'allhtml' nofilter}
{if !empty($content.configuration['lexoffice_api_authorizationcode']) && !empty($content.configuration['lexoffice_api_access_token'])}
{$txt.lexoffice_invoice_authorization_revoke_info}
{/if}
{$txt.lexoffice_invoice_tax_type}
{if $content.configuration['lexoffice_tax_type'] eq "net"} {$txt.lexoffice_invoice_tax_type_net} {elseif $content.configuration['lexoffice_tax_type'] eq "gross"} {$txt.lexoffice_invoice_tax_type_gross} {elseif $content.configuration['lexoffice_tax_type'] eq "vatfree"} {$txt.lexoffice_invoice_tax_type_vatfree}{if $content.configuration['lexoffice_small_business'] eq "1"} ({$txt.lexoffice_invoice_small_business}){/if} {/if}

{$txt.lexoffice_invoice_legend_contact}
{$txt.lexoffice_invoice_contact_description}
{if $content.configuration['lexoffice_contact'] === '1'}
{$txt.lexoffice_invoice_guest_contact_description}
{else} {/if}
{$txt.lexoffice_invoice_legend_footer}
{$txt.lexoffice_invoice_footer_description}
{/block}