<table class="window">
	<tr>
		<td>
			<div class="frame_center" align="center">
				<h1>{{@page_data.title}}</h1>
				<form name="receipt_cashout_form" method="POST" action="/receipts/cashout">
					<table>
						<tr class="add_description">
							<td colspan="2">
								<input type="text" name="description" class="description" placeholder="Примечание" autocomplete="off">
								<check if="{{@base_settings.virtual_keyboard==1}}">
								<div class="virtual_keyboard virtual_keyboard_hide virtual_keyboard_add_description full_keyboard">
									<check if="{{@base_settings.descriptions_pattern}}">
										{~@patterns=explode("\n", @base_settings.descriptions_pattern)~}
										<repeat group="{{@patterns}}" value="{{@p}}">
											<input type="button" class="virtual_key" style="width: auto !important;" value="{{@p}}" for="description">
										</repeat>
									</check>
									{~@keys='1234567890-+|QWERTYUIOP_|ASDFGHJKL@|ZXCVBNM'~}
									<div class="eng">
									<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
										<check if="{{@keys[@i]=='|'}}">
											<true>
										<br>
											</true>
											<false>
										<input type="button" class="virtual_key" value="{{@keys[@i]}}" for="description">
											</false>
										</check>
									</loop>
										<button type="button" class="virtual_key_bks" for='description'>
											<i class="fas fa-long-arrow-alt-left"></i>
										</button>
										<input type="button" class="virtual_key_delete" for='description' value="CE">
										<br>
										<input type="button" class="virtual_key_ru" value="RU">
										<input type="button" class="virtual_key virtual_key_space" for='description' value=" ">
										<input type="button" class="virtual_key" for='description' value=",">
										<input type="button" class="virtual_key" for='description' value=".">
										<input type="button" class="virtual_key virtual_key_ok" value="OK">
									</div>
									{~@keys='1234567890-+|ЙЦУКЕНГШЩЗХЪ|ФЫВАПРОЛДЖЭ_|ЯЧСМИТЬБЮ@'~}
									<div class="ru">
									<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
										{~@a=mb_substr(@keys, @i, 1)~}
										<check if="{{@a=='|'}}">
											<true>
										<br>
											</true>
											<false>
										<input type="button" class="virtual_key" value="{{@a}}" for="description">
											</false>
										</check>
									</loop>
										<button type="button" class="virtual_key_bks" for='description'>
											<i class="fas fa-long-arrow-alt-left"></i>
										</button>
										<input type="button" class="virtual_key_delete" for='description' value="CE">
										<br>
										<input type="button" class="virtual_key_eng" value="ENG">
										<input type="button" class="virtual_key virtual_key_space" for='description' value=" ">
										<input type="button" class="virtual_key" for='description' value=",">
										<input type="button" class="virtual_key" for='description' value=".">
										<input type="button" class="virtual_key virtual_key_ok" value="OK">
									</div>
								</div>
								</check>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<input type="text" inputmode="numeric" name="sum" min="0" step="0.01" class="cashout_sum" value="" placeholder="Изымаемая сумма" autocomplete="off" pattern="\d+(\.\d{2})?">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<check if="{{in_array('receipts/fr_no', @authorization_user.module)}}">
								<input type="checkbox" class="custom-checkbox" name="hold" id="hold" value="1">
								<label for="hold">Тестовая операция</label>
								</check>
								<input type="checkbox" class="custom-checkbox" name="create_receipt" id="create_receipt" value={{@receipt_pko}} {{@auto_cashout==1?'checked="checked"':''}}>
								<label for="create_receipt">Создать приходно-кассовый ордер</label>
								<br>
								<small>Изымаемая сумма будет учтена на балансе организации</small>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center">
								<div class="virtual_keyboard">
									<input type="button" class="virtual_key" value='7' for='cashout_sum'>
									<input type="button" class="virtual_key" value='8' for='cashout_sum'>
									<input type="button" class="virtual_key" value='9' for='cashout_sum'>
									<input type="submit" class="virtual_key_total" value="Готово">
									<br>
									<input type="button" class="virtual_key" value='4' for='cashout_sum'>
									<input type="button" class="virtual_key" value='5' for='cashout_sum'>
									<input type="button" class="virtual_key" value='6' for='cashout_sum'>
									<br>
									<input type="button" class="virtual_key" value='1' for='cashout_sum'>
									<input type="button" class="virtual_key" value='2' for='cashout_sum'>
									<input type="button" class="virtual_key" value='3' for='cashout_sum'>
									<br>
									<input type="button" class="virtual_key_delete" for='cashout_sum' value="CE">
									<input type="button" class="virtual_key" value='0' for='cashout_sum'>
									<input type="button" class="virtual_key" value='.' for='cashout_sum'>
									<button type="button" class="virtual_key_bks" for='cashout_sum'>
										<i class="fas fa-long-arrow-alt-left"></i>
									</button>
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</td>
	</tr>
</table>
