<div class="boxTitle">{$_LANG['Invoices']['InvoiceView']['index']['texts']['invoice']}</div>

<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_invoiceNumber']}: <b>
	{if $invoiceObj->invoiceNumber}
		{$invoiceObj->invoiceNumber}
	{/if}
</b></div>
<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_invoiceDate']}: <b>{$invoiceObj->invoiceDate|dateTimeFormat}</b></div>
<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_invoiceSeriesCode']}: <b>{\Entity\DocumentSeries::select($invoiceObj->idInvoiceSeries)->code}</b></div>
<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_dueDate']}: <b>{$invoiceObj->dueDate|dateTimeFormat}</b></div>
{if $invoiceObj->fulfillmentDate}
	<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_fulfillmentDate']}: <b>{$invoiceObj->fulfillmentDate|dateTimeFormat}</b></div>
{/if}
{if $agencyBankAccount->account}
	<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_bankAccount']}: <b>
		{$agencyBankAccount->account} [{$agencyBankAccount->currency}] -
		{if $CFG['displayEntities']['defaultAlphabet']['Bank']['name']=='localOrStandard'}
			{if $agencyBankAccount->bank->nameLocal}
				{$agencyBankAccount->bank->nameLocal}
			{else}
				{$agencyBankAccount->bank->nameStandard}
			{/if}
		{else}
			{if $agencyBankAccount->bank->nameStandard}
				{$agencyBankAccount->bank->nameStandard}
			{else}
				{$agencyBankAccount->bank->nameLocal}
			{/if}
		{/if}
		{if !$agencyBankAccount->idBankOffice}
			{if !$CFG['displayEntities']['defaultAlphabet']['BankOffice']['name'] == 'localOrStandard'}
				{if $agencyBankAccount->bankOffice->nameLocal}
					{$agencyBankAccount->bankOffice->nameLocal}
				{else}
					{$agencyBankAccount->bankOffice->nameStandard}
				{/if}
			{else}
				{if $agencyBankAccount->bankOffice->nameStandard}
					{$agencyBankAccount->bankOffice->nameStandard}
				{else}
					{$agencyBankAccount->bankOffice->nameLocal}
				{/if}
			{/if}
		{else}
		{/if}
	</b></div>
	{if $agencyBankAccount->idBankOffice}

	{/if}
{/if}
<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_formOfPayment']}: <b>{$formsOfPayment->get($invoiceObj->formOfPayment)}</b></div>
<div class="invoiceFieldDisplay">{$_LANG['Invoices']['InvoiceView']['index']['fields']['invoice_general_comments']}: <b>{$invoiceObj->comments}</b></div>

