<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: JE Italian B2G Electronic Invoices XML File Output -->
 <REPORTS_ROW>
  <GUID>82288223F1113869E053B46B63588994</GUID>
  <SQL_TEXT>SELECT trx.customer_trx_id trx_id,
	                       nvl(trx.global_attribute7,decode(trx_types.type,&apos;INV&apos;,&apos;TD01&apos;,&apos;CM&apos;,&apos;TD04&apos;,&apos;DM&apos;,&apos;TD05&apos;)) trx_doc_type,
	                       trx.invoice_currency_code  trx_cur_code,
	                       trx.exchange_rate  trx_exchange_rate,
			               to_char(trx.trx_date,&apos;YYYY-MM-DD&apos;)       trx_date,
			               trx.trx_number     trx_number,
			               trx.purchase_order trx_po_number,
			               to_char(trx.purchase_order_date,&apos;YYYY-MM-DD&apos;) trx_po_date,
						   trx.waybill_number  trx_waybill_number,
						   trx.ship_date_actual trx_ship_date_actual,
			               trx.attribute1 trx_hdr_attribute1,
			               trx.attribute2 trx_hdr_attribute2,
			               trx.attribute3 trx_hdr_attribute3,
			               trx.attribute4 trx_hdr_attribute4,
			               trx.attribute5 trx_hdr_attribute5,
			               trx.attribute6 trx_hdr_attribute6,
			               trx.attribute7 trx_hdr_attribute7,
			               trx.attribute8 trx_hdr_attribute8,
			               trx.attribute9 trx_hdr_attribute9,
			               trx.attribute10 trx_hdr_attribute10,
			               trx.attribute11 trx_hdr_attribute11,
			               trx.attribute12 trx_hdr_attribute12,
			               trx.attribute13 trx_hdr_attribute13,
			               trx.attribute15 trx_hdr_attribute14,						   
			               trx.attribute15 trx_hdr_attribute15,
			               trx.interface_header_attribute1 interface_hdr_attribute1,
			               trx.interface_header_attribute2 interface_hdr_attribute2,
			               trx.interface_header_attribute3 interface_hdr_attribute3,
			               trx.interface_header_attribute4 interface_hdr_attribute4,						   
			               trx.interface_header_attribute5 interface_hdr_attribute5,
			               trx.interface_header_attribute6 interface_hdr_attribute6,
			               trx.interface_header_attribute7 interface_hdr_attribute7,
			               trx.interface_header_attribute8 interface_hdr_attribute8,
			               trx.interface_header_attribute9 interface_hdr_attribute9,
			               trx.interface_header_attribute10 interface_hdr_attribute10,
			               trx.interface_header_attribute11 interface_hdr_attribute11,
			               trx.interface_header_attribute12 interface_hdr_attribute12,						   
			               trx.interface_header_attribute13 interface_hdr_attribute13,
			               trx.interface_header_attribute14 interface_hdr_attribute14,
			               trx.interface_header_attribute15 interface_hdr_attribute15,
                           hl.address1||hl.address2 ship_to_address,
			               hl.city ship_to_city,
			               hl.postal_code ship_to_postal_code,
			               hl.country ship_to_country,
			               hl.province ship_to_province
	                 FROM  ra_customer_trx  trx,
	                       ra_cust_trx_types trx_types,
	                       hz_cust_acct_sites_all hcas,
			               hz_cust_site_uses_all hcsu,
			               hz_party_sites hps,
			               hz_locations hl
	                WHERE  trx.legal_entity_id     = :P_LEGAL_ENTITY_ID
					  and  trx.bill_to_customer_id = :P_CUST_ACCOUNT_ID
	                  and  trx.bill_to_site_use_id = :P_BILL_TO_SITE_USE_ID
	                  and  trx.ship_to_site_use_id = hcsu.site_use_id(+)
	                  and  hcsu.cust_acct_site_id  = hcas.cust_acct_site_id(+)
		              and  hcas.party_site_id      = hps.party_site_id(+)
		              and  hps.location_id         = hl.location_id(+)
		              and  trx.cust_trx_type_id    = trx_types.cust_trx_type_id
					  and  trx_types.type in (&apos;INV&apos;,&apos;CM&apos;,&apos;DM&apos;)  --19234760
					  and  trx.org_id = trx_types.org_id
		              and  trx.customer_trx_id     = nvl(:P_TRX_ID,customer_trx_id)
		              and  trx.complete_flag       = &apos;Y&apos;
		              and  trx.trx_date between :P_TRX_DATE_FROM  and :P_TRX_DATE_TO
		              and  ((:P_GEN_OPTION=&apos;1&apos; and trx.global_attribute8 is NULL  )                        -- electronic invoice status is null
					         or (:P_GEN_OPTION in (&apos;2&apos;,&apos;3&apos;) and trx.global_attribute8 is NOT NULL and :p_trx_id is not null ))
		              and  exists (select 1 
					                 from ra_customer_trx_lines_all trx_lines
	                                where trx_lines.customer_trx_id = trx.customer_trx_id	
					                  and trx_lines.line_type = &apos;TAX&apos; )
				   UNION ALL
				   SELECT trx.customer_trx_id trx_id,
	                       nvl(trx.global_attribute7,decode(trx_types.type,&apos;INV&apos;,&apos;TD01&apos;,&apos;CM&apos;,&apos;TD04&apos;,&apos;DM&apos;,&apos;TD05&apos;)) trx_doc_type,
	                       trx.invoice_currency_code  trx_cur_code,
	                       trx.exchange_rate  trx_exchange_rate,
			               to_char(trx.trx_date,&apos;YYYY-MM-DD&apos;)      trx_date,
			               trx.trx_number     trx_number,
			               trx.purchase_order trx_po_number,
			               to_char(trx.purchase_order_date,&apos;YYYY-MM-DD&apos;) trx_po_date,
						   trx.waybill_number  trx_waybill_number,
						   trx.ship_date_actual trx_ship_date_actual,						   
			               trx.attribute1 trx_hdr_attribute1,
			               trx.attribute2 trx_hdr_attribute2,
			               trx.attribute3 trx_hdr_attribute3,
			               trx.attribute4 trx_hdr_attribute4,
			               trx.attribute5 trx_hdr_attribute5,
			               trx.attribute6 trx_hdr_attribute6,
			               trx.attribute7 trx_hdr_attribute7,
			               trx.attribute8 trx_hdr_attribute8,
			               trx.attribute9 trx_hdr_attribute9,
			               trx.attribute10 trx_hdr_attribute10,
			               trx.attribute11 trx_hdr_attribute11,
			               trx.attribute12 trx_hdr_attribute12,
			               trx.attribute13 trx_hdr_attribute13,
			               trx.attribute15 trx_hdr_attribute14,						   
			               trx.attribute15 trx_hdr_attribute15,
			               trx.interface_header_attribute1 interface_hdr_attribute1,
			               trx.interface_header_attribute2 interface_hdr_attribute2,
			               trx.interface_header_attribute3 interface_hdr_attribute3,
			               trx.interface_header_attribute4 interface_hdr_attribute4,						   
			               trx.interface_header_attribute5 interface_hdr_attribute5,
			               trx.interface_header_attribute6 interface_hdr_attribute6,
			               trx.interface_header_attribute7 interface_hdr_attribute7,
			               trx.interface_header_attribute8 interface_hdr_attribute8,
			               trx.interface_header_attribute9 interface_hdr_attribute9,
			               trx.interface_header_attribute10 interface_hdr_attribute10,
			               trx.interface_header_attribute11 interface_hdr_attribute11,
			               trx.interface_header_attribute12 interface_hdr_attribute12,						   
			               trx.interface_header_attribute13 interface_hdr_attribute13,
			               trx.interface_header_attribute14 interface_hdr_attribute14,
			               trx.interface_header_attribute15 interface_hdr_attribute15,
                           hl.address1||hl.address2 ship_to_address,
			               hl.city ship_to_city,
			               hl.postal_code ship_to_postal_code,
			               hl.country ship_to_country,
			               hl.province ship_to_province
	                 FROM  ra_customer_trx  trx,
	                       ra_cust_trx_types trx_types,
	                       hz_cust_acct_sites_all hcas,
			               hz_cust_site_uses_all hcsu,
			               hz_party_sites hps,
			               hz_locations hl
	                WHERE  trx.legal_entity_id     = :P_LEGAL_ENTITY_ID
					  and  trx.bill_to_customer_id = :P_CUST_ACCOUNT_ID
	                  and  trx.bill_to_site_use_id = :P_BILL_TO_SITE_USE_ID
	                  and  trx.ship_to_site_use_id = hcsu.site_use_id(+)
	                  and  hcsu.cust_acct_site_id  = hcas.cust_acct_site_id(+)
		              and  hcas.party_site_id      = hps.party_site_id(+)
		              and  hps.location_id         = hl.location_id(+)
		              and  trx.cust_trx_type_id    = trx_types.cust_trx_type_id
					  and  trx_types.type in (&apos;INV&apos;,&apos;CM&apos;,&apos;DM&apos;)  --19234760
					  and  trx.org_id = trx_types.org_id
		              and  trx.complete_flag       = &apos;Y&apos;
		              and  trx.trx_date between :P_TRX_DATE_FROM  and :P_TRX_DATE_TO
		              and  :P_GEN_OPTION in (&apos;2&apos;,&apos;3&apos;) 
					  and  trx.global_attribute8 is NOT NULL                           -- electronic invoice status is not null
					  and  trx.global_attribute9 = :P_OLD_TRANSMISSION_NUM 
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>JE</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>JEITEIFO_XMLP</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>JE أعمال لحكومات - الفواتير الإلكترونية في إيطاليا - مخرجات ملف XML</REPORT_NAME>
    <DESCRIPTION>Application: المحليات الأوروبية
Source: أعمال لحكومات - الفواتير الإلكترونية في إيطاليا - مخرجات ملف XML
Short Name: JEITEIFO_XMLP
DB package: JE_IT_B2G_ELECTRONIC_FILE</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>JE B2G Elektronische Rechnungen - XML-Dateiausgabe (1)</REPORT_NAME>
    <DESCRIPTION>Application: Europäische Lokalisierungen
Source: Italien: B2G Elektronische Rechnungen - XML-Dateiausgabe
Short Name: JEITEIFO_XMLP
DB package: JE_IT_B2G_ELECTRONIC_FILE</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>JE Italie - B-to-G - Factures électroniques - Sortie dans fichier XML</REPORT_NAME>
    <DESCRIPTION>Application: European Localizations
Source: Italie - B-to-G - Factures électroniques - Sortie dans fichier XML
Short Name: JEITEIFO_XMLP
DB package: JE_IT_B2G_ELECTRONIC_FILE</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>JE Italian B2G Electronic Invoices XML File Output</REPORT_NAME>
    <DESCRIPTION>Application: European Localizations
Source: Italian B2G Electronic Invoices XML File Output
Short Name: JEITEIFO_XMLP
DB package: JE_IT_B2G_ELECTRONIC_FILE</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:p_bill_to_site_use_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cust_account_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_gen_option</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_legal_entity_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_new_transmission_num</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_old_transmission_num</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_profile_class_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_class</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transaction_type_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_transmission_file_ver</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_trx_date_from</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_trx_date_to</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_trx_id</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
