<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title>Global Note PAY</title>
<meta charset="utf-8" />
<!-- the next meta info is used for some compatibility issue in IE11 -->
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta sedName="S091_Master" sedPackage="Sector Components/Sickness/S091_Master" sedGVer="4" sedVer="0" sedPatch="16"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link href="_forms/angular/css/bootstrap.min.css" rel="stylesheet" />
<!-- http://isteven.github.io/angular-multi-select CSS -->
<link href="_forms/angular/css/isteven-multi-select.css" rel="stylesheet" />
<link href="_forms/angular/css/select.css" rel="stylesheet" />
<link href="_forms/angular/css/sed_angular_common_MET.css" rel="stylesheet" />
<link href="_forms/angular/css/sed_angular_common.css" rel="stylesheet" />
<link href="_forms/angular/css/splitter.css" rel="stylesheet" />
<link href="_forms/angular/css/style.css" rel="stylesheet" />

<script src="_forms/angular/js/lib/angular.js"></script>
<script src="_forms/angular/js/lib/angular-animate.js"></script>
<script src="_forms/angular/js/lib/angular-sanitize.js"></script>
<script src="_forms/angular/js/lib/ui-bootstrap-tpls.js"></script>

<script src="_forms/angular/js/src/datePicker1.js"></script>
<!-- http://isteven.github.io/angular-multi-select JS -->
<script src="_forms/angular/js/src/isteven-multi-select.js"></script>
<!-- https://vitalets.github.io/checklist-model JS -->
<script src="_forms/angular/js/src/checklist-model.js"></script>
<!-- ui-select files -->
<script src="_forms/angular/js/src/select.js"></script>
<!-- http://lorenzofox3.github.io/smart-table-website/ -->
<script src="_forms/angular/js/src/smart-table.js"></script>
<!-- RINA style checkbox -->
<script src="_forms/angular/js/src/angular-bootstrap-checkbox-met.js"></script>
<!-- IR widget -->
<script src="_forms/angular/js/src/angular-bootstrap-IR.js"></script>
<!-- TR widget -->
<script src="_forms/angular/js/src/angular-bootstrap-TR.js"></script>

<!-- <script src="_forms/angular/js/src/sed_angular.js"></script> -->
<script src="_forms/angular/js/src/sed_angular_common.js"></script>
<script src="_forms/angular/js/src/sed_angular_common_MET.js"></script>
<script src="_forms/angular/js/src/sed_angular_common_RINA.js"></script>

</head>
<body ng-app="sedAngularApp">
	<div ng-controller = "ControllerS091_Master" class="met-root">
		<div>
			<h3 class="sedHeadingAC">S091_Master - Global Note PAY <br/> </h3>
			<div style="position:absolute;top:0;right:0;font-size:70%">SED API version: 0.14.2 PREVIEW build 3<br/>Model version: 4.0.16</div>
		</div>
		<!--  
		<ui-layout class= "layout" options = "{sizes:['99%', '1%']}" >
		-->
		<div class="layoutAC">
		<bg-splitter orientation="vertical" position="VM.splitterPosition" class="met-splitter">
		<bg-pane min-size="100" scroll-to-id="viewModel.scrollToId">
			<div ng-controller="SedController" ng-cloak ng-init = "section = model.S091_Master; metaSection = metaModel.S091_Master" class="wb-stretch">
				<div id = "content-angular_S091_Master" class="content-angular container-fluid" ng-model-options="{ debounce: 250 }" ng-form="S091_Master" sedName="S091_Master" sedPackage="Sector Components/Sickness/S091_Master" sedGVer="4" sedVer="0" sedPatch="16">
					<div class="tab-content met-content" ng-init="sedForm = S091_Master">
						<div met_start_tag class="form-group" ng-controller="WbAngularSedCtrl">
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.GlobalNotePAY; metaSection = $parent.metaSection.GlobalNotePAY" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SECTION_ROW"    id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label SECTION_ROW">1. Global note PAY <i>*</i>
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Provide the relevant details of the Global Payment" tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
									<div class="SECTION_ROW_WHITESPACE"></div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.globalCLAReferenceCreditorLiaisonBody.$$error,'has-warning': validateForm && metaSection.globalCLAReferenceCreditorLiaisonBody.$$warning && !metaSection.globalCLAReferenceCreditorLiaisonBody.$$error}">
									<label class="control-label col-xs-3">1.1. Global CLA Reference Creditor Liaison Body <i>*</i></label>
									<div class="tooltip-handler" tooltip="Unique number of the sending of CLA given by the creditor liaison body." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.globalCLAReferenceCreditorLiaisonBody" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.globalCLAReferenceCreditorLiaisonBody)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.globalCLAReferenceCreditorLiaisonBody.$$error">{{metaSection.globalCLAReferenceCreditorLiaisonBody.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.globalCLAReferenceCreditorLiaisonBody.$$warning && !metaSection.globalCLAReferenceCreditorLiaisonBody.$$error">{{metaSection.globalCLAReferenceCreditorLiaisonBody.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.globalPAYReferenceDebtorLiaisonBody.$$error,'has-warning': validateForm && metaSection.globalPAYReferenceDebtorLiaisonBody.$$warning && !metaSection.globalPAYReferenceDebtorLiaisonBody.$$error}">
									<label class="control-label col-xs-3">1.2. Global PAY Reference Debtor Liaison Body <i>*</i></label>
									<div class="tooltip-handler" tooltip="Unique number of the sending of PAY given by the debtor liaison body. Used as reference in all subsequent SEDs in the payment sub process." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.globalPAYReferenceDebtorLiaisonBody" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.globalPAYReferenceDebtorLiaisonBody)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.globalPAYReferenceDebtorLiaisonBody.$$error">{{metaSection.globalPAYReferenceDebtorLiaisonBody.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.globalPAYReferenceDebtorLiaisonBody.$$warning && !metaSection.globalPAYReferenceDebtorLiaisonBody.$$error">{{metaSection.globalPAYReferenceDebtorLiaisonBody.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.totalNumberIndividualPayments.$$error,'has-warning': validateForm && metaSection.totalNumberIndividualPayments.$$warning && !metaSection.totalNumberIndividualPayments.$$error}">
									<label class="control-label col-xs-3">1.3. Total number of individual payments <i>*</i></label>
									<div class="tooltip-handler" tooltip="Total Number of Individual Payments in the SED." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7"><input ng-model="section.totalNumberIndividualPayments" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.totalNumberIndividualPayments)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.totalNumberIndividualPayments.$$error">{{metaSection.totalNumberIndividualPayments.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.totalNumberIndividualPayments.$$warning && !metaSection.totalNumberIndividualPayments.$$error">{{metaSection.totalNumberIndividualPayments.$$warning}}</label>
								   </div>
								</div>
							<hr/><div>
								<input type="radio" ng-model="metaSection.$$choice_1" value = "0" ng-change='validateFromChoice()' />
								<span met_label>Total payment amount to be paid</span><i>*</i> <span style="vertical-align:bottom" class="tooltip-handler" tooltip="Result of adding up claim amount, accepted contestation amount, credit note amount and down payment amount. Will be only used if amount is negative." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></span>  <br/>
								<input type="radio" ng-model="metaSection.$$choice_1" value = "1" ng-change='validateFromChoice()' />
								<span met_label>Total payment amount to be refunded</span><i>*</i> <span style="vertical-align:bottom" class="tooltip-handler" tooltip="Result of adding up claim amount, accepted contestation amount, credit note amount and down payment amount. Will be only used if amount is positive." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></span>  <br/>
							</div><hr/>
							<div style="vertical-align:bottom" met_start_tag ng-controller = "SectionController" ng-init = "section = $parent.section.TotalPaymentAmountPaid; metaSection = $parent.metaSection.TotalPaymentAmountPaid" ng-hide = "$parent.metaSection.$$choice_1 != 0" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.4.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.4.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
								<hr />
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag ng-controller = "SectionController" ng-init = "section = $parent.section.TotalPaymentAmountRefunded; metaSection = $parent.metaSection.TotalPaymentAmountRefunded" ng-hide = "$parent.metaSection.$$choice_1 != 1" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.5.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.5.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
								<hr />
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalAmountCreditNotes; metaSection = $parent.metaSection.TotalAmountCreditNotes" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.6. Total amount of credit notes
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Total Amount of accepted Credit Notes used in the referenced individual claims. State the total amount of total credit notes accepted. State the currency of the creditor." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.6.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.6.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalAmountContestations; metaSection = $parent.metaSection.TotalAmountContestations" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.7. Total amount of contestations
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Total amount of contestations for the claim. State the amount of contestations. State the currency of the creditor." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.7.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.7.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalAmountBenefits; metaSection = $parent.metaSection.TotalAmountBenefits" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.8. Total amount of benefits <i>*</i>
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Sum of all original Benefit Amounts in the individual CLAs.
State the amount of the total CLA
State the currency of the creditor" tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.8.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.8.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalAmountDownPayment; metaSection = $parent.metaSection.TotalAmountDownPayment" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.9. Total Amount of down payment <i>*</i>
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Down payment considered.
State the total down payment amount.
State the currency of the creditor" tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.9.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.9.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.TotalAmountOverpayment; metaSection = $parent.metaSection.TotalAmountOverpayment" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.10. Total Amount of Overpayment
										<div style="vertical-align:bottom" class="tooltip-handler" tooltip="Result of adding up claim amount, accepted contestation amount, credit note amount and down payment amount. Will be only used if amount is negative. Total Amount to be refunded by the creditor. State the currency of the creditor." tooltip-enable="true" tooltip-placement="right" tooltip-trigger="click"></div>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.10.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.10.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.OverpaymentReferences; metaSection = $parent.metaSection.OverpaymentReferences" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.11. Overpayment references
									</label>
								</div>
							<div style="vertical-align:bottom" met_start_tag ng-repeat="section in section.OverpaymentReference" ng-init = "metaSection = metaSection.OverpaymentReference[$index]" ng-hide = "metaSection.$$isHidden" ng-class="'color' + ($index % 2)" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.11.1. Overpayment reference
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.referenceNumber.$$error,'has-warning': validateForm && metaSection.referenceNumber.$$warning && !metaSection.referenceNumber.$$error}">
									<label class="control-label col-xs-3">1.11.1.1. Reference number <i>*</i></label>
									<div class="tooltip-handler" tooltip="Reference number of the Debtor in the Overpayment BUC" tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.referenceNumber" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.referenceNumber)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.referenceNumber.$$error">{{metaSection.referenceNumber.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.referenceNumber.$$warning && !metaSection.referenceNumber.$$error">{{metaSection.referenceNumber.$$warning}}</label>
								   </div>
								</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.Amount; metaSection = $parent.metaSection.Amount" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.11.1.2. Amount <i>*</i>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.11.1.2.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.11.1.2.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
								<table style="width:100%" class="repetitive-section-footer">
									<tr style="background-color:#f9f9f9">
										<td style="text-align:left;width:auto">
										<span class="arrow_r"></span> 1.11.1.Overpayment reference </td>
										<td><div style="float:right">
											<button type="button" data-section-count="1" class="btn-link section-btn-link" ng-click="addSection($parent.section.OverpaymentReference, $parent.metaSection.OverpaymentReference, $index)">
												<span>{{locale['Add']}}</span>
											</button>
											<button type="button" data-section-count="1" class="close section-btn-close" ng-click="removeSection($parent.section.OverpaymentReference, $parent.metaSection.OverpaymentReference, $index)">
												<span>×</span>
											</button>
																	
										</div></td>
									</tr>
								</table>
							</div>
							</div>
							</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.OffsettingReferences; metaSection = $parent.metaSection.OffsettingReferences" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.12. Offsetting references
									</label>
								</div>
							<div style="vertical-align:bottom" met_start_tag ng-repeat="section in section.OffsettingReference" ng-init = "metaSection = metaSection.OffsettingReference[$index]" ng-hide = "metaSection.$$isHidden" ng-class="'color' + ($index % 2)" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.12.1. Offsetting reference
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.referenceNumber.$$error,'has-warning': validateForm && metaSection.referenceNumber.$$warning && !metaSection.referenceNumber.$$error}">
									<label class="control-label col-xs-3">1.12.1.1. Reference number <i>*</i></label>
									<div class="tooltip-handler" tooltip="Reference number of the Debtor in the Overpayment BUC" tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7">
										<input ng-model="section.referenceNumber" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.referenceNumber)}}" /><br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.referenceNumber.$$error">{{metaSection.referenceNumber.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.referenceNumber.$$warning && !metaSection.referenceNumber.$$error">{{metaSection.referenceNumber.$$warning}}</label>
								   </div>
								</div>
							<div style="vertical-align:bottom" met_start_tag  ng-controller = "SectionController" ng-init = "section = $parent.section.Amount; metaSection = $parent.metaSection.Amount" ng-hide = "metaSection.$$isHidden" id="section_{{getNextUUID(metaSection)}}">
								<div style="vertical-align:bottom" met_start_tag class="met_lazy" ng-if="::shouldLoadSection">
								<div style="vertical-align:bottom" class="SUBSECTION_ROW" id="section_{{getNextUUID(metaSection)}}">
									<label style="vertical-align:bottom" class="control-label">1.12.1.2. Amount <i>*</i>
									</label>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.amount.$$error,'has-warning': validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error}">
									<label class="control-label col-xs-3">1.12.1.2.1. Amount <i>*</i></label>
									<div class="col-xs-7"><input ng-model="section.amount" ng-disabled="false" class="form-control" type="text" 	value="" id="field_{{getNextUUID(metaSection.amount)}}" /><br/></div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.amount.$$error">{{metaSection.amount.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.amount.$$warning && !metaSection.amount.$$error">{{metaSection.amount.$$warning}}</label>
								   </div>
								</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.currency.$$error,'has-warning': validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error}">
									<label class="control-label col-xs-3">1.12.1.2.2. Currency <i>*</i></label>
									<div 		class="col-xs-7">
										
										<!--  single enum: multiplicity 1 and size greater that 5 entries -->
										<ui-select type="enum" ng-model="section.currency" ng-disabled="false" reset-search-input="false" lazy-load="true" id="field_{{getNextUUID(metaSection.currency)}}">
											<ui-select-match allow-clear="true" placeholder="None selected"> {{$select.selected[ 'name']}} </ui-select-match>
											<ui-select-choices repeat="option['value'] as option in input.EESSIEUEFTACurrencyType | filter: $select.search">
												<div ng-bind-html="option['name'] | highlight: $select.search"></div>
											</ui-select-choices>
										</ui-select>
										<br/>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.currency.$$error">{{metaSection.currency.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.currency.$$warning && !metaSection.currency.$$error">{{metaSection.currency.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
								<table style="width:100%" class="repetitive-section-footer">
									<tr style="background-color:#f9f9f9">
										<td style="text-align:left;width:auto">
										<span class="arrow_r"></span> 1.12.1.Offsetting reference </td>
										<td><div style="float:right">
											<button type="button" data-section-count="1" class="btn-link section-btn-link" ng-click="addSection($parent.section.OffsettingReference, $parent.metaSection.OffsettingReference, $index)">
												<span>{{locale['Add']}}</span>
											</button>
											<button type="button" data-section-count="1" class="close section-btn-close" ng-click="removeSection($parent.section.OffsettingReference, $parent.metaSection.OffsettingReference, $index)">
												<span>×</span>
											</button>
																	
										</div></td>
									</tr>
								</table>
							</div>
							</div>
							</div>
								<!-- div met_start_tag met_if = "!isChoice" class="container-fluid row"></div-->
								<div met_start_tag class="container-fluid" ng-hide="false">
								<div ng-class="{'has-error': validateForm && metaSection.dateOfSubmission.$$error,'has-warning': validateForm && metaSection.dateOfSubmission.$$warning && !metaSection.dateOfSubmission.$$error}">
									<label class="control-label col-xs-3">1.13. Date Of Submission <i>*</i></label>
									<div class="tooltip-handler" tooltip="Date when the current SED (S091) is submitted." tooltip-enable="true" tooltip-placement="left" tooltip-trigger="click"></div>
									<div class="col-xs-7" ng-controller="DatePicker1">
										<p class="input-group">
											<span ng-class="{'met-datepicker-up': metaSection.dateOfSubmission.$$elemNo >= metaModel.S091_Master.$$elementsNo - 4}">
												<input type="text" class="form-control" datepicker-popup-met ng-model="section.dateOfSubmission" ng-disabled="false" is-open="status.opened" min-date="minDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" close-text="Close" show-weeks="false" year-rows="9" year-columns="9" time-arrow="forward" datepicker-mode="year" placeholder="dd-MM-yyyy" id="field_{{getNextUUID(metaSection.dateOfSubmission)}}" />
											</span>
											<span class="input-group-btn">
												<button ng-class="{'has-error-date-button': validateForm && metaSection.dateOfSubmission.$$error, 'has-warning-date-button': validateForm && !metaSection.dateOfSubmission.$$error && metaSection.dateOfSubmission.$$warning}" ng-disabled="false" type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
											</span>
										</p>
									</div>
									
									<label class="control-label col-xs-2 error-msg warning-msg" ng-show="validateForm && metaSection.dateOfSubmission.$$error">{{metaSection.dateOfSubmission.$$error}}</label>
									<label class="control-label col-xs-2 warning-msg" ng-show="validateForm && metaSection.dateOfSubmission.$$warning && !metaSection.dateOfSubmission.$$error">{{metaSection.dateOfSubmission.$$warning}}</label>
								   </div>
								</div>
							</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			</bg-pane>
			<bg-pane min-size="1">
			<div class = "footer-content" ng-controller="FooterController" ng-cloak>
					<table ng-show="errors.length > 0" st-table="errorListDisplay" st-safe-src="errors" class="table table-condensed table-striped table-hover">
					<tbody>
					<tr ng-repeat="row in errorListDisplay | orderBy:'level'">
						<td width="95%" ng-click="showError(row)" class="wb-link" 
							ng-style="{'color':row.severity == 'Error'?'red':'orange'}">
							{{ row.severity }} :
							{{ row.message }}
						</td>
					</tr>
					</tbody>
				</table>
			</div>
		 </bg-pane>
		 </bg-splitter>
		</div>
		<script>
		
		/*
		angular.module("sedAngularApp").run( function() {
			angular.module("sedAngularApp").lazy.controller("ControllerS091_Master",["$scope", ControllerS091_Master]);	
		});
		*/
		
		angular.module("sedAngularApp").lazy.controller("ControllerS091_Master",["$scope", ControllerS091_Master]);
		
		function ControllerS091_Master($scope){
			
			$scope.VM = { splitterPosition:1 };
			
			$scope.contentDiv = "content-angular_S091_Master";
			
			$scope.errors = new Array();
		
			$scope.MODEL = {
	"S091_Master":{
		"sedPackage":"Sector Components/Sickness/S091_Master",
		"sedGVer":"4",
		"sedVer":"0",
		"GlobalNotePAY":{
			"globalCLAReferenceCreditorLiaisonBody":"",
			"globalPAYReferenceDebtorLiaisonBody":"",
			"totalNumberIndividualPayments":"",
			"TotalPaymentAmountPaid":{
				"amount":"",
				"currency":""
			},
			"TotalPaymentAmountRefunded":{
				"amount":"",
				"currency":""
			},
			"TotalAmountCreditNotes":{
				"amount":"",
				"currency":""
			},
			"TotalAmountContestations":{
				"amount":"",
				"currency":""
			},
			"TotalAmountBenefits":{
				"amount":"",
				"currency":""
			},
			"TotalAmountDownPayment":{
				"amount":"",
				"currency":""
			},
			"TotalAmountOverpayment":{
				"amount":"",
				"currency":""
			},
			"OverpaymentReferences":{
				"OverpaymentReference":[{
					"referenceNumber":"",
					"Amount":{
						"amount":"",
						"currency":""
					}
				}]
			},
			"OffsettingReferences":{
				"OffsettingReference":[{
					"referenceNumber":"",
					"Amount":{
						"amount":"",
						"currency":""
					}
				}]
			},
			"dateOfSubmission":""
		}
	}
};
		
			$scope.META_MODEL = {
					"S091_Master":{
							"$$name" : "S091_Master",
							"$$heading":"",
							"$$mandatory":true, 
							"$$repetition":false, 
							"$$type":"sed",
							"$$uuid":"S091_Master",
							"$$hasData":false,
							"GlobalNotePAY":{
								"$$name":"GlobalNotePAY",
								"$$heading":"1",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"globalCLAReferenceCreditorLiaisonBody":{
								"$$name":"globalCLAReferenceCreditorLiaisonBody",
								"$$heading":"1.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"globalPAYReferenceDebtorLiaisonBody":{
								"$$name":"globalPAYReferenceDebtorLiaisonBody",
								"$$heading":"1.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"totalNumberIndividualPayments":{
								"$$name":"totalNumberIndividualPayments",
								"$$heading":"1.3",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "minInclusive":"0" },
								"$$type":"int",
								"$$uuid":0,
								"$$hasData":false
							},
							"TotalPaymentAmountPaid":{
								"$$name":"TotalPaymentAmountPaid",
								"$$heading":"1.4",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false, 
								"$$choice":1,
								"$$choiceIndex":0,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.4.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.4.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalPaymentAmountRefunded":{
								"$$name":"TotalPaymentAmountRefunded",
								"$$heading":"1.5",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false, 
								"$$choice":1,
								"$$choiceIndex":1,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.5.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.5.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalAmountCreditNotes":{
								"$$name":"TotalAmountCreditNotes",
								"$$heading":"1.6",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.6.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.6.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalAmountContestations":{
								"$$name":"TotalAmountContestations",
								"$$heading":"1.7",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.7.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.7.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalAmountBenefits":{
								"$$name":"TotalAmountBenefits",
								"$$heading":"1.8",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.8.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.8.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalAmountDownPayment":{
								"$$name":"TotalAmountDownPayment",
								"$$heading":"1.9",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.9.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.9.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"TotalAmountOverpayment":{
								"$$name":"TotalAmountOverpayment",
								"$$heading":"1.10",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.10.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.10.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							},
							"OverpaymentReferences":{
								"$$name":"OverpaymentReferences",
								"$$heading":"1.11",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"OverpaymentReference":[{
								"$$name":"OverpaymentReference",
								"$$heading":"1.11.1",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":true,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"referenceNumber":{
								"$$name":"referenceNumber",
								"$$heading":"1.11.1.1",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"Amount":{
								"$$name":"Amount",
								"$$heading":"1.11.1.2",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.11.1.2.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.11.1.2.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							}
							}]
							},
							"OffsettingReferences":{
								"$$name":"OffsettingReferences",
								"$$heading":"1.12",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"OffsettingReference":[{
								"$$name":"OffsettingReference",
								"$$heading":"1.12.1",
								"$$mandatory":false,
								"$$draftCritical":false,
								"$$repetition":true,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"referenceNumber":{
								"$$name":"referenceNumber",
								"$$heading":"1.12.1.1",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"string",
								"$$uuid":0,
								"$$hasData":false
							},
							"Amount":{
								"$$name":"Amount",
								"$$heading":"1.12.1.2",
								"$$mandatory":true,
								"$$draftCritical":false,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"section",
								"$$uuid":0,
								"$$hasData":false,
							"amount":{
								"$$name":"amount",
								"$$heading":"1.12.1.2.1",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$hasRestrictions":true,
								"$$restrictions": { "pattern":"(([1-9][0-9]{0,9})(\\.\\d{2,2})?|([0]{1})(\\.\\d{2,2})?)" },
								"$$type":"double",
								"$$uuid":0,
								"$$hasData":false
							},
							"currency":{
								"$$name":"currency",
								"$$heading":"1.12.1.2.2",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"enum",
								"$$uuid":0,
								"$$hasData":false
							}
							}
							}]
							},
							"dateOfSubmission":{
								"$$name":"dateOfSubmission",
								"$$heading":"1.13",
								"$$mandatory":true,
								"$$draftCritical":true,
								"$$repetition":false,
								"$$isHidden":false,
								"$$type":"date",
								"$$uuid":0,
								"$$hasData":false
							}
							}
				}
			};
		}
		
		/* Without flags */
		var INPUT = 
		{
			"EESSIEUEFTACurrencyType":
			 [
						{name: "["+"EUR"+"] Euro", value: "EUR$", ticked: false},
						{name: "["+"BGN"+"] Bulgarian Lev", value: "BGN$", ticked: false},
						{name: "["+"CZK"+"] Czech Koruna", value: "CZK$", ticked: false},
						{name: "["+"DKK"+"] Danish Krone", value: "DKK$", ticked: false},
						{name: "["+"GBP"+"] British Pound", value: "GBP$", ticked: false},
						{name: "["+"HRK"+"] Croatian Kuna", value: "HRK$", ticked: false},
						{name: "["+"HUF"+"] Hungarian Forint", value: "HUF$", ticked: false},
						{name: "["+"PLN"+"] Polish Zloty", value: "PLN$", ticked: false},
						{name: "["+"RON"+"] Romanian New Leu", value: "RON$", ticked: false},
						{name: "["+"SEK"+"] Swedish Krona", value: "SEK$", ticked: false},
						{name: "["+"CHF"+"] Swiss Franc", value: "CHF$", ticked: false},
						{name: "["+"ISK"+"] Icelandic Krona", value: "ISK$", ticked: false},
						{name: "["+"NOK"+"] Norwegian Krone", value: "NOK$", ticked: false},
						{name: "["+"LTL"+"] Lithuanian Litas", value: "LTL$", ticked: false},
						{name: "["+"LVL"+"] Latvian Lats", value: "LVL$", ticked: false}
			 ],
			"structureEnd": {}
		};
		
		var ERROR_MESSAGES =
		{
			"section": "section",
			"field": "field",	
			"requiresdata": "requires data",
			"invalidformat": "has invalid formatted data",
			"norestriction": "does not comply with restriction"
		};
		
		var LOCALE =
		{
			"Add": "Add",
			"Translate": "Translate"
		};
		
		</script>	
	</div>

</body>
</html>