<style>

	.reward-flags {
		margin-block-start: 0.5em;
		margin-block-end: 0.5em;
		padding-inline-start: 1.5em;
	}

</style>
<TABLE class="lmsbox-inner" id="table">
	<COLGROUP>
		<COL style="width: 1%;">
		<COL style="width: 1%;">
		<COL style="width: 98%;">
	</COLGROUP>
    <THEAD>
		<TR>
			<TD>
				{icon name="money"}
			</TD>
			<TD class="bold nobr" colspan="2">
				{trans("Liability's Options:")}
			</TD>
		</TR>
    </THEAD>
    <TBODY>
		{if ($assignment.flags & $smarty.const.TARIFF_FLAG_ALL_REWARD_PENALTY_FLAGS) > 0}
		<tr>
			<td>
				{if $assignment.value < 0}
					{icon name="reward"}
				{else}
					{icon name="penalty"}
				{/if}
			</td>
			<td class="bold nobr">
				{if $assignment.value < 0}
					{trans("Reward for")}
				{else}
					{trans("Penalty for")}
				{/if}
			</td>
			<td>
				<ul class="reward-flags">
					{foreach $_TARIFF_FLAGS as $flag => $label}
						{if intval($assignment.flags) & intval($flag)}
							<li>
								<strong>{$label}</strong>
							</li>
						{/if}
					{/foreach}
				</ul>
			</td>
		</tr>
		{/if}
		{if $assignment.attribute}
		<TR>
			<TD>
				{icon name="user-id-number"}
			</TD>
			<TD class="bold nobr">
				{trans("Attribute:")}
			</TD>
			<TD class="nobr">
				{if $assignment.attribute}{$assignment.attribute}{/if}
			</TD>
		</TR>
		{/if}
		<TR>
			<TD>
				{icon name="user-id-number"}
			</TD>
			<TD class="bold nobr">{trans("Numbering Plan:")}</TD>
			<TD class="nobr">{if $assignment.numberplan}{$assignment.numberplan}{else}{trans("default")}{/if}</TD>
		</TR>
		<tr>
			<td>
				{icon name="deadline"}
			</td>
			<td class="nobr">
				<strong>{trans("Deadline")}</strong>
			</td>
			<td class="nobr">
				{if strlen($assignment.paytime)}{trans($assignment.paytime)}&nbsp;{trans("days")}{else}{trans("default")}{/if}
			</td>
		</tr>
		<TR>
			<TD>
				{icon name="print"}
			</TD>
			<TD class="bold nobr">
				{trans("Payment Type:")}
			</TD>
			<TD class="nobr">
				{if $assignment.paytypename}{trans($assignment.paytypename)}{else}{trans("default")}{/if}
			</TD>
		</TR>
		<TR>
			<TD>
				{icon name="options"}
			</TD>
			<TD class="nobr">
				{trans("document type:")}
			</TD>
			<TD>
				{if $assignment.invoice == $smarty.const.DOC_INVOICE}
				{trans("invoice")}
				{elseif $assignment.invoice == $smarty.const.DOC_INVOICE_PRO}
				{trans("pro forma invoice")}
				{elseif $assignment.invoice == $smarty.const.DOC_DNOTE}
				{trans("debit note")}
				{else}
				{trans("without document")}
				{/if}
			</TD>
		</TR>
		<tr>
			<td>
				{icon name="options"}
			</td>
			<td class="nobr">
				{trans("Document separation group")}
			</td>
			<td>
				{if empty($assignment.separatedocument) && !strlen($assignment.separatedocument)}—{else}{$assignment.separatedocument|escape}{/if}
			</td>
		</tr>
		<tr>
			<td>
				{icon name="options"}
			</td>
			<td class="nobr">
				{trans("separate document position")}
			</td>
			<td>
				{if empty($assignment.separateitem)}{trans("no")}{else}{trans("yes")}{/if}
			</td>
		</tr>
		<TR>
			<TD>
				{icon name="money"}
			</TD>
			<TD class="nobr">
				{trans("split payment")}
			</TD>
			<TD>
				{if $assignment.splitpayment}{trans("yes")}{else}{trans("no")}{/if}
			</TD>
		</TR>
		<TR>
			<TD>
				{icon name="money"}
			</TD>
			<TD class="nobr">
				{trans("Tax category:")}
			</TD>
			<TD>
				{if $assignment.taxcategory}
					<span {tip text=$_TAX_CATEGORIES[$assignment.taxcategory].description}>({sprintf('%02d', $assignment.taxcategory)}) {$_TAX_CATEGORIES[$assignment.taxcategory].label}</span>
				{else}
					{trans("— none —")}
				{/if}
			</TD>
		</TR>
		<TR>
			<TD>
				{icon name="options"}
			</TD>
			<TD class="nobr">
				{trans("with settlement")}:
			</TD>
			<TD>
				{if $assignment.settlement}{trans("yes")}{else}{trans("no")}{/if}
			</TD>
		</TR>
		<TR>
			<td>
				{icon name="document"}
			</td>
			<TD class="nobr">
				{trans("Reference document:")}
			</TD>
			<TD>
				{if $assignment.document}{$assignment.document}{else}{trans("none")}{/if}
			</TD>
		</TR>
    </TBODY>
</TABLE>
