<div id="filtersTable" align="center">
	{filtersBox id="supplierInvoicesFiltersBox" title=$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.title floating=$supplierInvoicesFilterBehaviour.floating animate=$supplierInvoicesFilterBehaviour.animate collapsed=$supplierInvoicesFilterBehaviour.collapsed width='99%' floatingAutoHide=0}

		<form
			id="supplierInvoicesFiltersForm"
			method="get"
			onsubmit="	$('supplierInvoicesListButton').value='1';
						$('supplierInvoicesFiltersBox').toggleClick();
						ajaxIframe('supplierInvoicesListDiv', 'supplierInvoicesList.php', $('supplierInvoicesFiltersForm').serialize(true), ' ');
						return false;"
			style="margin:0px;">

			<table class="filters">

				{* ============================================================================= *}
				{* == SIMPLE FILTERS =========================================================== *}
				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.dateInterval}</div>
						<div>
							<input
								type="text" id="supplierInvoiceStartDateFieldId"
								name="supplier[invoiceStartDate]" value="{$filters.supplier.invoiceStartDate}" class="input-old-date1"
								onBlur="
									dateValidation(this, '{$dateStandard}');
									if ( days_between( $F('supplierInvoiceStartDateFieldId'), $F('supplierInvoiceEndDateFieldId'), '{$dateStandard}') > $F('supplierInvoiceDurationFieldId') ) {ldelim}
										$('supplierInvoiceEndDateFieldId').value='';
										dateDurationValidation($('supplierInvoiceDurationFieldId'), 0, ['supplierInvoiceStartDateFieldId', 'supplierInvoiceDurationFieldId', 'supplierInvoiceEndDateFieldId'], '{$dateStandard}');
									{rdelim}
								"
							/>
							<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" align="absmiddle" id="supplierInvoiceStartDateBtn" />
							<script>Calendar.setup({ldelim}inputField:"supplierInvoiceStartDateFieldId", button:"supplierInvoiceStartDateBtn", ifFormat:Date.displayFormat, onUpdate:function(){ldelim}cleanEndDateSupp();{rdelim}{rdelim});</script>

							&raquo;
							<input
								type="text" id="supplierInvoiceEndDateFieldId"
								name="supplier[invoiceEndDate]" value="{$filters.supplier.invoiceEndDate}" class="input-old-date1"
								onBlur="
									dateValidation(this, '{$dateStandard}');
									if ( days_between( $F('supplierInvoiceStartDateFieldId'), $F('supplierInvoiceEndDateFieldId'), '{$dateStandard}') > $F('supplierInvoiceDurationFieldId') ) {ldelim}
										$('supplierInvoiceStartDateFieldId').value='';
										dateDurationValidation($('supplierInvoiceDurationFieldId'), 0, ['supplierInvoiceStartDateFieldId', 'supplierInvoiceDurationFieldId', 'supplierInvoiceEndDateFieldId'], '{$dateStandard}');
									{rdelim}
								"

							/>
							<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" align="absmiddle" id="supplierInvoiceEndDateBtn" />
							<script>Calendar.setup({ldelim}inputField:"supplierInvoiceEndDateFieldId", button:"supplierInvoiceEndDateBtn", ifFormat:Date.displayFormat, onUpdate:function(){ldelim}cleanStartDateSupp();{rdelim}{rdelim});</script>

							<input id="supplierInvoiceDurationFieldId" type="hidden" value="{$supplierInvoiceMaxPeriod}" />
						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceNo}</div>
						<div>
							<input type="text" style="width:190px;"
								name="supplier[invoiceNumber]" value="{$filters.supplier.invoiceNumber}"
							/>
						</div>
					</td>

				</tr>


				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceResponsible}</div>
						<div>
							{* field = autocomplete *}
							{if $supplierInvoiceResponsibleFieldType=="autocomplete"}

								<input
									type="text" id="typeSupplierInvoiceOfficeUserName"
									style="width:177px"
									name="supplier[typeInvoiceOfficeUserName]" value="{$filters.supplier.typeInvoiceOfficeUserName}"
								/>
								<input id="supplierInvoiceIdOfficeUser" type="hidden" name="supplier[invoiceIdOfficeUser]" value="{$filters.supplier.invoiceIdOfficeUser}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"typeSupplierInvoiceOfficeUserName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=OfficeAndUser",
										autocompleteFieldValue:"typeSupplierInvoiceOfficeUserName",
										autocompleteFieldCode:"supplierInvoiceIdOfficeUser",
										clearOnCancel:true,
										clearOnSelect:false,
										clearButton:true,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>

							{* field = select *}
							{else}

								<select name="supplier[invoiceIdOfficeUser]" size="1" style="width:190px">
									<option
										value="0|0" {if $filters.supplier.invoiceIdOfficeUser=='0|0'}selected="1"{/if}
									>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceAllResponsibles}</option>
									{foreach from=$groupedUsers key=idOffice item=officeDetails}
										<option
											value="{$idOffice}|0" class="selectorOptionHighlight"
											{if "`$idOffice`|0"==$filters.supplier.invoiceIdOfficeUser}selected="1"{/if}
										>
											&nbsp; {$officeDetails.officeName}
										</option>

										{foreach from=$officeDetails.usersList key=idUser item=userInfo}
											<option
												value="{$idOffice}|{$idUser}"
												{if "`$idOffice`|`$idUser`"==$filters.supplier.invoiceIdOfficeUser}selected="1"{/if}
											>
												&nbsp; &nbsp; &nbsp; {$userInfo.lastName} {$userInfo.firstName}
											</option>
										{/foreach}
									{/foreach}
								</select>

							{/if}


						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.reservationId}</div>
						<div>
							<input type="text" style="width:105px;" id="filterSupplierIdReservation"
								name="supplier[idReservation]" value="{$filters.supplier.idReservation}"
							/>
							<select id="filterSupplierIdReservationType" name="supplier[idReservationType]" size="1" style="width:65px;">
								<option value="id" {if $filters.supplier.idReservationType=="id"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.idReservationType_id}</option>
								<option value="code" {if $filters.supplier.idReservationType=="code"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.idReservationType_code}</option>
								<option value="number" {if $filters.supplier.idReservationType=="number"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.idReservationType_number}</option>
							</select>
							<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
								tooltip="{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.reservationIdTooltip}"
							/>
						</div>
					</td>

				</tr>


				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.supplierServiceSupplier}</div>
						<div>

							<input
								id=supplierInvoiceTypeSupplierAndServiceName type="text" style="width:177px"
								name="supplier[typeSupplierAndServiceName]" value="{$filters.supplier.typeSupplierAndServiceName}"
							/>
							<input id="supplierInvoiceIdSupplierAndService" type="hidden" name="supplier[idSupplierAndService]" value="{$filters.supplier.idSupplierAndService}" />
							<script>
								new DCsAutocomplete({ldelim}
									autocompleteField:"supplierInvoiceTypeSupplierAndServiceName",
									url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=SupplierAndProduct",
									autocompleteFieldValue:"supplierInvoiceTypeSupplierAndServiceName",
									autocompleteFieldCode:"supplierInvoiceIdSupplierAndService",
									clearOnCancel:true,
									clearOnSelect:false,
									width:'280px',
									noResultsText:'{$_LANG.autocompleteNoResults}'
								{rdelim});
							</script>

						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.serviceType}</div>
						<div>
							<select name="supplier[serviceCode]" size="1" style="width:190px">
								<option value="" {if !$filters.supplier.serviceCode}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.allServices}</option>
								{foreach from=$servicesCodesList key=serviceId1 item=serviceCode1}
									{if !$serviceCode1[0]}
										<optgroup label="{$servicesTranslationsList[$serviceId1]}">
											{foreach from=$serviceCode1 key=serviceId2 item=serviceCode2}
												<option value="{$serviceId2}" {if $serviceId2==$filters.supplier.serviceCode}selected="1"{/if}>{$servicesTranslationsList[$serviceId2]}</option>
											{/foreach}
										</optgroup>
									{else}
										<option {if $serviceId1==$filters.supplier.serviceCode}selected="1"{/if} value="{$serviceId1}">{$servicesTranslationsList[$serviceId1]}</option>
									{/if}
								{/foreach}
							</select>
						</div>
					</td>

				</tr>


				{* ============================================================================= *}

				<tr>
					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.balanceStatus}</div>
						<div>

							<select size="1" name="supplier[balanceStatus]" style="width:190px;">
								<option value="2" {if $filters.supplier.balanceStatus=="2"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.balanceAllStatuses}</option>
								<option value="1" {if $filters.supplier.balanceStatus=="1"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.balancedInvoices}</option>
								<option value="0" {if $filters.supplier.balanceStatus=="0"}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.unbalancedInvoices}</option>
							</select>

						</div>
					</td>

					<td class="nowrap">
						<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.textFilter}</div>
						<div>
							<input type="text" style="width:170px;"
								name="supplier[text]" value="{$filters.supplier.text}"
							/>
							<img src="{$smarty.const.SMARTY_BLANKGIF}" alt="" align="absmiddle" class="imgIcon icon-infoBlue-12"
								tooltip="{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.textFilterTooltip}"
							/>
						</div>
					</td>

				</tr>


				{* ============================================================================= *}
				{* == ADVANCED FILTERS ========================================================= *}
				{* ============================================================================= *}

				<tbody id="supplierInvoicesAdvancedFilters" class="advancedFiltersTbody" {if !$filters.supplier.advancedFilters}style="display:none"{/if}>

					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceDueDate}</div>
							<div>

								<input
									type="text" id="supplierInvoiceDueStartDate"
									name="supplier[dueStartDate]" value="{$filters.supplier.dueStartDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="supplierInvoiceDueStartDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"supplierInvoiceDueStartDate", button:"supplierInvoiceDueStartDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
								&raquo;
								<input
									type="text" id="supplierInvoiceDueEndDate"
									name="supplier[dueEndDate]" value="{$filters.supplier.dueEndDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="supplierInvoiceDueEndDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"supplierInvoiceDueEndDate", button:"supplierInvoiceDueEndDateBtn", ifFormat:Date.displayFormat{rdelim});</script>

							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceStatus}</div>
							<div>
								<select size="1" name="supplier[status]" style="width:190px;">
									<option value="" {if !$filters.supplier.status}selected="1"{/if}>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceAllStatuses}</option>
									<option value="notConfirmed|" {if $filters.supplier.status=='notConfirmed|'}selected="1"{/if}>{$_LANG.supplierInvoices.statusOp.notConfirmed}</option>
									<option value="confirmed|" {if $filters.supplier.status=='confirmed|'}selected="1"{/if}>{$_LANG.supplierInvoices.statusOp.confirmed} ({$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.invoiceAllStatusesFin})</option>
									<option value="confirmed|n" {if $filters.supplier.status=='confirmed|n'}selected="1"{/if}>{$_LANG.supplierInvoices.statusOp.confirmed} ({$_LANG.supplierInvoices.statusFin.n})</option>
									<option value="confirmed|p" {if $filters.supplier.status=='confirmed|p'}selected="1"{/if}>{$_LANG.supplierInvoices.statusOp.confirmed} ({$_LANG.supplierInvoices.statusFin.p})</option>
									<option value="confirmed|t" {if $filters.supplier.status=='confirmed|t'}selected="1"{/if}>{$_LANG.supplierInvoices.statusOp.confirmed} ({$_LANG.supplierInvoices.statusFin.t})</option>
								</select>
							</div>
						</td>

					</tr>


					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.extResDate}</div>
							<div>
								<input type="text" style="width:170px" id="supplierInvoiceExtResDate"
									name="supplier[extResDate]" value="{$filters.supplier.extResDate}"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="supplierInvoiceExtResDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"supplierInvoiceExtResDate", button:"supplierInvoiceExtResDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.extResId}</div>
							<div>
								<input type="text" style="width:190px;"
									name="supplier[extResId]" value="{$filters.supplier.extResId}"
								/>
							</div>
						</td>

					</tr>


					{* ========================================================================= *}

					<tr>
						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.passenger}</div>
							<div>
								<input
									type="text" id="supplierInvoiceTypePassengerName"
									style="width:177px"
									name="supplier[typePassengerName]" value="{$filters.supplier.typePassengerName}"
								/>
								<input id="supplierInvoiceIdPassenger" type="hidden" name="supplier[idPassenger]" value="{$filters.supplier.idPassenger}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"supplierInvoiceTypePassengerName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=Customer",
										autocompleteFieldValue:"supplierInvoiceTypePassengerName",
										autocompleteFieldCode:"supplierInvoiceIdPassenger",
										clearOnCancel:true,
										clearOnSelect:false,
										width:'350px',
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.destination}</div>
							<div>
								<input
									type="text" id="supplierInvoiceTypeDestinationName"
									style="width:177px"
									name="supplier[typeDestinationName]" value="{$filters.supplier.typeDestinationName}"
								/>
								<input id="supplierInvoiceIdDestination" type="hidden" name="supplier[idDestination]" value="{$filters.supplier.idDestination}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"supplierInvoiceTypeDestinationName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=CountryCity",
										autocompleteFieldValue:"supplierInvoiceTypeDestinationName",
										autocompleteFieldCode:"supplierInvoiceIdDestination",
										clearOnCancel:true,
										clearOnSelect:false,
										width:'300px',
										offsetX:-108,
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

					</tr>


					{* ========================================================================= *}

					<tr>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.checkIn}</div>
							<div>

								<input
									type="text" id="supplierInvoiceServiceStartDate"
									name="supplier[serviceStartDate]" value="{$filters.supplier.serviceStartDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"
								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="supplierInvoiceServiceStartDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"supplierInvoiceServiceStartDate", button:"supplierInvoiceServiceStartDateBtn", ifFormat:Date.displayFormat{rdelim});</script>
								&raquo;
								<input
									type="text" id="supplierInvoiceServiceEndDate"
									name="supplier[serviceEndDate]" value="{$filters.supplier.serviceEndDate}" class="input-old-date1"
									onBlur="dateValidation(this, '{$dateStandard}');"

								/>
								<img class="calendar" src="{$smarty.const.SMARTY_BLANKGIF}" id="supplierInvoiceServiceEndDateBtn" align="absmiddle" />
								<script>Calendar.setup({ldelim}inputField:"supplierInvoiceServiceEndDate", button:"supplierInvoiceServiceEndDateBtn", ifFormat:Date.displayFormat{rdelim});</script>

							</div>
						</td>

						<td class="nowrap">
							<div class="filterFields">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.ticketNo}</div>
							<div>
								<input type="text" style="width:190px;"
									name="supplier[ticketNo]" value="{$filters.supplier.ticketNo}"
								/>
							</div>
						</td>

					</tr>

					{* ========================================================================= *}

					<tr>

						<td class="nowrap">
							<div class="filterFields">{$_LANG['invoices']['balanceInvoices']['supplierInvoiceList']['filters']['miceProject']}</div>
							<div>
								<input
									type="text" id="supplierInvoiceTypeMiceProjectName"
									style="width:177px"
									name="supplier[typeMiceProjectName]" value="{$filters.supplier.typeMiceProjectName}"
								/>
								<input id="supplierInvoiceIdMiceProject" type="hidden" name="supplier[idMiceProject]" value="{$filters.supplier.idMiceProject}" />
								<script>
									new DCsAutocomplete({ldelim}
										autocompleteField:"supplierInvoiceTypeMiceProjectName",
										url:"{$APP_URL}disp.php?module=RemoteData/AutocompleteFieldData&class=MiceProject",
										autocompleteFieldValue:"supplierInvoiceTypeMiceProjectName",
										autocompleteFieldCode:"supplierInvoiceIdMiceProject",
										clearOnCancel:true,
										clearOnSelect:false,
										width:'300px',
										offsetX:-108,
										noResultsText:'{$_LANG.autocompleteNoResults}'
									{rdelim});
								</script>
							</div>
						</td>

						<td class="nowrap">
						</td>

					</tr>

				</tbody>


				{* ============================================================================= *}

				<tr>
					<td colspan="2" class="center">

						<div style="float:right">
							<a href="#;" class="link" id="supplierInvoicesHideAdvFilters" {if !$filters.supplier.advancedFilters}style="display:none"{/if}
								onclick="
									$('supplierInvoicesAdvancedFilters').hide();
									$('supplierInvoicesShowAdvFilters').show();$(this).hide();
									$('supplierInvoicesAdvancedFiltersFlag').value=0;
								"
							>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.hideAdvancedFilters}</a>

							<a href="#;" class="link" id="supplierInvoicesShowAdvFilters" {if $filters.supplier.advancedFilters}style="display:none"{/if}
								onclick="
									$('supplierInvoicesAdvancedFilters').show();
									$('supplierInvoicesHideAdvFilters').show();$(this).hide();
									$('supplierInvoicesAdvancedFiltersFlag').value=1;
								"
							>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.showAdvancedFilters}</a>
						</div>

						<button style="float:left"
							type="button"
							onclick="
								messageBox.showQuestion('{$_LANG.confirm}', '{$_LANG.invoices.balanceInvoices.supplierInvoiceList.confirms.resetFilters}',[ ['{$_LANG.yes}', 'window.location.href=\'./?resetSupplierInvoicesFilters\';'], '{$_LANG.no}'])
							"
						>{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.resetFilters}</button>

						<button type="submit">{$_LANG.invoices.balanceInvoices.supplierInvoiceList.filters.listSuppliersInvoices}</button>

					</td>
				</tr>

			</table>

			<input id="supplierInvoicesAdvancedFiltersFlag" type="hidden" name="supplier[advancedFilters]" value="{$filters.supplier.advancedFilters}" />

			<input type="hidden" name="currentPage" value="0" />
			<input id="supplierInvoicesListButton" type="hidden" name="supplierInvoicesList" value="0" />

		</form>

	{/filtersBox}

</div>

<script>
	// IF THE START DATE IS UPDATED FROM THE CALENDAR - RECOMPUTE THE END DATE TO VALIDATE THAT THE TOTAL INTERVAL IS OK
	function cleanEndDateSupp() {ldelim}
		if ( days_between( $F('supplierInvoiceStartDateFieldId'), $F('supplierInvoiceEndDateFieldId'), '{$dateStandard}') > $F('supplierInvoiceDurationFieldId') ) {ldelim}
			$('supplierInvoiceEndDateFieldId').value='';
			dateDurationValidation($('supplierInvoiceDurationFieldId'), 0, ['supplierInvoiceStartDateFieldId', 'supplierInvoiceDurationFieldId', 'supplierInvoiceEndDateFieldId'], '{$dateStandard}');
		{rdelim}
	{rdelim}
	// IF THE START DATE IS UPDATED FROM THE CALENDAR - RECOMPUTE THE END DATE TO VALIDATE THAT THE TOTAL INTERVAL IS OK
	function cleanStartDateSupp() {ldelim}
		if ( days_between( $F('supplierInvoiceStartDateFieldId'), $F('supplierInvoiceEndDateFieldId'), '{$dateStandard}') > $F('supplierInvoiceDurationFieldId') ) {ldelim}
			$('supplierInvoiceStartDateFieldId').value='';
			dateDurationValidation($('supplierInvoiceDurationFieldId'), 0, ['supplierInvoiceStartDateFieldId', 'supplierInvoiceDurationFieldId', 'supplierInvoiceEndDateFieldId'], '{$dateStandard}');
		{rdelim}
	{rdelim}
</script>