<table class="window">
	<tr>
		<td>
			<div class="frame_center" align="center">
				<h1>{{@page_data.title}}</h1>
				<form name="receipt_cashin_form" method="POST" action="/receipts/cashin">
					<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" min="0" step="0.01" name="sum" class="cashin_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" value="1" id="hold">
								<label for="hold">Тестовая операция</label>
								</check>

								<input type="checkbox" class="custom-checkbox" name="create_receipt" id="create_receipt" value={{@receipt_rko}} {{@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='cashin_sum'>
									<input type="button" class="virtual_key" value='8' for='cashin_sum'>
									<input type="button" class="virtual_key" value='9' for='cashin_sum'>
									<input type="submit" class="virtual_key_total" value="Готово">
									<br>
									<input type="button" class="virtual_key" value='4' for='cashin_sum'>
									<input type="button" class="virtual_key" value='5' for='cashin_sum'>
									<input type="button" class="virtual_key" value='6' for='cashin_sum'>
									<br>
									<input type="button" class="virtual_key" value='1' for='cashin_sum'>
									<input type="button" class="virtual_key" value='2' for='cashin_sum'>
									<input type="button" class="virtual_key" value='3' for='cashin_sum'>
									<br>
									<input type="button" class="virtual_key_delete" for='cashin_sum' value="CE">
									<input type="button" class="virtual_key" value='0' for='cashin_sum'>
									<input type="button" class="virtual_key" value='.' for='cashin_sum'>
									<button type="button" class="virtual_key_bks" for='cashin_sum'>
										<i class="fas fa-long-arrow-alt-left"></i>
									</button>
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</td>
	</tr>
</table>
