227:
228: BEGIN
229: EXECUTE IMMEDIATE 'alter session set optimizer_features_enable=''10.1.0.5'''; ----Bug 12359827
230: IF p_debug_flag = 'Y' THEN
231: fnd_file.put_line(fnd_file.log,' *** Report Parameters *** ');
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
228: BEGIN
229: EXECUTE IMMEDIATE 'alter session set optimizer_features_enable=''10.1.0.5'''; ----Bug 12359827
230: IF p_debug_flag = 'Y' THEN
231: fnd_file.put_line(fnd_file.log,' *** Report Parameters *** ');
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
229: EXECUTE IMMEDIATE 'alter session set optimizer_features_enable=''10.1.0.5'''; ----Bug 12359827
230: IF p_debug_flag = 'Y' THEN
231: fnd_file.put_line(fnd_file.log,' *** Report Parameters *** ');
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
230: IF p_debug_flag = 'Y' THEN
231: fnd_file.put_line(fnd_file.log,' *** Report Parameters *** ');
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
231: fnd_file.put_line(fnd_file.log,' *** Report Parameters *** ');
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
232: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID : ' || P_VAT_REP_ENTITY_ID ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
233: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID2 : ' || P_VAT_REP_ENTITY_ID2 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
234: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID3 : ' || P_VAT_REP_ENTITY_ID3 ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
235: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID4 : ' || P_VAT_REP_ENTITY_ID4 ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
236: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID5 ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
237: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID6 : ' || P_VAT_REP_ENTITY_ID6 ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
238: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID7 : ' || P_VAT_REP_ENTITY_ID7 ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
239: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID8 : ' || P_VAT_REP_ENTITY_ID8 ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
240: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID9 : ' || P_VAT_REP_ENTITY_ID9 ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
241: fnd_file.put_line(fnd_file.log,'P_VAT_REP_ENTITY_ID10 : ' || P_VAT_REP_ENTITY_ID10 ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
242: fnd_file.put_line(fnd_file.log,'P_ICHUD_OSKIM_NUM : ' || P_ICHUD_OSKIM_NUM ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
243: fnd_file.put_line(fnd_file.log,'P_PERIOD : ' || P_PERIOD ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
244: fnd_file.put_line(fnd_file.log,'P_VAT_BOX : ' || P_VAT_BOX ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
245: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_LOW : ' || P_VAT_TRX_TYPE_LOW ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
246: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE_HIGH : ' || P_VAT_TRX_TYPE_HIGH ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
247: fnd_file.put_line(fnd_file.log,'P_VAT_TRX_TYPE : ' || P_VAT_TRX_TYPE ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
248: fnd_file.put_line(fnd_file.log,'P_REPORT_FORMAT : ' || P_REPORT_FORMAT ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
249: fnd_file.put_line(fnd_file.log,'P_BOX_FROM : ' || P_BOX_FROM ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
250: fnd_file.put_line(fnd_file.log,'P_BOX_TO : ' || P_BOX_TO ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
251: fnd_file.put_line(fnd_file.log,'P_SOURCE : ' || P_SOURCE ) ;
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
259: fnd_file.put_line(fnd_file.log,' *************************** ');
252: fnd_file.put_line(fnd_file.log,'P_DOC_NAME : ' || P_DOC_NAME ) ;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
259: fnd_file.put_line(fnd_file.log,' *************************** ');
260: END IF;
253: fnd_file.put_line(fnd_file.log,'P_DOC_SEQ_VALUE : ' || P_DOC_SEQ_VALUE ) ;
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
259: fnd_file.put_line(fnd_file.log,' *************************** ');
260: END IF;
261:
254: fnd_file.put_line(fnd_file.log,'P_REPORT_NAME : ' || P_REPORT_NAME ) ;
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
259: fnd_file.put_line(fnd_file.log,' *************************** ');
260: END IF;
261:
262: BEGIN
255: fnd_file.put_line(fnd_file.log,'P_VAR_ON_PURCHASES : ' || P_VAR_ON_PURCHASES ) ;
256: fnd_file.put_line(fnd_file.log,'P_VAR_ON_SALES : ' || P_VAR_ON_SALES ) ;
257: fnd_file.put_line(fnd_file.log,'P_LOCATION : ' || P_LOCATION ) ;
258: fnd_file.put_line(fnd_file.log,'P_LEGAL_ENTITY_NAME : ' || P_LEGAL_ENTITY_NAME ) ;
259: fnd_file.put_line(fnd_file.log,' *************************** ');
260: END IF;
261:
262: BEGIN
263: IF p_report_name = 'JEPTAVAT' THEN --Only for annual report, period year is passed
280: p_legal_entity_id := l_legal_entity_id;
281: END IF ;
282: EXCEPTION
283: WHEN OTHERS THEN
284: fnd_file.put_line(fnd_file.log,'Executing jg_zz_common_pkg.funct_curr_legal: '||SUBSTR(SQLERRM,1,200));
285: END;
286:
287: BEGIN
288: IF p_report_name = 'JEPTAVAT' THEN
305: ,pv_source => 'ALL');
306: END IF;
307: EXCEPTION
308: WHEN OTHERS THEN
309: fnd_file.put_line(fnd_file.log,'Executing jg_zz_common_pkg.tax_registration: '||SUBSTR(SQLERRM,1,200));
310: END;
311:
312: BEGIN
313: if(P_REPORT_NAME <> 'JEPTAVAT' )then
331: end if;
332:
333: EXCEPTION
334: WHEN OTHERS THEN
335: fnd_file.put_line(fnd_file.log,'Executing jg_zz_common_pkg.tax_registration: '||SUBSTR(SQLERRM,1,200));
336: END;
337:
338: BEGIN
339: jg_zz_common_pkg.company_detail(x_company_name => l_company_name
353: ,pn_legal_entity_id => l_legal_entity_id
354: ,p_vat_reporting_entity_id => P_VAT_REP_ENTITY_ID);
355: EXCEPTION
356: WHEN OTHERS THEN
357: fnd_file.put_line(fnd_file.log,'Executing jg_zz_common_pkg.company_detail: '||SUBSTR(SQLERRM,1,200));
358: END;
359: BEGIN
360: SELECT activity_code
361: INTO l_activity_code
362: FROM xle_entity_profiles
363: WHERE legal_entity_id = l_legal_entity_id;
364: EXCEPTION
365: WHEN NO_DATA_FOUND THEN
366: fnd_file.put_line(fnd_file.log,'Cannot find Activity Code (Standard Inductry Classification Code for Legal Entity:'||l_legal_entity_id);
367: WHEN OTHERS THEN
368: fnd_file.put_line(fnd_file.log,'Error While retriving Activity Code for Legal Entity:'||l_legal_entity_id);
369: fnd_file.put_line(fnd_file.log,'Error Message :'||SUBSTR(SQLERRM,1,200));
370: END;
364: EXCEPTION
365: WHEN NO_DATA_FOUND THEN
366: fnd_file.put_line(fnd_file.log,'Cannot find Activity Code (Standard Inductry Classification Code for Legal Entity:'||l_legal_entity_id);
367: WHEN OTHERS THEN
368: fnd_file.put_line(fnd_file.log,'Error While retriving Activity Code for Legal Entity:'||l_legal_entity_id);
369: fnd_file.put_line(fnd_file.log,'Error Message :'||SUBSTR(SQLERRM,1,200));
370: END;
371:
372: BEGIN
365: WHEN NO_DATA_FOUND THEN
366: fnd_file.put_line(fnd_file.log,'Cannot find Activity Code (Standard Inductry Classification Code for Legal Entity:'||l_legal_entity_id);
367: WHEN OTHERS THEN
368: fnd_file.put_line(fnd_file.log,'Error While retriving Activity Code for Legal Entity:'||l_legal_entity_id);
369: fnd_file.put_line(fnd_file.log,'Error Message :'||SUBSTR(SQLERRM,1,200));
370: END;
371:
372: BEGIN
373:
378: CLOSE get_legal_auth_info;
379:
380: EXCEPTION
381: WHEN OTHERS THEN
382: fnd_file.put_line(fnd_file.log,'Error Message :'||SUBSTR(SQLERRM,1,200));
383: END;
384:
385:
386: /* Get Currency Precision */
385:
386: /* Get Currency Precision */
387:
388: BEGIN
389: FND_FILE.PUT_LINE(FND_FILE.LOG,'Functional Currency Code :'||l_func_curr);
390:
391: SELECT precision
392: INTO l_precision
393: FROM fnd_currencies
392: INTO l_precision
393: FROM fnd_currencies
394: WHERE currency_code = l_func_curr;
395:
396: FND_FILE.PUT_LINE(FND_FILE.LOG,'Functional Currency Precision :'||l_precision);
397:
398: EXCEPTION
399: WHEN OTHERS THEN
400: FND_FILE.PUT_LINE(FND_FILE.LOG,'error in getting currency precision');
396: FND_FILE.PUT_LINE(FND_FILE.LOG,'Functional Currency Precision :'||l_precision);
397:
398: EXCEPTION
399: WHEN OTHERS THEN
400: FND_FILE.PUT_LINE(FND_FILE.LOG,'error in getting currency precision');
401: END;
402:
403:
404: INSERT INTO jg_zz_vat_trx_gt
461: ,l_comm_num
462: ,l_vat_reg_num
463: );
464: IF p_debug_flag = 'Y' THEN
465: fnd_file.put_line(fnd_file.log,'Legal Entity ID => ' || l_legal_entity_id);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
462: ,l_vat_reg_num
463: );
464: IF p_debug_flag = 'Y' THEN
465: fnd_file.put_line(fnd_file.log,'Legal Entity ID => ' || l_legal_entity_id);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
463: );
464: IF p_debug_flag = 'Y' THEN
465: fnd_file.put_line(fnd_file.log,'Legal Entity ID => ' || l_legal_entity_id);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
464: IF p_debug_flag = 'Y' THEN
465: fnd_file.put_line(fnd_file.log,'Legal Entity ID => ' || l_legal_entity_id);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
465: fnd_file.put_line(fnd_file.log,'Legal Entity ID => ' || l_legal_entity_id);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
466: fnd_file.put_line(fnd_file.log,'Company Name => ' || l_company_name);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
467: fnd_file.put_line(fnd_file.log,'Legal Entity Name => ' || l_company_name);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
468: fnd_file.put_line(fnd_file.log,'Regiatration Number => ' || l_registration_num);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
469: fnd_file.put_line(fnd_file.log,'Taxpayer ID => ' || l_registration_num);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
470: fnd_file.put_line(fnd_file.log,'Contact Name => ' || l_contact_name);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
471: fnd_file.put_line(fnd_file.log,'Address Line 1 => ' || l_address_line_1);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
472: fnd_file.put_line(fnd_file.log,'Address Line 2 => ' || l_address_line_2);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
473: fnd_file.put_line(fnd_file.log,'Address Line 3 => ' || l_address_line_3);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
474: fnd_file.put_line(fnd_file.log,'Address Line 4 => ' || l_address_line_4);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
475: fnd_file.put_line(fnd_file.log,'City => ' || l_city);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
476: fnd_file.put_line(fnd_file.log,'Country => ' || l_country);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
484: fnd_file.put_line(fnd_file.log,'l_tax_office_code => ' || l_tax_office_code);
477: fnd_file.put_line(fnd_file.log,'Telephone Number => ' || l_phone_number);
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
484: fnd_file.put_line(fnd_file.log,'l_tax_office_code => ' || l_tax_office_code);
485: END IF;
478: fnd_file.put_line(fnd_file.log,'Postal Code => ' || l_postal_code);
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
484: fnd_file.put_line(fnd_file.log,'l_tax_office_code => ' || l_tax_office_code);
485: END IF;
486:
479: fnd_file.put_line(fnd_file.log,'Currency Code => ' || l_func_curr);
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
484: fnd_file.put_line(fnd_file.log,'l_tax_office_code => ' || l_tax_office_code);
485: END IF;
486:
487:
480: fnd_file.put_line(fnd_file.log,'Reporting Status => ' || l_reporting_status);
481: fnd_file.put_line(fnd_file.log,'Period Start Date => ' || l_period_start_date);
482: fnd_file.put_line(fnd_file.log,'Period End Date => ' || l_period_end_date);
483: fnd_file.put_line(fnd_file.log,'l_tax_office_location => ' || l_tax_office_location);
484: fnd_file.put_line(fnd_file.log,'l_tax_office_code => ' || l_tax_office_code);
485: END IF;
486:
487:
488: -- Israel VAT Reporting 2010 - ER
500: l_vat_aggregation_limit_amt := cur_get_vat_aggregate_limit.VAT_AGGREGATE_LIMIT_AMT;
501: END LOOP;
502: EXCEPTION
503: WHEN OTHERS THEN
504: fnd_file.put_line(fnd_file.log,'Error Message :'||SUBSTR(SQLERRM,1,200));
505: END;
506:
507: BEGIN
508: select distinct nvl(jzvre.ledger_id,0)
534: IF l_vat_aggregation_limit_amt IS NULL THEN
535: fnd_message.set_name('JE', 'JE_IL_VAT_LIM_NOT_SET');
536: fnd_message.set_token('P_PERIOD', P_PERIOD);
537: LOG_MESSAGE_MAIN := fnd_message.get;
538: fnd_file.put_line(fnd_file.log,LOG_MESSAGE_MAIN);
539: raise_application_error(-20010,LOG_MESSAGE_MAIN);
540: END IF;
541: IF p_report_name = 'JEILR835' THEN null; --moved logic to jeilr835 procedure
542: ELSIF l_vat_rep_status_id IS NULL THEN
542: ELSIF l_vat_rep_status_id IS NULL THEN
543: fnd_message.set_name('JE', 'JE_IL_VAT_REP_NOT_RUN');
544: fnd_message.set_token('P_PERIOD', P_PERIOD);
545: LOG_MESSAGE_MAIN := fnd_message.get;
546: fnd_file.put_line(fnd_file.log,LOG_MESSAGE_MAIN);
547: select ENTITY_IDENTIFIER
548: into l_ent_name_main
549: from jg_zz_vat_rep_entities
550: where VAT_REPORTING_ENTITY_ID = P_VAT_REP_ENTITY_ID;
547: select ENTITY_IDENTIFIER
548: into l_ent_name_main
549: from jg_zz_vat_rep_entities
550: where VAT_REPORTING_ENTITY_ID = P_VAT_REP_ENTITY_ID;
551: fnd_file.put_line(fnd_file.log,'>>>>>'||l_ent_name_main);
552: raise_application_error(-20010,LOG_MESSAGE_MAIN);
553: END IF;
554:
555: --Set the precision
555: --Set the precision
556: g_precision := l_precision;
557:
558: IF p_debug_flag = 'Y' THEN
559: fnd_file.put_line(fnd_file.log,'VAT Aggregate Limit Amount '||to_char(l_vat_aggregation_limit_amt));
560: END IF;
561: IF p_debug_flag = 'Y' THEN
562: fnd_file.put_line(fnd_file.log,'Get Reporting Status ID '||to_char(l_vat_rep_status_id));
563: END IF;
558: IF p_debug_flag = 'Y' THEN
559: fnd_file.put_line(fnd_file.log,'VAT Aggregate Limit Amount '||to_char(l_vat_aggregation_limit_amt));
560: END IF;
561: IF p_debug_flag = 'Y' THEN
562: fnd_file.put_line(fnd_file.log,'Get Reporting Status ID '||to_char(l_vat_rep_status_id));
563: END IF;
564:
565: -- Start ER 9155483 (Ichud Oskim)
566: IF p_report_name = 'JEILR835' THEN
564:
565: -- Start ER 9155483 (Ichud Oskim)
566: IF p_report_name = 'JEILR835' THEN
567: IF p_debug_flag = 'Y' THEN
568: fnd_file.put_line(fnd_file.log,'Calling Procedure jeilr835');
569: END IF;
570: jeilr835(p_vat_rep_entity_id => p_vat_rep_entity_id
571: ,p_vat_rep_entity_id2 => p_vat_rep_entity_id2
572: ,p_vat_rep_entity_id3 => p_vat_rep_entity_id3
583: ,p_report_name => p_report_name
584: ,p_operation_code => p_operation_code
585: ,x_err_msg => l_err_msg);
586: IF p_debug_flag = 'Y' THEN
587: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure jeilr835');
588: END IF;
589:
590: END IF;
591: -- End ER 9155483 (Ichud Oskim)
591: -- End ER 9155483 (Ichud Oskim)
592:
593: ELSIF p_report_name = 'JEBEVA06' THEN
594: IF p_debug_flag = 'Y' THEN
595: fnd_file.put_line(fnd_file.log,'Calling Procedure jgbeva06');
596: END IF;
597: jebeva06(p_vat_rep_entity_id => p_vat_rep_entity_id
598: ,p_period => p_period
599: ,p_vat_box => p_vat_box
603: ,p_doc_name => p_doc_name
604: ,p_doc_seq_value => p_doc_seq_value
605: ,x_err_msg => l_err_msg);
606: IF p_debug_flag = 'Y' THEN
607: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure jgbava06');
608: END IF;
609: ELSIF p_report_name = 'JEPTAVAT' THEN
610: IF p_debug_flag = 'Y' THEN
611: fnd_file.put_line(fnd_file.log,'Calling Procedure JEPTAVAT');
607: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure jgbava06');
608: END IF;
609: ELSIF p_report_name = 'JEPTAVAT' THEN
610: IF p_debug_flag = 'Y' THEN
611: fnd_file.put_line(fnd_file.log,'Calling Procedure JEPTAVAT');
612: END IF;
613: jeptavat(p_vat_rep_entity_id => p_vat_rep_entity_id
614: ,p_period => p_period
615: ,p_location => p_location
614: ,p_period => p_period
615: ,p_location => p_location
616: ,x_err_msg => l_err_msg);
617: IF p_debug_flag = 'Y' THEN
618: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure JEPTAVAT');
619: END IF;
620: ELSIF p_report_name = 'JEPTPVAT' THEN
621: IF p_debug_flag = 'Y' THEN
622: fnd_file.put_line(fnd_file.log,'Calling Procedure JEPTPVAT');
618: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure JEPTAVAT');
619: END IF;
620: ELSIF p_report_name = 'JEPTPVAT' THEN
621: IF p_debug_flag = 'Y' THEN
622: fnd_file.put_line(fnd_file.log,'Calling Procedure JEPTPVAT');
623: END IF;
624: jeptpvat(p_vat_rep_entity_id => p_vat_rep_entity_id
625: ,p_period => p_period
626: ,p_location => p_location
625: ,p_period => p_period
626: ,p_location => p_location
627: ,x_err_msg => l_err_msg);
628: IF p_debug_flag = 'Y' THEN
629: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure JEPTPVAT');
630: END IF;
631: ELSIF p_report_name = 'JEITPSSR' THEN
632: IF p_debug_flag = 'Y' THEN
633: fnd_file.put_line(fnd_file.log,'Calling Procedure JEITPSSR');
629: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure JEPTPVAT');
630: END IF;
631: ELSIF p_report_name = 'JEITPSSR' THEN
632: IF p_debug_flag = 'Y' THEN
633: fnd_file.put_line(fnd_file.log,'Calling Procedure JEITPSSR');
634: END IF;
635: jeitpssr(p_vat_rep_entity_id => p_vat_rep_entity_id
636: ,p_period => p_period
637: ,p_var_on_purchases => p_var_on_purchases
637: ,p_var_on_purchases => p_var_on_purchases
638: ,p_var_on_sales => p_var_on_sales
639: ,x_err_msg => l_err_msg);
640: IF p_debug_flag = 'Y' THEN
641: fnd_file.put_line(fnd_file.log,'Completed Call to Procedure JEITPSSR');
642: END IF;
643: END IF;
644:
645: IF p_debug_flag = 'Y' THEN
642: END IF;
643: END IF;
644:
645: IF p_debug_flag = 'Y' THEN
646: fnd_file.put_line(fnd_file.log,'End of Before Report');
647: END IF;
648:
649: RETURN (TRUE);
650: EXCEPTION
650: EXCEPTION
651: WHEN NO_DATA_FOUND THEN
652: RETURN (TRUE);
653: WHEN OTHERS THEN
654: fnd_file.put_line(fnd_file.log,'Error in Before Report Trigger' || SQLCODE || SUBSTR(SQLERRM,1,200));
655: raise;
656: RETURN (FALSE);
657: END before_report;
658:
843: t_invoice_amt NUMBER := 0.00000000000001;
844:
845: BEGIN
846: IF p_debug_flag = 'Y' THEN
847: fnd_file.put_line(fnd_file.log,'Executing jg_zz_summary_all_pkg.jgbeva06');
848: fnd_file.put_line(fnd_file.log,'Open Cursor C_BELGIAN_VAT');
849: END IF;
850: OPEN c_belgian_vat;
851: FETCH c_belgian_vat BULK COLLECT INTO v_box_amount;
844:
845: BEGIN
846: IF p_debug_flag = 'Y' THEN
847: fnd_file.put_line(fnd_file.log,'Executing jg_zz_summary_all_pkg.jgbeva06');
848: fnd_file.put_line(fnd_file.log,'Open Cursor C_BELGIAN_VAT');
849: END IF;
850: OPEN c_belgian_vat;
851: FETCH c_belgian_vat BULK COLLECT INTO v_box_amount;
852: CLOSE c_belgian_vat;
968:
969: FOR i IN 1..l_box_amount_grouped.COUNT
970: LOOP
971: IF p_debug_flag = 'Y' THEN
972: fnd_file.put_line(fnd_file.log,'Period Year => ' || l_box_amount_grouped(i).period_year);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
969: FOR i IN 1..l_box_amount_grouped.COUNT
970: LOOP
971: IF p_debug_flag = 'Y' THEN
972: fnd_file.put_line(fnd_file.log,'Period Year => ' || l_box_amount_grouped(i).period_year);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
970: LOOP
971: IF p_debug_flag = 'Y' THEN
972: fnd_file.put_line(fnd_file.log,'Period Year => ' || l_box_amount_grouped(i).period_year);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
971: IF p_debug_flag = 'Y' THEN
972: fnd_file.put_line(fnd_file.log,'Period Year => ' || l_box_amount_grouped(i).period_year);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
972: fnd_file.put_line(fnd_file.log,'Period Year => ' || l_box_amount_grouped(i).period_year);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
973: fnd_file.put_line(fnd_file.log,'Period Name => ' || l_box_amount_grouped(i).period_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
974: fnd_file.put_line(fnd_file.log,'VAT Report Box => ' || l_box_amount_grouped(i).vat_report_box);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
975: fnd_file.put_line(fnd_file.log,'Box Descriptionc => ' || l_box_amount_grouped(i).vat_box_description);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
976: fnd_file.put_line(fnd_file.log,'Source => ' || l_box_amount_grouped(i).source);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
977: fnd_file.put_line(fnd_file.log,'Document Name => ' || l_box_amount_grouped(i).document_seq_name);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
978: fnd_file.put_line(fnd_file.log,'Documemt Value => ' || l_box_amount_grouped(i).document_seq_value);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
979: fnd_file.put_line(fnd_file.log,'GL Date => ' || l_box_amount_grouped(i).gl_date);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
987: fnd_file.put_line(fnd_file.log,'Tax Amount => ' || l_box_amount_grouped(i).tax_amount);
980: fnd_file.put_line(fnd_file.log,'Vendor Number => ' || l_box_amount_grouped(i).trading_partner_number);
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
987: fnd_file.put_line(fnd_file.log,'Tax Amount => ' || l_box_amount_grouped(i).tax_amount);
988: END IF;
981: fnd_file.put_line(fnd_file.log,'Vendor_Name => ' || l_box_amount_grouped(i).trading_partner_name);
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
987: fnd_file.put_line(fnd_file.log,'Tax Amount => ' || l_box_amount_grouped(i).tax_amount);
988: END IF;
989:
982: fnd_file.put_line(fnd_file.log,'Invoice Number => ' || l_box_amount_grouped(i).invoice);
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
987: fnd_file.put_line(fnd_file.log,'Tax Amount => ' || l_box_amount_grouped(i).tax_amount);
988: END IF;
989:
990: IF l_box_amount_grouped(i).taxable_amount IS NOT NULL OR
983: fnd_file.put_line(fnd_file.log,'Line Number => ' || l_box_amount_grouped(i).line_number);
984: fnd_file.put_line(fnd_file.log,'VAT Code => ' || l_box_amount_grouped(i).vat_code);
985: fnd_file.put_line(fnd_file.log,'VAT Trans Type => ' || l_box_amount_grouped(i).vat_transaction_type);
986: fnd_file.put_line(fnd_file.log,'Taxable Amount => ' || l_box_amount_grouped(i).taxable_amount);
987: fnd_file.put_line(fnd_file.log,'Tax Amount => ' || l_box_amount_grouped(i).tax_amount);
988: END IF;
989:
990: IF l_box_amount_grouped(i).taxable_amount IS NOT NULL OR
991: l_box_amount_grouped(i).tax_amount IS NOT NULL THEN
1033: END LOOP;
1034:
1035: SELECT count(*) into l_count from jg_zz_vat_trx_gt ;
1036: IF p_debug_flag = 'Y' THEN
1037: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table: ' || l_count );
1038: fnd_file.put_line(fnd_file.log,'Completed procedure jg_zz_summary_all_pkg.jgbeva06');
1039: END IF;
1040: EXCEPTION
1041: WHEN OTHERS THEN
1034:
1035: SELECT count(*) into l_count from jg_zz_vat_trx_gt ;
1036: IF p_debug_flag = 'Y' THEN
1037: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table: ' || l_count );
1038: fnd_file.put_line(fnd_file.log,'Completed procedure jg_zz_summary_all_pkg.jgbeva06');
1039: END IF;
1040: EXCEPTION
1041: WHEN OTHERS THEN
1042: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jebeva06 ' || SUBSTR(SQLERRM,1,200));
1038: fnd_file.put_line(fnd_file.log,'Completed procedure jg_zz_summary_all_pkg.jgbeva06');
1039: END IF;
1040: EXCEPTION
1041: WHEN OTHERS THEN
1042: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jebeva06 ' || SUBSTR(SQLERRM,1,200));
1043: RAISE;
1044: END jebeva06;
1045:
1046: --
1176: -- Set data flag to yes
1177: l_data_found := 'Y';
1178:
1179: IF p_debug_flag = 'Y' then
1180: fnd_file.put_line(fnd_file.log,'---- Trans Id ------ '||l_pt_avat.transaction_id||'-----');
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1177: l_data_found := 'Y';
1178:
1179: IF p_debug_flag = 'Y' then
1180: fnd_file.put_line(fnd_file.log,'---- Trans Id ------ '||l_pt_avat.transaction_id||'-----');
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1178:
1179: IF p_debug_flag = 'Y' then
1180: fnd_file.put_line(fnd_file.log,'---- Trans Id ------ '||l_pt_avat.transaction_id||'-----');
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1179: IF p_debug_flag = 'Y' then
1180: fnd_file.put_line(fnd_file.log,'---- Trans Id ------ '||l_pt_avat.transaction_id||'-----');
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1180: fnd_file.put_line(fnd_file.log,'---- Trans Id ------ '||l_pt_avat.transaction_id||'-----');
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1181: fnd_file.put_line(fnd_file.log,'---- Trans Number--- '||l_pt_avat.trx_number||'-----');
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1182: fnd_file.put_line(fnd_file.log,'Tax class information: ' || l_pt_avat.tax_class);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1183: fnd_file.put_line(fnd_file.log,'Tax Recovery Rate: ' ||l_pt_avat.tax_recv_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1184: fnd_file.put_line(fnd_file.log,'Tax Recoverable Flag : '||l_pt_avat.tax_recoverable_flag);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1185: fnd_file.put_line(fnd_file.log,'Taxable box: ' ||l_pt_avat.txbl_nrc_box);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1193: fnd_file.put_line(fnd_file.log,'Allocation Rule ID: ' || l_pt_avat.allocation_rule_id);
1186: fnd_file.put_line(fnd_file.log,'Taxable amount: ' ||l_pt_avat.txbl_nrc_amount);
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1193: fnd_file.put_line(fnd_file.log,'Allocation Rule ID: ' || l_pt_avat.allocation_rule_id);
1194:
1187: fnd_file.put_line(fnd_file.log,'Tax box: ' || l_pt_avat.tax_box);
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1193: fnd_file.put_line(fnd_file.log,'Allocation Rule ID: ' || l_pt_avat.allocation_rule_id);
1194:
1195: END IF;
1188: fnd_file.put_line(fnd_file.log,'Tax Amount: '||l_pt_avat.tax_amount);
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1193: fnd_file.put_line(fnd_file.log,'Allocation Rule ID: ' || l_pt_avat.allocation_rule_id);
1194:
1195: END IF;
1196:
1189: fnd_file.put_line(fnd_file.log,'Total box: '|| l_pt_avat.total_box);
1190: fnd_file.put_line(fnd_file.log,'Tax rate: ' || l_pt_avat.tax_rate);
1191: fnd_file.put_line(fnd_file.log,'Tax code: ' || l_pt_avat.tax_code_rate);
1192: fnd_file.put_line(fnd_file.log,'Extract Source Ledger: ' || l_pt_avat.extract_source_ledger);
1193: fnd_file.put_line(fnd_file.log,'Allocation Rule ID: ' || l_pt_avat.allocation_rule_id);
1194:
1195: END IF;
1196:
1197: END LOOP;
1199: IF l_data_found = 'Y' THEN
1200: FOR i in v_box_amounts.FIRST .. v_box_amounts.LAST LOOP
1201:
1202: IF p_debug_flag = 'Y' and v_box_amounts.EXISTS(i) and i <> 1000 THEN
1203: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1204: IF i > 1000 THEN
1205: fnd_file.put_line(fnd_file.log,' Box Num =>'||floor(i/10000));
1206: ELSE
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1201:
1202: IF p_debug_flag = 'Y' and v_box_amounts.EXISTS(i) and i <> 1000 THEN
1203: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1204: IF i > 1000 THEN
1205: fnd_file.put_line(fnd_file.log,' Box Num =>'||floor(i/10000));
1206: ELSE
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1203: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1204: IF i > 1000 THEN
1205: fnd_file.put_line(fnd_file.log,' Box Num =>'||floor(i/10000));
1206: ELSE
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1205: fnd_file.put_line(fnd_file.log,' Box Num =>'||floor(i/10000));
1206: ELSE
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1212: fnd_file.put_line(fnd_file.log,' Tax Rate =>'|| v_box_amounts(i).tax_rate);
1213: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1206: ELSE
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1212: fnd_file.put_line(fnd_file.log,' Tax Rate =>'|| v_box_amounts(i).tax_rate);
1213: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1214: END IF;
1207: fnd_file.put_line(fnd_file.log,' Box Num =>'||i);
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1212: fnd_file.put_line(fnd_file.log,' Tax Rate =>'|| v_box_amounts(i).tax_rate);
1213: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1214: END IF;
1215:
1208: END IF;
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1212: fnd_file.put_line(fnd_file.log,' Tax Rate =>'|| v_box_amounts(i).tax_rate);
1213: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1214: END IF;
1215:
1216: IF v_box_amounts.EXISTS(i) and i <= 1000 THEN
1209: fnd_file.put_line(fnd_file.log,' Taxable Amount =>'|| v_box_amounts(i).taxable_amount);
1210: fnd_file.put_line(fnd_file.log,' Tax Amount =>'|| v_box_amounts(i).tax_amount);
1211: fnd_file.put_line(fnd_file.log,' Total Box Number =>'|| v_box_amounts(i).tot_box_num);
1212: fnd_file.put_line(fnd_file.log,' Tax Rate =>'|| v_box_amounts(i).tax_rate);
1213: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1214: END IF;
1215:
1216: IF v_box_amounts.EXISTS(i) and i <= 1000 THEN
1217: INSERT INTO jg_zz_vat_trx_gt ( jg_info_n1
1246: END IF;
1247:
1248: select count(*) into l_count from jg_zz_vat_trx_gt ;
1249: IF p_debug_flag = 'Y' THEN
1250: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table :' || l_count );
1251: END IF ;
1252: EXCEPTION
1253: WHEN OTHERS THEN
1254: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jeptavat: ' || SUBSTR(SQLERRM,1,200));
1250: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table :' || l_count );
1251: END IF ;
1252: EXCEPTION
1253: WHEN OTHERS THEN
1254: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jeptavat: ' || SUBSTR(SQLERRM,1,200));
1255: fnd_file.put_line(fnd_file.log,'Error at statement: ' || ln_stat_no);
1256: RAISE;
1257: END jeptavat;
1258:
1251: END IF ;
1252: EXCEPTION
1253: WHEN OTHERS THEN
1254: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jeptavat: ' || SUBSTR(SQLERRM,1,200));
1255: fnd_file.put_line(fnd_file.log,'Error at statement: ' || ln_stat_no);
1256: RAISE;
1257: END jeptavat;
1258:
1259: --
1373: END IF;
1374: l_data_found := 'Y';
1375:
1376: IF p_debug_flag = 'Y' THEN
1377: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1374: l_data_found := 'Y';
1375:
1376: IF p_debug_flag = 'Y' THEN
1377: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1375:
1376: IF p_debug_flag = 'Y' THEN
1377: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1376: IF p_debug_flag = 'Y' THEN
1377: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1377: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1378: fnd_file.put_line(fnd_file.log,'---- Trans Id ' || l_pt_periodic_vat.trx_id || '-----');
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1379: fnd_file.put_line(fnd_file.log,'---- Trans Number '||l_pt_periodic_vat.trx_number||'-----');
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1380: fnd_file.put_line(fnd_file.log,' Tax class information => ' || l_pt_periodic_vat.tax_class);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1381: fnd_file.put_line(fnd_file.log,' Extract Source Ledger => ' ||l_pt_periodic_vat.extract_source_ledger);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1382: fnd_file.put_line(fnd_file.log,' trx_line_class => ' ||l_pt_periodic_vat.trx_line_class);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1383: fnd_file.put_line(fnd_file.log,' Reporting Code => ' ||l_pt_periodic_vat.reporting_code);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1384: fnd_file.put_line(fnd_file.log,' Trx Taxable Amount =>'|| l_pt_periodic_vat.taxable_amount);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1385: fnd_file.put_line(fnd_file.log,' Trx Deduct Tax Amount=>'|| l_pt_periodic_vat.deduct_tax);
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1393: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1386: fnd_file.put_line(fnd_file.log,' Trx Clear Tax Amount =>'|| l_pt_periodic_vat.clear_tax);
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1393: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1394: END IF;
1387: fnd_file.put_line(fnd_file.log,' Taxable Box => '|| l_pt_periodic_vat.taxable_box);
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1393: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1394: END IF;
1395: END LOOP;
1388: fnd_file.put_line(fnd_file.log,' Taxable Amt => ' ||v_box_amounts(l_pt_periodic_vat.taxable_box).taxable_amount);
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1393: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1394: END IF;
1395: END LOOP;
1396:
1389: fnd_file.put_line(fnd_file.log,' Tax Box => ' ||l_pt_periodic_vat.tax_box);
1390: fnd_file.put_line(fnd_file.log,' Deduct Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).deduct_tax);
1391: fnd_file.put_line(fnd_file.log,' Clear Amt => ' ||v_box_amounts(l_pt_periodic_vat.tax_box).clear_tax);
1392: fnd_file.put_line(fnd_file.log,' Tax Recoverable Flag => ' || l_pt_periodic_vat.tax_recoverable_flag);
1393: fnd_file.put_line(fnd_file.log,'-----------------------------------');
1394: END IF;
1395: END LOOP;
1396:
1397: IF l_data_found = 'Y' THEN
1417: END IF;
1418:
1419: SELECT count(*) into l_count from jg_zz_vat_trx_gt ;
1420: IF p_debug_flag = 'Y' THEN
1421: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table: ' || l_count );
1422: END IF ;
1423:
1424: EXCEPTION
1425: WHEN OTHERS THEN
1422: END IF ;
1423:
1424: EXCEPTION
1425: WHEN OTHERS THEN
1426: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jeptpvat ' || SUBSTR(SQLERRM,1,200));
1427: RAISE;
1428: END jeptpvat;
1429:
1430: --
1619: --BUG8347134 end
1620:
1621: SELECT count(*) into l_count from jg_zz_vat_trx_gt ;
1622: IF p_debug_flag = 'Y' THEN
1623: fnd_file.put_line(fnd_file.log,'Number of records inserted into jg_zz_vat_trx_gt table: ' || l_count );
1624: END IF ;
1625:
1626: EXCEPTION
1627: WHEN OTHERS THEN
1624: END IF ;
1625:
1626: EXCEPTION
1627: WHEN OTHERS THEN
1628: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.jeitpssr ' || SUBSTR(SQLERRM,1,200));
1629: RAISE;
1630: END jeitpssr;
1631:
1632: -- ER 9155483
2515: WHEN VAT_REP_NOT_RUN THEN
2516: fnd_message.set_name('JE', 'JE_IL_VAT_REP_NOT_RUN');
2517: fnd_message.set_token('P_PERIOD', P_PERIOD);
2518: LOG_MESSAGE_835 := fnd_message.get;
2519: fnd_file.put_line(fnd_file.log,LOG_MESSAGE_835);
2520: FOR i IN 1..l_ent_index-1 LOOP
2521: select ENTITY_IDENTIFIER
2522: into l_ent_name
2523: from jg_zz_vat_rep_entities
2521: select ENTITY_IDENTIFIER
2522: into l_ent_name
2523: from jg_zz_vat_rep_entities
2524: where VAT_REPORTING_ENTITY_ID = l_ent_list(i).ent_id;
2525: fnd_file.put_line(fnd_file.log,'>>>>>'||l_ent_name);
2526: END LOOP;
2527: raise_application_error(-20010,LOG_MESSAGE_835);
2528: WHEN OTHERS THEN
2529: fnd_file.put_line(fnd_file.log,'Error in Procedure JG_ZZ_SUMMARY_ALL_PKG.jeilr835 ' || SUBSTR(SQLERRM,1,200));
2525: fnd_file.put_line(fnd_file.log,'>>>>>'||l_ent_name);
2526: END LOOP;
2527: raise_application_error(-20010,LOG_MESSAGE_835);
2528: WHEN OTHERS THEN
2529: fnd_file.put_line(fnd_file.log,'Error in Procedure JG_ZZ_SUMMARY_ALL_PKG.jeilr835 ' || SUBSTR(SQLERRM,1,200));
2530: RAISE;
2531: END jeilr835;
2532:
2533: FUNCTION a_real_tax_amount(p_payment_amt IN NUMBER
2537: tax_amount NUMBER;
2538: l_total_invoice NUMBER;
2539: BEGIN
2540: IF p_debug_flag = 'Y' THEN
2541: fnd_file.put_line(fnd_file.log,' p_payment_amt =>'||p_payment_amt);
2542: END IF;
2543: IF p_payment_amt = 0 THEN
2544: /****************************************
2545: tax_amount := tax_amount;
2557: tax_amount := p_payment_amt*(p_tax_amount/nvl(l_total_invoice, 1));
2558: END IF;
2559: END IF;
2560: IF p_debug_flag = 'Y' THEN
2561: fnd_file.put_line(fnd_file.log,' tax_amount =>'||tax_amount);
2562: END IF;
2563: RETURN(tax_amount);
2564: EXCEPTION
2565: WHEN OTHERS THEN
2562: END IF;
2563: RETURN(tax_amount);
2564: EXCEPTION
2565: WHEN OTHERS THEN
2566: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.a_real_tax_amount ' || SUBSTR(SQLERRM,1,200));
2567: RAISE;
2568: END a_real_tax_amount;
2569:
2570: FUNCTION a_real_invoice_amount(p_payment_amt IN NUMBER
2587: END IF;
2588: RETURN(invoice_amount);
2589: EXCEPTION
2590: WHEN OTHERS THEN
2591: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.a_real_invoice_amount ' || SUBSTR(SQLERRM,1,200));
2592: RAISE;
2593: END a_real_invoice_amount;
2594:
2595: FUNCTION a_total_invoices(p_cust_trx_id IN NUMBER)
2615: END IF;
2616: RETURN(invoice_values);
2617: EXCEPTION
2618: WHEN OTHERS THEN
2619: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.a_total_invoices ' || SUBSTR(SQLERRM,1,200));
2620: RAISE;
2621: END a_total_invoices;
2622:
2623: FUNCTION get_report_format
2636: RETURN NULL;
2637: END IF;
2638: EXCEPTION
2639: WHEN NO_DATA_FOUND then
2640: fnd_file.put_line(fnd_file.log,'Error while fetching Meaning for Lookup Type JEBE_REPORT_FORMAT' || SUBSTR(SQLERRM,1,200));
2641: l_detail_summary := P_REPORT_FORMAT;
2642: RETURN l_detail_summary;
2643: WHEN OTHERS then
2644: fnd_file.put_line(fnd_file.log,'Error while fetching Meaning for Lookup Type JEBE_REPORT_FORMAT' || SUBSTR(SQLERRM,1,200));
2640: fnd_file.put_line(fnd_file.log,'Error while fetching Meaning for Lookup Type JEBE_REPORT_FORMAT' || SUBSTR(SQLERRM,1,200));
2641: l_detail_summary := P_REPORT_FORMAT;
2642: RETURN l_detail_summary;
2643: WHEN OTHERS then
2644: fnd_file.put_line(fnd_file.log,'Error while fetching Meaning for Lookup Type JEBE_REPORT_FORMAT' || SUBSTR(SQLERRM,1,200));
2645: l_detail_summary := P_REPORT_FORMAT;
2646: RETURN l_detail_summary;
2647: END get_report_format;
2648:
2663: END IF;
2664: RETURN l_location_name;
2665: EXCEPTION
2666: WHEN NO_DATA_FOUND THEN
2667: fnd_file.put_line(fnd_file.log,'Location Name for Location Code ' || P_LOCATION || ' is not found');
2668: l_location_name := P_LOCATION;
2669: RETURN l_location_name;
2670: WHEN OTHERS THEN
2671: fnd_file.put_line(fnd_file.log,'Error while fetching Location Name' || SUBSTR(SQLERRM,1,200));
2667: fnd_file.put_line(fnd_file.log,'Location Name for Location Code ' || P_LOCATION || ' is not found');
2668: l_location_name := P_LOCATION;
2669: RETURN l_location_name;
2670: WHEN OTHERS THEN
2671: fnd_file.put_line(fnd_file.log,'Error while fetching Location Name' || SUBSTR(SQLERRM,1,200));
2672: l_location_name := P_LOCATION;
2673: RETURN l_location_name;
2674: END;
2675:
2695: AND JIY.month = fl.lookup_code
2696: AND JIY.year = to_char(l_period_date,'RRRR')
2697: AND JIY.month = to_char(l_period_date,'MM')
2698: AND JIY.legal_entity_id = P_LEGAL_ENTITY_ID ;
2699: fnd_file.put_line(fnd_file.log,'Starting Exemption Limit for Period => : '||l_starting_limit);
2700: RETURN l_starting_limit;
2701: EXCEPTION
2702: WHEN NO_DATA_FOUND THEN
2703: fnd_file.put_line(fnd_file.log,'Exeption Amount for beginning of Period not found' || SUBSTR(SQLERRM,1,200));
2699: fnd_file.put_line(fnd_file.log,'Starting Exemption Limit for Period => : '||l_starting_limit);
2700: RETURN l_starting_limit;
2701: EXCEPTION
2702: WHEN NO_DATA_FOUND THEN
2703: fnd_file.put_line(fnd_file.log,'Exeption Amount for beginning of Period not found' || SUBSTR(SQLERRM,1,200));
2704: RETURN 0;
2705: WHEN OTHERS THEN
2706: fnd_file.put_line(fnd_file.log,'Error while fetching Available Exemption at Beginning of Period ' || SUBSTR(SQLERRM,1,200));
2707: RETURN 0;
2702: WHEN NO_DATA_FOUND THEN
2703: fnd_file.put_line(fnd_file.log,'Exeption Amount for beginning of Period not found' || SUBSTR(SQLERRM,1,200));
2704: RETURN 0;
2705: WHEN OTHERS THEN
2706: fnd_file.put_line(fnd_file.log,'Error while fetching Available Exemption at Beginning of Period ' || SUBSTR(SQLERRM,1,200));
2707: RETURN 0;
2708: END get_start_exempt_limit;
2709:
2710: FUNCTION get_adjustment_exempt_limit
2726: FROM je_it_year_ex_limit JIY
2727: WHERE JIY.year = to_char(l_period_date,'RRRR')
2728: AND JIY.month = to_char(l_period_date,'MM')
2729: AND JIY.legal_entity_id = P_LEGAL_ENTITY_ID ;
2730: fnd_file.put_line(fnd_file.log,'Adjustment Amount =>: '||l_adjustment_limit);
2731: RETURN l_adjustment_limit;
2732: EXCEPTION
2733: WHEN NO_DATA_FOUND THEN
2734: fnd_file.put_line(fnd_file.log,'Adjustments Yearly Exemption Limit not found' || SUBSTR(SQLERRM,1,200));
2730: fnd_file.put_line(fnd_file.log,'Adjustment Amount =>: '||l_adjustment_limit);
2731: RETURN l_adjustment_limit;
2732: EXCEPTION
2733: WHEN NO_DATA_FOUND THEN
2734: fnd_file.put_line(fnd_file.log,'Adjustments Yearly Exemption Limit not found' || SUBSTR(SQLERRM,1,200));
2735: RETURN 0;
2736: WHEN OTHERS THEN
2737: fnd_file.put_line(fnd_file.log,'Error while getting Adjustment to Yearly Exemption Limit ' || SUBSTR(SQLERRM,1,200));
2738: RETURN 0;
2733: WHEN NO_DATA_FOUND THEN
2734: fnd_file.put_line(fnd_file.log,'Adjustments Yearly Exemption Limit not found' || SUBSTR(SQLERRM,1,200));
2735: RETURN 0;
2736: WHEN OTHERS THEN
2737: fnd_file.put_line(fnd_file.log,'Error while getting Adjustment to Yearly Exemption Limit ' || SUBSTR(SQLERRM,1,200));
2738: RETURN 0;
2739: END get_adjustment_exempt_limit;
2740:
2741: FUNCTION get_old_debit_vat
2746: -- This is used by the XML Element OLD_DEBIT_VAT
2747: RETURN 0;
2748: EXCEPTION
2749: WHEN OTHERS THEN
2750: fnd_file.put_line(fnd_file.log,'Error while getting Previous Period VAT Credit ' || SUBSTR(SQLERRM,1,200));
2751: RETURN 0;
2752: END get_old_debit_vat;
2753:
2754: FUNCTION JEITPSSR_AMOUNT_TO_PAY(A_TOT_TOT_TAX_AMT_SUM IN NUMBER,
2851: OPEN c_get_period_start_date;
2852: FETCH c_get_period_start_date INTO l_period_start_date;
2853: CLOSE c_get_period_start_date;
2854:
2855: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..FINAL_FLAG:'||FINAL_FLAG);
2856: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..CARRY_OVER :'||TO_CHAR(CARRY_OVER));
2857: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..LAST_PROCESS_DATE :'||TO_CHAR(LAST_PROCESS_DATE));
2858:
2859: IF FINAL_FLAG = 'S' THEN
2852: FETCH c_get_period_start_date INTO l_period_start_date;
2853: CLOSE c_get_period_start_date;
2854:
2855: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..FINAL_FLAG:'||FINAL_FLAG);
2856: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..CARRY_OVER :'||TO_CHAR(CARRY_OVER));
2857: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..LAST_PROCESS_DATE :'||TO_CHAR(LAST_PROCESS_DATE));
2858:
2859: IF FINAL_FLAG = 'S' THEN
2860: IF CARRY_OVER IS NULL THEN
2853: CLOSE c_get_period_start_date;
2854:
2855: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..FINAL_FLAG:'||FINAL_FLAG);
2856: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..CARRY_OVER :'||TO_CHAR(CARRY_OVER));
2857: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ..LAST_PROCESS_DATE :'||TO_CHAR(LAST_PROCESS_DATE));
2858:
2859: IF FINAL_FLAG = 'S' THEN
2860: IF CARRY_OVER IS NULL THEN
2861: IF LAST_PROCESS_DATE IS NULL THEN
2903:
2904: END IF;
2905:
2906: END IF;for bug 7633948*/
2907: fnd_file.put_line(fnd_file.log,'In jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ' || to_char(AMOUNT_TO_PAY));
2908: RETURN(AMOUNT_TO_PAY);
2909:
2910: EXCEPTION
2911: WHEN INVALID_CARRY_OVER THEN
2908: RETURN(AMOUNT_TO_PAY);
2909:
2910: EXCEPTION
2911: WHEN INVALID_CARRY_OVER THEN
2912: fnd_file.put_line(fnd_file.log,LOG_MESSAGE);
2913: raise_application_error(-20010,LOG_MESSAGE);
2914: WHEN OTHERS THEN
2915: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ' || SUBSTR(SQLERRM,1,200));
2916: raise_application_error(-20011,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ' || SUBSTR(SQLERRM,1,200));
2911: WHEN INVALID_CARRY_OVER THEN
2912: fnd_file.put_line(fnd_file.log,LOG_MESSAGE);
2913: raise_application_error(-20010,LOG_MESSAGE);
2914: WHEN OTHERS THEN
2915: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ' || SUBSTR(SQLERRM,1,200));
2916: raise_application_error(-20011,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY ' || SUBSTR(SQLERRM,1,200));
2917: END JEITPSSR_AMOUNT_TO_PAY;
2918:
2919: /****Added below function JEITPSSR_AMOUNT_TO_PAY_UPDATE for bug 7633948***/
2932: AND JZVRS.tax_calendar_period = p_period
2933: AND ROWNUM = 1;
2934: BEGIN
2935: IF p_report_name = 'JEITPSSR' THEN
2936: fnd_file.put_line(fnd_file.log,'Called JEITPSSR_AMOUNT_TO_PAY_UPDATE function');
2937: OPEN c_get_details;
2938: FETCH c_get_details INTO FINAL_FLAG;
2939: CLOSE c_get_details;
2940: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE FINAL_FLAG:'||FINAL_FLAG);
2936: fnd_file.put_line(fnd_file.log,'Called JEITPSSR_AMOUNT_TO_PAY_UPDATE function');
2937: OPEN c_get_details;
2938: FETCH c_get_details INTO FINAL_FLAG;
2939: CLOSE c_get_details;
2940: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE FINAL_FLAG:'||FINAL_FLAG);
2941: IF FINAL_FLAG='S' THEN
2942:
2943: IF AMOUNT_TO_PAY >= 0 THEN
2944: CARRY_OVER := 0;
2944: CARRY_OVER := 0;
2945: ELSE
2946: CARRY_OVER := AMOUNT_TO_PAY;
2947: END IF;
2948: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE TEMP_FLAG:'||TO_CHAR(TEMP_FLAG));
2949: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE AMOUNT_TO_PAY:'||TO_CHAR(AMOUNT_TO_PAY));
2950: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE CARRY_OVER:'||TO_CHAR(CARRY_OVER));
2951:
2952: IF TEMP_FLAG = 0 THEN
2945: ELSE
2946: CARRY_OVER := AMOUNT_TO_PAY;
2947: END IF;
2948: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE TEMP_FLAG:'||TO_CHAR(TEMP_FLAG));
2949: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE AMOUNT_TO_PAY:'||TO_CHAR(AMOUNT_TO_PAY));
2950: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE CARRY_OVER:'||TO_CHAR(CARRY_OVER));
2951:
2952: IF TEMP_FLAG = 0 THEN
2953:
2946: CARRY_OVER := AMOUNT_TO_PAY;
2947: END IF;
2948: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE TEMP_FLAG:'||TO_CHAR(TEMP_FLAG));
2949: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE AMOUNT_TO_PAY:'||TO_CHAR(AMOUNT_TO_PAY));
2950: fnd_file.put_line(fnd_file.log,'In JEITPSSR_AMOUNT_TO_PAY_UPDATE CARRY_OVER:'||TO_CHAR(CARRY_OVER));
2951:
2952: IF TEMP_FLAG = 0 THEN
2953:
2954: UPDATE jg_zz_vat_rep_status SET CREDIT_BALANCE_AMT=CARRY_OVER
2961: END IF;
2962: RETURN (TRUE);
2963: EXCEPTION
2964: -- WHEN INVALID_CARRY_OVER THEN
2965: -- fnd_file.put_line(fnd_file.log,LOG_MESSAGE);
2966: WHEN OTHERS THEN
2967: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY_UPDATE ' || SUBSTR(SQLERRM,1,200));
2968: RETURN (FALSE);
2969: END JEITPSSR_AMOUNT_TO_PAY_UPDATE;
2963: EXCEPTION
2964: -- WHEN INVALID_CARRY_OVER THEN
2965: -- fnd_file.put_line(fnd_file.log,LOG_MESSAGE);
2966: WHEN OTHERS THEN
2967: fnd_file.put_line(fnd_file.log,'Error in Procedure jg_zz_summary_all_pkg.JEITPSSR_AMOUNT_TO_PAY_UPDATE ' || SUBSTR(SQLERRM,1,200));
2968: RETURN (FALSE);
2969: END JEITPSSR_AMOUNT_TO_PAY_UPDATE;
2970:
2971: /******Added the below function JEILR835 INV_NUM for Bug 7427956*********/