48: WHERE vat_tax_id = c_tax_id;
49: BEGIN
50: SAVEPOINT CALCULATE_TAX_INT;
51:
52: aso_debug_pub.g_debug_flag := nvl(fnd_profile.value('ASO_ENABLE_DEBUG'),'N');
53:
54: x_return_status := FND_API.G_RET_STS_SUCCESS;
55:
56: IF p_tax_control_rec.tax_level = 'HEADER' THEN
246:
247: BEGIN
248: SAVEPOINT CALCULATE_TAX_PUB;
249:
250: aso_debug_pub.g_debug_flag := nvl(fnd_profile.value('ASO_ENABLE_DEBUG'),'N');
251:
252: x_return_status := FND_API.G_RET_STS_SUCCESS;
253:
254: l_tax_detail_rec.quote_header_id := p_quote_header_id;
258: l_tax_detail_rec.quote_shipment_id := i.shipment_id;
259: l_tax_detail_tbl(l_tax_detail_tbl.COUNT+1) := l_tax_detail_rec;
260: END LOOP;
261:
262: IF aso_debug_pub.g_debug_flag = 'Y' THEN
263:
264: aso_debug_pub.add('After shipment loop',1,'Y');
265: aso_debug_pub.add('After shipment loop'||l_tax_detail_tbl.count,1,'Y');
266:
260: END LOOP;
261:
262: IF aso_debug_pub.g_debug_flag = 'Y' THEN
263:
264: aso_debug_pub.add('After shipment loop',1,'Y');
265: aso_debug_pub.add('After shipment loop'||l_tax_detail_tbl.count,1,'Y');
266:
267: END IF;
268:
261:
262: IF aso_debug_pub.g_debug_flag = 'Y' THEN
263:
264: aso_debug_pub.add('After shipment loop',1,'Y');
265: aso_debug_pub.add('After shipment loop'||l_tax_detail_tbl.count,1,'Y');
266:
267: END IF;
268:
269: FOR j IN 1..l_tax_detail_tbl.count LOOP
282: END IF;
283:
284: END LOOP;
285:
286: IF aso_debug_pub.g_debug_flag = 'Y' THEN
287: aso_debug_pub.add('After header tax detail query ',1,'Y');
288: END IF;
289:
290: FOR j IN 1..l_tax_detail_tbl.count LOOP
283:
284: END LOOP;
285:
286: IF aso_debug_pub.g_debug_flag = 'Y' THEN
287: aso_debug_pub.add('After header tax detail query ',1,'Y');
288: END IF;
289:
290: FOR j IN 1..l_tax_detail_tbl.count LOOP
291:
294: c_shipment_id := l_tax_detail_tbl(j).quote_shipment_id;
295:
296: IF l_tax_detail_tbl(j).quote_line_id IS NOT NULL and l_tax_detail_tbl(j).quote_line_id <> FND_API.G_MISS_NUM THEN
297:
298: IF aso_debug_pub.g_debug_flag = 'Y' THEN
299:
300: aso_debug_pub.add('Inside line tax c_header_id '||c_header_id ,1,'Y');
301: aso_debug_pub.add('Inside line tax c_line_id '||c_line_id ,1,'Y');
302: aso_debug_pub.add('Inside line tax c_shp_id '||c_shipment_id ,1,'Y');
296: IF l_tax_detail_tbl(j).quote_line_id IS NOT NULL and l_tax_detail_tbl(j).quote_line_id <> FND_API.G_MISS_NUM THEN
297:
298: IF aso_debug_pub.g_debug_flag = 'Y' THEN
299:
300: aso_debug_pub.add('Inside line tax c_header_id '||c_header_id ,1,'Y');
301: aso_debug_pub.add('Inside line tax c_line_id '||c_line_id ,1,'Y');
302: aso_debug_pub.add('Inside line tax c_shp_id '||c_shipment_id ,1,'Y');
303:
304: END IF;
297:
298: IF aso_debug_pub.g_debug_flag = 'Y' THEN
299:
300: aso_debug_pub.add('Inside line tax c_header_id '||c_header_id ,1,'Y');
301: aso_debug_pub.add('Inside line tax c_line_id '||c_line_id ,1,'Y');
302: aso_debug_pub.add('Inside line tax c_shp_id '||c_shipment_id ,1,'Y');
303:
304: END IF;
305: OPEN c_tax_line(c_header_id,c_line_id,c_shipment_id);
298: IF aso_debug_pub.g_debug_flag = 'Y' THEN
299:
300: aso_debug_pub.add('Inside line tax c_header_id '||c_header_id ,1,'Y');
301: aso_debug_pub.add('Inside line tax c_line_id '||c_line_id ,1,'Y');
302: aso_debug_pub.add('Inside line tax c_shp_id '||c_shipment_id ,1,'Y');
303:
304: END IF;
305: OPEN c_tax_line(c_header_id,c_line_id,c_shipment_id);
306: FETCH c_tax_line into l_exempt_flag,l_exempt_number,l_exempt_reason_code;
353: p_OBJECT_VERSION_NUMBER => l_tax_detail_tbl(j).OBJECT_VERSION_NUMBER,
354: p_TAX_RATE_ID => l_tax_detail_tbl(j).TAX_RATE_ID
355: );
356:
357: IF aso_debug_pub.g_debug_flag = 'Y' THEN
358: aso_debug_pub.add('Inside line tax detail after insert ',1,'Y');
359: END IF;
360:
361: -- ELSIF l_exempt_flag is null or l_exempt_flag = FND_API.G_MISS_CHAR or l_exempt_flag <> 'R' THEN
354: p_TAX_RATE_ID => l_tax_detail_tbl(j).TAX_RATE_ID
355: );
356:
357: IF aso_debug_pub.g_debug_flag = 'Y' THEN
358: aso_debug_pub.add('Inside line tax detail after insert ',1,'Y');
359: END IF;
360:
361: -- ELSIF l_exempt_flag is null or l_exempt_flag = FND_API.G_MISS_CHAR or l_exempt_flag <> 'R' THEN
362: ELSIF l_hd_exempt_flag IS NOT NULL AND l_hd_exempt_flag <> FND_API.G_MISS_CHAR THEN
360:
361: -- ELSIF l_exempt_flag is null or l_exempt_flag = FND_API.G_MISS_CHAR or l_exempt_flag <> 'R' THEN
362: ELSIF l_hd_exempt_flag IS NOT NULL AND l_hd_exempt_flag <> FND_API.G_MISS_CHAR THEN
363:
364: IF aso_debug_pub.g_debug_flag = 'Y' THEN
365: aso_debug_pub.add('Inside line tax detail before update ',1,'Y');
366: END IF;
367:
368: UPDATE ASO_TAX_DETAILS
361: -- ELSIF l_exempt_flag is null or l_exempt_flag = FND_API.G_MISS_CHAR or l_exempt_flag <> 'R' THEN
362: ELSIF l_hd_exempt_flag IS NOT NULL AND l_hd_exempt_flag <> FND_API.G_MISS_CHAR THEN
363:
364: IF aso_debug_pub.g_debug_flag = 'Y' THEN
365: aso_debug_pub.add('Inside line tax detail before update ',1,'Y');
366: END IF;
367:
368: UPDATE ASO_TAX_DETAILS
369: SET tax_exempt_flag = l_hd_exempt_flag ,
378: and quote_shipment_id = c_shipment_id;
379:
380: END IF;
381:
382: IF aso_debug_pub.g_debug_flag = 'Y' THEN
383: aso_debug_pub.add('Inside line tax detail after update ',1,'Y');
384: END IF;
385:
386: --END IF;
379:
380: END IF;
381:
382: IF aso_debug_pub.g_debug_flag = 'Y' THEN
383: aso_debug_pub.add('Inside line tax detail after update ',1,'Y');
384: END IF;
385:
386: --END IF;
387: CLOSE c_tax_line;
391:
392:
393: BEGIN
394:
395: IF aso_debug_pub.g_debug_flag = 'Y' THEN
396:
397: aso_debug_pub.add('Before calling tax engine: FND_PROFILE.Value(ASO_USE_TAX_VIEW)'||FND_PROFILE.Value('ASO_USE_TAX_VIEW'),1,'Y');
398: aso_debug_pub.add('Before new tax call : ' || x_tax_amount, 1, 'Y');
399:
393: BEGIN
394:
395: IF aso_debug_pub.g_debug_flag = 'Y' THEN
396:
397: aso_debug_pub.add('Before calling tax engine: FND_PROFILE.Value(ASO_USE_TAX_VIEW)'||FND_PROFILE.Value('ASO_USE_TAX_VIEW'),1,'Y');
398: aso_debug_pub.add('Before new tax call : ' || x_tax_amount, 1, 'Y');
399:
400: END IF;
401:
394:
395: IF aso_debug_pub.g_debug_flag = 'Y' THEN
396:
397: aso_debug_pub.add('Before calling tax engine: FND_PROFILE.Value(ASO_USE_TAX_VIEW)'||FND_PROFILE.Value('ASO_USE_TAX_VIEW'),1,'Y');
398: aso_debug_pub.add('Before new tax call : ' || x_tax_amount, 1, 'Y');
399:
400: END IF;
401:
402: aso_tax_line( p_api_version_number => p_api_version_number,
413: WHEN OTHERS THEN
414:
415: x_return_status := FND_API.G_RET_STS_SUCCESS;
416:
417: IF aso_debug_pub.g_debug_flag = 'Y' THEN
418: aso_debug_pub.add('after new tax call in when others: ' || x_tax_amount, 1, 'Y');
419: END IF;
420:
421: END;
414:
415: x_return_status := FND_API.G_RET_STS_SUCCESS;
416:
417: IF aso_debug_pub.g_debug_flag = 'Y' THEN
418: aso_debug_pub.add('after new tax call in when others: ' || x_tax_amount, 1, 'Y');
419: END IF;
420:
421: END;
422:
419: END IF;
420:
421: END;
422:
423: IF aso_debug_pub.g_debug_flag = 'Y' THEN
424: aso_debug_pub.add('after new tax call : ' || x_tax_amount, 1, 'Y');
425: END IF;
426:
427:
420:
421: END;
422:
423: IF aso_debug_pub.g_debug_flag = 'Y' THEN
424: aso_debug_pub.add('after new tax call : ' || x_tax_amount, 1, 'Y');
425: END IF;
426:
427:
428: -- Standard call to get message count and if count is 1, get message info.
475: x_tax_amount OUT NOCOPY NUMBER,
476: x_tax_rec_tbl OUT NOCOPY ARP_TAX.tax_rec_tbl_type)
477: IS
478: BEGIN
479: aso_debug_pub.g_debug_flag := nvl(fnd_profile.value('ASO_ENABLE_DEBUG'),'N');
480: ARP_PROCESS_TAX.Summary(
481: p_trx_id => p_trx_id,
482: p_trx_line_id => p_trx_line_id,
483: p_charge_line_id => p_charge_line_id,
813: Begin
814:
815: x_return_status := FND_API.G_RET_STS_SUCCESS;
816:
817: IF aso_debug_pub.g_debug_flag = 'Y' THEN
818:
819: aso_debug_pub.add('ASO_TAX_INT: Begin ASO_TAX_LINE', 1, 'Y');
820:
821: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
815: x_return_status := FND_API.G_RET_STS_SUCCESS;
816:
817: IF aso_debug_pub.g_debug_flag = 'Y' THEN
818:
819: aso_debug_pub.add('ASO_TAX_INT: Begin ASO_TAX_LINE', 1, 'Y');
820:
821: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
822: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
823:
817: IF aso_debug_pub.g_debug_flag = 'Y' THEN
818:
819: aso_debug_pub.add('ASO_TAX_INT: Begin ASO_TAX_LINE', 1, 'Y');
820:
821: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
822: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
823:
824: END IF;
825:
818:
819: aso_debug_pub.add('ASO_TAX_INT: Begin ASO_TAX_LINE', 1, 'Y');
820:
821: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
822: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
823:
824: END IF;
825:
826: -- Retrieve Quote header and line information from database
825:
826: -- Retrieve Quote header and line information from database
827: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
828:
829: IF aso_debug_pub.g_debug_flag = 'Y' THEN
830: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Header_Row', 1, 'Y');
831: END IF;
832:
833: If p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM then
826: -- Retrieve Quote header and line information from database
827: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
828:
829: IF aso_debug_pub.g_debug_flag = 'Y' THEN
830: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Header_Row', 1, 'Y');
831: END IF;
832:
833: If p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM then
834:
833: If p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM then
834:
835: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Qte_Line_Rows(p_qte_header_id);
836:
837: IF aso_debug_pub.g_debug_flag = 'Y' THEN
838: aso_debug_pub.add('ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Qte_Line_Rows', 1, 'Y');
839: END IF;
840:
841: else
834:
835: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Qte_Line_Rows(p_qte_header_id);
836:
837: IF aso_debug_pub.g_debug_flag = 'Y' THEN
838: aso_debug_pub.add('ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Qte_Line_Rows', 1, 'Y');
839: END IF;
840:
841: else
842:
842:
843: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_id);
844: l_qte_line_tbl(1) := l_qte_line_rec;
845:
846: IF aso_debug_pub.g_debug_flag = 'Y' THEN
847: aso_debug_pub.add('ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Qte_Line_Row', 1, 'Y');
848: END IF;
849:
850: end if;
843: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_id);
844: l_qte_line_tbl(1) := l_qte_line_rec;
845:
846: IF aso_debug_pub.g_debug_flag = 'Y' THEN
847: aso_debug_pub.add('ASO_TAX_LINE: After call to ASO_UTILITY_PVT.Query_Qte_Line_Row', 1, 'Y');
848: END IF;
849:
850: end if;
851:
852: -- Get the tax method
853:
854: Begin
855:
856: IF aso_debug_pub.g_debug_flag = 'Y' THEN
857: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Before call to ARP_TAX_CRM_INTEGRATION_PKG.tax_method', 1, 'Y');
858: END IF;
859:
860: arp_tax_crm_integration_pkg.tax_method (l_tax_method,l_vendor_installed);
853:
854: Begin
855:
856: IF aso_debug_pub.g_debug_flag = 'Y' THEN
857: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Before call to ARP_TAX_CRM_INTEGRATION_PKG.tax_method', 1, 'Y');
858: END IF;
859:
860: arp_tax_crm_integration_pkg.tax_method (l_tax_method,l_vendor_installed);
861:
858: END IF;
859:
860: arp_tax_crm_integration_pkg.tax_method (l_tax_method,l_vendor_installed);
861:
862: IF aso_debug_pub.g_debug_flag = 'Y' THEN
863: aso_debug_pub.add('ASO_TAX_LINE: After Call to tax_method', 1, 'Y');
864: aso_debug_pub.add('ASO_TAX_LINE: l_tax_method: '|| l_tax_method, 1, 'Y');
865: aso_debug_pub.add('ASO_TAX_LINE: l_vendor_installed: '|| l_vendor_installed, 1, 'Y');
866: END IF;
859:
860: arp_tax_crm_integration_pkg.tax_method (l_tax_method,l_vendor_installed);
861:
862: IF aso_debug_pub.g_debug_flag = 'Y' THEN
863: aso_debug_pub.add('ASO_TAX_LINE: After Call to tax_method', 1, 'Y');
864: aso_debug_pub.add('ASO_TAX_LINE: l_tax_method: '|| l_tax_method, 1, 'Y');
865: aso_debug_pub.add('ASO_TAX_LINE: l_vendor_installed: '|| l_vendor_installed, 1, 'Y');
866: END IF;
867:
860: arp_tax_crm_integration_pkg.tax_method (l_tax_method,l_vendor_installed);
861:
862: IF aso_debug_pub.g_debug_flag = 'Y' THEN
863: aso_debug_pub.add('ASO_TAX_LINE: After Call to tax_method', 1, 'Y');
864: aso_debug_pub.add('ASO_TAX_LINE: l_tax_method: '|| l_tax_method, 1, 'Y');
865: aso_debug_pub.add('ASO_TAX_LINE: l_vendor_installed: '|| l_vendor_installed, 1, 'Y');
866: END IF;
867:
868: EXCEPTION
861:
862: IF aso_debug_pub.g_debug_flag = 'Y' THEN
863: aso_debug_pub.add('ASO_TAX_LINE: After Call to tax_method', 1, 'Y');
864: aso_debug_pub.add('ASO_TAX_LINE: l_tax_method: '|| l_tax_method, 1, 'Y');
865: aso_debug_pub.add('ASO_TAX_LINE: l_vendor_installed: '|| l_vendor_installed, 1, 'Y');
866: END IF;
867:
868: EXCEPTION
869:
868: EXCEPTION
869:
870: WHEN OTHERS THEN
871:
872: IF aso_debug_pub.g_debug_flag = 'Y' THEN
873:
874: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Exception raised in ARP_TAX_CRM_INTEGRATION_PKG.tax_method', 1, 'Y');
875:
876: END IF;
870: WHEN OTHERS THEN
871:
872: IF aso_debug_pub.g_debug_flag = 'Y' THEN
873:
874: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Exception raised in ARP_TAX_CRM_INTEGRATION_PKG.tax_method', 1, 'Y');
875:
876: END IF;
877:
878: l_reason := 'ARP_TAX_CRM_INTEGRATION_PKG.tax_method is raising an exception.';
899: EXCEPTION
900:
901: WHEN NO_DATA_FOUND THEN
902:
903: IF aso_debug_pub.g_debug_flag = 'Y' THEN
904: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND from AR_SYSTEM_PARAMETERS table', 1, 'Y');
905: END IF;
906:
907: l_reason := 'No Data Found while selecting tax_rounding_rule, set_of_books_id';
900:
901: WHEN NO_DATA_FOUND THEN
902:
903: IF aso_debug_pub.g_debug_flag = 'Y' THEN
904: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND from AR_SYSTEM_PARAMETERS table', 1, 'Y');
905: END IF;
906:
907: l_reason := 'No Data Found while selecting tax_rounding_rule, set_of_books_id';
908: l_reason := l_reason || 'from ar_system_parameters table.';
911: l_Shipment_rec, l_reason);
912:
913: End;
914:
915: IF aso_debug_pub.g_debug_flag = 'Y' THEN
916:
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
913: End;
914:
915: IF aso_debug_pub.g_debug_flag = 'Y' THEN
916:
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
914:
915: IF aso_debug_pub.g_debug_flag = 'Y' THEN
916:
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
915: IF aso_debug_pub.g_debug_flag = 'Y' THEN
916:
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
923: aso_debug_pub.add('ASO_TAX_LINE: Before beginng of the Quote line loop', 1, 'Y');
916:
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
923: aso_debug_pub.add('ASO_TAX_LINE: Before beginng of the Quote line loop', 1, 'Y');
924: aso_debug_pub.add('ASO_TAX_LINE: l_qte_line_tbl.count: '||l_qte_line_tbl.count, 1, 'Y');
917: aso_debug_pub.add('ASO_TAX_LINE: After selecting from AR_SYSTEM_PARAMETERS table.', 1, 'Y');
918: aso_debug_pub.add('l_tax_rounding_allow_override: '|| l_tax_rounding_allow_override, 1, 'Y');
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
923: aso_debug_pub.add('ASO_TAX_LINE: Before beginng of the Quote line loop', 1, 'Y');
924: aso_debug_pub.add('ASO_TAX_LINE: l_qte_line_tbl.count: '||l_qte_line_tbl.count, 1, 'Y');
925:
919: aso_debug_pub.add('l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
923: aso_debug_pub.add('ASO_TAX_LINE: Before beginng of the Quote line loop', 1, 'Y');
924: aso_debug_pub.add('ASO_TAX_LINE: l_qte_line_tbl.count: '||l_qte_line_tbl.count, 1, 'Y');
925:
926: END IF;
927:
920: aso_debug_pub.add('l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
921: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
922:
923: aso_debug_pub.add('ASO_TAX_LINE: Before beginng of the Quote line loop', 1, 'Y');
924: aso_debug_pub.add('ASO_TAX_LINE: l_qte_line_tbl.count: '||l_qte_line_tbl.count, 1, 'Y');
925:
926: END IF;
927:
928:
931:
932: l_shipment_tbl := aso_utility_pvt.query_shipment_rows( p_qte_header_id,
933: l_qte_line_tbl(i).quote_line_id);
934:
935: IF aso_debug_pub.g_debug_flag = 'Y' THEN
936: aso_debug_pub.add('ASO_TAX_LINE: l_shipment_tbl.count: '|| l_shipment_tbl.count, 1, 'Y');
937: END IF;
938:
939: l_shipment_rec := l_shipment_tbl(1);
932: l_shipment_tbl := aso_utility_pvt.query_shipment_rows( p_qte_header_id,
933: l_qte_line_tbl(i).quote_line_id);
934:
935: IF aso_debug_pub.g_debug_flag = 'Y' THEN
936: aso_debug_pub.add('ASO_TAX_LINE: l_shipment_tbl.count: '|| l_shipment_tbl.count, 1, 'Y');
937: END IF;
938:
939: l_shipment_rec := l_shipment_tbl(1);
940: l_qte_line_rec := l_qte_line_tbl(i);
942: -- Get ship_from_org_id
943: l_ship_from_org_id := ASO_SHIPMENT_PVT.get_ship_from_org_id(p_qte_header_id,
944: l_qte_line_tbl(i).quote_line_id);
945:
946: IF aso_debug_pub.g_debug_flag = 'Y' THEN
947: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_ship_from_org_id: l_ship_from_org_id: '||l_ship_from_org_id, 1, 'Y');
948: END IF;
949:
950: IF l_ship_from_org_id IS NULL OR l_ship_from_org_id = FND_API.G_MISS_NUM THEN
943: l_ship_from_org_id := ASO_SHIPMENT_PVT.get_ship_from_org_id(p_qte_header_id,
944: l_qte_line_tbl(i).quote_line_id);
945:
946: IF aso_debug_pub.g_debug_flag = 'Y' THEN
947: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_ship_from_org_id: l_ship_from_org_id: '||l_ship_from_org_id, 1, 'Y');
948: END IF;
949:
950: IF l_ship_from_org_id IS NULL OR l_ship_from_org_id = FND_API.G_MISS_NUM THEN
951:
950: IF l_ship_from_org_id IS NULL OR l_ship_from_org_id = FND_API.G_MISS_NUM THEN
951:
952: l_ship_from_org_id := fnd_profile.value( 'ASO_SHIP_FROM_ORG_ID' );
953:
954: IF aso_debug_pub.g_debug_flag = 'Y' THEN
955: aso_debug_pub.add('ASO_TAX_LINE: Profile ASO_SHIP_FROM_ORG_ID value', 1, 'Y');
956: aso_debug_pub.add('ASO_TAX_LINE: l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
957: END IF;
958:
951:
952: l_ship_from_org_id := fnd_profile.value( 'ASO_SHIP_FROM_ORG_ID' );
953:
954: IF aso_debug_pub.g_debug_flag = 'Y' THEN
955: aso_debug_pub.add('ASO_TAX_LINE: Profile ASO_SHIP_FROM_ORG_ID value', 1, 'Y');
956: aso_debug_pub.add('ASO_TAX_LINE: l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
957: END IF;
958:
959: END IF;
952: l_ship_from_org_id := fnd_profile.value( 'ASO_SHIP_FROM_ORG_ID' );
953:
954: IF aso_debug_pub.g_debug_flag = 'Y' THEN
955: aso_debug_pub.add('ASO_TAX_LINE: Profile ASO_SHIP_FROM_ORG_ID value', 1, 'Y');
956: aso_debug_pub.add('ASO_TAX_LINE: l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
957: END IF;
958:
959: END IF;
960:
958:
959: END IF;
960:
961: --Get Line type info
962: IF aso_debug_pub.g_debug_flag = 'Y' THEN
963: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Before call to get_ra_trx_type_id', 1, 'Y');
964: END IF;
965:
966: l_trx_type_id := get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
959: END IF;
960:
961: --Get Line type info
962: IF aso_debug_pub.g_debug_flag = 'Y' THEN
963: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Before call to get_ra_trx_type_id', 1, 'Y');
964: END IF;
965:
966: l_trx_type_id := get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
967:
964: END IF;
965:
966: l_trx_type_id := get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
967:
968: IF aso_debug_pub.g_debug_flag = 'Y' THEN
969: aso_debug_pub.add('After call to get_ra_trx_type_id: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
970: END IF;
971:
972: --Get the currency info
965:
966: l_trx_type_id := get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
967:
968: IF aso_debug_pub.g_debug_flag = 'Y' THEN
969: aso_debug_pub.add('After call to get_ra_trx_type_id: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
970: END IF;
971:
972: --Get the currency info
973: IF l_qte_line_tbl(i).currency_code is not null THEN
975: ELSE
976: l_currency_code := l_qte_header_rec.currency_code;
977: END IF;
978:
979: IF aso_debug_pub.g_debug_flag = 'Y' THEN
980: aso_debug_pub.add('ASO_TAX_LINE: l_currency_code: '|| l_currency_code, 1, 'Y');
981: END IF;
982:
983:
976: l_currency_code := l_qte_header_rec.currency_code;
977: END IF;
978:
979: IF aso_debug_pub.g_debug_flag = 'Y' THEN
980: aso_debug_pub.add('ASO_TAX_LINE: l_currency_code: '|| l_currency_code, 1, 'Y');
981: END IF;
982:
983:
984: --Get site use information
981: END IF;
982:
983:
984: --Get site use information
985: IF aso_debug_pub.g_debug_flag = 'Y' THEN
986: aso_debug_pub.add('ASO_TAX_LINE: Before call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
987: END IF;
988:
989: l_site_use_id_ship := aso_shipment_pvt.get_ship_to_site_id( l_shipment_rec.quote_header_id,
982:
983:
984: --Get site use information
985: IF aso_debug_pub.g_debug_flag = 'Y' THEN
986: aso_debug_pub.add('ASO_TAX_LINE: Before call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
987: END IF;
988:
989: l_site_use_id_ship := aso_shipment_pvt.get_ship_to_site_id( l_shipment_rec.quote_header_id,
990: l_shipment_rec.quote_line_id,
989: l_site_use_id_ship := aso_shipment_pvt.get_ship_to_site_id( l_shipment_rec.quote_header_id,
990: l_shipment_rec.quote_line_id,
991: l_shipment_rec.shipment_id );
992:
993: IF aso_debug_pub.g_debug_flag = 'Y' THEN
994: aso_debug_pub.add('After call: l_site_use_id_ship: ' || l_site_use_id_ship, 1, 'Y');
995: aso_debug_pub.add('Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
996: END IF;
997:
990: l_shipment_rec.quote_line_id,
991: l_shipment_rec.shipment_id );
992:
993: IF aso_debug_pub.g_debug_flag = 'Y' THEN
994: aso_debug_pub.add('After call: l_site_use_id_ship: ' || l_site_use_id_ship, 1, 'Y');
995: aso_debug_pub.add('Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
996: END IF;
997:
998: l_site_use_id_bill := aso_shipment_pvt.get_cust_to_party_site_id
991: l_shipment_rec.shipment_id );
992:
993: IF aso_debug_pub.g_debug_flag = 'Y' THEN
994: aso_debug_pub.add('After call: l_site_use_id_ship: ' || l_site_use_id_ship, 1, 'Y');
995: aso_debug_pub.add('Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
996: END IF;
997:
998: l_site_use_id_bill := aso_shipment_pvt.get_cust_to_party_site_id
999: ( l_qte_line_tbl(i).quote_header_id,
998: l_site_use_id_bill := aso_shipment_pvt.get_cust_to_party_site_id
999: ( l_qte_line_tbl(i).quote_header_id,
1000: l_qte_line_tbl(i).quote_line_id );
1001:
1002: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1003: aso_debug_pub.add('After call: l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1004: aso_debug_pub.add('Before call to aso_payment_int.get_payment_term_id', 1, 'Y');
1005: END IF;
1006:
999: ( l_qte_line_tbl(i).quote_header_id,
1000: l_qte_line_tbl(i).quote_line_id );
1001:
1002: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1003: aso_debug_pub.add('After call: l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1004: aso_debug_pub.add('Before call to aso_payment_int.get_payment_term_id', 1, 'Y');
1005: END IF;
1006:
1007:
1000: l_qte_line_tbl(i).quote_line_id );
1001:
1002: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1003: aso_debug_pub.add('After call: l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1004: aso_debug_pub.add('Before call to aso_payment_int.get_payment_term_id', 1, 'Y');
1005: END IF;
1006:
1007:
1008: l_payment_term_id := aso_payment_int.get_payment_term_id( p_qte_header_id,
1007:
1008: l_payment_term_id := aso_payment_int.get_payment_term_id( p_qte_header_id,
1009: l_qte_line_tbl(i).quote_line_id);
1010:
1011: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1012: aso_debug_pub.add('After call: l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1013: END IF;
1014:
1015: l_tax_detail_tbl := aso_utility_pvt.query_tax_detail_Rows( p_qte_header_id,
1008: l_payment_term_id := aso_payment_int.get_payment_term_id( p_qte_header_id,
1009: l_qte_line_tbl(i).quote_line_id);
1010:
1011: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1012: aso_debug_pub.add('After call: l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1013: END IF;
1014:
1015: l_tax_detail_tbl := aso_utility_pvt.query_tax_detail_Rows( p_qte_header_id,
1016: l_qte_line_tbl(i).quote_line_id,
1018:
1019: l_hdr_tax_detail_tbl := aso_utility_pvt.query_tax_detail_rows( p_qte_header_id, null,
1020: l_shipment_tbl);
1021:
1022: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1023: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl.count: '||l_tax_detail_tbl.count, 1, 'Y');
1024: aso_debug_pub.add('ASO_TAX_LINE: l_hdr_tax_detail_tbl.count : '||l_hdr_tax_detail_tbl.count, 1, 'Y');
1025: END IF;
1026:
1019: l_hdr_tax_detail_tbl := aso_utility_pvt.query_tax_detail_rows( p_qte_header_id, null,
1020: l_shipment_tbl);
1021:
1022: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1023: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl.count: '||l_tax_detail_tbl.count, 1, 'Y');
1024: aso_debug_pub.add('ASO_TAX_LINE: l_hdr_tax_detail_tbl.count : '||l_hdr_tax_detail_tbl.count, 1, 'Y');
1025: END IF;
1026:
1027: IF l_hdr_tax_detail_tbl.count > 0 THEN
1020: l_shipment_tbl);
1021:
1022: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1023: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl.count: '||l_tax_detail_tbl.count, 1, 'Y');
1024: aso_debug_pub.add('ASO_TAX_LINE: l_hdr_tax_detail_tbl.count : '||l_hdr_tax_detail_tbl.count, 1, 'Y');
1025: END IF;
1026:
1027: IF l_hdr_tax_detail_tbl.count > 0 THEN
1028:
1062: l_hdr_tax_exempt_flag := 'S';
1063:
1064: END IF;
1065:
1066: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1067:
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1064: END IF;
1065:
1066: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1067:
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1065:
1066: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1067:
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1066: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1067:
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1074: aso_debug_pub.add('Before selecting cust_trx_type_id from ra_cust_trx_types_all table', 1, 'Y');
1067:
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1074: aso_debug_pub.add('Before selecting cust_trx_type_id from ra_cust_trx_types_all table', 1, 'Y');
1075: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1068: aso_debug_pub.add('ASO_TAX_LINE: Header level exemption information', 1, 'Y');
1069: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1074: aso_debug_pub.add('Before selecting cust_trx_type_id from ra_cust_trx_types_all table', 1, 'Y');
1075: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1076:
1070: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1074: aso_debug_pub.add('Before selecting cust_trx_type_id from ra_cust_trx_types_all table', 1, 'Y');
1075: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1076:
1077: END IF;
1078:
1071: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1072: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1073:
1074: aso_debug_pub.add('Before selecting cust_trx_type_id from ra_cust_trx_types_all table', 1, 'Y');
1075: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1076:
1077: END IF;
1078:
1079:
1100: EXCEPTION
1101:
1102: WHEN NO_DATA_FOUND THEN
1103:
1104: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1105: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND when selecting cust_trx_type_id', 1, 'Y');
1106: END IF;
1107:
1108: l_reason := 'No Data Found Exception raised while selecting cust_trx_type_id';
1101:
1102: WHEN NO_DATA_FOUND THEN
1103:
1104: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1105: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND when selecting cust_trx_type_id', 1, 'Y');
1106: END IF;
1107:
1108: l_reason := 'No Data Found Exception raised while selecting cust_trx_type_id';
1109: l_reason := l_reason || 'from ra_cust_trx_types_all. ';
1116:
1117: aso_quote_misc_pvt.debug_tax_info_notification(l_qte_header_rec,
1118: l_Shipment_rec, l_reason);
1119:
1120: if aso_debug_pub.g_debug_flag = 'Y' then
1121: aso_debug_pub.add('ASO_TAX_LINE: Before deleting all tax records for the quote line', 1, 'Y');
1122: end if;
1123:
1124: if l_tax_detail_tbl.count > 0 then
1117: aso_quote_misc_pvt.debug_tax_info_notification(l_qte_header_rec,
1118: l_Shipment_rec, l_reason);
1119:
1120: if aso_debug_pub.g_debug_flag = 'Y' then
1121: aso_debug_pub.add('ASO_TAX_LINE: Before deleting all tax records for the quote line', 1, 'Y');
1122: end if;
1123:
1124: if l_tax_detail_tbl.count > 0 then
1125:
1128: and quote_line_id = l_tax_detail_tbl(1).quote_line_id ;
1129:
1130: end if;
1131:
1132: if aso_debug_pub.g_debug_flag = 'Y' then
1133: aso_debug_pub.add('ASO_TAX_LINE: After deleting all tax records for the quote line', 1, 'Y');
1134: end if;
1135:
1136: End;
1129:
1130: end if;
1131:
1132: if aso_debug_pub.g_debug_flag = 'Y' then
1133: aso_debug_pub.add('ASO_TAX_LINE: After deleting all tax records for the quote line', 1, 'Y');
1134: end if;
1135:
1136: End;
1137:
1138: open c_currency;
1139: fetch c_currency into l_minimum_accountable_unit, l_precision;
1140: close c_currency;
1141:
1142: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1143: aso_debug_pub.add('ASO_TAX_LINE: l_ra_cust_trx_type_id: '|| l_ra_cust_trx_type_id, 1, 'Y');
1144: aso_debug_pub.add('ASO_TAX_LINE: After c_currency cursor fetch', 1, 'Y');
1145: aso_debug_pub.add('ASO_TAX_LINE: l_minimum_accountable_unit: '|| l_minimum_accountable_unit, 1, 'Y');
1146: aso_debug_pub.add('ASO_TAX_LINE: l_precision: '|| l_precision, 1, 'Y');
1139: fetch c_currency into l_minimum_accountable_unit, l_precision;
1140: close c_currency;
1141:
1142: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1143: aso_debug_pub.add('ASO_TAX_LINE: l_ra_cust_trx_type_id: '|| l_ra_cust_trx_type_id, 1, 'Y');
1144: aso_debug_pub.add('ASO_TAX_LINE: After c_currency cursor fetch', 1, 'Y');
1145: aso_debug_pub.add('ASO_TAX_LINE: l_minimum_accountable_unit: '|| l_minimum_accountable_unit, 1, 'Y');
1146: aso_debug_pub.add('ASO_TAX_LINE: l_precision: '|| l_precision, 1, 'Y');
1147: END IF;
1140: close c_currency;
1141:
1142: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1143: aso_debug_pub.add('ASO_TAX_LINE: l_ra_cust_trx_type_id: '|| l_ra_cust_trx_type_id, 1, 'Y');
1144: aso_debug_pub.add('ASO_TAX_LINE: After c_currency cursor fetch', 1, 'Y');
1145: aso_debug_pub.add('ASO_TAX_LINE: l_minimum_accountable_unit: '|| l_minimum_accountable_unit, 1, 'Y');
1146: aso_debug_pub.add('ASO_TAX_LINE: l_precision: '|| l_precision, 1, 'Y');
1147: END IF;
1148:
1141:
1142: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1143: aso_debug_pub.add('ASO_TAX_LINE: l_ra_cust_trx_type_id: '|| l_ra_cust_trx_type_id, 1, 'Y');
1144: aso_debug_pub.add('ASO_TAX_LINE: After c_currency cursor fetch', 1, 'Y');
1145: aso_debug_pub.add('ASO_TAX_LINE: l_minimum_accountable_unit: '|| l_minimum_accountable_unit, 1, 'Y');
1146: aso_debug_pub.add('ASO_TAX_LINE: l_precision: '|| l_precision, 1, 'Y');
1147: END IF;
1148:
1149: IF l_qte_header_rec.resource_id is NOT NULL THEN
1142: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1143: aso_debug_pub.add('ASO_TAX_LINE: l_ra_cust_trx_type_id: '|| l_ra_cust_trx_type_id, 1, 'Y');
1144: aso_debug_pub.add('ASO_TAX_LINE: After c_currency cursor fetch', 1, 'Y');
1145: aso_debug_pub.add('ASO_TAX_LINE: l_minimum_accountable_unit: '|| l_minimum_accountable_unit, 1, 'Y');
1146: aso_debug_pub.add('ASO_TAX_LINE: l_precision: '|| l_precision, 1, 'Y');
1147: END IF;
1148:
1149: IF l_qte_header_rec.resource_id is NOT NULL THEN
1150:
1151: open c_person(l_qte_header_rec.resource_id);
1152: fetch c_person into l_person_id, l_sales_tax_geocode,
1153: l_sales_tax_inside_city_limits, l_salesrep_id;
1154:
1155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1152: fetch c_person into l_person_id, l_sales_tax_geocode,
1153: l_sales_tax_inside_city_limits, l_salesrep_id;
1154:
1155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1160: aso_debug_pub.add('l_salesrep_id: '|| l_salesrep_id, 1, 'Y');
1153: l_sales_tax_inside_city_limits, l_salesrep_id;
1154:
1155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1160: aso_debug_pub.add('l_salesrep_id: '|| l_salesrep_id, 1, 'Y');
1161: END IF;
1154:
1155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1160: aso_debug_pub.add('l_salesrep_id: '|| l_salesrep_id, 1, 'Y');
1161: END IF;
1162:
1155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1160: aso_debug_pub.add('l_salesrep_id: '|| l_salesrep_id, 1, 'Y');
1161: END IF;
1162:
1163:
1156: aso_debug_pub.add('ASO_TAX_LINE: After c_person cursor fetch', 1, 'Y');
1157: aso_debug_pub.add('l_person_id: '|| l_person_id, 1, 'Y');
1158: aso_debug_pub.add('l_sales_tax_geocode: '|| l_sales_tax_geocode, 1, 'Y');
1159: aso_debug_pub.add('l_sales_tax_inside_city_limits: '|| l_sales_tax_inside_city_limits, 1, 'Y');
1160: aso_debug_pub.add('l_salesrep_id: '|| l_salesrep_id, 1, 'Y');
1161: END IF;
1162:
1163:
1164: IF C_PERSON%NOTFOUND THEN
1167: l_person_id :=NULL;
1168: L_SALES_TAX_GEOCODE :=NULL;
1169: L_SALES_TAX_INSIDE_CITY_LIMITS := NULL;
1170:
1171: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1172: aso_debug_pub.add('ASO_TAX_LINE: Inside C_PERSON%NOTFOUND: l_POO_ID: '||l_POO_ID, 1, 'Y');
1173: END IF;
1174:
1175: ELSE
1168: L_SALES_TAX_GEOCODE :=NULL;
1169: L_SALES_TAX_INSIDE_CITY_LIMITS := NULL;
1170:
1171: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1172: aso_debug_pub.add('ASO_TAX_LINE: Inside C_PERSON%NOTFOUND: l_POO_ID: '||l_POO_ID, 1, 'Y');
1173: END IF;
1174:
1175: ELSE
1176: CLOSE C_PERSON;
1180: l_asgn_org_id := NULL;
1181: ELSE
1182: l_poo_id := l_asgn_org_id;
1183:
1184: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1185: aso_debug_pub.add('Inside c_person%found and c_asgn%found: l_poo_id: '|| l_poo_id, 1, 'Y');
1186: END IF;
1187:
1188: END IF;
1181: ELSE
1182: l_poo_id := l_asgn_org_id;
1183:
1184: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1185: aso_debug_pub.add('Inside c_person%found and c_asgn%found: l_poo_id: '|| l_poo_id, 1, 'Y');
1186: END IF;
1187:
1188: END IF;
1189: CLOSE C_ASGN;
1193: ELSE
1194:
1195: L_POO_ID := l_qte_header_rec.org_id;
1196:
1197: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1198: aso_debug_pub.add('ASO_TAX_LINE: IF l_qte_header_rec.resource_id is NULL then: l_POO_ID: '||l_POO_ID, 1,'Y');
1199: END IF;
1200:
1201: END IF;
1194:
1195: L_POO_ID := l_qte_header_rec.org_id;
1196:
1197: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1198: aso_debug_pub.add('ASO_TAX_LINE: IF l_qte_header_rec.resource_id is NULL then: l_POO_ID: '||l_POO_ID, 1,'Y');
1199: END IF;
1200:
1201: END IF;
1202:
1204: IF l_site_use_id_ship is not null AND l_site_use_id_ship <> FND_API.G_MISS_NUM THEN
1205:
1206: l_site_use_id := l_site_use_id_ship;
1207:
1208: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1209: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: l_site_use_id: ' || l_site_use_id, 1, 'Y');
1210: END IF;
1211:
1212: OPEN getlocinfo;
1205:
1206: l_site_use_id := l_site_use_id_ship;
1207:
1208: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1209: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: l_site_use_id: ' || l_site_use_id, 1, 'Y');
1210: END IF;
1211:
1212: OPEN getlocinfo;
1213: FETCH getlocinfo
1235: L_BC_TAX_HEADER_LEVEL_FLAG := NULL;
1236: L_BC_TAX_ROUNDING_RULE := NULL;
1237:
1238: ELSE
1239: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1240:
1241: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for SHIP_TO', 1, 'Y');
1242: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1243:
1237:
1238: ELSE
1239: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1240:
1241: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for SHIP_TO', 1, 'Y');
1242: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1243:
1244: END IF;
1245:
1238: ELSE
1239: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1240:
1241: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for SHIP_TO', 1, 'Y');
1242: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1243:
1244: END IF;
1245:
1246: open getpartyname (l_party_id);
1246: open getpartyname (l_party_id);
1247: fetch getpartyname into l_ship_to_customer_name;
1248: close getpartyname;
1249:
1250: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1251: aso_debug_pub.add('ASO_TAX_LINE: l_ship_to_customer_name: '|| l_ship_to_customer_name, 1, 'Y');
1252: END IF;
1253:
1254: END IF;
1247: fetch getpartyname into l_ship_to_customer_name;
1248: close getpartyname;
1249:
1250: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1251: aso_debug_pub.add('ASO_TAX_LINE: l_ship_to_customer_name: '|| l_ship_to_customer_name, 1, 'Y');
1252: END IF;
1253:
1254: END IF;
1255: CLOSE getlocinfo;
1253:
1254: END IF;
1255: CLOSE getlocinfo;
1256:
1257: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1258:
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1255: CLOSE getlocinfo;
1256:
1257: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1258:
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1256:
1257: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1258:
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1257: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1258:
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1258:
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1259: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_ship IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1260: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_SITE_USE_ID: '|| L_SHIP_TO_SITE_USE_ID, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1261: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_ADDRESS_ID: '|| L_SHIP_TO_ADDRESS_ID, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1262: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_ID: '|| L_SHIP_TO_CUSTOMER_ID, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1263: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: '|| L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1271: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_HEADER_LEVEL_FLAG: ' || L_SHIP_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1264: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: '|| L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1271: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_HEADER_LEVEL_FLAG: ' || L_SHIP_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1272: END IF;
1265: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NAME: '|| L_SHIP_TO_CUSTOMER_NAME, 1, 'Y');
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1271: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_HEADER_LEVEL_FLAG: ' || L_SHIP_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1272: END IF;
1273:
1266: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_CUSTOMER_NUMBER: '|| L_SHIP_TO_CUSTOMER_NUMBER, 1, 'Y');
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1271: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_HEADER_LEVEL_FLAG: ' || L_SHIP_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1272: END IF;
1273:
1274: END IF; -- l_site_use_id_ship;
1267: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1268: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1269: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_STATE: '|| L_SHIP_TO_STATE, 1, 'Y');
1270: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_ROUNDING_RULE: '|| L_SHIP_TAX_ROUNDING_RULE, 1, 'Y');
1271: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TAX_HEADER_LEVEL_FLAG: ' || L_SHIP_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1272: END IF;
1273:
1274: END IF; -- l_site_use_id_ship;
1275:
1277: IF l_site_use_id_bill is not null and l_site_use_id_bill <> FND_API.G_MISS_NUM THEN
1278:
1279: l_site_use_id := l_site_use_id_bill;
1280:
1281: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1282: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: l_site_use_id: ' || l_site_use_id, 1, 'Y');
1283: END IF;
1284:
1285: OPEN getlocinfo;
1278:
1279: l_site_use_id := l_site_use_id_bill;
1280:
1281: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1282: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: l_site_use_id: ' || l_site_use_id, 1, 'Y');
1283: END IF;
1284:
1285: OPEN getlocinfo;
1286: FETCH getlocinfo
1308: L_BC_TAX_HEADER_LEVEL_FLAG := NULL;
1309: L_BC_TAX_ROUNDING_RULE := NULL;
1310:
1311: ELSE
1312: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1313: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for BILL_TO', 1, 'Y');
1314: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1315: END IF;
1316:
1309: L_BC_TAX_ROUNDING_RULE := NULL;
1310:
1311: ELSE
1312: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1313: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for BILL_TO', 1, 'Y');
1314: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1315: END IF;
1316:
1317: OPEN getpartyname (l_party_id);
1310:
1311: ELSE
1312: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1313: aso_debug_pub.add('ASO_TAX_LINE: Inside else cond of getlocinfo cursor for BILL_TO', 1, 'Y');
1314: aso_debug_pub.add('ASO_TAX_LINE: l_party_id: '|| l_party_id, 1, 'Y');
1315: END IF;
1316:
1317: OPEN getpartyname (l_party_id);
1318: FETCH getpartyname INTO l_bill_to_customer_name;
1317: OPEN getpartyname (l_party_id);
1318: FETCH getpartyname INTO l_bill_to_customer_name;
1319: CLOSE getpartyname;
1320:
1321: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1322: aso_debug_pub.add('ASO_TAX_LINE: l_bill_to_customer_name: '|| l_bill_to_customer_name, 1, 'Y');
1323: END IF;
1324:
1325: END IF;
1318: FETCH getpartyname INTO l_bill_to_customer_name;
1319: CLOSE getpartyname;
1320:
1321: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1322: aso_debug_pub.add('ASO_TAX_LINE: l_bill_to_customer_name: '|| l_bill_to_customer_name, 1, 'Y');
1323: END IF;
1324:
1325: END IF;
1326: CLOSE getlocinfo;
1324:
1325: END IF;
1326: CLOSE getlocinfo;
1327:
1328: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1329:
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1326: CLOSE getlocinfo;
1327:
1328: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1329:
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1327:
1328: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1329:
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1328: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1329:
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1329:
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1330: aso_debug_pub.add('ASO_TAX_LINE: Inside l_site_use_id_bill IF Cond: After fetching getlocinfo cursor.', 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1331: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_SITE_USE_ID: '|| L_BILL_TO_SITE_USE_ID, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1332: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_ADDRESS_ID: '|| L_BILL_TO_ADDRESS_ID, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1333: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_ID: '|| L_BILL_TO_CUSTOMER_ID, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1334: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: '|| L_BILL_TO_POSTAL_CODE, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1342: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_HEADER_LEVEL_FLAG: '|| L_BILL_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1335: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: '|| L_BILL_TO_LOCATION_CCID, 1, 'Y');
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1342: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_HEADER_LEVEL_FLAG: '|| L_BILL_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1343:
1336: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NAME: '|| L_BILL_TO_CUSTOMER_NAME, 1, 'Y');
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1342: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_HEADER_LEVEL_FLAG: '|| L_BILL_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1343:
1344: END IF;
1337: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_CUSTOMER_NUMBER: '|| L_BILL_TO_CUSTOMER_NUMBER, 1, 'Y');
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1342: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_HEADER_LEVEL_FLAG: '|| L_BILL_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1343:
1344: END IF;
1345:
1338: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_HEADER_LEVEL_FLAG: '|| L_BC_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1339: aso_debug_pub.add('ASO_TAX_LINE: L_BC_TAX_ROUNDING_RULE: '|| L_BC_TAX_ROUNDING_RULE, 1, 'Y');
1340: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_STATE: '|| L_BILL_TO_STATE, 1, 'Y');
1341: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_ROUNDING_RULE: '|| L_BILL_TAX_ROUNDING_RULE, 1, 'Y');
1342: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TAX_HEADER_LEVEL_FLAG: '|| L_BILL_TAX_HEADER_LEVEL_FLAG, 1, 'Y');
1343:
1344: END IF;
1345:
1346: END IF; -- l_site_use_id_bill
1348: IF (l_site_use_id_ship is null OR l_site_use_id_ship = FND_API.G_MISS_NUM) AND
1349: (l_site_use_id_bill is null OR l_site_use_id_bill = FND_API.G_MISS_NUM) THEN
1350:
1351: -- Ship to party_site information
1352: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1353: aso_debug_pub.add('ASO_TAX_LINE: Before call to ASO_SHIPMENT_PVT.Get_ship_to_party_site_id', 1, 'Y');
1354: END IF;
1355:
1356: l_party_site_id_ship := ASO_SHIPMENT_PVT.Get_ship_to_party_site_id(l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id, l_shipment_rec.shipment_id);
1349: (l_site_use_id_bill is null OR l_site_use_id_bill = FND_API.G_MISS_NUM) THEN
1350:
1351: -- Ship to party_site information
1352: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1353: aso_debug_pub.add('ASO_TAX_LINE: Before call to ASO_SHIPMENT_PVT.Get_ship_to_party_site_id', 1, 'Y');
1354: END IF;
1355:
1356: l_party_site_id_ship := ASO_SHIPMENT_PVT.Get_ship_to_party_site_id(l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id, l_shipment_rec.shipment_id);
1357:
1354: END IF;
1355:
1356: l_party_site_id_ship := ASO_SHIPMENT_PVT.Get_ship_to_party_site_id(l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id, l_shipment_rec.shipment_id);
1357:
1358: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1359: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_ship_to_party_site_id: l_party_site_id_ship: '|| l_party_site_id_ship, 1, 'Y');
1360: END IF;
1361:
1362: IF l_party_site_id_ship IS NOT NULL AND l_party_site_id_ship <> FND_API.G_MISS_NUM THEN
1355:
1356: l_party_site_id_ship := ASO_SHIPMENT_PVT.Get_ship_to_party_site_id(l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id, l_shipment_rec.shipment_id);
1357:
1358: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1359: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_ship_to_party_site_id: l_party_site_id_ship: '|| l_party_site_id_ship, 1, 'Y');
1360: END IF;
1361:
1362: IF l_party_site_id_ship IS NOT NULL AND l_party_site_id_ship <> FND_API.G_MISS_NUM THEN
1363:
1362: IF l_party_site_id_ship IS NOT NULL AND l_party_site_id_ship <> FND_API.G_MISS_NUM THEN
1363:
1364: l_party_site_id := l_party_site_id_ship;
1365:
1366: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1367: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: l_party_site_id: '|| l_party_site_id, 1, 'Y');
1368: END IF;
1369:
1370: OPEN getpartyinfo;
1363:
1364: l_party_site_id := l_party_site_id_ship;
1365:
1366: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1367: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: l_party_site_id: '|| l_party_site_id, 1, 'Y');
1368: END IF;
1369:
1370: OPEN getpartyinfo;
1371: FETCH getpartyinfo INTO l_ship_to_postal_code, l_ship_to_location_ccid,l_ship_loc_asgn_id;
1375: L_SHIP_LOC_ASGN_ID := NULL;
1376: END IF;
1377: CLOSE getpartyinfo;
1378:
1379: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1380:
1381: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1382: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: ' || L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1383: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: ' || L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1377: CLOSE getpartyinfo;
1378:
1379: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1380:
1381: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1382: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: ' || L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1383: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: ' || L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1384: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_LOC_ASGN_ID: ' || L_SHIP_LOC_ASGN_ID, 1, 'Y');
1385:
1378:
1379: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1380:
1381: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1382: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: ' || L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1383: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: ' || L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1384: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_LOC_ASGN_ID: ' || L_SHIP_LOC_ASGN_ID, 1, 'Y');
1385:
1386: END IF;
1379: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1380:
1381: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1382: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: ' || L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1383: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: ' || L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1384: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_LOC_ASGN_ID: ' || L_SHIP_LOC_ASGN_ID, 1, 'Y');
1385:
1386: END IF;
1387:
1380:
1381: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_ship IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1382: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_POSTAL_CODE: ' || L_SHIP_TO_POSTAL_CODE, 1, 'Y');
1383: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_TO_LOCATION_CCID: ' || L_SHIP_TO_LOCATION_CCID, 1, 'Y');
1384: aso_debug_pub.add('ASO_TAX_LINE: L_SHIP_LOC_ASGN_ID: ' || L_SHIP_LOC_ASGN_ID, 1, 'Y');
1385:
1386: END IF;
1387:
1388: END IF; --l_party_site_id_ship
1387:
1388: END IF; --l_party_site_id_ship
1389:
1390: -- Bill to party_site information
1391: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1392: aso_debug_pub.add('ASO_TAX_LINE: Before call to ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id', 1,'Y');
1393: END IF;
1394:
1395: l_party_site_id_bill := ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id( l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id);
1388: END IF; --l_party_site_id_ship
1389:
1390: -- Bill to party_site information
1391: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1392: aso_debug_pub.add('ASO_TAX_LINE: Before call to ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id', 1,'Y');
1393: END IF;
1394:
1395: l_party_site_id_bill := ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id( l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id);
1396:
1393: END IF;
1394:
1395: l_party_site_id_bill := ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id( l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id);
1396:
1397: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1398: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_invoice_to_party_site_id: l_party_site_id_bill: '|| l_party_site_id_bill,1,'Y');
1399: END IF;
1400:
1401: IF l_party_site_id_bill IS NOT NULL AND l_party_site_id_bill <> FND_API.G_MISS_NUM THEN
1394:
1395: l_party_site_id_bill := ASO_SHIPMENT_PVT.Get_invoice_to_party_site_id( l_shipment_rec.quote_header_id, l_shipment_rec.quote_line_id);
1396:
1397: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1398: aso_debug_pub.add('ASO_TAX_LINE: After call to Get_invoice_to_party_site_id: l_party_site_id_bill: '|| l_party_site_id_bill,1,'Y');
1399: END IF;
1400:
1401: IF l_party_site_id_bill IS NOT NULL AND l_party_site_id_bill <> FND_API.G_MISS_NUM THEN
1402:
1401: IF l_party_site_id_bill IS NOT NULL AND l_party_site_id_bill <> FND_API.G_MISS_NUM THEN
1402:
1403: l_party_site_id := l_party_site_id_bill;
1404:
1405: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1406: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: l_party_site_id: '|| l_party_site_id,1,'Y');
1407: END IF;
1408:
1409: OPEN getpartyinfo;
1402:
1403: l_party_site_id := l_party_site_id_bill;
1404:
1405: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1406: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: l_party_site_id: '|| l_party_site_id,1,'Y');
1407: END IF;
1408:
1409: OPEN getpartyinfo;
1410: FETCH getpartyinfo INTO l_bill_to_postal_code, l_bill_to_location_ccid,l_bill_loc_asgn_id;
1418: END IF;
1419:
1420: CLOSE getpartyinfo;
1421:
1422: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1423:
1424: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1425: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: ' || L_BILL_TO_POSTAL_CODE, 1, 'Y');
1426: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: ' || L_BILL_TO_LOCATION_CCID, 1, 'Y');
1420: CLOSE getpartyinfo;
1421:
1422: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1423:
1424: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1425: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: ' || L_BILL_TO_POSTAL_CODE, 1, 'Y');
1426: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: ' || L_BILL_TO_LOCATION_CCID, 1, 'Y');
1427: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_LOC_ASGN_ID: ' || L_BILL_LOC_ASGN_ID, 1, 'Y');
1428:
1421:
1422: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1423:
1424: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1425: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: ' || L_BILL_TO_POSTAL_CODE, 1, 'Y');
1426: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: ' || L_BILL_TO_LOCATION_CCID, 1, 'Y');
1427: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_LOC_ASGN_ID: ' || L_BILL_LOC_ASGN_ID, 1, 'Y');
1428:
1429: END IF;
1422: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1423:
1424: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1425: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: ' || L_BILL_TO_POSTAL_CODE, 1, 'Y');
1426: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: ' || L_BILL_TO_LOCATION_CCID, 1, 'Y');
1427: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_LOC_ASGN_ID: ' || L_BILL_LOC_ASGN_ID, 1, 'Y');
1428:
1429: END IF;
1430:
1423:
1424: aso_debug_pub.add('ASO_TAX_LINE: Inside l_party_site_id_bill IF Cond: After fetching getpartyinfo cursor.', 1, 'Y');
1425: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_POSTAL_CODE: ' || L_BILL_TO_POSTAL_CODE, 1, 'Y');
1426: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_TO_LOCATION_CCID: ' || L_BILL_TO_LOCATION_CCID, 1, 'Y');
1427: aso_debug_pub.add('ASO_TAX_LINE: L_BILL_LOC_ASGN_ID: ' || L_BILL_LOC_ASGN_ID, 1, 'Y');
1428:
1429: END IF;
1430:
1431: END IF;--l_party_site_id
1453: l_tax_rounding_rule := nvl(l_tax_rounding_rule, 'NEAREST' );
1454:
1455: END IF;
1456:
1457: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1458: aso_debug_pub.add('ASO_TAX_LINE: l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
1459: aso_debug_pub.add('ASO_TAX_LINE: l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
1460: END IF;
1461:
1454:
1455: END IF;
1456:
1457: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1458: aso_debug_pub.add('ASO_TAX_LINE: l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
1459: aso_debug_pub.add('ASO_TAX_LINE: l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
1460: END IF;
1461:
1462:
1455: END IF;
1456:
1457: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1458: aso_debug_pub.add('ASO_TAX_LINE: l_tax_header_level_flag: '|| l_tax_header_level_flag, 1, 'Y');
1459: aso_debug_pub.add('ASO_TAX_LINE: l_tax_rounding_rule: '|| l_tax_rounding_rule, 1, 'Y');
1460: END IF;
1461:
1462:
1463: IF l_tax_method = 'VERTEX' then
1463: IF l_tax_method = 'VERTEX' then
1464:
1465: Begin
1466:
1467: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1468: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Inside IF cond l_tax_method = VERTEX ', 1, 'Y');
1469: END IF;
1470:
1471: L_POO_ADDRESS_CODE := ARP_TAX_VIEW_VERTEX.POO_ADDRESS_CODE('ASO_TAX_LINES_SUMMARY_V_V',
1464:
1465: Begin
1466:
1467: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1468: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Inside IF cond l_tax_method = VERTEX ', 1, 'Y');
1469: END IF;
1470:
1471: L_POO_ADDRESS_CODE := ARP_TAX_VIEW_VERTEX.POO_ADDRESS_CODE('ASO_TAX_LINES_SUMMARY_V_V',
1472: P_QTE_HEADER_ID, L_SHIPMENT_REC.SHIPMENT_ID);
1510:
1511: L_NUMERIC_ATTRIBUTE2 := ARP_TAX_VIEW_VERTEX.STATE_TYPE ('ASO_TAX_LINES_SUMMARY_V_V',
1512: P_QTE_HEADER_ID,L_SHIPMENT_REC.SHIPMENT_ID);
1513:
1514: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1515:
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1512: P_QTE_HEADER_ID,L_SHIPMENT_REC.SHIPMENT_ID);
1513:
1514: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1515:
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1513:
1514: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1515:
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1514: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1515:
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1515:
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1516: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1517: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1518: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1519: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1527: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1520: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1527: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1528:
1521: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1527: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1528:
1529: END IF;
1522: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1527: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1528:
1529: END IF;
1530:
1523: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1524: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_DIVISION_CODE'||L_DIVISION_CODE, 1, 'Y');
1525: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_COMPANY_CODE'||L_COMPANY_CODE, 1, 'Y');
1526: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1527: aso_debug_pub.add('ASO_TAX_LINE: Inside vertex: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1528:
1529: END IF;
1530:
1531: End; -- VERTEX
1533: ELSIF l_tax_method = 'TAXWARE' then
1534:
1535: Begin
1536:
1537: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1538: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Inside IF cond l_tax_method = TAXWARE ', 1, 'Y');
1539: END IF;
1540:
1541: L_POO_ADDRESS_CODE := ARP_TAX_VIEW_TAXWARE.POO_ADDRESS_CODE('ASO_TAX_LINES_SUMMARY_V_A',
1534:
1535: Begin
1536:
1537: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1538: aso_debug_pub.add('ASO_TAX_INT: ASO_TAX_LINE: Inside IF cond l_tax_method = TAXWARE ', 1, 'Y');
1539: END IF;
1540:
1541: L_POO_ADDRESS_CODE := ARP_TAX_VIEW_TAXWARE.POO_ADDRESS_CODE('ASO_TAX_LINES_SUMMARY_V_A',
1542: P_QTE_HEADER_ID,L_SHIPMENT_REC.SHIPMENT_ID,L_SALESREP_ID);
1584:
1585: l_company_code := arp_tax_view_taxware.company_code('ASO_TAX_LINES_SUMMARY_V_A',
1586: p_qte_header_id, l_shipment_rec.shipment_id);
1587:
1588: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1589:
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1586: p_qte_header_id, l_shipment_rec.shipment_id);
1587:
1588: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1589:
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1587:
1588: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1589:
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1588: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1589:
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1589:
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1590: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POO_ADDRESS_CODE'||L_POO_ADDRESS_CODE, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1591: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_POA_ADDRESS_CODE'||L_POA_ADDRESS_CODE, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1592: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_FROM_ADDRESS_CODE'||L_SHIP_FROM_ADDRESS_CODE, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1593: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_SHIP_TO_ADDRESS_CODE'||L_SHIP_TO_ADDRESS_CODE, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1601: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE4'||L_NUMERIC_ATTRIBUTE4, 1, 'Y');
1594: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_PART_NUMBER'||L_PART_NUMBER, 1, 'Y');
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1601: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE4'||L_NUMERIC_ATTRIBUTE4, 1, 'Y');
1602:
1595: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_VENDOR_CONTROL_EXEMPTIONS'||L_VENDOR_CONTROL_EXEMPTIONS, 1, 'Y');
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1601: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE4'||L_NUMERIC_ATTRIBUTE4, 1, 'Y');
1602:
1603: END IF;
1596: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE1'||L_ATTRIBUTE1, 1, 'Y');
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1601: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE4'||L_NUMERIC_ATTRIBUTE4, 1, 'Y');
1602:
1603: END IF;
1604:
1597: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_ATTRIBUTE2'||L_ATTRIBUTE2, 1, 'Y');
1598: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE1'||L_NUMERIC_ATTRIBUTE1, 1, 'Y');
1599: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE2'||L_NUMERIC_ATTRIBUTE2, 1, 'Y');
1600: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE3'||L_NUMERIC_ATTRIBUTE3, 1, 'Y');
1601: aso_debug_pub.add('ASO_TAX_LINE: Inside TAXWARE: L_NUMERIC_ATTRIBUTE4'||L_NUMERIC_ATTRIBUTE4, 1, 'Y');
1602:
1603: END IF;
1604:
1605: End; -- TAXWARE
1713: ELSE -- LATIN
1714:
1715: Begin
1716:
1717: if aso_debug_pub.g_debug_flag = 'Y' then
1718: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1719: end if;
1720:
1721: select oe.transaction_type_id
1714:
1715: Begin
1716:
1717: if aso_debug_pub.g_debug_flag = 'Y' then
1718: aso_debug_pub.add('ASO_TAX_LINE: l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1719: end if;
1720:
1721: select oe.transaction_type_id
1722: into l_om_trx_type_id
1743: EXCEPTION
1744:
1745: WHEN NO_DATA_FOUND THEN
1746:
1747: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1748: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND when selecting transaction_type_id', 1, 'Y');
1749: END IF;
1750:
1751: l_reason := 'No Data Found Exception when selecting transaction_type_id from ';
1744:
1745: WHEN NO_DATA_FOUND THEN
1746:
1747: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1748: aso_debug_pub.add('ASO_TAX_LINE: NO_DATA_FOUND when selecting transaction_type_id', 1, 'Y');
1749: END IF;
1750:
1751: l_reason := 'No Data Found Exception when selecting transaction_type_id from ';
1752: l_reason := l_reason || 'ra_cust_trx_types_all and oe_transaction_types_vl';
1759:
1760: aso_quote_misc_pvt.debug_tax_info_notification(l_qte_header_rec,
1761: l_shipment_rec, l_reason);
1762:
1763: if aso_debug_pub.g_debug_flag = 'Y' then
1764: aso_debug_pub.add('ASO_TAX_LINE: Before deleting all tax records for the quote line', 1, 'Y');
1765: end if;
1766:
1767: if l_tax_detail_tbl.count > 0 then
1760: aso_quote_misc_pvt.debug_tax_info_notification(l_qte_header_rec,
1761: l_shipment_rec, l_reason);
1762:
1763: if aso_debug_pub.g_debug_flag = 'Y' then
1764: aso_debug_pub.add('ASO_TAX_LINE: Before deleting all tax records for the quote line', 1, 'Y');
1765: end if;
1766:
1767: if l_tax_detail_tbl.count > 0 then
1768:
1771: and quote_line_id = l_tax_detail_tbl(1).quote_line_id ;
1772:
1773: end if;
1774:
1775: if aso_debug_pub.g_debug_flag = 'Y' then
1776: aso_debug_pub.add('ASO_TAX_LINE: After deleting all tax records for the quote line', 1, 'Y');
1777: end if;
1778:
1779: End;
1772:
1773: end if;
1774:
1775: if aso_debug_pub.g_debug_flag = 'Y' then
1776: aso_debug_pub.add('ASO_TAX_LINE: After deleting all tax records for the quote line', 1, 'Y');
1777: end if;
1778:
1779: End;
1780:
1785: l_qte_line_tbl(i).organization_id );
1786: fetch c_global_attributes into l_fiscal_classification, l_transaction_cond_class;
1787: close c_global_attributes;
1788:
1789: if aso_debug_pub.g_debug_flag = 'Y' then
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1786: fetch c_global_attributes into l_fiscal_classification, l_transaction_cond_class;
1787: close c_global_attributes;
1788:
1789: if aso_debug_pub.g_debug_flag = 'Y' then
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1787: close c_global_attributes;
1788:
1789: if aso_debug_pub.g_debug_flag = 'Y' then
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1788:
1789: if aso_debug_pub.g_debug_flag = 'Y' then
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1789: if aso_debug_pub.g_debug_flag = 'Y' then
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1790: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1791: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1792: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1800: aso_debug_pub.add('ASO_TAX_LINE: Before call to get_crm_default_tax_code', 1, 'Y');
1793: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1800: aso_debug_pub.add('ASO_TAX_LINE: Before call to get_crm_default_tax_code', 1, 'Y');
1801: end if;
1794: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1800: aso_debug_pub.add('ASO_TAX_LINE: Before call to get_crm_default_tax_code', 1, 'Y');
1801: end if;
1802:
1795: aso_debug_pub.add('organization_id: '|| l_qte_line_tbl(i).organization_id, 1, 'Y');
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1800: aso_debug_pub.add('ASO_TAX_LINE: Before call to get_crm_default_tax_code', 1, 'Y');
1801: end if;
1802:
1803: arp_tax_crm_integration_pkg.get_crm_default_tax_code(
1796: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1797: aso_debug_pub.add('l_set_of_books_id: '|| l_set_of_books_id, 1, 'Y');
1798: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1799: aso_debug_pub.add('l_trx_type_id: '|| l_trx_type_id, 1, 'Y');
1800: aso_debug_pub.add('ASO_TAX_LINE: Before call to get_crm_default_tax_code', 1, 'Y');
1801: end if;
1802:
1803: arp_tax_crm_integration_pkg.get_crm_default_tax_code(
1804: p_ship_to_site_use_id => l_site_use_id_ship,
1813: p_vat_tax_id => l_vat_tax_id,
1814: p_amt_incl_tax_flag => l_amt_incl_tax_flag,
1815: p_amt_incl_tax_override => l_amt_incl_tax_override );
1816:
1817: if aso_debug_pub.g_debug_flag = 'Y' then
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1814: p_amt_incl_tax_flag => l_amt_incl_tax_flag,
1815: p_amt_incl_tax_override => l_amt_incl_tax_override );
1816:
1817: if aso_debug_pub.g_debug_flag = 'Y' then
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1822: aso_debug_pub.add('l_amt_incl_tax_override: '|| l_amt_incl_tax_override, 1, 'Y');
1815: p_amt_incl_tax_override => l_amt_incl_tax_override );
1816:
1817: if aso_debug_pub.g_debug_flag = 'Y' then
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1822: aso_debug_pub.add('l_amt_incl_tax_override: '|| l_amt_incl_tax_override, 1, 'Y');
1823: end if;
1816:
1817: if aso_debug_pub.g_debug_flag = 'Y' then
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1822: aso_debug_pub.add('l_amt_incl_tax_override: '|| l_amt_incl_tax_override, 1, 'Y');
1823: end if;
1824:
1817: if aso_debug_pub.g_debug_flag = 'Y' then
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1822: aso_debug_pub.add('l_amt_incl_tax_override: '|| l_amt_incl_tax_override, 1, 'Y');
1823: end if;
1824:
1825:
1818: aso_debug_pub.add('ASO_TAX_LINE: After call to get_crm_default_tax_code', 1, 'Y');
1819: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1820: aso_debug_pub.add('l_vat_tax_id: '|| l_vat_tax_id, 1, 'Y');
1821: aso_debug_pub.add('l_amt_incl_tax_flag: '|| l_amt_incl_tax_flag, 1, 'Y');
1822: aso_debug_pub.add('l_amt_incl_tax_override: '|| l_amt_incl_tax_override, 1, 'Y');
1823: end if;
1824:
1825:
1826: EXCEPTION
1826: EXCEPTION
1827:
1828: when others then
1829:
1830: if aso_debug_pub.g_debug_flag = 'Y' then
1831: aso_debug_pub.add('ASO_TAX_LINE: Exception in call to get_crm_default_tax_code', 1, 'Y');
1832: end if;
1833:
1834:
1827:
1828: when others then
1829:
1830: if aso_debug_pub.g_debug_flag = 'Y' then
1831: aso_debug_pub.add('ASO_TAX_LINE: Exception in call to get_crm_default_tax_code', 1, 'Y');
1832: end if;
1833:
1834:
1835: End;
1836:
1837:
1838: Begin
1839:
1840: if aso_debug_pub.g_debug_flag = 'Y' then
1841:
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1838: Begin
1839:
1840: if aso_debug_pub.g_debug_flag = 'Y' then
1841:
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1839:
1840: if aso_debug_pub.g_debug_flag = 'Y' then
1841:
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1840: if aso_debug_pub.g_debug_flag = 'Y' then
1841:
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1841:
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1842: aso_debug_pub.add('ASO_TAX_LINE: Before call to populate_om_ar_tax_struct', 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1843: aso_debug_pub.add('p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1844: aso_debug_pub.add('l_currency_code: '|| l_currency_code, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1845: aso_debug_pub.add('l_shipment_rec.fob_code: '|| l_shipment_rec.fob_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1846: aso_debug_pub.add('l_fiscal_classification: '|| l_fiscal_classification, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1847: aso_debug_pub.add('l_site_use_id_bill: '|| l_site_use_id_bill, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1848: aso_debug_pub.add('l_om_trx_type_id: '|| l_om_trx_type_id, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1849: aso_debug_pub.add('l_payment_term_id: '|| l_payment_term_id, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1850: aso_debug_pub.add('l_transaction_cond_class: '|| l_transaction_cond_class, 1, 'Y');
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1851: aso_debug_pub.add('l_ship_from_org_id: '|| l_ship_from_org_id, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1852: aso_debug_pub.add('l_site_use_id_ship: '|| l_site_use_id_ship, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1853: aso_debug_pub.add('l_tax_code: '|| l_tax_code, 1, 'Y');
1854: aso_debug_pub.add('l_hdr_tax_date: '|| l_hdr_tax_date, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1855: aso_debug_pub.add('l_hdr_tax_exempt_flag: '|| l_hdr_tax_exempt_flag, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1856: aso_debug_pub.add('l_hdr_tax_exempt_number: '|| l_hdr_tax_exempt_number, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1864: aso_debug_pub.add('line_quote_price: '|| l_qte_line_tbl(i).line_quote_price, 1, 'Y');
1857: aso_debug_pub.add('l_hdr_tax_exempt_reason_code: '|| l_hdr_tax_exempt_reason_code, 1, 'Y');
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1864: aso_debug_pub.add('line_quote_price: '|| l_qte_line_tbl(i).line_quote_price, 1, 'Y');
1865:
1858:
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1864: aso_debug_pub.add('line_quote_price: '|| l_qte_line_tbl(i).line_quote_price, 1, 'Y');
1865:
1866: end if;
1859: aso_debug_pub.add('exchange_rate: '|| l_qte_header_rec.exchange_rate, 1, 'Y');
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1864: aso_debug_pub.add('line_quote_price: '|| l_qte_line_tbl(i).line_quote_price, 1, 'Y');
1865:
1866: end if;
1867: -- JL_ZZ_TAX_INTEGRATION_PKG.populate_om_ar_tax_struct(
1860: aso_debug_pub.add('quote_line_id: '|| l_qte_line_tbl(i).quote_line_id, 1, 'Y');
1861: aso_debug_pub.add('inventory_item_id: '|| l_qte_line_tbl(i).inventory_item_id, 1, 'Y');
1862: aso_debug_pub.add('invoicing_rule_id: '|| l_qte_line_tbl(i).invoicing_rule_id, 1, 'Y');
1863: aso_debug_pub.add('quantity: '|| l_qte_line_tbl(i).quantity, 1, 'Y');
1864: aso_debug_pub.add('line_quote_price: '|| l_qte_line_tbl(i).line_quote_price, 1, 'Y');
1865:
1866: end if;
1867: -- JL_ZZ_TAX_INTEGRATION_PKG.populate_om_ar_tax_struct(
1868: -- p_conversion_rate => l_qte_header_rec.exchange_rate,
1886: -- p_tax_exempt_number => l_hdr_tax_exempt_number,
1887: -- p_tax_exempt_reason => l_hdr_tax_exempt_reason_code,
1888: -- p_unit_selling_price => l_qte_line_tbl(i).line_quote_price );
1889:
1890: if aso_debug_pub.g_debug_flag = 'Y' then
1891: aso_debug_pub.add('ASO_TAX_LINE: After call to populate_om_ar_tax_struct', 1, 'Y');
1892: end if;
1893:
1894: EXCEPTION
1887: -- p_tax_exempt_reason => l_hdr_tax_exempt_reason_code,
1888: -- p_unit_selling_price => l_qte_line_tbl(i).line_quote_price );
1889:
1890: if aso_debug_pub.g_debug_flag = 'Y' then
1891: aso_debug_pub.add('ASO_TAX_LINE: After call to populate_om_ar_tax_struct', 1, 'Y');
1892: end if;
1893:
1894: EXCEPTION
1895:
1894: EXCEPTION
1895:
1896: when others then
1897:
1898: if aso_debug_pub.g_debug_flag = 'Y' then
1899: aso_debug_pub.add('ASO_TAX_LINE: Exception in call to populate_om_ar_tax_struct', 1, 'Y');
1900: end if;
1901:
1902:
1895:
1896: when others then
1897:
1898: if aso_debug_pub.g_debug_flag = 'Y' then
1899: aso_debug_pub.add('ASO_TAX_LINE: Exception in call to populate_om_ar_tax_struct', 1, 'Y');
1900: end if;
1901:
1902:
1903: End;
1903: End;
1904:
1905: END IF; --tax_method <> 'LATIN'
1906:
1907: if aso_debug_pub.g_debug_flag = 'Y' then
1908: aso_debug_pub.add('ASO_TAX_LINE: Before call to print_tax_info_rec', 1, 'Y');
1909: end if;
1910:
1911: print_tax_info_rec(p_debug_level => 5);
1904:
1905: END IF; --tax_method <> 'LATIN'
1906:
1907: if aso_debug_pub.g_debug_flag = 'Y' then
1908: aso_debug_pub.add('ASO_TAX_LINE: Before call to print_tax_info_rec', 1, 'Y');
1909: end if;
1910:
1911: print_tax_info_rec(p_debug_level => 5);
1912:
1909: end if;
1910:
1911: print_tax_info_rec(p_debug_level => 5);
1912:
1913: if aso_debug_pub.g_debug_flag = 'Y' then
1914: aso_debug_pub.add('ASO_TAX_LINE: After call to print_tax_info_rec', 1, 'Y');
1915: end if;
1916:
1917:
1910:
1911: print_tax_info_rec(p_debug_level => 5);
1912:
1913: if aso_debug_pub.g_debug_flag = 'Y' then
1914: aso_debug_pub.add('ASO_TAX_LINE: After call to print_tax_info_rec', 1, 'Y');
1915: end if;
1916:
1917:
1918: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1914: aso_debug_pub.add('ASO_TAX_LINE: After call to print_tax_info_rec', 1, 'Y');
1915: end if;
1916:
1917:
1918: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1919: aso_debug_pub.add('arp_tax.tax_info_rec.trx_type_id: '|| arp_tax.tax_info_rec.trx_type_id, 1, 'Y');
1920: END IF;
1921:
1922:
1915: end if;
1916:
1917:
1918: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1919: aso_debug_pub.add('arp_tax.tax_info_rec.trx_type_id: '|| arp_tax.tax_info_rec.trx_type_id, 1, 'Y');
1920: END IF;
1921:
1922:
1923: IF arp_tax.tax_info_rec.trx_type_id is not null THEN
1925: Begin
1926:
1927: l_tax_start_time := dbms_utility.get_time;
1928:
1929: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1930: aso_debug_pub.add('ASO_TAX_LINE: Before call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1931: aso_debug_pub.add('ASO_TAX_LINE: l_tax_start_time: '|| l_tax_start_time, 1, 'Y');
1932: END IF;
1933:
1926:
1927: l_tax_start_time := dbms_utility.get_time;
1928:
1929: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1930: aso_debug_pub.add('ASO_TAX_LINE: Before call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1931: aso_debug_pub.add('ASO_TAX_LINE: l_tax_start_time: '|| l_tax_start_time, 1, 'Y');
1932: END IF;
1933:
1934: arp_tax_crm_integration_pkg.summary( p_set_of_books_id => l_set_of_books_id,
1927: l_tax_start_time := dbms_utility.get_time;
1928:
1929: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1930: aso_debug_pub.add('ASO_TAX_LINE: Before call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1931: aso_debug_pub.add('ASO_TAX_LINE: l_tax_start_time: '|| l_tax_start_time, 1, 'Y');
1932: END IF;
1933:
1934: arp_tax_crm_integration_pkg.summary( p_set_of_books_id => l_set_of_books_id,
1935: x_crm_tax_out_tbl => x_tax_out_tbl,
1937:
1938: l_tax_end_time := dbms_utility.get_time;
1939: l_tax_total_time := l_tax_total_time + (l_tax_end_time - l_tax_start_time);
1940:
1941: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1942: aso_debug_pub.add('ASO_TAX_LINE: After call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1943: aso_debug_pub.add('ASO_TAX_LINE: l_tax_end_time: '|| l_tax_end_time, 1, 'Y');
1944: aso_debug_pub.add('ASO_TAX_LINE: l_tax_total_time: '|| l_tax_total_time, 1, 'Y');
1945: END IF;
1938: l_tax_end_time := dbms_utility.get_time;
1939: l_tax_total_time := l_tax_total_time + (l_tax_end_time - l_tax_start_time);
1940:
1941: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1942: aso_debug_pub.add('ASO_TAX_LINE: After call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1943: aso_debug_pub.add('ASO_TAX_LINE: l_tax_end_time: '|| l_tax_end_time, 1, 'Y');
1944: aso_debug_pub.add('ASO_TAX_LINE: l_tax_total_time: '|| l_tax_total_time, 1, 'Y');
1945: END IF;
1946:
1939: l_tax_total_time := l_tax_total_time + (l_tax_end_time - l_tax_start_time);
1940:
1941: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1942: aso_debug_pub.add('ASO_TAX_LINE: After call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1943: aso_debug_pub.add('ASO_TAX_LINE: l_tax_end_time: '|| l_tax_end_time, 1, 'Y');
1944: aso_debug_pub.add('ASO_TAX_LINE: l_tax_total_time: '|| l_tax_total_time, 1, 'Y');
1945: END IF;
1946:
1947:
1940:
1941: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1942: aso_debug_pub.add('ASO_TAX_LINE: After call to arp_tax_crm_integration_pkg.summary', 1, 'Y');
1943: aso_debug_pub.add('ASO_TAX_LINE: l_tax_end_time: '|| l_tax_end_time, 1, 'Y');
1944: aso_debug_pub.add('ASO_TAX_LINE: l_tax_total_time: '|| l_tax_total_time, 1, 'Y');
1945: END IF;
1946:
1947:
1948: EXCEPTION
1948: EXCEPTION
1949:
1950: WHEN OTHERS THEN
1951:
1952: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1953:
1954: aso_debug_pub.add('ASO_TAX_LINE: Exception raised after call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1955: aso_debug_pub.add('After call to ARP_TAX_CRM_INTEGRATION_PKG.summary: x_tax_out_tbl.count: '||x_tax_out_tbl.count, 1, 'Y');
1956:
1950: WHEN OTHERS THEN
1951:
1952: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1953:
1954: aso_debug_pub.add('ASO_TAX_LINE: Exception raised after call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1955: aso_debug_pub.add('After call to ARP_TAX_CRM_INTEGRATION_PKG.summary: x_tax_out_tbl.count: '||x_tax_out_tbl.count, 1, 'Y');
1956:
1957: END IF;
1958:
1951:
1952: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1953:
1954: aso_debug_pub.add('ASO_TAX_LINE: Exception raised after call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1955: aso_debug_pub.add('After call to ARP_TAX_CRM_INTEGRATION_PKG.summary: x_tax_out_tbl.count: '||x_tax_out_tbl.count, 1, 'Y');
1956:
1957: END IF;
1958:
1959: l_reason := 'Exception in call to tax engine arp_tax_crm_integration_pkg.summary';
1984: aso_quote_misc_pvt.debug_tax_info_notification( l_qte_header_rec,
1985: l_shipment_rec, l_reason);
1986: End;
1987:
1988: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1989:
1990: aso_debug_pub.add('ASO_TAX_LINE: After call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1991: aso_debug_pub.add('ASO_TAX_LINE: After call x_tax_out_tbl.count: '|| x_tax_out_tbl.count, 1, 'Y');
1992:
1986: End;
1987:
1988: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1989:
1990: aso_debug_pub.add('ASO_TAX_LINE: After call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1991: aso_debug_pub.add('ASO_TAX_LINE: After call x_tax_out_tbl.count: '|| x_tax_out_tbl.count, 1, 'Y');
1992:
1993: FOR i IN 1.. x_tax_out_tbl.count LOOP
1994:
1987:
1988: IF aso_debug_pub.g_debug_flag = 'Y' THEN
1989:
1990: aso_debug_pub.add('ASO_TAX_LINE: After call to ARP_TAX_CRM_INTEGRATION_PKG.summary', 1, 'Y');
1991: aso_debug_pub.add('ASO_TAX_LINE: After call x_tax_out_tbl.count: '|| x_tax_out_tbl.count, 1, 'Y');
1992:
1993: FOR i IN 1.. x_tax_out_tbl.count LOOP
1994:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1991: aso_debug_pub.add('ASO_TAX_LINE: After call x_tax_out_tbl.count: '|| x_tax_out_tbl.count, 1, 'Y');
1992:
1993: FOR i IN 1.. x_tax_out_tbl.count LOOP
1994:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
1992:
1993: FOR i IN 1.. x_tax_out_tbl.count LOOP
1994:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
1993: FOR i IN 1.. x_tax_out_tbl.count LOOP
1994:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
1994:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
2002:
1995: aso_debug_pub.add('******Out put from ARP_TAX_CRM_INTEGRATION_PKG.summary******');
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
2002:
2003: End Loop;
1996: aso_debug_pub.add('x_tax_out_tbl('||i||').vat_tax_id : '|| x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
2002:
2003: End Loop;
2004:
1997: aso_debug_pub.add('x_tax_out_tbl('||i||').extended_amount: '|| x_tax_out_tbl(i).extended_amount, 1, 'Y');
1998: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_rate: '|| x_tax_out_tbl(i).tax_rate, 1, 'Y');
1999: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_amount: '|| x_tax_out_tbl(i).tax_amount, 1, 'Y');
2000: aso_debug_pub.add('x_tax_out_tbl('||i||').tax_control: '|| x_tax_out_tbl(i).tax_control, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
2002:
2003: End Loop;
2004:
2005: aso_debug_pub.add('ASO_TAX_LINE: OUTput from ARP_TAX_CRM_INTEGRATION_PKG.summary: x_tax_value: ' || x_tax_value, 1, 'Y');
2001: aso_debug_pub.add('x_tax_out_tbl('||i||').amount_includes_tax_flag: '|| x_tax_out_tbl(i).amount_includes_tax_flag, 1, 'Y');
2002:
2003: End Loop;
2004:
2005: aso_debug_pub.add('ASO_TAX_LINE: OUTput from ARP_TAX_CRM_INTEGRATION_PKG.summary: x_tax_value: ' || x_tax_value, 1, 'Y');
2006:
2007: END IF;
2008:
2009: FOR i IN 1.. x_tax_out_tbl.count LOOP
2011: open c_tax_code(x_tax_out_tbl(i).vat_tax_id);
2012: fetch c_tax_code into l_tax_detail_tbl(1).tax_code;
2013: close c_tax_code;
2014:
2015: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2016:
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2013: close c_tax_code;
2014:
2015: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2016:
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2014:
2015: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2016:
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2015: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2016:
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2016:
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2024: aso_debug_pub.add('x_tax_out_tbl.xmpt_reason: '||x_tax_out_tbl(i).xmpt_reason, 1, 'Y');
2017: aso_debug_pub.add('l_tax_detail_tbl(1).tax_code: '||l_tax_detail_tbl(1).tax_code, 1, 'Y');
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2024: aso_debug_pub.add('x_tax_out_tbl.xmpt_reason: '||x_tax_out_tbl(i).xmpt_reason, 1, 'Y');
2025:
2018: aso_debug_pub.add('x_tax_out_tbl.tax_rate: '||x_tax_out_tbl(i).tax_rate, 1, 'Y');
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2024: aso_debug_pub.add('x_tax_out_tbl.xmpt_reason: '||x_tax_out_tbl(i).xmpt_reason, 1, 'Y');
2025:
2026: END IF;
2019: aso_debug_pub.add('x_tax_out_tbl.tax_amount: '||x_tax_out_tbl(i).tax_amount, 1, 'Y');
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2024: aso_debug_pub.add('x_tax_out_tbl.xmpt_reason: '||x_tax_out_tbl(i).xmpt_reason, 1, 'Y');
2025:
2026: END IF;
2027:
2020: aso_debug_pub.add('x_tax_out_tbl.extended_amount: '||x_tax_out_tbl(i).extended_amount, 1, 'Y');
2021: aso_debug_pub.add('x_tax_out_tbl.vat_tax_id: '||x_tax_out_tbl(i).vat_tax_id, 1, 'Y');
2022: aso_debug_pub.add('x_tax_out_tbl.tax_control: '||x_tax_out_tbl(i).tax_control, 1, 'Y');
2023: aso_debug_pub.add('x_tax_out_tbl.xmpt_cert_no: '||x_tax_out_tbl(i).xmpt_cert_no, 1, 'Y');
2024: aso_debug_pub.add('x_tax_out_tbl.xmpt_reason: '||x_tax_out_tbl(i).xmpt_reason, 1, 'Y');
2025:
2026: END IF;
2027:
2028: l_tax_detail_tbl(1).tax_rate := x_tax_out_tbl(i).tax_rate;
2036: x_tax_detail_tbl(x_tax_detail_tbl.count+1) := l_tax_detail_tbl(1);
2037:
2038: END LOOP;
2039:
2040: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2041: aso_debug_pub.add('After populating: x_tax_detail_tbl.count: '|| x_tax_detail_tbl.count, 1, 'Y');
2042: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records Before First IF', 1, 'Y');
2043: END IF;
2044:
2037:
2038: END LOOP;
2039:
2040: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2041: aso_debug_pub.add('After populating: x_tax_detail_tbl.count: '|| x_tax_detail_tbl.count, 1, 'Y');
2042: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records Before First IF', 1, 'Y');
2043: END IF;
2044:
2045: IF p_tax_control_rec.update_db = 'Y' THEN
2038: END LOOP;
2039:
2040: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2041: aso_debug_pub.add('After populating: x_tax_detail_tbl.count: '|| x_tax_detail_tbl.count, 1, 'Y');
2042: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records Before First IF', 1, 'Y');
2043: END IF;
2044:
2045: IF p_tax_control_rec.update_db = 'Y' THEN
2046:
2043: END IF;
2044:
2045: IF p_tax_control_rec.update_db = 'Y' THEN
2046:
2047: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2048: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside first IF before 2nd IF', 1, 'Y');
2049: END IF;
2050:
2051: IF p_tax_control_rec.tax_level = 'SHIPPING' THEN
2044:
2045: IF p_tax_control_rec.update_db = 'Y' THEN
2046:
2047: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2048: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside first IF before 2nd IF', 1, 'Y');
2049: END IF;
2050:
2051: IF p_tax_control_rec.tax_level = 'SHIPPING' THEN
2052:
2049: END IF;
2050:
2051: IF p_tax_control_rec.tax_level = 'SHIPPING' THEN
2052:
2053: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2054: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside 2nd IF');
2055: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_shipment_id'||l_tax_detail_tbl(1).quote_shipment_id, 1, 'Y');
2056: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_line_id'||l_tax_detail_tbl(1).quote_line_id, 1, 'Y');
2057: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_header_id'||l_tax_detail_tbl(1).quote_header_id, 1, 'Y');
2050:
2051: IF p_tax_control_rec.tax_level = 'SHIPPING' THEN
2052:
2053: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2054: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside 2nd IF');
2055: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_shipment_id'||l_tax_detail_tbl(1).quote_shipment_id, 1, 'Y');
2056: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_line_id'||l_tax_detail_tbl(1).quote_line_id, 1, 'Y');
2057: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_header_id'||l_tax_detail_tbl(1).quote_header_id, 1, 'Y');
2058: END IF;
2051: IF p_tax_control_rec.tax_level = 'SHIPPING' THEN
2052:
2053: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2054: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside 2nd IF');
2055: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_shipment_id'||l_tax_detail_tbl(1).quote_shipment_id, 1, 'Y');
2056: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_line_id'||l_tax_detail_tbl(1).quote_line_id, 1, 'Y');
2057: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_header_id'||l_tax_detail_tbl(1).quote_header_id, 1, 'Y');
2058: END IF;
2059:
2052:
2053: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2054: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside 2nd IF');
2055: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_shipment_id'||l_tax_detail_tbl(1).quote_shipment_id, 1, 'Y');
2056: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_line_id'||l_tax_detail_tbl(1).quote_line_id, 1, 'Y');
2057: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_header_id'||l_tax_detail_tbl(1).quote_header_id, 1, 'Y');
2058: END IF;
2059:
2060: DELETE FROM aso_tax_details
2053: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2054: aso_debug_pub.add('ASO_TAX_LINE: Deleting tax records inside 2nd IF');
2055: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_shipment_id'||l_tax_detail_tbl(1).quote_shipment_id, 1, 'Y');
2056: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_line_id'||l_tax_detail_tbl(1).quote_line_id, 1, 'Y');
2057: aso_debug_pub.add('ASO_TAX_LINE: l_tax_detail_tbl(1).quote_header_id'||l_tax_detail_tbl(1).quote_header_id, 1, 'Y');
2058: END IF;
2059:
2060: DELETE FROM aso_tax_details
2061: WHERE quote_shipment_id = l_tax_detail_tbl(1).quote_shipment_id
2065: END IF;
2066:
2067: IF p_tax_control_rec.tax_level = 'HEADER' THEN
2068:
2069: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2070: aso_debug_pub.add('ASO_TAX_LINE: Deleting HEADER level tax records inside IF', 1, 'Y');
2071: END IF;
2072:
2073: DELETE FROM aso_tax_details
2066:
2067: IF p_tax_control_rec.tax_level = 'HEADER' THEN
2068:
2069: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2070: aso_debug_pub.add('ASO_TAX_LINE: Deleting HEADER level tax records inside IF', 1, 'Y');
2071: END IF;
2072:
2073: DELETE FROM aso_tax_details
2074: WHERE quote_header_id = l_qte_line_tbl(i).quote_header_id
2075: and quote_line_id = l_qte_line_tbl(i).quote_line_id;
2076:
2077: END IF;
2078:
2079: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2080: aso_debug_pub.add('Before calling aso_tax_details_pkg.insert_row in loop', 1, 'Y');
2081: aso_debug_pub.add('x_tax_detail_Tbl.count: ' || x_tax_detail_Tbl.count, 1, 'Y');
2082: END IF;
2083:
2076:
2077: END IF;
2078:
2079: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2080: aso_debug_pub.add('Before calling aso_tax_details_pkg.insert_row in loop', 1, 'Y');
2081: aso_debug_pub.add('x_tax_detail_Tbl.count: ' || x_tax_detail_Tbl.count, 1, 'Y');
2082: END IF;
2083:
2084: FOR i IN 1..x_tax_detail_Tbl.count LOOP
2077: END IF;
2078:
2079: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2080: aso_debug_pub.add('Before calling aso_tax_details_pkg.insert_row in loop', 1, 'Y');
2081: aso_debug_pub.add('x_tax_detail_Tbl.count: ' || x_tax_detail_Tbl.count, 1, 'Y');
2082: END IF;
2083:
2084: FOR i IN 1..x_tax_detail_Tbl.count LOOP
2085:
2084: FOR i IN 1..x_tax_detail_Tbl.count LOOP
2085:
2086: x_tax_detail_tbl(i).tax_detail_id := null;
2087:
2088: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2085:
2086: x_tax_detail_tbl(i).tax_detail_id := null;
2087:
2088: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2093: aso_debug_pub.add('tax_amount: ' || x_tax_detail_tbl(i).tax_amount, 1, 'Y');
2086: x_tax_detail_tbl(i).tax_detail_id := null;
2087:
2088: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2093: aso_debug_pub.add('tax_amount: ' || x_tax_detail_tbl(i).tax_amount, 1, 'Y');
2094: END IF;
2087:
2088: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2093: aso_debug_pub.add('tax_amount: ' || x_tax_detail_tbl(i).tax_amount, 1, 'Y');
2094: END IF;
2095:
2088: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2093: aso_debug_pub.add('tax_amount: ' || x_tax_detail_tbl(i).tax_amount, 1, 'Y');
2094: END IF;
2095:
2096: ASO_TAX_DETAILS_PKG.Insert_Row(
2089: aso_debug_pub.add('ASO_TAX_LINE: value of loop index i: ' || i, 1, 'Y');
2090: aso_debug_pub.add('tax_detail_id: ' || x_tax_detail_tbl(i).tax_detail_id, 1, 'Y');
2091: aso_debug_pub.add('tax_code: ' || x_tax_detail_tbl(i).tax_code, 1, 'Y');
2092: aso_debug_pub.add('tax_rate: ' || x_tax_detail_tbl(i).tax_rate, 1, 'Y');
2093: aso_debug_pub.add('tax_amount: ' || x_tax_detail_tbl(i).tax_amount, 1, 'Y');
2094: END IF;
2095:
2096: ASO_TAX_DETAILS_PKG.Insert_Row(
2097: px_TAX_DETAIL_ID => x_tax_detail_tbl(i).TAX_DETAIL_ID,
2145: END IF;-- p_tax_control_rec.update_db
2146:
2147: -- Call to initialize the AR Global Tax info record.
2148:
2149: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2150: aso_debug_pub.add('ASO_TAX_LINE: Before call to initialize_tax_info_rec.', 1, 'Y');
2151: END IF;
2152:
2153: initialize_tax_info_rec;
2146:
2147: -- Call to initialize the AR Global Tax info record.
2148:
2149: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2150: aso_debug_pub.add('ASO_TAX_LINE: Before call to initialize_tax_info_rec.', 1, 'Y');
2151: END IF;
2152:
2153: initialize_tax_info_rec;
2154:
2151: END IF;
2152:
2153: initialize_tax_info_rec;
2154:
2155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2156: aso_debug_pub.add('ASO_TAX_LINE: After call to initialize_tax_info_rec.', 1, 'Y');
2157: END IF;
2158:
2159: x_tax_detail_Tbl := aso_quote_pub.g_miss_tax_detail_tbl;
2152:
2153: initialize_tax_info_rec;
2154:
2155: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2156: aso_debug_pub.add('ASO_TAX_LINE: After call to initialize_tax_info_rec.', 1, 'Y');
2157: END IF;
2158:
2159: x_tax_detail_Tbl := aso_quote_pub.g_miss_tax_detail_tbl;
2160: l_tax_detail_tbl := aso_quote_pub.g_miss_tax_detail_tbl;
2165: End Loop; --quote line loop
2166:
2167: END IF; --qte_header_id;
2168:
2169: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2170: aso_debug_pub.add('ASO_TAX_LINE: Total time Tax Engine took: l_tax_total_time: '|| l_tax_total_time, 1,'Y');
2171: END IF;
2172:
2173: l_tax_total_time := l_tax_total_time/100;
2166:
2167: END IF; --qte_header_id;
2168:
2169: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2170: aso_debug_pub.add('ASO_TAX_LINE: Total time Tax Engine took: l_tax_total_time: '|| l_tax_total_time, 1,'Y');
2171: END IF;
2172:
2173: l_tax_total_time := l_tax_total_time/100;
2174:
2171: END IF;
2172:
2173: l_tax_total_time := l_tax_total_time/100;
2174:
2175: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2176: aso_debug_pub.add('ASO_TAX_LINE: Total time Tax Engine took after dividing by 100: l_tax_total_time: '|| l_tax_total_time, 1,'Y');
2177: aso_debug_pub.add('ASO_TAX_INT: End ASO_TAX_LINE', 1, 'Y');
2178: END IF;
2179:
2172:
2173: l_tax_total_time := l_tax_total_time/100;
2174:
2175: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2176: aso_debug_pub.add('ASO_TAX_LINE: Total time Tax Engine took after dividing by 100: l_tax_total_time: '|| l_tax_total_time, 1,'Y');
2177: aso_debug_pub.add('ASO_TAX_INT: End ASO_TAX_LINE', 1, 'Y');
2178: END IF;
2179:
2180: End aso_tax_line;
2173: l_tax_total_time := l_tax_total_time/100;
2174:
2175: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2176: aso_debug_pub.add('ASO_TAX_LINE: Total time Tax Engine took after dividing by 100: l_tax_total_time: '|| l_tax_total_time, 1,'Y');
2177: aso_debug_pub.add('ASO_TAX_INT: End ASO_TAX_LINE', 1, 'Y');
2178: END IF;
2179:
2180: End aso_tax_line;
2181: *
2343:
2344: Begin
2345:
2346: Savepoint CALCULATE_TAX_WITH_GTT;
2347: aso_debug_pub.g_debug_flag := nvl(fnd_profile.value('ASO_ENABLE_DEBUG'),'N');
2348: x_return_status := FND_API.G_RET_STS_SUCCESS;
2349:
2350: IF aso_debug_pub.g_debug_flag = 'Y'
2351: THEN
2346: Savepoint CALCULATE_TAX_WITH_GTT;
2347: aso_debug_pub.g_debug_flag := nvl(fnd_profile.value('ASO_ENABLE_DEBUG'),'N');
2348: x_return_status := FND_API.G_RET_STS_SUCCESS;
2349:
2350: IF aso_debug_pub.g_debug_flag = 'Y'
2351: THEN
2352: aso_debug_pub.add('ASO_TAX_INT: Begin CALCULATE_TAX_WITH_GTT', 1, 'Y');
2353: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
2354: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
2348: x_return_status := FND_API.G_RET_STS_SUCCESS;
2349:
2350: IF aso_debug_pub.g_debug_flag = 'Y'
2351: THEN
2352: aso_debug_pub.add('ASO_TAX_INT: Begin CALCULATE_TAX_WITH_GTT', 1, 'Y');
2353: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
2354: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
2355: END IF;
2356: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
2349:
2350: IF aso_debug_pub.g_debug_flag = 'Y'
2351: THEN
2352: aso_debug_pub.add('ASO_TAX_INT: Begin CALCULATE_TAX_WITH_GTT', 1, 'Y');
2353: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
2354: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
2355: END IF;
2356: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
2357: IF aso_debug_pub.g_debug_flag = 'Y'
2350: IF aso_debug_pub.g_debug_flag = 'Y'
2351: THEN
2352: aso_debug_pub.add('ASO_TAX_INT: Begin CALCULATE_TAX_WITH_GTT', 1, 'Y');
2353: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
2354: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
2355: END IF;
2356: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
2357: IF aso_debug_pub.g_debug_flag = 'Y'
2358: THEN
2353: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_header_id: '|| p_qte_header_id, 1, 'Y');
2354: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: p_qte_line_id: '|| p_qte_line_id, 1, 'Y');
2355: END IF;
2356: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
2357: IF aso_debug_pub.g_debug_flag = 'Y'
2358: THEN
2359: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Header_Row ', 1, 'Y');
2360: END IF;
2361:
2355: END IF;
2356: l_qte_header_rec := ASO_UTILITY_PVT.Query_Header_Row(p_qte_header_id);
2357: IF aso_debug_pub.g_debug_flag = 'Y'
2358: THEN
2359: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Header_Row ', 1, 'Y');
2360: END IF;
2361:
2362: l_currency_code := l_qte_header_rec.currency_code;
2363: IF aso_debug_pub.g_debug_flag = 'Y'
2359: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Header_Row ', 1, 'Y');
2360: END IF;
2361:
2362: l_currency_code := l_qte_header_rec.currency_code;
2363: IF aso_debug_pub.g_debug_flag = 'Y'
2364: THEN
2365: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_currency_code: '|| l_currency_code, 1, 'Y');
2366: END IF;
2367:
2361:
2362: l_currency_code := l_qte_header_rec.currency_code;
2363: IF aso_debug_pub.g_debug_flag = 'Y'
2364: THEN
2365: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_currency_code: '|| l_currency_code, 1, 'Y');
2366: END IF;
2367:
2368: l_Shipment_header_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,null);
2369: IF aso_debug_pub.g_debug_flag = 'Y'
2365: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_currency_code: '|| l_currency_code, 1, 'Y');
2366: END IF;
2367:
2368: l_Shipment_header_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,null);
2369: IF aso_debug_pub.g_debug_flag = 'Y'
2370: THEN
2371: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.query_shipment_rows ', 1, 'Y');
2372: END IF;
2373:
2367:
2368: l_Shipment_header_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,null);
2369: IF aso_debug_pub.g_debug_flag = 'Y'
2370: THEN
2371: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.query_shipment_rows ', 1, 'Y');
2372: END IF;
2373:
2374: --Condition added on 20/09/05 by anrajan
2375: IF l_Shipment_header_tbl.count > 0
2380: OPEN c_currency;
2381: FETCH c_currency into l_minimum_accountable_unit,l_precision;
2382: CLOSE c_currency;
2383:
2384: IF aso_debug_pub.g_debug_flag = 'Y'
2385: THEN
2386: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_currency cursor ', 1, 'Y');
2387: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_minimum_accountable_unit: '||l_minimum_accountable_unit, 1, 'Y');
2388: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_precision: '||l_precision,1,'Y');
2382: CLOSE c_currency;
2383:
2384: IF aso_debug_pub.g_debug_flag = 'Y'
2385: THEN
2386: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_currency cursor ', 1, 'Y');
2387: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_minimum_accountable_unit: '||l_minimum_accountable_unit, 1, 'Y');
2388: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_precision: '||l_precision,1,'Y');
2389: END IF;
2390:
2383:
2384: IF aso_debug_pub.g_debug_flag = 'Y'
2385: THEN
2386: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_currency cursor ', 1, 'Y');
2387: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_minimum_accountable_unit: '||l_minimum_accountable_unit, 1, 'Y');
2388: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_precision: '||l_precision,1,'Y');
2389: END IF;
2390:
2391: open c_ship_to_cust_account_id;
2384: IF aso_debug_pub.g_debug_flag = 'Y'
2385: THEN
2386: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_currency cursor ', 1, 'Y');
2387: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_minimum_accountable_unit: '||l_minimum_accountable_unit, 1, 'Y');
2388: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_precision: '||l_precision,1,'Y');
2389: END IF;
2390:
2391: open c_ship_to_cust_account_id;
2392: fetch c_ship_to_cust_account_id into l_ship_cust_account_id_header;
2391: open c_ship_to_cust_account_id;
2392: fetch c_ship_to_cust_account_id into l_ship_cust_account_id_header;
2393: close c_ship_to_cust_account_id;
2394:
2395: IF aso_debug_pub.g_debug_flag = 'Y'
2396: THEN
2397: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_ship_to_cust_account_id ', 1, 'Y');
2398: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_ship_cust_account_id_header: '||l_ship_cust_account_id_header, 1, 'Y');
2399: END IF;
2393: close c_ship_to_cust_account_id;
2394:
2395: IF aso_debug_pub.g_debug_flag = 'Y'
2396: THEN
2397: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_ship_to_cust_account_id ', 1, 'Y');
2398: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_ship_cust_account_id_header: '||l_ship_cust_account_id_header, 1, 'Y');
2399: END IF;
2400:
2401: OPEN c_int_org_location;
2394:
2395: IF aso_debug_pub.g_debug_flag = 'Y'
2396: THEN
2397: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_ship_to_cust_account_id ', 1, 'Y');
2398: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_ship_cust_account_id_header: '||l_ship_cust_account_id_header, 1, 'Y');
2399: END IF;
2400:
2401: OPEN c_int_org_location;
2402: Fetch c_int_org_location into l_int_org_location;
2401: OPEN c_int_org_location;
2402: Fetch c_int_org_location into l_int_org_location;
2403: close c_int_org_location;
2404:
2405: IF aso_debug_pub.g_debug_flag = 'Y'
2406: THEN
2407: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_int_org_location ', 1, 'Y');
2408: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_int_org_location : '||l_int_org_location, 1, 'Y');
2409: END IF;
2403: close c_int_org_location;
2404:
2405: IF aso_debug_pub.g_debug_flag = 'Y'
2406: THEN
2407: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_int_org_location ', 1, 'Y');
2408: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_int_org_location : '||l_int_org_location, 1, 'Y');
2409: END IF;
2410:
2411: IF p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM
2404:
2405: IF aso_debug_pub.g_debug_flag = 'Y'
2406: THEN
2407: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to c_int_org_location ', 1, 'Y');
2408: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_int_org_location : '||l_int_org_location, 1, 'Y');
2409: END IF;
2410:
2411: IF p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM
2412: THEN
2411: IF p_qte_line_id is null or p_qte_line_id = FND_API.G_MISS_NUM
2412: THEN
2413: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Qte_Line_Rows(p_qte_header_id);
2414: IF
2415: aso_debug_pub.g_debug_flag = 'Y'
2416: THEN
2417: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Qte_Line_Rows', 1, 'Y');
2418: END IF;
2419: ELSE
2413: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Qte_Line_Rows(p_qte_header_id);
2414: IF
2415: aso_debug_pub.g_debug_flag = 'Y'
2416: THEN
2417: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Qte_Line_Rows', 1, 'Y');
2418: END IF;
2419: ELSE
2420: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_id);
2421: IF
2418: END IF;
2419: ELSE
2420: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_id);
2421: IF
2422: aso_debug_pub.g_debug_flag = 'Y'
2423: THEN
2424: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Qte_Line_Row', 1, 'Y');
2425: END IF;
2426: l_qte_line_tbl(1) := l_qte_line_rec;
2420: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_id);
2421: IF
2422: aso_debug_pub.g_debug_flag = 'Y'
2423: THEN
2424: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Qte_Line_Row', 1, 'Y');
2425: END IF;
2426: l_qte_line_tbl(1) := l_qte_line_rec;
2427: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Quote Line Id : '||p_qte_line_id, 1, 'Y');
2428: END IF;
2423: THEN
2424: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to ASO_UTILITY_PVT.Query_Qte_Line_Row', 1, 'Y');
2425: END IF;
2426: l_qte_line_tbl(1) := l_qte_line_rec;
2427: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Quote Line Id : '||p_qte_line_id, 1, 'Y');
2428: END IF;
2429:
2430: IF l_qte_line_tbl.count>0
2431: THEN
2430: IF l_qte_line_tbl.count>0
2431: THEN
2432: l_qte_line_rec:= l_qte_line_tbl(1);
2433: IF
2434: aso_debug_pub.g_debug_flag = 'Y'
2435: THEN
2436: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT:l_qte_line_tbl.count>0 ', 1, 'Y');
2437: END IF;
2438: ELSE
2432: l_qte_line_rec:= l_qte_line_tbl(1);
2433: IF
2434: aso_debug_pub.g_debug_flag = 'Y'
2435: THEN
2436: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT:l_qte_line_tbl.count>0 ', 1, 'Y');
2437: END IF;
2438: ELSE
2439: IF
2440: aso_debug_pub.g_debug_flag = 'Y'
2436: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT:l_qte_line_tbl.count>0 ', 1, 'Y');
2437: END IF;
2438: ELSE
2439: IF
2440: aso_debug_pub.g_debug_flag = 'Y'
2441: THEN
2442: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT:l_qte_line_tbl.count=0 ', 1, 'Y');
2443: END IF;
2444: END IF;
2438: ELSE
2439: IF
2440: aso_debug_pub.g_debug_flag = 'Y'
2441: THEN
2442: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT:l_qte_line_tbl.count=0 ', 1, 'Y');
2443: END IF;
2444: END IF;
2445:
2446: --bug7408162
2453: when others then
2454: l_bill_from_location_id := NULL;
2455: End;
2456:
2457: IF aso_debug_pub.g_debug_flag = 'Y'
2458: THEN
2459: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: value for l_bill_from_location_id'||l_bill_from_location_id, 1, 'Y');
2460: END IF;
2461:
2455: End;
2456:
2457: IF aso_debug_pub.g_debug_flag = 'Y'
2458: THEN
2459: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: value for l_bill_from_location_id'||l_bill_from_location_id, 1, 'Y');
2460: END IF;
2461:
2462: Open c_set_of_books_id;
2463: FETCH c_set_of_books_id into l_set_of_books_id;
2462: Open c_set_of_books_id;
2463: FETCH c_set_of_books_id into l_set_of_books_id;
2464: close c_set_of_books_id;
2465:
2466: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2467: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After selecting from AR_SYSTEM_PARAMETERS table', 1, 'Y');
2468: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_set_of_books_id : '||l_set_of_books_id, 1, 'Y');
2469: END IF;
2470:
2463: FETCH c_set_of_books_id into l_set_of_books_id;
2464: close c_set_of_books_id;
2465:
2466: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2467: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After selecting from AR_SYSTEM_PARAMETERS table', 1, 'Y');
2468: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_set_of_books_id : '||l_set_of_books_id, 1, 'Y');
2469: END IF;
2470:
2471:
2464: close c_set_of_books_id;
2465:
2466: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2467: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After selecting from AR_SYSTEM_PARAMETERS table', 1, 'Y');
2468: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_set_of_books_id : '||l_set_of_books_id, 1, 'Y');
2469: END IF;
2470:
2471:
2472: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2468: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_set_of_books_id : '||l_set_of_books_id, 1, 'Y');
2469: END IF;
2470:
2471:
2472: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2473: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2474: END IF;
2475: l_site_use_id_ship_header := aso_shipment_pvt.get_ship_to_site_id
2476: (l_qte_header_rec.quote_header_id,null,null);
2469: END IF;
2470:
2471:
2472: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2473: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2474: END IF;
2475: l_site_use_id_ship_header := aso_shipment_pvt.get_ship_to_site_id
2476: (l_qte_header_rec.quote_header_id,null,null);
2477: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2473: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2474: END IF;
2475: l_site_use_id_ship_header := aso_shipment_pvt.get_ship_to_site_id
2476: (l_qte_header_rec.quote_header_id,null,null);
2477: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2479: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_ship_header : '||l_site_use_id_ship_header, 1,'Y');
2480: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2481: END IF;
2474: END IF;
2475: l_site_use_id_ship_header := aso_shipment_pvt.get_ship_to_site_id
2476: (l_qte_header_rec.quote_header_id,null,null);
2477: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2479: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_ship_header : '||l_site_use_id_ship_header, 1,'Y');
2480: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2481: END IF;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2475: l_site_use_id_ship_header := aso_shipment_pvt.get_ship_to_site_id
2476: (l_qte_header_rec.quote_header_id,null,null);
2477: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2479: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_ship_header : '||l_site_use_id_ship_header, 1,'Y');
2480: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2481: END IF;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2483: (l_qte_header_rec.quote_header_id, null);
2476: (l_qte_header_rec.quote_header_id,null,null);
2477: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2479: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_ship_header : '||l_site_use_id_ship_header, 1,'Y');
2480: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2481: END IF;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2483: (l_qte_header_rec.quote_header_id, null);
2484: IF aso_debug_pub.g_debug_flag ='Y' THEN
2480: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: Before call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2481: END IF;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2483: (l_qte_header_rec.quote_header_id, null);
2484: IF aso_debug_pub.g_debug_flag ='Y' THEN
2485: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2486: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_bill_header : '||l_site_use_id_bill_header, 1,'Y');
2487: END IF;
2488: IF l_site_use_id_ship_header is not null THEN
2481: END IF;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2483: (l_qte_header_rec.quote_header_id, null);
2484: IF aso_debug_pub.g_debug_flag ='Y' THEN
2485: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2486: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_bill_header : '||l_site_use_id_bill_header, 1,'Y');
2487: END IF;
2488: IF l_site_use_id_ship_header is not null THEN
2489: l_site_use_id:=l_site_use_id_ship_header;
2482: l_site_use_id_bill_header := aso_shipment_pvt.get_cust_to_party_site_id
2483: (l_qte_header_rec.quote_header_id, null);
2484: IF aso_debug_pub.g_debug_flag ='Y' THEN
2485: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: After call to aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2486: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_bill_header : '||l_site_use_id_bill_header, 1,'Y');
2487: END IF;
2488: IF l_site_use_id_ship_header is not null THEN
2489: l_site_use_id:=l_site_use_id_ship_header;
2490: IF aso_debug_pub.g_debug_flag ='Y' THEN
2486: aso_debug_pub.add('ASO_TAX_INT: CALCULATE_TAX_WITH_GTT: l_site_use_id_bill_header : '||l_site_use_id_bill_header, 1,'Y');
2487: END IF;
2488: IF l_site_use_id_ship_header is not null THEN
2489: l_site_use_id:=l_site_use_id_ship_header;
2490: IF aso_debug_pub.g_debug_flag ='Y' THEN
2491: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO c_get_acct_site ', 1, 'Y');
2492: END IF;
2493:
2494: Open c_get_acct_site(l_site_use_id);
2487: END IF;
2488: IF l_site_use_id_ship_header is not null THEN
2489: l_site_use_id:=l_site_use_id_ship_header;
2490: IF aso_debug_pub.g_debug_flag ='Y' THEN
2491: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO c_get_acct_site ', 1, 'Y');
2492: END IF;
2493:
2494: Open c_get_acct_site(l_site_use_id);
2495: Fetch c_get_acct_site into l_acct_site_id_ship;
2494: Open c_get_acct_site(l_site_use_id);
2495: Fetch c_get_acct_site into l_acct_site_id_ship;
2496: Close c_get_acct_site;
2497:
2498: IF aso_debug_pub.g_debug_flag ='Y' THEN
2499: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2500: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_ship : '||l_acct_site_id_ship, 1, 'Y');
2501: END IF;
2502: ELSE
2495: Fetch c_get_acct_site into l_acct_site_id_ship;
2496: Close c_get_acct_site;
2497:
2498: IF aso_debug_pub.g_debug_flag ='Y' THEN
2499: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2500: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_ship : '||l_acct_site_id_ship, 1, 'Y');
2501: END IF;
2502: ELSE
2503: IF aso_debug_pub.g_debug_flag ='Y' THEN
2496: Close c_get_acct_site;
2497:
2498: IF aso_debug_pub.g_debug_flag ='Y' THEN
2499: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2500: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_ship : '||l_acct_site_id_ship, 1, 'Y');
2501: END IF;
2502: ELSE
2503: IF aso_debug_pub.g_debug_flag ='Y' THEN
2504: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2499: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2500: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_ship : '||l_acct_site_id_ship, 1, 'Y');
2501: END IF;
2502: ELSE
2503: IF aso_debug_pub.g_debug_flag ='Y' THEN
2504: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2505: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2506: END IF;
2507: l_acct_site_id_ship:=NULL;
2500: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_ship : '||l_acct_site_id_ship, 1, 'Y');
2501: END IF;
2502: ELSE
2503: IF aso_debug_pub.g_debug_flag ='Y' THEN
2504: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2505: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2506: END IF;
2507: l_acct_site_id_ship:=NULL;
2508: END IF;
2501: END IF;
2502: ELSE
2503: IF aso_debug_pub.g_debug_flag ='Y' THEN
2504: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2505: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2506: END IF;
2507: l_acct_site_id_ship:=NULL;
2508: END IF;
2509:
2508: END IF;
2509:
2510: IF l_site_use_id_bill_header is not null THEN
2511: l_site_use_id:=l_site_use_id_bill_header;
2512: IF aso_debug_pub.g_debug_flag ='Y' THEN
2513: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO c_get_acct_site ', 1, 'Y');
2514: END IF;
2515:
2516: Open c_get_acct_site(l_site_use_id);
2509:
2510: IF l_site_use_id_bill_header is not null THEN
2511: l_site_use_id:=l_site_use_id_bill_header;
2512: IF aso_debug_pub.g_debug_flag ='Y' THEN
2513: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO c_get_acct_site ', 1, 'Y');
2514: END IF;
2515:
2516: Open c_get_acct_site(l_site_use_id);
2517: Fetch c_get_acct_site into l_acct_site_id_bill;
2516: Open c_get_acct_site(l_site_use_id);
2517: Fetch c_get_acct_site into l_acct_site_id_bill;
2518: Close c_get_acct_site;
2519:
2520: IF aso_debug_pub.g_debug_flag ='Y' THEN
2521: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2522: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_bill : '||l_acct_site_id_bill, 1, 'Y');
2523: END IF;
2524: ELSE
2517: Fetch c_get_acct_site into l_acct_site_id_bill;
2518: Close c_get_acct_site;
2519:
2520: IF aso_debug_pub.g_debug_flag ='Y' THEN
2521: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2522: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_bill : '||l_acct_site_id_bill, 1, 'Y');
2523: END IF;
2524: ELSE
2525: IF aso_debug_pub.g_debug_flag ='Y' THEN
2518: Close c_get_acct_site;
2519:
2520: IF aso_debug_pub.g_debug_flag ='Y' THEN
2521: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2522: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_bill : '||l_acct_site_id_bill, 1, 'Y');
2523: END IF;
2524: ELSE
2525: IF aso_debug_pub.g_debug_flag ='Y' THEN
2526: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2521: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO c_get_acct_site ', 1, 'Y');
2522: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_bill : '||l_acct_site_id_bill, 1, 'Y');
2523: END IF;
2524: ELSE
2525: IF aso_debug_pub.g_debug_flag ='Y' THEN
2526: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2527: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2528: END IF;
2529: l_acct_site_id_bill:=NULL;
2522: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_acct_site_id_bill : '||l_acct_site_id_bill, 1, 'Y');
2523: END IF;
2524: ELSE
2525: IF aso_debug_pub.g_debug_flag ='Y' THEN
2526: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2527: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2528: END IF;
2529: l_acct_site_id_bill:=NULL;
2530: END IF;
2523: END IF;
2524: ELSE
2525: IF aso_debug_pub.g_debug_flag ='Y' THEN
2526: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_site_use_id is null ', 1, 'Y');
2527: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: So l_acct_site_id_ship is also null ', 1, 'Y');
2528: END IF;
2529: l_acct_site_id_bill:=NULL;
2530: END IF;
2531:
2532: OPEN c_invoice_source_id;
2533: fetch c_invoice_source_id into l_batch_source;
2534: CLOSE c_invoice_source_id;
2535:
2536: IF aso_debug_pub.g_debug_flag ='Y' THEN
2537: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id ', 1, 'Y');
2538: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id :l_batch_source '||l_batch_source, 1, 'Y');
2539: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id ', 1, 'Y');
2540: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id : x_return_status : '||x_return_status, 1, 'Y');
2533: fetch c_invoice_source_id into l_batch_source;
2534: CLOSE c_invoice_source_id;
2535:
2536: IF aso_debug_pub.g_debug_flag ='Y' THEN
2537: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id ', 1, 'Y');
2538: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id :l_batch_source '||l_batch_source, 1, 'Y');
2539: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id ', 1, 'Y');
2540: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id : x_return_status : '||x_return_status, 1, 'Y');
2541: END IF;
2534: CLOSE c_invoice_source_id;
2535:
2536: IF aso_debug_pub.g_debug_flag ='Y' THEN
2537: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id ', 1, 'Y');
2538: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id :l_batch_source '||l_batch_source, 1, 'Y');
2539: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id ', 1, 'Y');
2540: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id : x_return_status : '||x_return_status, 1, 'Y');
2541: END IF;
2542:
2535:
2536: IF aso_debug_pub.g_debug_flag ='Y' THEN
2537: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id ', 1, 'Y');
2538: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id :l_batch_source '||l_batch_source, 1, 'Y');
2539: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id ', 1, 'Y');
2540: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id : x_return_status : '||x_return_status, 1, 'Y');
2541: END IF;
2542:
2543: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2536: IF aso_debug_pub.g_debug_flag ='Y' THEN
2537: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id ', 1, 'Y');
2538: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: After CALL TO the c_invoice_source_id :l_batch_source '||l_batch_source, 1, 'Y');
2539: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id ', 1, 'Y');
2540: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the l_trx_type_id : x_return_status : '||x_return_status, 1, 'Y');
2541: END IF;
2542:
2543: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2544:
2541: END IF;
2542:
2543: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2544:
2545: IF aso_debug_pub.g_debug_flag ='Y' THEN
2546: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2547: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_trx_type_id : '||l_trx_type_id , 1, 'Y');
2548: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2549: END IF;
2542:
2543: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2544:
2545: IF aso_debug_pub.g_debug_flag ='Y' THEN
2546: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2547: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_trx_type_id : '||l_trx_type_id , 1, 'Y');
2548: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2549: END IF;
2550:
2543: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2544:
2545: IF aso_debug_pub.g_debug_flag ='Y' THEN
2546: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2547: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_trx_type_id : '||l_trx_type_id , 1, 'Y');
2548: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2549: END IF;
2550:
2551: Open c_cust_trx_type_id(l_trx_type_id);
2544:
2545: IF aso_debug_pub.g_debug_flag ='Y' THEN
2546: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2547: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_trx_type_id : '||l_trx_type_id , 1, 'Y');
2548: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2549: END IF;
2550:
2551: Open c_cust_trx_type_id(l_trx_type_id);
2552: fetch c_cust_trx_type_id into l_ra_cust_trx_type_id;
2551: Open c_cust_trx_type_id(l_trx_type_id);
2552: fetch c_cust_trx_type_id into l_ra_cust_trx_type_id;
2553: close c_cust_trx_type_id;
2554:
2555: IF aso_debug_pub.g_debug_flag ='Y' THEN
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2552: fetch c_cust_trx_type_id into l_ra_cust_trx_type_id;
2553: close c_cust_trx_type_id;
2554:
2555: IF aso_debug_pub.g_debug_flag ='Y' THEN
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2560: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_msg_data : '||x_msg_data, 1, 'Y');
2553: close c_cust_trx_type_id;
2554:
2555: IF aso_debug_pub.g_debug_flag ='Y' THEN
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2560: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_msg_data : '||x_msg_data, 1, 'Y');
2561: END IF;
2554:
2555: IF aso_debug_pub.g_debug_flag ='Y' THEN
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2560: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_msg_data : '||x_msg_data, 1, 'Y');
2561: END IF;
2562:
2555: IF aso_debug_pub.g_debug_flag ='Y' THEN
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2560: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_msg_data : '||x_msg_data, 1, 'Y');
2561: END IF;
2562:
2563: XLE_BUSINESSINFO_GRP.Get_OrdertoCash_Info(
2556: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2557: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2558: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API ', 1, 'Y');
2559: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_return_status : '||x_return_status, 1, 'Y');
2560: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO the Legal Entity API : x_msg_data : '||x_msg_data, 1, 'Y');
2561: END IF;
2562:
2563: XLE_BUSINESSINFO_GRP.Get_OrdertoCash_Info(
2564: x_return_status=>x_return_status,
2572:
2573: l_legal_entity_id:= x_legal_entity.legal_entity_id;
2574:
2575:
2576: IF aso_debug_pub.g_debug_flag ='Y' THEN
2577: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO the Legal Entity API ', 1, 'Y');
2578: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: LEGAL ENTITY : '||l_legal_entity_id, 1, 'Y');
2579: --Added by anrajan on 05/10/2005
2580: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : RETURN_STATUS : '||x_return_status , 1, 'Y');
2573: l_legal_entity_id:= x_legal_entity.legal_entity_id;
2574:
2575:
2576: IF aso_debug_pub.g_debug_flag ='Y' THEN
2577: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO the Legal Entity API ', 1, 'Y');
2578: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: LEGAL ENTITY : '||l_legal_entity_id, 1, 'Y');
2579: --Added by anrajan on 05/10/2005
2580: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : RETURN_STATUS : '||x_return_status , 1, 'Y');
2581: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : MESSAGE DATA : '||X_Msg_Data , 1, 'Y');
2574:
2575:
2576: IF aso_debug_pub.g_debug_flag ='Y' THEN
2577: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO the Legal Entity API ', 1, 'Y');
2578: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: LEGAL ENTITY : '||l_legal_entity_id, 1, 'Y');
2579: --Added by anrajan on 05/10/2005
2580: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : RETURN_STATUS : '||x_return_status , 1, 'Y');
2581: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : MESSAGE DATA : '||X_Msg_Data , 1, 'Y');
2582: END IF;
2576: IF aso_debug_pub.g_debug_flag ='Y' THEN
2577: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO the Legal Entity API ', 1, 'Y');
2578: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: LEGAL ENTITY : '||l_legal_entity_id, 1, 'Y');
2579: --Added by anrajan on 05/10/2005
2580: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : RETURN_STATUS : '||x_return_status , 1, 'Y');
2581: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : MESSAGE DATA : '||X_Msg_Data , 1, 'Y');
2582: END IF;
2583:
2584: --Insertion into the Header Temporary Table.
2577: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO the Legal Entity API ', 1, 'Y');
2578: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: LEGAL ENTITY : '||l_legal_entity_id, 1, 'Y');
2579: --Added by anrajan on 05/10/2005
2580: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : RETURN_STATUS : '||x_return_status , 1, 'Y');
2581: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER LEGAL ENTITY API : MESSAGE DATA : '||X_Msg_Data , 1, 'Y');
2582: END IF;
2583:
2584: --Insertion into the Header Temporary Table.
2585:
2582: END IF;
2583:
2584: --Insertion into the Header Temporary Table.
2585:
2586: IF aso_debug_pub.g_debug_flag ='Y' THEN
2587: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE INSERTION INTO ZX_TRX_HEADERS_GT temporary table ', 1, 'Y');
2588: END IF;
2589:
2590: DELETE FROM ZX_TRX_HEADERS_GT where
2583:
2584: --Insertion into the Header Temporary Table.
2585:
2586: IF aso_debug_pub.g_debug_flag ='Y' THEN
2587: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE INSERTION INTO ZX_TRX_HEADERS_GT temporary table ', 1, 'Y');
2588: END IF;
2589:
2590: DELETE FROM ZX_TRX_HEADERS_GT where
2591: APPLICATION_ID=697 and
2660: l_qte_header_rec.INVOICE_TO_CUST_PARTY_ID
2661: );
2662:
2663: print_tax_info(1,p_qte_header_id);
2664: IF aso_debug_pub.g_debug_flag ='Y' THEN
2665: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE THE QUOTE LINES LOOP ', 1, 'Y');
2666: END IF;
2667:
2668: DELETE FROM Zx_transaction_lines_gt
2661: );
2662:
2663: print_tax_info(1,p_qte_header_id);
2664: IF aso_debug_pub.g_debug_flag ='Y' THEN
2665: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: BEFORE THE QUOTE LINES LOOP ', 1, 'Y');
2666: END IF;
2667:
2668: DELETE FROM Zx_transaction_lines_gt
2669: WHERE APPLICATION_ID= 697
2674:
2675: FOR i in 1..l_qte_line_tbl.count
2676: LOOP
2677: l_qte_line_rec:=l_qte_line_tbl(i);
2678: IF aso_debug_pub.g_debug_flag ='Y' THEN
2679: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP : QUOTE LINE ID :'||l_qte_line_rec.QUOTE_LINE_ID, 1, 'Y');
2680: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO aso_utility_pvt.query_shipment_rows', 1, 'Y');
2681: END IF;
2682: l_Shipment_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,l_qte_line_rec.quote_line_id);
2675: FOR i in 1..l_qte_line_tbl.count
2676: LOOP
2677: l_qte_line_rec:=l_qte_line_tbl(i);
2678: IF aso_debug_pub.g_debug_flag ='Y' THEN
2679: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP : QUOTE LINE ID :'||l_qte_line_rec.QUOTE_LINE_ID, 1, 'Y');
2680: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO aso_utility_pvt.query_shipment_rows', 1, 'Y');
2681: END IF;
2682: l_Shipment_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,l_qte_line_rec.quote_line_id);
2683:
2676: LOOP
2677: l_qte_line_rec:=l_qte_line_tbl(i);
2678: IF aso_debug_pub.g_debug_flag ='Y' THEN
2679: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP : QUOTE LINE ID :'||l_qte_line_rec.QUOTE_LINE_ID, 1, 'Y');
2680: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO aso_utility_pvt.query_shipment_rows', 1, 'Y');
2681: END IF;
2682: l_Shipment_tbl:=aso_utility_pvt.query_shipment_rows( p_qte_header_id,l_qte_line_rec.quote_line_id);
2683:
2684: --Condition added by anrajan on 06/10/2005 for Bug Number :4656728
2686: THEN
2687: l_Shipment_Rec:=l_shipment_tbl(1);
2688: END IF;
2689:
2690: IF aso_debug_pub.g_debug_flag ='Y' THEN
2691: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_utility_pvt.query_shipment_rows', 1, 'Y');
2692: END IF;
2693:
2694: l_site_use_id_bill_lines:=aso_shipment_pvt.get_cust_to_party_site_id
2687: l_Shipment_Rec:=l_shipment_tbl(1);
2688: END IF;
2689:
2690: IF aso_debug_pub.g_debug_flag ='Y' THEN
2691: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_utility_pvt.query_shipment_rows', 1, 'Y');
2692: END IF;
2693:
2694: l_site_use_id_bill_lines:=aso_shipment_pvt.get_cust_to_party_site_id
2695: (p_qte_header_id,
2693:
2694: l_site_use_id_bill_lines:=aso_shipment_pvt.get_cust_to_party_site_id
2695: (p_qte_header_id,
2696: l_qte_line_rec.quote_line_id);
2697: IF aso_debug_pub.g_debug_flag ='Y' THEN
2698: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2699: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_bill_lines : '||l_site_use_id_bill_lines , 1, 'Y');
2700: END IF;
2701:
2694: l_site_use_id_bill_lines:=aso_shipment_pvt.get_cust_to_party_site_id
2695: (p_qte_header_id,
2696: l_qte_line_rec.quote_line_id);
2697: IF aso_debug_pub.g_debug_flag ='Y' THEN
2698: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2699: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_bill_lines : '||l_site_use_id_bill_lines , 1, 'Y');
2700: END IF;
2701:
2702: l_site_use_id_ship_lines:= aso_shipment_pvt.get_ship_to_site_id
2695: (p_qte_header_id,
2696: l_qte_line_rec.quote_line_id);
2697: IF aso_debug_pub.g_debug_flag ='Y' THEN
2698: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_cust_to_party_site_id', 1, 'Y');
2699: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_bill_lines : '||l_site_use_id_bill_lines , 1, 'Y');
2700: END IF;
2701:
2702: l_site_use_id_ship_lines:= aso_shipment_pvt.get_ship_to_site_id
2703: (p_qte_header_id,
2702: l_site_use_id_ship_lines:= aso_shipment_pvt.get_ship_to_site_id
2703: (p_qte_header_id,
2704: l_qte_line_rec.quote_line_id,
2705: l_Shipment_Rec.SHIPMENT_ID);
2706: IF aso_debug_pub.g_debug_flag ='Y' THEN
2707: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2708: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_ship_lines '||l_site_use_id_ship_lines , 1, 'Y');
2709: END IF;
2710:
2703: (p_qte_header_id,
2704: l_qte_line_rec.quote_line_id,
2705: l_Shipment_Rec.SHIPMENT_ID);
2706: IF aso_debug_pub.g_debug_flag ='Y' THEN
2707: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2708: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_ship_lines '||l_site_use_id_ship_lines , 1, 'Y');
2709: END IF;
2710:
2711: Open c_getlocinfo(l_site_use_id_bill_lines);
2704: l_qte_line_rec.quote_line_id,
2705: l_Shipment_Rec.SHIPMENT_ID);
2706: IF aso_debug_pub.g_debug_flag ='Y' THEN
2707: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO aso_shipment_pvt.get_ship_to_site_id', 1, 'Y');
2708: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_site_use_id_ship_lines '||l_site_use_id_ship_lines , 1, 'Y');
2709: END IF;
2710:
2711: Open c_getlocinfo(l_site_use_id_bill_lines);
2712: Fetch c_getlocinfo into l_acct_site_id_bill_lines,l_bill_cust_acct_id_lines;
2715: Open c_getlocinfo(l_site_use_id_ship_lines);
2716: Fetch c_getlocinfo into l_acct_site_id_ship_lines,l_ship_cust_acct_id_lines;
2717: Close c_getlocinfo;
2718:
2719: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2716: Fetch c_getlocinfo into l_acct_site_id_ship_lines,l_ship_cust_acct_id_lines;
2717: Close c_getlocinfo;
2718:
2719: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2717: Close c_getlocinfo;
2718:
2719: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2718:
2719: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2726:
2719: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2726:
2727: IF aso_debug_pub.g_debug_flag ='Y' THEN
2720: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_getlocinfo', 1, 'Y');
2721: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_bill_lines '||l_acct_site_id_bill_lines , 1, 'Y');
2722: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_cust_acct_id_lines '||l_bill_cust_acct_id_lines , 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2726:
2727: IF aso_debug_pub.g_debug_flag ='Y' THEN
2728: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_shiplocation', 1, 'Y');
2723: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_acct_site_id_ship_lines '||l_acct_site_id_ship_lines , 1, 'Y');
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2726:
2727: IF aso_debug_pub.g_debug_flag ='Y' THEN
2728: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_shiplocation', 1, 'Y');
2729: END IF;
2730:
2731: IF
2724: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_cust_acct_id_lines '||l_ship_cust_acct_id_lines , 1, 'Y');
2725: END IF;
2726:
2727: IF aso_debug_pub.g_debug_flag ='Y' THEN
2728: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_shiplocation', 1, 'Y');
2729: END IF;
2730:
2731: IF
2732: l_Shipment_Rec.ship_to_party_site_id is not null
2737: END IF;
2738: FETCH c_shiplocation into l_ship_to_location;
2739: close c_shiplocation;
2740:
2741: IF aso_debug_pub.g_debug_flag ='Y' THEN
2742: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2743: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_to_location '||l_ship_to_location , 1, 'Y');
2744: END IF;
2745:
2738: FETCH c_shiplocation into l_ship_to_location;
2739: close c_shiplocation;
2740:
2741: IF aso_debug_pub.g_debug_flag ='Y' THEN
2742: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2743: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_to_location '||l_ship_to_location , 1, 'Y');
2744: END IF;
2745:
2746: IF
2739: close c_shiplocation;
2740:
2741: IF aso_debug_pub.g_debug_flag ='Y' THEN
2742: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2743: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_ship_to_location '||l_ship_to_location , 1, 'Y');
2744: END IF;
2745:
2746: IF
2747: l_qte_line_rec.invoice_to_party_site_id is not null
2753:
2754: FETCH c_shiplocation into l_bill_to_location;
2755: close c_shiplocation;
2756:
2757: IF aso_debug_pub.g_debug_flag ='Y' THEN
2758: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2759: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_to_location '||l_bill_to_location , 1, 'Y');
2760: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2761: END IF;
2754: FETCH c_shiplocation into l_bill_to_location;
2755: close c_shiplocation;
2756:
2757: IF aso_debug_pub.g_debug_flag ='Y' THEN
2758: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2759: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_to_location '||l_bill_to_location , 1, 'Y');
2760: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2761: END IF;
2762:
2755: close c_shiplocation;
2756:
2757: IF aso_debug_pub.g_debug_flag ='Y' THEN
2758: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2759: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_to_location '||l_bill_to_location , 1, 'Y');
2760: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2761: END IF;
2762:
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2756:
2757: IF aso_debug_pub.g_debug_flag ='Y' THEN
2758: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO c_shiplocation', 1, 'Y');
2759: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_bill_to_location '||l_bill_to_location , 1, 'Y');
2760: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2761: END IF;
2762:
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2764: IF aso_debug_pub.g_debug_flag ='Y' THEN
2760: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2761: END IF;
2762:
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2764: IF aso_debug_pub.g_debug_flag ='Y' THEN
2765: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2766: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_trx_type_id '||l_trx_type_id , 1, 'Y');
2767: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_product_type ', 1, 'Y');
2768: END IF;
2761: END IF;
2762:
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2764: IF aso_debug_pub.g_debug_flag ='Y' THEN
2765: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2766: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_trx_type_id '||l_trx_type_id , 1, 'Y');
2767: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_product_type ', 1, 'Y');
2768: END IF;
2769:
2762:
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2764: IF aso_debug_pub.g_debug_flag ='Y' THEN
2765: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2766: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_trx_type_id '||l_trx_type_id , 1, 'Y');
2767: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_product_type ', 1, 'Y');
2768: END IF;
2769:
2770: Open c_product_type;
2763: l_trx_type_id := ASO_TAX_INT.get_ra_trx_type_id(l_qte_header_rec.order_type_id,l_qte_line_rec);
2764: IF aso_debug_pub.g_debug_flag ='Y' THEN
2765: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :AFTER THE CALL TO ASO_TAX_INT.get_ra_trx_type_id ', 1, 'Y');
2766: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_trx_type_id '||l_trx_type_id , 1, 'Y');
2767: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_product_type ', 1, 'Y');
2768: END IF;
2769:
2770: Open c_product_type;
2771: Fetch c_product_type into l_product_type;
2770: Open c_product_type;
2771: Fetch c_product_type into l_product_type;
2772: close c_product_type;
2773:
2774: IF aso_debug_pub.g_debug_flag ='Y' THEN
2775: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_product_type ' , 1, 'Y');
2776: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_product_type: '||l_product_type, 1, 'Y');
2777: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_tax ', 1, 'Y');
2778: END IF;
2771: Fetch c_product_type into l_product_type;
2772: close c_product_type;
2773:
2774: IF aso_debug_pub.g_debug_flag ='Y' THEN
2775: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_product_type ' , 1, 'Y');
2776: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_product_type: '||l_product_type, 1, 'Y');
2777: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_tax ', 1, 'Y');
2778: END IF;
2779:
2772: close c_product_type;
2773:
2774: IF aso_debug_pub.g_debug_flag ='Y' THEN
2775: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_product_type ' , 1, 'Y');
2776: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_product_type: '||l_product_type, 1, 'Y');
2777: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_tax ', 1, 'Y');
2778: END IF;
2779:
2780:
2773:
2774: IF aso_debug_pub.g_debug_flag ='Y' THEN
2775: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_product_type ' , 1, 'Y');
2776: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_product_type: '||l_product_type, 1, 'Y');
2777: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_tax ', 1, 'Y');
2778: END IF;
2779:
2780:
2781: Open c_tax;
2781: Open c_tax;
2782: fetch c_tax into l_hdr_tax_exempt_flag,l_hdr_tax_exempt_number,l_hdr_tax_exempt_reason_code;
2783: close c_tax;
2784:
2785: IF aso_debug_pub.g_debug_flag ='Y' THEN
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2782: fetch c_tax into l_hdr_tax_exempt_flag,l_hdr_tax_exempt_number,l_hdr_tax_exempt_reason_code;
2783: close c_tax;
2784:
2785: IF aso_debug_pub.g_debug_flag ='Y' THEN
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2790: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2783: close c_tax;
2784:
2785: IF aso_debug_pub.g_debug_flag ='Y' THEN
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2790: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2791: END IF;
2784:
2785: IF aso_debug_pub.g_debug_flag ='Y' THEN
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2790: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2791: END IF;
2792:
2785: IF aso_debug_pub.g_debug_flag ='Y' THEN
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2790: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2791: END IF;
2792:
2793:
2786: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_tax ' , 1, 'Y');
2787: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_FLAG: '||l_hdr_tax_exempt_flag , 1, 'Y');
2788: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_NUMBER : '||l_hdr_tax_exempt_number , 1, 'Y');
2789: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_HDR_TAX_EXEMPT_REASON_CODE : '||l_hdr_tax_exempt_reason_code , 1, 'Y');
2790: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_cust_trx_type_id ', 1, 'Y');
2791: END IF;
2792:
2793:
2794: Open c_cust_trx_type_id(l_trx_type_id);
2794: Open c_cust_trx_type_id(l_trx_type_id);
2795: fetch c_cust_trx_type_id into l_ra_cust_trx_type_id;
2796: close c_cust_trx_type_id;
2797:
2798: IF aso_debug_pub.g_debug_flag ='Y' THEN
2799: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2800: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2801: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_LOCATION_ID ', 1, 'Y');
2802: END IF;
2795: fetch c_cust_trx_type_id into l_ra_cust_trx_type_id;
2796: close c_cust_trx_type_id;
2797:
2798: IF aso_debug_pub.g_debug_flag ='Y' THEN
2799: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2800: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2801: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_LOCATION_ID ', 1, 'Y');
2802: END IF;
2803:
2796: close c_cust_trx_type_id;
2797:
2798: IF aso_debug_pub.g_debug_flag ='Y' THEN
2799: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2800: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2801: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_LOCATION_ID ', 1, 'Y');
2802: END IF;
2803:
2804:
2797:
2798: IF aso_debug_pub.g_debug_flag ='Y' THEN
2799: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_cust_trx_type_id ' , 1, 'Y');
2800: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_ra_cust_trx_type_id : '||l_ra_cust_trx_type_id , 1, 'Y');
2801: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE THE CALL TO c_LOCATION_ID ', 1, 'Y');
2802: END IF;
2803:
2804:
2805: OPEN c_LOCATION_ID;
2805: OPEN c_LOCATION_ID;
2806: Fetch c_LOCATION_ID into l_SHIP_FROM_LOCATION_ID;
2807: close c_LOCATION_ID;
2808:
2809: IF aso_debug_pub.g_debug_flag ='Y' THEN
2810: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_LOCATION_ID ', 1, 'Y');
2811: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_SHIP_FROM_LOCATION_ID : '||l_SHIP_FROM_LOCATION_ID , 1, 'Y');
2812: --aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2813: END IF;
2806: Fetch c_LOCATION_ID into l_SHIP_FROM_LOCATION_ID;
2807: close c_LOCATION_ID;
2808:
2809: IF aso_debug_pub.g_debug_flag ='Y' THEN
2810: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_LOCATION_ID ', 1, 'Y');
2811: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_SHIP_FROM_LOCATION_ID : '||l_SHIP_FROM_LOCATION_ID , 1, 'Y');
2812: --aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2813: END IF;
2814:
2807: close c_LOCATION_ID;
2808:
2809: IF aso_debug_pub.g_debug_flag ='Y' THEN
2810: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_LOCATION_ID ', 1, 'Y');
2811: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_SHIP_FROM_LOCATION_ID : '||l_SHIP_FROM_LOCATION_ID , 1, 'Y');
2812: --aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2813: END IF;
2814:
2815:
2808:
2809: IF aso_debug_pub.g_debug_flag ='Y' THEN
2810: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_LOCATION_ID ', 1, 'Y');
2811: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :l_SHIP_FROM_LOCATION_ID : '||l_SHIP_FROM_LOCATION_ID , 1, 'Y');
2812: --aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2813: END IF;
2814:
2815:
2816: -- new code added by suyog bug 5061912
2819: OPEN c_get_resource_id(p_qte_header_id);
2820: FETCH c_get_resource_id into l_resource_id;
2821: CLOSE c_get_resource_id;
2822:
2823: IF aso_debug_pub.g_debug_flag ='Y' THEN
2824: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_resource_id ', 1, 'Y');
2825: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_resource_id: '|| l_resource_id , 1, 'Y');
2826: END IF;
2827:
2820: FETCH c_get_resource_id into l_resource_id;
2821: CLOSE c_get_resource_id;
2822:
2823: IF aso_debug_pub.g_debug_flag ='Y' THEN
2824: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_resource_id ', 1, 'Y');
2825: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_resource_id: '|| l_resource_id , 1, 'Y');
2826: END IF;
2827:
2828: -- get the org id based upon the resource id and the trxn date
2821: CLOSE c_get_resource_id;
2822:
2823: IF aso_debug_pub.g_debug_flag ='Y' THEN
2824: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_resource_id ', 1, 'Y');
2825: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_resource_id: '|| l_resource_id , 1, 'Y');
2826: END IF;
2827:
2828: -- get the org id based upon the resource id and the trxn date
2829: OPEN c_get_org_id(l_resource_id);
2829: OPEN c_get_org_id(l_resource_id);
2830: FETCH c_get_org_id into l_poo_party_id;
2831: CLOSE c_get_org_id;
2832:
2833: IF aso_debug_pub.g_debug_flag ='Y' THEN
2834: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_org_id ', 1, 'Y');
2835: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_party_id: '|| l_poo_party_id , 1, 'Y');
2836: END IF;
2837:
2830: FETCH c_get_org_id into l_poo_party_id;
2831: CLOSE c_get_org_id;
2832:
2833: IF aso_debug_pub.g_debug_flag ='Y' THEN
2834: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_org_id ', 1, 'Y');
2835: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_party_id: '|| l_poo_party_id , 1, 'Y');
2836: END IF;
2837:
2838: -- get the location based upon the org id
2831: CLOSE c_get_org_id;
2832:
2833: IF aso_debug_pub.g_debug_flag ='Y' THEN
2834: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_org_id ', 1, 'Y');
2835: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_party_id: '|| l_poo_party_id , 1, 'Y');
2836: END IF;
2837:
2838: -- get the location based upon the org id
2839: OPEN c_get_location_id(l_poo_party_id);
2839: OPEN c_get_location_id(l_poo_party_id);
2840: FETCH c_get_location_id into l_poo_location_id;
2841: CLOSE c_get_location_id;
2842:
2843: IF aso_debug_pub.g_debug_flag ='Y' THEN
2844: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_location_id ', 1, 'Y');
2845: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_location_id: '|| l_poo_location_id , 1, 'Y');
2846: END IF;
2847:
2840: FETCH c_get_location_id into l_poo_location_id;
2841: CLOSE c_get_location_id;
2842:
2843: IF aso_debug_pub.g_debug_flag ='Y' THEN
2844: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_location_id ', 1, 'Y');
2845: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_location_id: '|| l_poo_location_id , 1, 'Y');
2846: END IF;
2847:
2848: -- POA PARTY ID is same as the internal_organization_id
2841: CLOSE c_get_location_id;
2842:
2843: IF aso_debug_pub.g_debug_flag ='Y' THEN
2844: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :AFTER THE CALL TO c_get_location_id ', 1, 'Y');
2845: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :l_poo_location_id: '|| l_poo_location_id , 1, 'Y');
2846: END IF;
2847:
2848: -- POA PARTY ID is same as the internal_organization_id
2849: -- POA LOCATION ID is same as the l_int_org_location
2847:
2848: -- POA PARTY ID is same as the internal_organization_id
2849: -- POA LOCATION ID is same as the l_int_org_location
2850:
2851: IF aso_debug_pub.g_debug_flag ='Y' THEN
2852: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_party_id: '|| l_qte_header_rec.ORG_ID , 1, 'Y');
2853: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_location_id: '|| l_int_org_location , 1, 'Y');
2854: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2855: END IF;
2848: -- POA PARTY ID is same as the internal_organization_id
2849: -- POA LOCATION ID is same as the l_int_org_location
2850:
2851: IF aso_debug_pub.g_debug_flag ='Y' THEN
2852: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_party_id: '|| l_qte_header_rec.ORG_ID , 1, 'Y');
2853: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_location_id: '|| l_int_org_location , 1, 'Y');
2854: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2855: END IF;
2856:
2849: -- POA LOCATION ID is same as the l_int_org_location
2850:
2851: IF aso_debug_pub.g_debug_flag ='Y' THEN
2852: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_party_id: '|| l_qte_header_rec.ORG_ID , 1, 'Y');
2853: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_location_id: '|| l_int_org_location , 1, 'Y');
2854: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2855: END IF;
2856:
2857: -- end of new code added by suyog
2850:
2851: IF aso_debug_pub.g_debug_flag ='Y' THEN
2852: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_party_id: '|| l_qte_header_rec.ORG_ID , 1, 'Y');
2853: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE_LINES_LOOP :Value for poa_location_id: '|| l_int_org_location , 1, 'Y');
2854: aso_debug_pub.add('ASO_TAX_INT :CALCULATE_TAX_WITH_GTT: WITHIN THE QUOTE LINES LOOP :BEFORE INSERTING INTO Zx_transaction_lines_gt ', 1, 'Y');
2855: END IF;
2856:
2857: -- end of new code added by suyog
2858:
2987: );
2988:
2989: END LOOP;
2990: print_tax_info(2,p_qte_header_id);
2991: IF aso_debug_pub.g_debug_flag ='Y' THEN
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2988:
2989: END LOOP;
2990: print_tax_info(2,p_qte_header_id);
2991: IF aso_debug_pub.g_debug_flag ='Y' THEN
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2989: END LOOP;
2990: print_tax_info(2,p_qte_header_id);
2991: IF aso_debug_pub.g_debug_flag ='Y' THEN
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2990: print_tax_info(2,p_qte_header_id);
2991: IF aso_debug_pub.g_debug_flag ='Y' THEN
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2998: l_tax_start_time := dbms_utility.get_time;
2991: IF aso_debug_pub.g_debug_flag ='Y' THEN
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2998: l_tax_start_time := dbms_utility.get_time;
2999: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: CALLED TAX ENGINE AT : '|| l_tax_start_time, 1, 'Y');
2992: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE QUOTE LINES LOOP ', 1, 'Y');
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2998: l_tax_start_time := dbms_utility.get_time;
2999: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: CALLED TAX ENGINE AT : '|| l_tax_start_time, 1, 'Y');
3000: END IF;
2993: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: BEFORE CALL TO TAX ENGINE ', 1, 'Y');
2994: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: p_api_version_number : '||p_api_version_number , 1, 'Y');
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2998: l_tax_start_time := dbms_utility.get_time;
2999: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: CALLED TAX ENGINE AT : '|| l_tax_start_time, 1, 'Y');
3000: END IF;
3001:
2995: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_init_msg_list : '||l_init_msg_list , 1, 'Y');
2996: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_commit : '||l_commit , 1, 'Y');
2997: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: l_validation_level : '||l_validation_level , 1, 'Y');
2998: l_tax_start_time := dbms_utility.get_time;
2999: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: CALLED TAX ENGINE AT : '|| l_tax_start_time, 1, 'Y');
3000: END IF;
3001:
3002: --Changes done by anrajan on 20/09/05
3003: l_msg_cnt1:= FND_MSG_PUB.Count_Msg;
3000: END IF;
3001:
3002: --Changes done by anrajan on 20/09/05
3003: l_msg_cnt1:= FND_MSG_PUB.Count_Msg;
3004: IF aso_debug_pub.g_debug_flag ='Y' THEN
3005: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: Message Count Before Tax call : '|| l_msg_cnt1, 1, 'Y');
3006: END IF;
3007:
3008: ZX_API_PUB.calculate_tax(p_api_version => p_api_version_number,
3001:
3002: --Changes done by anrajan on 20/09/05
3003: l_msg_cnt1:= FND_MSG_PUB.Count_Msg;
3004: IF aso_debug_pub.g_debug_flag ='Y' THEN
3005: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: Message Count Before Tax call : '|| l_msg_cnt1, 1, 'Y');
3006: END IF;
3007:
3008: ZX_API_PUB.calculate_tax(p_api_version => p_api_version_number,
3009: p_init_msg_list => l_init_msg_list,
3014: X_MSG_DATA =>X_Msg_Data);
3015:
3016: --Changes done by anrajan on 20/09/05
3017: l_msg_cnt2:=FND_MSG_PUB.Count_Msg;
3018: IF aso_debug_pub.g_debug_flag ='Y' THEN
3019: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: Message Count After Tax call : '|| l_msg_cnt2, 1, 'Y');
3020: END IF;
3021:
3022: IF aso_debug_pub.g_debug_flag ='Y' THEN
3015:
3016: --Changes done by anrajan on 20/09/05
3017: l_msg_cnt2:=FND_MSG_PUB.Count_Msg;
3018: IF aso_debug_pub.g_debug_flag ='Y' THEN
3019: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: Message Count After Tax call : '|| l_msg_cnt2, 1, 'Y');
3020: END IF;
3021:
3022: IF aso_debug_pub.g_debug_flag ='Y' THEN
3023: l_tax_end_time := dbms_utility.get_time;
3018: IF aso_debug_pub.g_debug_flag ='Y' THEN
3019: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: Message Count After Tax call : '|| l_msg_cnt2, 1, 'Y');
3020: END IF;
3021:
3022: IF aso_debug_pub.g_debug_flag ='Y' THEN
3023: l_tax_end_time := dbms_utility.get_time;
3024: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE ', 1, 'Y');
3025: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE : X_RETURN_STATUS : '||x_return_status , 1, 'Y');
3026: l_tax_total_time := (l_tax_end_time - l_tax_start_time)/100;
3020: END IF;
3021:
3022: IF aso_debug_pub.g_debug_flag ='Y' THEN
3023: l_tax_end_time := dbms_utility.get_time;
3024: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE ', 1, 'Y');
3025: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE : X_RETURN_STATUS : '||x_return_status , 1, 'Y');
3026: l_tax_total_time := (l_tax_end_time - l_tax_start_time)/100;
3027: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TAX CALL ENDED AT : '|| l_tax_end_time, 1, 'Y');
3028: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TIME TAKEN BY TAX ENGINE IN SECONDS: '|| l_tax_total_time, 1, 'Y');
3021:
3022: IF aso_debug_pub.g_debug_flag ='Y' THEN
3023: l_tax_end_time := dbms_utility.get_time;
3024: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE ', 1, 'Y');
3025: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE : X_RETURN_STATUS : '||x_return_status , 1, 'Y');
3026: l_tax_total_time := (l_tax_end_time - l_tax_start_time)/100;
3027: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TAX CALL ENDED AT : '|| l_tax_end_time, 1, 'Y');
3028: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TIME TAKEN BY TAX ENGINE IN SECONDS: '|| l_tax_total_time, 1, 'Y');
3029: END IF;
3023: l_tax_end_time := dbms_utility.get_time;
3024: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE ', 1, 'Y');
3025: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE : X_RETURN_STATUS : '||x_return_status , 1, 'Y');
3026: l_tax_total_time := (l_tax_end_time - l_tax_start_time)/100;
3027: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TAX CALL ENDED AT : '|| l_tax_end_time, 1, 'Y');
3028: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TIME TAKEN BY TAX ENGINE IN SECONDS: '|| l_tax_total_time, 1, 'Y');
3029: END IF;
3030:
3031: print_tax_info(3,p_qte_header_id);
3024: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE ', 1, 'Y');
3025: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER CALL TO TAX ENGINE : X_RETURN_STATUS : '||x_return_status , 1, 'Y');
3026: l_tax_total_time := (l_tax_end_time - l_tax_start_time)/100;
3027: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TAX CALL ENDED AT : '|| l_tax_end_time, 1, 'Y');
3028: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: TIME TAKEN BY TAX ENGINE IN SECONDS: '|| l_tax_total_time, 1, 'Y');
3029: END IF;
3030:
3031: print_tax_info(3,p_qte_header_id);
3032:
3032:
3033: IF x_return_status='S' THEN
3034:
3035: if p_qte_line_id is not null THEN
3036: IF aso_debug_pub.g_debug_flag ='Y' THEN
3037: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3038: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id||'; QUOTE LINE ID : '||p_qte_line_id , 1, 'Y');
3039: END IF;
3040: Delete from
3033: IF x_return_status='S' THEN
3034:
3035: if p_qte_line_id is not null THEN
3036: IF aso_debug_pub.g_debug_flag ='Y' THEN
3037: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3038: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id||'; QUOTE LINE ID : '||p_qte_line_id , 1, 'Y');
3039: END IF;
3040: Delete from
3041: ASO_TAX_DETAILS
3034:
3035: if p_qte_line_id is not null THEN
3036: IF aso_debug_pub.g_debug_flag ='Y' THEN
3037: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3038: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id||'; QUOTE LINE ID : '||p_qte_line_id , 1, 'Y');
3039: END IF;
3040: Delete from
3041: ASO_TAX_DETAILS
3042: where
3043: QUOTE_HEADER_ID=p_qte_header_id
3044: and
3045: QUOTE_LINE_ID=p_qte_line_id;
3046: ELSE
3047: IF aso_debug_pub.g_debug_flag ='Y' THEN
3048: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3049: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id,1, 'Y');
3050: END IF;
3051: Delete from ASO_TAX_DETAILS
3044: and
3045: QUOTE_LINE_ID=p_qte_line_id;
3046: ELSE
3047: IF aso_debug_pub.g_debug_flag ='Y' THEN
3048: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3049: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id,1, 'Y');
3050: END IF;
3051: Delete from ASO_TAX_DETAILS
3052: where QUOTE_HEADER_ID=p_qte_header_id
3045: QUOTE_LINE_ID=p_qte_line_id;
3046: ELSE
3047: IF aso_debug_pub.g_debug_flag ='Y' THEN
3048: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN SUCCESSFUL ', 1, 'Y');
3049: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :DELETING FROM ASO_TAX_DETAILS :QUOTE HEADER_ID : '||p_qte_header_id,1, 'Y');
3050: END IF;
3051: Delete from ASO_TAX_DETAILS
3052: where QUOTE_HEADER_ID=p_qte_header_id
3053: and QUOTE_LINE_ID is not null;
3096: --a.TRX_LEVEL_TYPE='LINE'
3097: ;
3098:
3099: --Changed by Anoop on 14 Sep 2005.
3100: IF aso_debug_pub.g_debug_flag ='Y' THEN
3101: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :Number of rows inserted : '||sql%rowcount, 1, 'Y');
3102: END IF;
3103:
3104: ELSE
3097: ;
3098:
3099: --Changed by Anoop on 14 Sep 2005.
3100: IF aso_debug_pub.g_debug_flag ='Y' THEN
3101: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :Number of rows inserted : '||sql%rowcount, 1, 'Y');
3102: END IF;
3103:
3104: ELSE
3105: IF aso_debug_pub.g_debug_flag ='Y' THEN
3101: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :Number of rows inserted : '||sql%rowcount, 1, 'Y');
3102: END IF;
3103:
3104: ELSE
3105: IF aso_debug_pub.g_debug_flag ='Y' THEN
3106: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN NOT SUCCESSFUL ', 1, 'Y');
3107: END IF;
3108: --Changes done by anrajan on 20/09/05
3109: for i in 1..(l_msg_cnt2-l_msg_cnt1)
3102: END IF;
3103:
3104: ELSE
3105: IF aso_debug_pub.g_debug_flag ='Y' THEN
3106: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :RETURN NOT SUCCESSFUL ', 1, 'Y');
3107: END IF;
3108: --Changes done by anrajan on 20/09/05
3109: for i in 1..(l_msg_cnt2-l_msg_cnt1)
3110: loop
3107: END IF;
3108: --Changes done by anrajan on 20/09/05
3109: for i in 1..(l_msg_cnt2-l_msg_cnt1)
3110: loop
3111: IF aso_debug_pub.g_debug_flag ='Y' THEN
3112: FND_MSG_PUB.GET(p_msg_index => l_msg_cnt1+1,
3113: p_data =>X_Msg_Data,
3114: p_encoded =>'F',
3115: p_msg_index_out =>X_Msg_Count);
3112: FND_MSG_PUB.GET(p_msg_index => l_msg_cnt1+1,
3113: p_data =>X_Msg_Data,
3114: p_encoded =>'F',
3115: p_msg_index_out =>X_Msg_Count);
3116: aso_debug_pub.add('ASO_TAX_INT : CALCULATE_TAX_WITH_GTT: AFTER THE TAX ENGINE CALL :X_Msg_Data : '||X_Msg_Data, 1, 'Y');
3117: END IF;
3118: FND_MSG_PUB.Delete_Msg(l_msg_cnt1+1);
3119: END LOOP;
3120: x_return_status := FND_API.G_RET_STS_SUCCESS;
3387: l_line_type_id NUMBER;
3388: l_order_type_id NUMBER := p_order_type_id;
3389: BEGIN
3390:
3391: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3392: aso_debug_pub.add(' ASO_TAX_INT :p_order_type_id'||p_order_type_id , 1, 'N');
3393: END IF;
3394:
3395: IF p_order_type_id is NULL OR p_order_type_id = FND_API.G_MISS_NUM THEN
3388: l_order_type_id NUMBER := p_order_type_id;
3389: BEGIN
3390:
3391: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3392: aso_debug_pub.add(' ASO_TAX_INT :p_order_type_id'||p_order_type_id , 1, 'N');
3393: END IF;
3394:
3395: IF p_order_type_id is NULL OR p_order_type_id = FND_API.G_MISS_NUM THEN
3396:
3403: l_order_type_id := to_number(ASO_UTILITY_PVT.get_ou_attribute_value(ASO_UTILITY_PVT.G_DEFAULT_ORDER_TYPE));
3404:
3405: -- Change END
3406:
3407: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3408: aso_debug_pub.add(' ASO_TAX_INT Porder_type id is null:l_order_type_id'||l_order_type_id , 1, 'N');
3409: END IF;
3410:
3411: END IF;
3404:
3405: -- Change END
3406:
3407: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3408: aso_debug_pub.add(' ASO_TAX_INT Porder_type id is null:l_order_type_id'||l_order_type_id , 1, 'N');
3409: END IF;
3410:
3411: END IF;
3412: OPEN C_OE_trns(l_order_type_id);
3411: END IF;
3412: OPEN C_OE_trns(l_order_type_id);
3413: FETCH C_OE_trns INTO l_in_line_type, l_out_line_type, l_cust_trx_type_id;
3414:
3415: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3416:
3417: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_in_line_type,l_out_line_type,l_cust_trx_type_id'||l_in_line_type , 1, 'N');
3418: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_out_line_type'||l_out_line_type , 1, 'N');
3419: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_cust_trx_type_id'||l_cust_trx_type_id , 1, 'N');
3413: FETCH C_OE_trns INTO l_in_line_type, l_out_line_type, l_cust_trx_type_id;
3414:
3415: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3416:
3417: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_in_line_type,l_out_line_type,l_cust_trx_type_id'||l_in_line_type , 1, 'N');
3418: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_out_line_type'||l_out_line_type , 1, 'N');
3419: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_cust_trx_type_id'||l_cust_trx_type_id , 1, 'N');
3420:
3421: END IF;
3414:
3415: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3416:
3417: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_in_line_type,l_out_line_type,l_cust_trx_type_id'||l_in_line_type , 1, 'N');
3418: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_out_line_type'||l_out_line_type , 1, 'N');
3419: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_cust_trx_type_id'||l_cust_trx_type_id , 1, 'N');
3420:
3421: END IF;
3422:
3415: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3416:
3417: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_in_line_type,l_out_line_type,l_cust_trx_type_id'||l_in_line_type , 1, 'N');
3418: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_out_line_type'||l_out_line_type , 1, 'N');
3419: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:l_cust_trx_type_id'||l_cust_trx_type_id , 1, 'N');
3420:
3421: END IF;
3422:
3423:
3423:
3424: IF C_OE_trns%NOTFOUND THEN
3425: NULL;
3426:
3427: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3428: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:NOT FOUND' , 1, 'N');
3429: END IF;
3430:
3431: END IF;
3424: IF C_OE_trns%NOTFOUND THEN
3425: NULL;
3426:
3427: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3428: aso_debug_pub.add(' ASO_TAX_INT C_OE_trns:NOT FOUND' , 1, 'N');
3429: END IF;
3430:
3431: END IF;
3432: CLOSE C_OE_trns;
3431: END IF;
3432: CLOSE C_OE_trns;
3433: IF p_qte_line_rec.order_line_type_id is NULL or p_qte_line_rec.order_line_type_id = FND_API.G_MISS_NUM THEN
3434:
3435: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3436: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.order_line_type_id is NULL' , 1, 'N');
3437: END IF;
3438:
3439: IF p_qte_line_rec.line_category_code = 'ORDER' THEN
3432: CLOSE C_OE_trns;
3433: IF p_qte_line_rec.order_line_type_id is NULL or p_qte_line_rec.order_line_type_id = FND_API.G_MISS_NUM THEN
3434:
3435: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3436: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.order_line_type_id is NULL' , 1, 'N');
3437: END IF;
3438:
3439: IF p_qte_line_rec.line_category_code = 'ORDER' THEN
3440: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3436: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.order_line_type_id is NULL' , 1, 'N');
3437: END IF;
3438:
3439: IF p_qte_line_rec.line_category_code = 'ORDER' THEN
3440: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3441: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.line_category_code '|| p_qte_line_rec.line_category_code , 1, 'N');
3442: END IF;
3443: l_line_type_id := l_out_line_type;
3444:
3437: END IF;
3438:
3439: IF p_qte_line_rec.line_category_code = 'ORDER' THEN
3440: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3441: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.line_category_code '|| p_qte_line_rec.line_category_code , 1, 'N');
3442: END IF;
3443: l_line_type_id := l_out_line_type;
3444:
3445: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3441: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.line_category_code '|| p_qte_line_rec.line_category_code , 1, 'N');
3442: END IF;
3443: l_line_type_id := l_out_line_type;
3444:
3445: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3446: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.l_out_line_typ '|| l_out_line_type , 1, 'N');
3447: END IF;
3448:
3449: ELSE
3442: END IF;
3443: l_line_type_id := l_out_line_type;
3444:
3445: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3446: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.l_out_line_typ '|| l_out_line_type , 1, 'N');
3447: END IF;
3448:
3449: ELSE
3450: l_line_type_id := l_in_line_type;
3447: END IF;
3448:
3449: ELSE
3450: l_line_type_id := l_in_line_type;
3451: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3452: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.li_n_line_typ '|| l_in_line_type , 1, 'N');
3453: END IF;
3454:
3455: END IF;
3448:
3449: ELSE
3450: l_line_type_id := l_in_line_type;
3451: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3452: aso_debug_pub.add(' ASO_TAX_INT p_qte_line_rec.li_n_line_typ '|| l_in_line_type , 1, 'N');
3453: END IF;
3454:
3455: END IF;
3456: ELSE
3456: ELSE
3457: l_line_type_id := p_qte_line_rec.order_line_type_id ;
3458: END IF;
3459:
3460: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3461: aso_debug_pub.add(' ASO_TAX_INT l_line_type_id '|| l_line_type_id , 1, 'N');
3462: END IF;
3463:
3464: IF p_qte_line_rec.line_category_code <> 'RETURN' THEN -- Standard Order Line
3457: l_line_type_id := p_qte_line_rec.order_line_type_id ;
3458: END IF;
3459:
3460: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3461: aso_debug_pub.add(' ASO_TAX_INT l_line_type_id '|| l_line_type_id , 1, 'N');
3462: END IF;
3463:
3464: IF p_qte_line_rec.line_category_code <> 'RETURN' THEN -- Standard Order Line
3465:
3462: END IF;
3463:
3464: IF p_qte_line_rec.line_category_code <> 'RETURN' THEN -- Standard Order Line
3465:
3466: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3467: aso_debug_pub.add(' ASO_TAX_INT Line Category return ' , 1, 'N');
3468: END IF;
3469:
3470: SELECT NVL(lt.cust_trx_type_id, 0)
3463:
3464: IF p_qte_line_rec.line_category_code <> 'RETURN' THEN -- Standard Order Line
3465:
3466: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3467: aso_debug_pub.add(' ASO_TAX_INT Line Category return ' , 1, 'N');
3468: END IF;
3469:
3470: SELECT NVL(lt.cust_trx_type_id, 0)
3471: INTO l_cust_trx_type_id
3471: INTO l_cust_trx_type_id
3472: FROM oe_line_types_v lt
3473: WHERE lt.line_type_id = l_line_type_id;
3474:
3475: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3476: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id Category return '||l_cust_trx_type_id , 1, 'N');
3477: END IF;
3478:
3479: IF l_cust_trx_type_id = 0 THEN
3472: FROM oe_line_types_v lt
3473: WHERE lt.line_type_id = l_line_type_id;
3474:
3475: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3476: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id Category return '||l_cust_trx_type_id , 1, 'N');
3477: END IF;
3478:
3479: IF l_cust_trx_type_id = 0 THEN
3480:
3477: END IF;
3478:
3479: IF l_cust_trx_type_id = 0 THEN
3480:
3481: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3482: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id =0before '||l_cust_trx_type_id , 1, 'N');
3483: END IF;
3484:
3485: SELECT NVL(ot.cust_trx_type_id, 0)
3478:
3479: IF l_cust_trx_type_id = 0 THEN
3480:
3481: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3482: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id =0before '||l_cust_trx_type_id , 1, 'N');
3483: END IF;
3484:
3485: SELECT NVL(ot.cust_trx_type_id, 0)
3486: INTO l_cust_trx_type_id
3486: INTO l_cust_trx_type_id
3487: FROM oe_order_types_v ot
3488: WHERE ot.order_type_id =l_order_type_id;
3489:
3490: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3491: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id =0after '||l_cust_trx_type_id , 1, 'N');
3492: END IF;
3493:
3494: IF l_cust_trx_type_id = 0 THEN
3487: FROM oe_order_types_v ot
3488: WHERE ot.order_type_id =l_order_type_id;
3489:
3490: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3491: aso_debug_pub.add(' ASO_TAX_INT l_cust_trx_type_id =0after '||l_cust_trx_type_id , 1, 'N');
3492: END IF;
3493:
3494: IF l_cust_trx_type_id = 0 THEN
3495:
3492: END IF;
3493:
3494: IF l_cust_trx_type_id = 0 THEN
3495:
3496: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3497: aso_debug_pub.add(' ASO_TAX_INT default from oe_invoice_trans profile ' , 1, 'N');
3498: END IF;
3499:
3500: SELECT NVL(FND_PROFILE.VALUE('OE_INVOICE_TRANSACTION_TYPE_ID'), 0)
3493:
3494: IF l_cust_trx_type_id = 0 THEN
3495:
3496: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3497: aso_debug_pub.add(' ASO_TAX_INT default from oe_invoice_trans profile ' , 1, 'N');
3498: END IF;
3499:
3500: SELECT NVL(FND_PROFILE.VALUE('OE_INVOICE_TRANSACTION_TYPE_ID'), 0)
3501: INTO l_cust_trx_type_id
3504: END IF;
3505: RETURN(l_cust_trx_type_id);
3506: ELSE -- Non Referenced Return Line
3507:
3508: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3509: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line ' , 1, 'N');
3510: END IF;
3511:
3512: SELECT NVL(lt.cust_trx_type_id, 0)
3505: RETURN(l_cust_trx_type_id);
3506: ELSE -- Non Referenced Return Line
3507:
3508: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3509: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line ' , 1, 'N');
3510: END IF;
3511:
3512: SELECT NVL(lt.cust_trx_type_id, 0)
3513: INTO l_inv_cust_trx_type_id
3514: FROM oe_line_types_v lt
3515: WHERE lt.line_type_id = l_line_type_id;
3516:
3517:
3518: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3519: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line l_inv_cust_trx_type_id '||l_inv_cust_trx_type_id , 1, 'N');
3520: END IF;
3521:
3522: IF l_inv_cust_trx_type_id = 0 THEN
3515: WHERE lt.line_type_id = l_line_type_id;
3516:
3517:
3518: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3519: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line l_inv_cust_trx_type_id '||l_inv_cust_trx_type_id , 1, 'N');
3520: END IF;
3521:
3522: IF l_inv_cust_trx_type_id = 0 THEN
3523: SELECT NVL(DECODE(ot.order_category_code, 'RETURN',ot.cust_trx_type_id, 0), 0)
3526: WHERE ot.order_type_id = l_order_type_id;
3527: END IF;
3528: IF l_inv_cust_trx_type_id <> 0 THEN
3529:
3530: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3531: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line credit memo ' , 1, 'N');
3532: END IF;
3533:
3534: SELECT nvl(ctt.credit_memo_type_id, 0)
3527: END IF;
3528: IF l_inv_cust_trx_type_id <> 0 THEN
3529:
3530: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3531: aso_debug_pub.add(' ASO_TAX_INT Non Referenced Return Line credit memo ' , 1, 'N');
3532: END IF;
3533:
3534: SELECT nvl(ctt.credit_memo_type_id, 0)
3535: INTO l_cust_trx_type_id
3555:
3556: EXCEPTION
3557: WHEN OTHERS THEN
3558:
3559: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3560: aso_debug_pub.add(' ASO_TAX_INT GET_RA_TRX In WHEN others ' , 1, 'N');
3561: END IF;
3562:
3563: return(0);
3556: EXCEPTION
3557: WHEN OTHERS THEN
3558:
3559: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3560: aso_debug_pub.add(' ASO_TAX_INT GET_RA_TRX In WHEN others ' , 1, 'N');
3561: END IF;
3562:
3563: return(0);
3564: END GET_ra_trx_type_ID;
3572: -- l_IO_flag CHAR(1);
3573: dummy varchar2(80) := NULL;
3574: BEGIN
3575:
3576: IF ( p_debug_level <= aso_debug_pub.G_Debug_Level) THEN
3577:
3578:
3579: --
3580: -- Dump tax_info_rec
3579: --
3580: -- Dump tax_info_rec
3581: --
3582:
3583: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3584:
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3581: --
3582:
3583: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3584:
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3582:
3583: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3584:
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3583: IF aso_debug_pub.g_debug_flag = 'Y' THEN
3584:
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3584:
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3585: aso_debug_pub.add( '************************************',1, 'Y' );
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3586: aso_debug_pub.add( '** Begining of Tax Info Record **',1, 'Y' );
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3587: aso_debug_pub.add( '************************************',1, 'Y' );
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3588: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_cust_id = '||arp_tax.tax_info_rec.Bill_to_cust_id);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3589: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_cust_id = '||arp_tax.tax_info_rec.Ship_to_cust_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3590: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_id = '||arp_tax.tax_info_rec.Customer_trx_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3591: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_date = '||arp_tax.tax_info_rec.Trx_date);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3592: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': GL_date = '||arp_tax.tax_info_rec.gl_date);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3593: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_site_use_id = '||arp_tax.tax_info_rec.Ship_to_site_use_id);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3594: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_site_use_id = '||arp_tax.tax_info_rec.Bill_to_site_use_id);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3595: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_postal_code = '||arp_tax.tax_info_rec.Ship_to_postal_code);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3596: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_postal_code = '||arp_tax.tax_info_rec.Bill_to_postal_code);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3597: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_location_id = '||arp_tax.tax_info_rec.Ship_to_location_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3598: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Bill_to_location_id = '||arp_tax.tax_info_rec.Bill_to_location_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3599: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Invoicing_rule_id = '||arp_tax.tax_info_rec.Invoicing_rule_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3600: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': FOB_point = '||arp_tax.tax_info_rec.FOB_point);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3601: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_currency_code = '||arp_tax.tax_info_rec.Trx_currency_code);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3602: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_exchange_rate = '||arp_tax.tax_info_rec.Trx_exchange_rate);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3603: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Minimum_accountable_unit = '||arp_tax.tax_info_rec.Minimum_accountable_unit);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3604: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Precision = '||arp_tax.tax_info_rec.Precision);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3605: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_line_id = '||arp_tax.tax_info_rec.Customer_trx_line_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3606: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': link_to_cust_trx_line_id = '||arp_tax.tax_info_rec.link_to_cust_trx_line_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3607: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Memo_line_id = '||arp_tax.tax_info_rec.Memo_line_id);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3608: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxed_quantity = '||arp_tax.tax_info_rec.Taxed_quantity);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3609: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Inventory_item_id = '||arp_tax.tax_info_rec.Inventory_item_id);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3610: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Extended_amount = '||arp_tax.tax_info_rec.Extended_amount);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3611: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_code = '||arp_tax.tax_info_rec.Tax_code);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3612: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vat_tax_id = '||arp_tax.tax_info_rec.Vat_tax_id);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3613: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_exemption_id = '||arp_tax.tax_info_rec.Tax_exemption_id);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3614: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Item_exception_rate_id = '||arp_tax.tax_info_rec.Item_exception_rate_id);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3615: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rate = '||arp_tax.tax_info_rec.Tax_rate);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3616: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_transaction_code = '||arp_tax.tax_info_rec.Default_ussgl_transaction_code);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3617: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Default_ussgl_trx_code_context = '||arp_tax.tax_info_rec.Default_ussgl_trx_code_context);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3618: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_control = '||arp_tax.tax_info_rec.Tax_control);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3619: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Qualifier = '||arp_tax.tax_info_rec.Qualifier);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3620: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_from_code = '||arp_tax.tax_info_rec.Ship_from_code);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3621: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_to_code = '||arp_tax.tax_info_rec.Ship_to_code);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3622: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_code = '||arp_tax.tax_info_rec.Poo_code);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3623: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_code = '||arp_tax.tax_info_rec.Poa_code);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3624: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Vdrctrl_exempt = '||arp_tax.tax_info_rec.Vdrctrl_exempt);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3625: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_cert_no = '||arp_tax.tax_info_rec.Xmpt_cert_no);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3626: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_reason = '||arp_tax.tax_info_rec.Xmpt_reason);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3627: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Xmpt_percent = '||arp_tax.tax_info_rec.Xmpt_percent);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3628: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Part_no = '||arp_tax.tax_info_rec.Part_no);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3629: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf1 = '||arp_tax.tax_info_rec.Userf1);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3630: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf2 = '||arp_tax.tax_info_rec.Userf2);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3631: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf3 = '||arp_tax.tax_info_rec.Userf3);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3632: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf4 = '||arp_tax.tax_info_rec.Userf4);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3633: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf5 = '||arp_tax.tax_info_rec.Userf5);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3634: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf6 = '||arp_tax.tax_info_rec.Userf6);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3635: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf7 = '||arp_tax.tax_info_rec.Userf7);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3636: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf8 = '||arp_tax.tax_info_rec.Userf8);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3637: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf9 = '||arp_tax.tax_info_rec.Userf9);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3638: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Userf10 = '||arp_tax.tax_info_rec.Userf10);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3639: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern1 = '||arp_tax.tax_info_rec.Usern1);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3640: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern2 = '||arp_tax.tax_info_rec.Usern2);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3641: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern3 = '||arp_tax.tax_info_rec.Usern3);
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3642: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern4 = '||arp_tax.tax_info_rec.Usern4);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3643: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern5 = '||arp_tax.tax_info_rec.Usern5);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3644: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern6 = '||arp_tax.tax_info_rec.Usern6);
3645: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern7 = '||arp_tax.tax_info_rec.Usern7);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3646: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern8 = '||arp_tax.tax_info_rec.Usern8);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3647: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern9 = '||arp_tax.tax_info_rec.Usern9);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3648: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Usern10 = '||arp_tax.tax_info_rec.Usern10);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3649:
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3650: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': trx_number = '||arp_tax.tax_info_rec.trx_number);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3651: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_line_id = '||arp_tax.tax_info_rec.previous_customer_trx_line_id);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3652: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_customer_trx_id = '||arp_tax.tax_info_rec.previous_customer_trx_id);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3653: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': previous_trx_number = '||arp_tax.tax_info_rec.previous_trx_number);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3654: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_number = '||arp_tax.tax_info_rec.bill_to_customer_number);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3655: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_number = '||arp_tax.tax_info_rec.ship_to_customer_number);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3656: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': bill_to_customer_name = '||arp_tax.tax_info_rec.bill_to_customer_name);
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3664: END IF;
3657: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': ship_to_customer_name = '||arp_tax.tax_info_rec.ship_to_customer_name);
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3664: END IF;
3665:
3658: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Audit_Flag = ' || arp_tax.tax_info_rec.audit_flag);
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3664: END IF;
3665:
3666: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3659: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_Line_Type = ' || arp_tax.tax_info_rec.trx_line_type);
3660: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Division Code = ' || arp_tax.tax_info_rec.division_code);
3661: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Company Code = '|| arp_tax.tax_info_rec.company_code);
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3664: END IF;
3665:
3666: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3667: IF ( arp_tax.tax_info_rec.tax_type = 0 ) THEN
3662: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Calculate_tax = '||arp_tax.tax_info_rec.Calculate_tax);
3663: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Status = '||arp_tax.tax_info_rec.Status);
3664: END IF;
3665:
3666: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3667: IF ( arp_tax.tax_info_rec.tax_type = 0 ) THEN
3668: dummy := 'TAX_TYPE_INACTIVE';
3669: ELSIF ( arp_tax.tax_info_rec.tax_type = 1 ) THEN
3670: dummy := 'TAX_TYPE_LOCATION';
3677: END IF;
3678: END IF;
3679:
3680:
3681: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3678: END IF;
3679:
3680:
3681: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3679:
3680:
3681: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3680:
3681: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3681: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3682: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_type = '||arp_tax.tax_info_rec.tax_type||' : '||dummy);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3683: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Sales_tax_id = '||arp_tax.tax_info_rec.Sales_tax_id);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3684: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Location_segment_id = '||arp_tax.tax_info_rec.Location_segment_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3685: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_line_number = '||arp_tax.tax_info_rec.Tax_line_number);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3686: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_amount = '||arp_tax.tax_info_rec.Tax_amount);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3687: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_vendor_return_code = '||dummy);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3688: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_precedence = '||arp_tax.tax_info_rec.Tax_precedence);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3689: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Compound_amount = '||arp_tax.tax_info_rec.Compound_amount);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3690: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_header_level_flag = '||arp_tax.tax_info_rec.Tax_header_level_flag);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3691: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Tax_rounding_rule = '||arp_tax.tax_info_rec.Tax_rounding_rule);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3692: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Trx_type_id = '||arp_tax.tax_info_rec.Trx_type_id);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3693: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Ship_From_Warehouse_id = '||arp_tax.tax_info_rec.Ship_From_Warehouse_id);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3694: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Amount_includes_tax_flag = '||arp_tax.tax_info_rec.Amount_includes_tax_flag);
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3695: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Customer_trx_charge_line_id = '||arp_tax.tax_info_rec.customer_trx_charge_line_id);
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3696: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poo_id = '||arp_tax.tax_info_rec.poo_id);
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3697: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Poa_id = '||arp_tax.tax_info_rec.poa_id);
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3705: aso_debug_pub.add( 'print_tax_info_rec()-' ,1, 'N');
3698: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_amount = '||arp_tax.tax_info_rec.taxable_amount);
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3705: aso_debug_pub.add( 'print_tax_info_rec()-' ,1, 'N');
3706: END IF;
3699: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Taxable_basis = '||arp_tax.tax_info_rec.taxable_basis);
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3705: aso_debug_pub.add( 'print_tax_info_rec()-' ,1, 'N');
3706: END IF;
3707:
3700: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Override Tax Rate = '||arp_tax.tax_info_rec.override_tax_rate);
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3705: aso_debug_pub.add( 'print_tax_info_rec()-' ,1, 'N');
3706: END IF;
3707:
3708: END IF;
3701: aso_debug_pub.add( 'arp_tax.tax_info_rec'||': Party Flag = '||arp_tax.tax_info_rec.party_flag);
3702: aso_debug_pub.add( '*******************************');
3703: aso_debug_pub.add( '** End of Tax Info Record **');
3704: aso_debug_pub.add( '*******************************');
3705: aso_debug_pub.add( 'print_tax_info_rec()-' ,1, 'N');
3706: END IF;
3707:
3708: END IF;
3709: END print_tax_info_rec;
3818: where
3819: TRX_ID=qte_header_id;
3820:
3821: BEGIN
3822: IF (aso_debug_pub.g_debug_flag = 'Y' and rec=1) THEN
3823: for i in c1 LOOP
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3820:
3821: BEGIN
3822: IF (aso_debug_pub.g_debug_flag = 'Y' and rec=1) THEN
3823: for i in c1 LOOP
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3821: BEGIN
3822: IF (aso_debug_pub.g_debug_flag = 'Y' and rec=1) THEN
3823: for i in c1 LOOP
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3822: IF (aso_debug_pub.g_debug_flag = 'Y' and rec=1) THEN
3823: for i in c1 LOOP
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3823: for i in c1 LOOP
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3824: aso_debug_pub.add( '******************************************',1, 'Y' );
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3825: aso_debug_pub.add( '***** After insertion into ZX_TRX_HEADERS_GTT *****',1, 'Y' );
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3826: aso_debug_pub.add( '******************************************',1, 'Y' );
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3827: aso_debug_pub.add(rpad('INTERNAL_ORGANIZATION_ID',50,'------')||'------>'||i.INTERNAL_ORGANIZATION_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3828: aso_debug_pub.add(rpad('INTERNAL_ORG_LOCATION_ID',50,'------')||'------>'||i.INTERNAL_ORG_LOCATION_ID , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3829: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3830: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3831: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3832: aso_debug_pub.add(rpad('EVENT_TYPE_CODE',50,'------')||'------>'||i.EVENT_TYPE_CODE , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3833: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3834: aso_debug_pub.add(rpad('TRX_DATE',50,'------')||'------>'||i.TRX_DATE , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3835: aso_debug_pub.add(rpad('LEDGER_ID',50,'------')||'------>'||i.LEDGER_ID , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3836: aso_debug_pub.add(rpad('TRX_CURRENCY_CODE',50,'------')||'------>'||i.TRX_CURRENCY_CODE , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3837: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_DATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_DATE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3838: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_RATE',50,'------')||'------>'||i.CURRENCY_CONVERSION_RATE , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3839: aso_debug_pub.add(rpad('CURRENCY_CONVERSION_TYPE',50,'------')||'------>'||i.CURRENCY_CONVERSION_TYPE , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3840: aso_debug_pub.add(rpad('MINIMUM_ACCOUNTABLE_UNIT',50,'------')||'------>'||i.MINIMUM_ACCOUNTABLE_UNIT , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3841: aso_debug_pub.add(rpad('PRECISION',50,'------')||'------>'||i.PRECISION , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3842: aso_debug_pub.add(rpad('LEGAL_ENTITY_ID',50,'------')||'------>'||i.LEGAL_ENTITY_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3843: aso_debug_pub.add(rpad('QUOTE_FLAG',50,'------')||'------>'||i.QUOTE_FLAG , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3844: aso_debug_pub.add(rpad('TRX_NUMBER',50,'------')||'------>'||i.TRX_NUMBER , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3845: aso_debug_pub.add(rpad('TAX_EVENT_TYPE_CODE',50,'------')||'------>'||i.TAX_EVENT_TYPE_CODE , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3846: aso_debug_pub.add(rpad('TAX_REPORTING_FLAG',50,'------')||'------>'||i.TAX_REPORTING_FLAG , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3847: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3848: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3849: aso_debug_pub.add(rpad('DOC_LEVEL_RECALC_FLAG',50,'------')||'------>'||i.DOC_LEVEL_RECALC_FLAG , 1, 'Y');
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3850: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3851: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3852: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3853: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3854: aso_debug_pub.add(rpad('ROUNDING_BILL_TO_PARTY_ID',50,'------')||'------>'||i.ROUNDING_BILL_TO_PARTY_ID , 1, 'Y');
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3855: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3856: --aso_debug_pub.add('*****INSERTED INTO ZX_TRX_HEADERS_GTT*****',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3857: --aso_debug_pub.add('******************************************',1, 'Y' );
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3858: end loop;
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3859: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=2) THEN
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3860: for i in c2 loop
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3861: aso_debug_pub.add( '******************************************',1, 'Y' );
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3862: aso_debug_pub.add( '***** After insertion into Zx_transaction_lines_gt *****',1, 'Y' );
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3863: aso_debug_pub.add( '******************************************',1, 'Y' );
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3864: aso_debug_pub.add(rpad('APPLICATION_ID',50,'------')||'------>'||i.APPLICATION_ID , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3865: aso_debug_pub.add(rpad('ENTITY_CODE',50,'------')||'------>'||i.ENTITY_CODE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3866: aso_debug_pub.add(rpad('EVENT_CLASS_CODE',50,'------')||'------>'||i.EVENT_CLASS_CODE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3867: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3868: aso_debug_pub.add(rpad('TRX_LEVEL_TYPE',50,'------')||'------>'||i.TRX_LEVEL_TYPE , 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3869: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3870: aso_debug_pub.add(rpad('LINE_LEVEL_ACTION',50,'------')||'------>'||i.LINE_LEVEL_ACTION , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3871: aso_debug_pub.add(rpad('LINE_CLASS',50,'------')||'------>'||i.LINE_CLASS , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3872: aso_debug_pub.add(rpad('TRX_SHIPPING_DATE',50,'------')||'------>'||i.TRX_SHIPPING_DATE , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3873: aso_debug_pub.add(rpad('TRX_LINE_TYPE',50,'------')||'------>'||i.TRX_LINE_TYPE , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3874: aso_debug_pub.add(rpad('TRX_LINE_DATE',50,'------')||'------>'||i.TRX_LINE_DATE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3875: aso_debug_pub.add(rpad('TRX_BUSINESS_CATEGORY',50,'------')||'------>'||i.TRX_BUSINESS_CATEGORY , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3876: aso_debug_pub.add(rpad('LINE_AMT',50,'------')||'------>'||i.LINE_AMT, 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3877: aso_debug_pub.add(rpad('TRX_LINE_QUANTITY',50,'------')||'------>'||i.TRX_LINE_QUANTITY , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3878: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3879: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3880: aso_debug_pub.add(rpad('PRODUCT_ID',50,'------')||'------>'||i.PRODUCT_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3881: aso_debug_pub.add(rpad('PRODUCT_ORG_ID',50,'------')||'------>'||i.PRODUCT_ORG_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3882: aso_debug_pub.add(rpad('UOM_CODE',50,'------')||'------>'||i.UOM_CODE , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3883: aso_debug_pub.add(rpad('PRODUCT_TYPE',50,'------')||'------>'||i.PRODUCT_TYPE , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3884: aso_debug_pub.add(rpad('FOB_POINT',50,'------')||'------>'||i.FOB_POINT , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3885: aso_debug_pub.add(rpad('SHIP_TO_PARTY_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_ID , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3886: aso_debug_pub.add(rpad('SHIP_FROM_PARTY_ID',50,'------')||'------>'||i.SHIP_FROM_PARTY_ID , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3887: aso_debug_pub.add(rpad('BILL_TO_PARTY_ID',50,'------')||'------>'||i.BILL_TO_PARTY_ID , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3888: aso_debug_pub.add(rpad('SHIP_TO_PARTY_SITE_ID',50,'------')||'------>'||i.SHIP_TO_PARTY_SITE_ID , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3889: aso_debug_pub.add(rpad('BILL_TO_PARTY_SITE_ID',50,'------')||'------>'||i.BILL_TO_PARTY_SITE_ID , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3890: aso_debug_pub.add(rpad('SHIP_TO_LOCATION_ID',50,'------')||'------>'||i.SHIP_TO_LOCATION_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3891: aso_debug_pub.add(rpad('BILL_TO_LOCATION_ID',50,'------')||'------>'||i.BILL_TO_LOCATION_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3892: aso_debug_pub.add(rpad('SHIP_FROM_LOCATION_ID',50,'------')||'------>'||i.SHIP_FROM_LOCATION_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3893: aso_debug_pub.add(rpad('HISTORICAL_FLAG',50,'------')||'------>'||i.HISTORICAL_FLAG , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3894: aso_debug_pub.add(rpad('LINE_AMT_INCLUDES_TAX_FLAG',50,'------')||'------>'||i.LINE_AMT_INCLUDES_TAX_FLAG , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3895: aso_debug_pub.add(rpad('EXEMPTION_CONTROL_FLAG',50,'------')||'------>'||i.EXEMPTION_CONTROL_FLAG , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3896: aso_debug_pub.add(rpad('UNIT_PRICE',50,'------')||'------>'||i.UNIT_PRICE , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3897: aso_debug_pub.add(rpad('TRX_LINE_GL_DATE',50,'------')||'------>'||i.TRX_LINE_GL_DATE , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3898: aso_debug_pub.add(rpad('RECEIVABLES_TRX_TYPE_ID',50,'------')||'------>'||i.RECEIVABLES_TRX_TYPE_ID , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3899: aso_debug_pub.add(rpad('BILL_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.BILL_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3900: aso_debug_pub.add(rpad('SHIP_TO_CUST_ACCT_SITE_USE_ID',50,'------')||'------>'||i.SHIP_TO_CUST_ACCT_SITE_USE_ID , 1, 'Y');
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3901: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3902: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_SITE_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_SITE_ID , 1, 'Y');
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3903: aso_debug_pub.add(rpad('SHIP_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.SHIP_THIRD_PTY_ACCT_ID , 1, 'Y');
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3904: aso_debug_pub.add(rpad('BILL_THIRD_PTY_ACCT_ID',50,'------')||'------>'||i.BILL_THIRD_PTY_ACCT_ID , 1, 'Y');
3905: aso_debug_pub.add(rpad('CTRL_HDR_TX_APPL_FLAG ',50,'------')||'------>'||i.CTRL_HDR_TX_APPL_FLAG , 1, 'Y');
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3906: aso_debug_pub.add(rpad('TRX_LINE_NUMBER ',50,'------')||'------>'||i.TRX_LINE_NUMBER , 1, 'Y');
3907: aso_debug_pub.add(rpad('BILL_FROM_LOCATION_ID',50,'------')||'------>'||i.BILL_FROM_LOCATION_ID , 1, 'Y'); -- bug 7408162
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3908: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3909: end loop;
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3910: ELSIF (aso_debug_pub.g_debug_flag = 'Y' and rec=3) THEN
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3911: for i in c3 loop
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3912: aso_debug_pub.add( '******************************************',1, 'Y' );
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3913: aso_debug_pub.add( '***** After insertion into Zx_detail_tax_lines_gt *****',1, 'Y' );
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3914: aso_debug_pub.add( '******************************************',1, 'Y' );
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3915: aso_debug_pub.add(rpad('TRX_ID',50,'------')||'------>'||i.TRX_ID , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3916: aso_debug_pub.add(rpad('TRX_LINE_ID',50,'------')||'------>'||i.TRX_LINE_ID , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3917: aso_debug_pub.add(rpad('TAX_RATE_CODE',50,'------')||'------>'||i.TAX_RATE_CODE , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3918: aso_debug_pub.add(rpad('TAX_RATE',50,'------')||'------>'||i.TAX_RATE , 1, 'Y');
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3926: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3919: aso_debug_pub.add(rpad('TAX_DETERMINE_DATE',50,'------')||'------>'||i.TAX_DETERMINE_DATE , 1, 'Y');
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3926: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3927: end loop;
3920: aso_debug_pub.add(rpad('TAX_AMT',50,'------')||'------>'||i.TAX_AMT , 1, 'Y');
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3926: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3927: end loop;
3928: END IF;
3921: aso_debug_pub.add(rpad('EXEMPT_CERTIFICATE_NUMBER',50,'------')||'------>'||i.EXEMPT_CERTIFICATE_NUMBER , 1, 'Y');
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3926: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3927: end loop;
3928: END IF;
3929:
3922: aso_debug_pub.add(rpad('EXEMPT_REASON_CODE',50,'------')||'------>'||i.EXEMPT_REASON_CODE , 1, 'Y');
3923: aso_debug_pub.add(rpad('TAX_AMT_INCLUDED_FLAG',50,'------')||'------>'||i.TAX_AMT_INCLUDED_FLAG , 1, 'Y');
3924: aso_debug_pub.add(rpad('OBJECT_VERSION_NUMBER',50,'------')||'------>'||i.OBJECT_VERSION_NUMBER , 1, 'Y');
3925: aso_debug_pub.add(rpad('TAX_RATE_ID',50,'------')||'------>'||i.TAX_RATE_ID , 1, 'Y');
3926: aso_debug_pub.add(rpad('*',100,'*'),1, 'Y' );
3927: end loop;
3928: END IF;
3929:
3930: END print_tax_info;