{extends file="_themes/{$smarty.const.THEME}/templates/smartyExtends/content/list/table/simple/index.tpl"}

{block name="postListing"}

	<div style="height:1em; padding: 10px; background-color: #ffffff; border-top: 1px solid #cccccc;">
		
		<div style="float:right; width: 200px;">
			{progressbar value=($invEnt->cashedPercentDisplay/100) label=sprintf("%s%%", $invEnt->cashedPercentDisplay)}
		</div>
		
		<div style="float:right; margin-right: 5px;">
			{$lang['index']['invPayPercent']}:
		</div>
		
		<div style="float:left;">
			<b>{$lang['index']['invoice']}: {invoiceLabel ref=$invEnt->getId() format="%invoiceNumber% / %invoiceDateStd%"}</b> ({strip}
				{if $invEnt->idCustomer}
					{customerLabel ref=$invEnt->customer->getId()}
				{elseif $invEnt->idCorporate}
					{corporateLabel ref=$invEnt->corporate->getId()}
				{/if}
			{/strip})
		</div>
		
	</div>

	{pluginExecute trigger="Modules\Invoices\Cashings\Management-template-postListing" idInvoice=$invEnt->getId()}
	
{/block}