﻿INSERT INTO cash_print_form
            (id,
             count,
             deleted,
             document_name,
             xml_representation,
             valid,
             sent_to_cash)
VALUES      (NEXTVAL('hibernate_sequence'),
             0,
             FALSE,
             'declaration',
             '<?xml version="1.0" encoding="utf-8"?>
<document xmlns="http://crystals.ru/pos/fiscalprinter/templates/parser"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://crystals.ru/pos/fiscalprinter/templates/parser templates.xsd">
	<section id="logo" />
	<section id="header">
		<line>
			<element align="center" width="36" clip="true" value="ShopName" />
		</line>
		<line>
			<element align="center" width="36" clip="true" value="ShopAddress" />
		</line>
		<line>
			<text align="left" width="36" clip="true"
        value="----------------------------------------" />
		</line>
		<line>
			<text width="6" align="left" value="Смена:" />
			<element width="6" align="left" value="numshift" />
			<text width="5" align="right" clip="true" value="ЭКЛЗ:" />
			<element width="12" align="right" value="eklz" />
		</line>
		<line>
			<text width="12" value="Номер кассы:" />
			<element align="left" width="6" value="cashnum" />
			<text width="4" align="right" clip="true" value="ИНН:" />
			<element align="right" width="12" value="inn" />
		</line>
	</section>
	<section id="inventory">
		<list>
			<line>
				<element align="left" width="20" precision="2" value="banknotevalue" />
				<element align="left" width="3" value="count" />
				<element align="right" clip="true" width="10" precision="2"
          value="summ" />
			</line>
			<header>
				<line>
					<text align="center" width="27" clip="true"
            value="ДЕКЛАРАЦИЯ НАЛИЧНЫХ В КАССЕ" />
				</line>
			</header>
			<footer>
				<line>
					<text align="left" width="20" value="Монеты" />
					<element align="right" clip="true" width="10" precision="2"
            value="sum_coins" />
				</line>
			</footer>
		</list>
	</section>
	<section id="total">
		<line>
			<text align="left" width="36" clip="true"
        value="----------------------------------------" />
		</line>
		<line>
			<text align="left" width="21" value="Декларируемая сумма:" />
			<element align="right" width="12" precision="2" clip="true"
        value="value" />
		</line>
    <line>
			<text align="left" width="15" clip="true" value=" " />
		</line>
		<line>
			<text width="8" value="Кассир: " />
			<element align="left" width="6" clip="true" value="lastpurchasecashier" />
		</line>
		<line>
			<text align="left" width="15" clip="true" value=" " />
		</line>
		<line>
			<text align="left" width="8" clip="true" value="Подпись:" />
		</line>
		<line>
			<text align="left" width="15" clip="true" value=" " />
		</line>
		<line>
			<text align="left" width="16" clip="false" value="Зам. директора: " />
			<element align="left" width="6" clip="true" value="cashier" />
		</line>
		<line>
			<text align="left" width="15" clip="true" value=" " />
		</line>
		<line>
			<text align="left" width="8" clip="true" value="Подпись:" />
		</line>
		<line>
			<text align="center" width="36" clip="true"
				value=" " />
		</line>
	</section>
	<section id="fiscal" />
	<section id="footer">
		<line>
			<text width="6" value="Док N:" />
			<element align="left" width="6" clip="true" value="numberfield" />
			<element align="left" width="11" value="datecreate" />
			<element align="left" width="7" value="timecreate" />
		</line>
	</section>
	<section id="cut" />
</document>			 
',			 
	     TRUE,
             FALSE); 