DBA Data[Home] [Help]

PACKAGE BODY: APPS.ZX_TDS_MRC_PROCESSING_PKG

Source


1 PACKAGE BODY ZX_TDS_MRC_PROCESSING_PKG AS
2 /* $Header: zxdimrcprocspkgb.pls 120.7 2006/07/27 17:34:22 hongliu ship $ */
3 
4  g_current_runtime_level      NUMBER;
5  g_level_statement            CONSTANT NUMBER   := FND_LOG.LEVEL_STATEMENT;
6  g_level_procedure            CONSTANT NUMBER   := FND_LOG.LEVEL_PROCEDURE;
7  g_level_event                CONSTANT NUMBER   := FND_LOG.LEVEL_EVENT;
8  g_level_unexpected           CONSTANT NUMBER   := FND_LOG.LEVEL_UNEXPECTED;
9 
10 /* ======================================================================*
11  |  Public Procedures create_mrc_det_tax_lines creates detail tax lines  |
12  |   for each reporting currency                                         |
13  * =====================================================================*/
14 PROCEDURE  create_mrc_det_tax_lines (
15   p_event_class_rec	    IN              zx_api_pub.event_class_rec_type,
16   x_return_status	    OUT NOCOPY      VARCHAR2) IS
17 BEGIN
18 
19   g_current_runtime_level := FND_LOG.G_CURRENT_RUNTIME_LEVEL;
20 
21   IF (g_level_statement >= g_current_runtime_level ) THEN
22     FND_LOG.STRING(g_level_statement,
23            'ZX.PLSQL.ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines.BEGIN',
24            'ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines(+)');
25   END IF;
26 
27   x_return_status := FND_API.G_RET_STS_SUCCESS;
28 
29   -- Bug 4352593: comment out the SQL. eTax does not process MRC tax lines.
30   --
31   -- -- Insert MRC detail tax lines into zx_detail_tax_lines_gt
32   -- --
33   -- INSERT INTO zx_detail_tax_lines_gt(
34   --             tax_line_id,
35   --             internal_organization_id,
36   --             application_id,
37   --             entity_code,
38   --             event_class_code,
39   --             event_type_code,
40   --             trx_id,
41   --             trx_line_id,
42   --             trx_level_type,
43   --             trx_line_number,
44   --             doc_event_status,
45   --             tax_event_class_code,
46   --             tax_event_type_code,
47   --             tax_line_number,
48   --             content_owner_id,
49   --             tax_regime_id,
50   --             tax_regime_code,
51   --             tax_id,
52   --             tax,
53   --             tax_status_id,
54   --             tax_status_code,
55   --             tax_rate_id,
56   --             tax_rate_code,
57   --             tax_rate,
58   --             tax_apportionment_line_number,
59   --             trx_id_level2,
60   --             trx_id_level3,
61   --             trx_id_level4,
62   --             trx_id_level5,
63   --             trx_id_level6,
64   --             trx_user_key_level1,
65   --             trx_user_key_level2,
66   --             trx_user_key_level3,
67   --             trx_user_key_level4,
68   --             trx_user_key_level5,
69   --             trx_user_key_level6,
70   --             mrc_tax_line_flag,
71   --             ledger_id,
72   --             establishment_id,
73   --             legal_entity_id,
74   --             legal_entity_tax_reg_number,
75   --             hq_estb_reg_number,
76   --             hq_estb_party_tax_prof_id,
77   --             currency_conversion_date,
78   --             currency_conversion_type,
79   --             currency_conversion_rate,
80   --             tax_currency_conversion_date,
81   --             tax_currency_conversion_type,
82   --             tax_currency_conversion_rate,
83   --             trx_currency_code,
84   --             minimum_accountable_unit,
85   --             precision,
86   --             trx_number,
87   --             trx_date,
88   --             unit_price,
89   --             line_amt,
90   --             trx_line_quantity,
91   --             tax_base_modifier_rate,
92   --             ref_doc_application_id,
93   --             ref_doc_entity_code,
94   --             ref_doc_event_class_code,
95   --             ref_doc_trx_id,
96   --             ref_doc_line_id,
97   --             ref_doc_line_quantity,
98   --             other_doc_line_amt,
99   --             other_doc_line_tax_amt,
100   --             other_doc_line_taxable_amt,
101   --             unrounded_taxable_amt,
102   --             unrounded_tax_amt,
103   --             related_doc_application_id,
104   --             related_doc_entity_code,
105   --             related_doc_event_class_code,
106   --             related_doc_trx_id,
107   --             related_doc_number,
108   --             related_doc_date,
109   --             applied_from_application_id,
110   --             applied_from_event_class_code,
111   --             applied_from_entity_code,
112   --             applied_from_trx_id,
113   --             applied_from_line_id,
114   --             applied_from_trx_number,
115   --             adjusted_doc_application_id,
116   --             adjusted_doc_entity_code,
117   --             adjusted_doc_event_class_code,
118   --             adjusted_doc_trx_id,
119   --             adjusted_doc_line_id,
120   --             adjusted_doc_number,
121   --             adjusted_doc_date,
122   --             applied_to_application_id,
123   --             applied_to_event_class_code,
124   --             applied_to_entity_code,
125   --             applied_to_trx_id,
126   --             applied_to_line_id,
127   --             summary_tax_line_id,
128   --             offset_link_to_tax_line_id,
129   --             offset_flag,
130   --             process_for_recovery_flag,
131   --             tax_jurisdiction_id,
132   --             tax_jurisdiction_code,
133   --             place_of_supply,
134   --             place_of_supply_type_code,
135   --             place_of_supply_result_id,
136   --             tax_date_rule_id,
137   --             tax_date,
138   --             tax_determine_date,
139   --             tax_point_date,
140   --             trx_line_date,
141   --             tax_type_code,
142   --             tax_code,
143   --             tax_registration_id,
144   --             tax_registration_number,
145   --             registration_party_type,
146   --             rounding_level_code,
147   --             rounding_rule_code,
148   --             rounding_lvl_party_tax_prof_id,
149   --             rounding_lvl_party_type,
150   --             compounding_tax_flag,
151   --             orig_tax_status_id,
152   --             orig_tax_status_code,
153   --             orig_tax_rate_id,
154   --             orig_tax_rate_code,
155   --             orig_tax_rate,
156   --             orig_tax_jurisdiction_id,
157   --             orig_tax_jurisdiction_code,
158   --             orig_tax_amt_included_flag,
159   --             orig_self_assessed_flag,
160   --             tax_currency_code,
161   --             tax_amt,
162   --             tax_amt_tax_curr,
163   --             tax_amt_funcl_curr,
164   --             taxable_amt,
165   --             taxable_amt_tax_curr,
166   --             taxable_amt_funcl_curr,
167   --             orig_taxable_amt,
168   --             orig_taxable_amt_tax_curr,
169   --             cal_tax_amt,
170   --             cal_tax_amt_tax_curr,
171   --             cal_tax_amt_funcl_curr,
172   --             orig_tax_amt,
173   --             orig_tax_amt_tax_curr,
174   --             rec_tax_amt,
175   --             rec_tax_amt_tax_curr,
176   --             rec_tax_amt_funcl_curr,
177   --             nrec_tax_amt,
178   --             nrec_tax_amt_tax_curr,
179   --             nrec_tax_amt_funcl_curr,
180   --             tax_exemption_id,
181   --             tax_rate_before_exemption,
182   --             tax_rate_name_before_exemption,
183   --             exempt_rate_modifier,
184   --             exempt_certificate_number,
185   --             exempt_reason,
186   --             exempt_reason_code,
187   --             tax_exception_id,
188   --             tax_rate_before_exception,
189   --             tax_rate_name_before_exception,
190   --             exception_rate,
191   --             tax_apportionment_flag,
192   --             historical_flag,
193   --             taxable_basis_formula,
194   --             tax_calculation_formula,
195   --             cancel_flag,
196   --             purge_flag,
197   --             delete_flag,
198   --             tax_amt_included_flag,
199   --             self_assessed_flag,
200   --             overridden_flag,
201   --             manually_entered_flag,
202   --             reporting_only_flag,
203   --             freeze_until_overridden_flag,
204   --             copied_from_other_doc_flag,
205   --             recalc_required_flag,
206   --             settlement_flag,
207   --             item_dist_changed_flag,
208   --             associated_child_frozen_flag,
209   --             tax_only_line_flag,
210   --             compounding_dep_tax_flag,
211   --             last_manual_entry,
212   --             tax_provider_id,
213   --             record_type_code,
214   --             reporting_period_id,
215   --             legal_message_appl_2,
216   --             legal_message_status,
217   --             legal_message_rate,
218   --             legal_message_basis,
219   --             legal_message_calc,
220   --             legal_message_threshold,
221   --             legal_message_pos,
222   --             legal_message_trn,
223   --             legal_message_exmpt,
224   --             legal_message_excpt,
225   --             tax_regime_template_id,
226   --             tax_applicability_result_id,
227   --             direct_rate_result_id,
228   --             status_result_id,
229   --             rate_result_id,
230   --             basis_result_id,
231   --             thresh_result_id,
232   --             calc_result_id,
233   --             tax_reg_num_det_result_id,
234   --             eval_exmpt_result_id,
235   --             eval_excpt_result_id,
236   --             enforce_from_natural_acct_flag,
237   --             tax_hold_code,
238   --             tax_hold_released_code,
239   --             prd_total_tax_amt,
240   --             prd_total_tax_amt_tax_curr,
241   --             prd_total_tax_amt_funcl_curr,
242   --             internal_org_location_id,
243   --             attribute_category,
244   --             attribute1,
245   --             attribute2,
246   --             attribute3,
247   --             attribute4,
248   --             attribute5,
249   --             attribute6,
250   --             attribute7,
251   --             attribute8,
252   --             attribute9,
253   --             attribute10,
254   --             attribute11,
255   --             attribute12,
256   --             attribute13,
257   --             attribute14,
258   --             attribute15,
259   --             global_attribute_category,
260   --             global_attribute1,
261   --             global_attribute2,
262   --             global_attribute3,
263   --             global_attribute4,
264   --             global_attribute5,
265   --             global_attribute6,
266   --             global_attribute7,
267   --             global_attribute8,
268   --             global_attribute9,
269   --             global_attribute10,
270   --             global_attribute11,
271   --             global_attribute12,
272   --             global_attribute13,
273   --             global_attribute14,
274   --             global_attribute15,
275   --             numeric1,
276   --             numeric2,
277   --             numeric3,
278   --             numeric4,
279   --             numeric5,
280   --             numeric6,
281   --             numeric7,
282   --             numeric8,
283   --             numeric9,
284   --             numeric10,
285   --             char1,
286   --             char2,
287   --             char3,
288   --             char4,
289   --             char5,
290   --             char6,
291   --             char7,
292   --             char8,
293   --             char9,
294   --             char10,
295   --             date1,
296   --             date2,
297   --             date3,
298   --             date4,
299   --             date5,
300   --             date6,
301   --             date7,
302   --             date8,
303   --             date9,
304   --             date10,
305   --             created_by,
306   --             creation_date,
307   --             last_updated_by,
308   --             last_update_date,
309   --             last_update_login,
310   --             legal_justification_text1,
311   --             legal_justification_text2,
312   --             legal_justification_text3,
313   --             reporting_currency_code,
314   --             line_assessable_value,
315   --             trx_line_index,
316   --             offset_tax_rate_code,
317   --             proration_code,
318   --             other_doc_source,
319   --             ctrl_total_line_tx_amt,
320   --             interface_entity_code,
321   --             interface_tax_line_id,
322   --             taxing_juris_geography_id,
323   --             adjusted_doc_tax_line_id,
324   --             object_version_number)
325   --      SELECT /*+ INDEX(ZX_DETAIL_TAX_LINES_GT ZX_DETAIL_TAX_LINES_GT_U1) */
326   --             zx_lines_s.NEXTVAL,                 -- tax_line_id from SEQUENCE
327   --             taxlngt.internal_organization_id,
328   --             taxlngt.application_id,
329   --             taxlngt.entity_code,
330   --             taxlngt.event_class_code,
331   --             taxlngt.event_type_code,
332   --             taxlngt.trx_id,
333   --             taxlngt.trx_line_id,
334   --             taxlngt.trx_level_type,
335   --             taxlngt.trx_line_number,
336   --             taxlngt.doc_event_status,
337   --             taxlngt.tax_event_class_code,
338   --             taxlngt.tax_event_type_code,
339   --             taxlngt.tax_line_number,
340   --             taxlngt.content_owner_id,
341   --             taxlngt.tax_regime_id,
342   --             taxlngt.tax_regime_code,
343   --             taxlngt.tax_id,
344   --             taxlngt.tax,
345   --             taxlngt.tax_status_id,
346   --             taxlngt.tax_status_code,
347   --             taxlngt.tax_rate_id,
348   --             taxlngt.tax_rate_code,
349   --             taxlngt.tax_rate,
350   --             taxlngt.tax_apportionment_line_number,
351   --             taxlngt.trx_id_level2,
352   --             taxlngt.trx_id_level3,
353   --             taxlngt.trx_id_level4,
354   --             taxlngt.trx_id_level5,
355   --             taxlngt.trx_id_level6,
356   --             taxlngt.trx_user_key_level1,
357   --             taxlngt.trx_user_key_level2,
358   --             taxlngt.trx_user_key_level3,
359   --             taxlngt.trx_user_key_level4,
360   --             taxlngt.trx_user_key_level5,
361   --             taxlngt.trx_user_key_level6,
362   --             'Y',                                -- mrc_tax_line_flag
363   --             mrcgt.ledger_id,                    -- ledger_id FROM MRC table
364   --             taxlngt.establishment_id,
365   --             taxlngt.legal_entity_id,
366   --             taxlngt.legal_entity_tax_reg_number,
367   --             taxlngt.hq_estb_reg_number,
368   --             taxlngt.hq_estb_party_tax_prof_id,
369   --             mrcgt.currency_conversion_date,     -- currency_conversion_date
370   --             mrcgt.currency_conversion_type,     -- currency_conversion_type
371   --             mrcgt.currency_conversion_rate,     -- currency_conversion_rate
372   --             NULL,                               -- tax_currency_conversion_date
373   --             NULL,                               -- tax_currency_conversion_type
374   --             NULL,                               -- tax_currency_conversion_rate
375   --             taxlngt.trx_currency_code,
376   --             mrcgt.minimum_accountable_unit,     -- minimum_accountable_unit
377   --             mrcgt.precision,                    -- precision
378   --             taxlngt.trx_number,
379   --             taxlngt.trx_date,
380   --             taxlngt.unit_price,
381   --             taxlngt.line_amt,
382   --             taxlngt.trx_line_quantity,
383   --             taxlngt.tax_base_modifier_rate,
384   --             taxlngt.ref_doc_application_id,
385   --             taxlngt.ref_doc_entity_code,
386   --             taxlngt.ref_doc_event_class_code,
387   --             taxlngt.ref_doc_trx_id,
388   --             taxlngt.ref_doc_line_id,
389   --             taxlngt.ref_doc_line_quantity,
390   --             taxlngt.other_doc_line_amt,
391   --             taxlngt.other_doc_line_tax_amt,
392   --             taxlngt.other_doc_line_taxable_amt,
393   --             taxlngt.unrounded_taxable_amt*mrcgt.currency_conversion_rate,   --
394   --             taxlngt.unrounded_tax_amt*mrcgt.currency_conversion_rate,       --
395   --             taxlngt.related_doc_application_id,
396   --             taxlngt.related_doc_entity_code,
397   --             taxlngt.related_doc_event_class_code,
398   --             taxlngt.related_doc_trx_id,
399   --             taxlngt.related_doc_number,
400   --             taxlngt.related_doc_date,
401   --             taxlngt.applied_from_application_id,
402   --             taxlngt.applied_from_event_class_code,
403   --             taxlngt.applied_from_entity_code,
404   --             taxlngt.applied_from_trx_id,
405   --             taxlngt.applied_from_line_id,
406   --             taxlngt.applied_from_trx_number,
407   --             taxlngt.adjusted_doc_application_id,
408   --             taxlngt.adjusted_doc_entity_code,
409   --             taxlngt.adjusted_doc_event_class_code,
410   --             taxlngt.adjusted_doc_trx_id,
411   --             taxlngt.adjusted_doc_line_id,
412   --             taxlngt.adjusted_doc_number,
413   --             taxlngt.adjusted_doc_date,
414   --             taxlngt.applied_to_application_id,
415   --             taxlngt.applied_to_event_class_code,
416   --             taxlngt.applied_to_entity_code,
417   --             taxlngt.applied_to_trx_id,
418   --             taxlngt.applied_to_line_id,
419   --             NULL,                               -- summary_tax_line_id
420   --             NULL,                               -- offset_link_to_tax_line_id
421   --             taxlngt.offset_flag,
422   --             'N',                                -- process_for_recovery_flag
423   --             taxlngt.tax_jurisdiction_id,
424   --             taxlngt.tax_jurisdiction_code,
425   --             taxlngt.place_of_supply,
426   --             taxlngt.place_of_supply_type_code,
427   --             taxlngt.place_of_supply_result_id,
428   --             taxlngt.tax_date_rule_id,
429   --             taxlngt.tax_date,
430   --             taxlngt.tax_determine_date,
431   --             taxlngt.tax_point_date,
432   --             taxlngt.trx_line_date,
433   --             taxlngt.tax_type_code,
434   --             taxlngt.tax_code,
435   --             taxlngt.tax_registration_id,
436   --             taxlngt.tax_registration_number,
437   --             taxlngt.registration_party_type,
438   --             taxlngt.rounding_level_code,
439   --             taxlngt.rounding_rule_code,
440   --             taxlngt.rounding_lvl_party_tax_prof_id,
441   --             taxlngt.rounding_lvl_party_type,
442   --             taxlngt.compounding_tax_flag,
443   --             taxlngt.orig_tax_status_id,
444   --             taxlngt.orig_tax_status_code,
445   --             taxlngt.orig_tax_rate_id,
446   --             taxlngt.orig_tax_rate_code,
447   --             taxlngt.orig_tax_rate,
448   --             taxlngt.orig_tax_jurisdiction_id,
449   --             taxlngt.orig_tax_jurisdiction_code,
450   --             taxlngt.orig_tax_amt_included_flag,
451   --             taxlngt.orig_self_assessed_flag,
452   --             NULL,                               -- tax_currency_code
453   --             NULL,                               -- tax_amt
454   --             NULL,                               -- tax_amt_tax_curr
455   --             NULL,                               -- tax_amt_funcl_curr
456   --             NULL,                               -- taxable_amt
457   --             NULL,                               -- taxable_amt_tax_curr
458   --             NULL,                               -- taxable_amt_funcl_curr
459   --             NULL,                               -- orig_taxable_amt
460   --             NULL,                               -- orig_taxable_amt_tax_curr
461   --             NULL,                               -- cal_tax_amt
462   --             NULL,                               -- cal_tax_amt_tax_curr
463   --             NULL,                               -- cal_tax_amt_funcl_curr
464   --             NULL,                               -- orig_tax_amt
465   --             NULL,                               -- orig_tax_amt_tax_curr
466   --             NULL,                               -- rec_tax_amt
467   --             NULL,                               -- rec_tax_amt_tax_curr
468   --             NULL,                               -- rec_tax_amt_funcl_curr
469   --             NULL,                               -- nrec_tax_amt
470   --             NULL,                               -- nrec_tax_amt_tax_curr
471   --             NULL,                               -- nrec_tax_amt_funcl_curr
472   --             taxlngt.tax_exemption_id,
473   --             taxlngt.tax_rate_before_exemption,
474   --             taxlngt.tax_rate_name_before_exemption,
475   --             taxlngt.exempt_rate_modifier,
476   --             taxlngt.exempt_certificate_number,
477   --             taxlngt.exempt_reason,
478   --             taxlngt.exempt_reason_code,
479   --             taxlngt.tax_exception_id,
480   --             taxlngt.tax_rate_before_exception,
481   --             taxlngt.tax_rate_name_before_exception,
482   --             taxlngt.exception_rate,
483   --             taxlngt.tax_apportionment_flag,
484   --             taxlngt.historical_flag,
485   --             taxlngt.taxable_basis_formula,
486   --             taxlngt.tax_calculation_formula,
487   --             taxlngt.cancel_flag,
488   --             taxlngt.purge_flag,
489   --             taxlngt.delete_flag,
490   --             taxlngt.tax_amt_included_flag,
491   --             taxlngt.self_assessed_flag,
492   --             taxlngt.overridden_flag,
493   --             taxlngt.manually_entered_flag,
494   --             taxlngt.reporting_only_flag,
495   --             taxlngt.freeze_until_overridden_flag,
496   --             taxlngt.copied_from_other_doc_flag,
497   --             taxlngt.recalc_required_flag,
498   --             taxlngt.settlement_flag,
499   --             taxlngt.item_dist_changed_flag,
500   --             taxlngt.associated_child_frozen_flag,
501   --             taxlngt.tax_only_line_flag,
502   --             taxlngt.compounding_dep_tax_flag,
503   --             taxlngt.last_manual_entry,
504   --             taxlngt.tax_provider_id,
505   --             taxlngt.record_type_code,
506   --             taxlngt.reporting_period_id,
507   --             taxlngt.legal_message_appl_2,
508   --             taxlngt.legal_message_status,
509   --             taxlngt.legal_message_rate,
510   --             taxlngt.legal_message_basis,
511   --             taxlngt.legal_message_calc,
512   --             taxlngt.legal_message_threshold,
513   --             taxlngt.legal_message_pos,
514   --             taxlngt.legal_message_trn,
515   --             taxlngt.legal_message_exmpt,
516   --             taxlngt.legal_message_excpt,
517   --             taxlngt.tax_regime_template_id,
518   --             taxlngt.tax_applicability_result_id,
519   --             taxlngt.direct_rate_result_id,
520   --             taxlngt.status_result_id,
521   --             taxlngt.rate_result_id,
522   --             taxlngt.basis_result_id,
523   --             taxlngt.thresh_result_id,
524   --             taxlngt.calc_result_id,
525   --             taxlngt.tax_reg_num_det_result_id,
526   --             taxlngt.eval_exmpt_result_id,
527   --             taxlngt.eval_excpt_result_id,
528   --             taxlngt.enforce_from_natural_acct_flag,
529   --             NULL,                                   -- tax_hold_code
530   --             NULL,                                   -- tax_hold_released_code
531   --             NULL,                                   -- prd_total_tax_amt
532   --             NULL,                                   -- prd_total_tax_amt_tax_curr
533   --             NULL,                                   -- prd_total_tax_amt_funcl_curr
534   --             taxlngt.internal_org_location_id,
535   --             taxlngt.attribute_category,
536   --             taxlngt.attribute1,
537   --             taxlngt.attribute2,
538   --             taxlngt.attribute3,
539   --             taxlngt.attribute4,
540   --             taxlngt.attribute5,
541   --             taxlngt.attribute6,
542   --             taxlngt.attribute7,
543   --             taxlngt.attribute8,
544   --             taxlngt.attribute9,
545   --             taxlngt.attribute10,
546   --             taxlngt.attribute11,
547   --             taxlngt.attribute12,
548   --             taxlngt.attribute13,
549   --             taxlngt.attribute14,
550   --             taxlngt.attribute15,
551   --             taxlngt.global_attribute_category,
552   --             taxlngt.global_attribute1,
553   --             taxlngt.global_attribute2,
554   --             taxlngt.global_attribute3,
555   --             taxlngt.global_attribute4,
556   --             taxlngt.global_attribute5,
557   --             taxlngt.global_attribute6,
558   --             taxlngt.global_attribute7,
559   --             taxlngt.global_attribute8,
560   --             taxlngt.global_attribute9,
561   --             taxlngt.global_attribute10,
562   --             taxlngt.global_attribute11,
563   --             taxlngt.global_attribute12,
564   --             taxlngt.global_attribute13,
565   --             taxlngt.global_attribute14,
566   --             taxlngt.global_attribute15,
567   --             taxlngt.numeric1,
568   --             taxlngt.numeric2,
569   --             taxlngt.numeric3,
570   --             taxlngt.numeric4,
571   --             taxlngt.numeric5,
572   --             taxlngt.numeric6,
573   --             taxlngt.numeric7,
574   --             taxlngt.numeric8,
575   --             taxlngt.numeric9,
576   --             taxlngt.numeric10,
577   --             taxlngt.char1,
578   --             taxlngt.char2,
579   --             taxlngt.char3,
580   --             taxlngt.char4,
581   --             taxlngt.char5,
582   --             taxlngt.char6,
583   --             taxlngt.char7,
584   --             taxlngt.char8,
585   --             taxlngt.char9,
586   --             taxlngt.char10,
587   --             taxlngt.date1,
588   --             taxlngt.date2,
589   --             taxlngt.date3,
590   --             taxlngt.date4,
591   --             taxlngt.date5,
592   --             taxlngt.date6,
593   --             taxlngt.date7,
594   --             taxlngt.date8,
595   --             taxlngt.date9,
596   --             taxlngt.date10,
597   --             FND_GLOBAL.user_id,                    -- created_by
598   --             SYSDATE,                               -- creation_date
599   --             FND_GLOBAL.user_id,                    -- last_updated_by
600   --             SYSDATE,                               -- last_update_date
601   --             FND_GLOBAL.login_id,                   -- last_update_login
602   --             taxlngt.legal_justification_text1,
603   --             taxlngt.legal_justification_text2,
604   --             taxlngt.legal_justification_text3,
605   --             mrcgt.reporting_currency_code,         -- reporting_currency_code
606   --             taxlngt.line_assessable_value,
607   --             taxlngt.trx_line_index,
608   --             taxlngt.offset_tax_rate_code,
609   --             taxlngt.proration_code,
610   --             taxlngt.other_doc_source,
611   --             taxlngt.ctrl_total_line_tx_amt,
612   --             taxlngt.interface_entity_code,
613   --             taxlngt.interface_tax_line_id,
614   --             taxlngt.taxing_juris_geography_id,
615   --             taxlngt.adjusted_doc_tax_line_id,
616   --             1
617   --       FROM zx_detail_tax_lines_gt taxlngt,
618   --            zx_mrc_gt mrcgt
619   --      WHERE taxlngt.application_id = p_event_class_rec.application_id
620   --        AND taxlngt.entity_code = p_event_class_rec.entity_code
621   --        AND taxlngt.event_class_code = p_event_class_rec.event_class_code
622   --        AND taxlngt.trx_id = p_event_class_rec.trx_id
623   --        AND taxlngt.mrc_tax_line_flag <> 'Y';
624 
625   IF (g_level_statement >= g_current_runtime_level ) THEN
626     FND_LOG.STRING(g_level_statement,
627            'ZX.PLSQL.ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines.END',
628            'ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines(-)');
629   END IF;
630 
631 EXCEPTION
632   WHEN OTHERS THEN
633     x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
634 
635     IF (g_level_unexpected >= g_current_runtime_level ) THEN
636       FND_LOG.STRING(g_level_unexpected,
637              'ZX.PLSQL.ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines',
638               sqlcode || ': ' || SUBSTR(SQLERRM, 1, 80));
639       FND_LOG.STRING(g_level_unexpected,
640              'ZX.PLSQL.ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines.END',
641              'ZX_TDS_MRC_PROCESSING_PKG.create_mrc_det_tax_lines(-)');
642     END IF;
643 
644 END create_mrc_det_tax_lines;
645 
646 
647 END ZX_TDS_MRC_PROCESSING_PKG;