DBA Data[Home] [Help]

APPS.ASO_PRICING_FLOWS_PVT dependencies on ASO_PRICING_FLOWS_PVT

Line 1: PACKAGE BODY ASO_PRICING_FLOWS_PVT as

1: PACKAGE BODY ASO_PRICING_FLOWS_PVT as
2: /* $Header: asovpflb.pls 120.13 2012/01/02 06:16:04 rassharm ship $ */
3: -- Start of Comments
4: -- Package name : ASO_PRICING_FLOWS_PVT
5: -- Purpose :

Line 4: -- Package name : ASO_PRICING_FLOWS_PVT

1: PACKAGE BODY ASO_PRICING_FLOWS_PVT as
2: /* $Header: asovpflb.pls 120.13 2012/01/02 06:16:04 rassharm ship $ */
3: -- Start of Comments
4: -- Package name : ASO_PRICING_FLOWS_PVT
5: -- Purpose :
6: -- History :
7: -- NOTE :
8: -- End of Comments

Line 11: G_PKG_NAME CONSTANT VARCHAR2(30):= 'ASO_PRICING_FLOWS_PVT';

7: -- NOTE :
8: -- End of Comments
9:
10:
11: G_PKG_NAME CONSTANT VARCHAR2(30):= 'ASO_PRICING_FLOWS_PVT';
12: G_FILE_NAME CONSTANT VARCHAR2(12) := 'asovpflb.pls';
13: --G_ADJ_NUM CONSTANT NUMBER := 999;
14:
15: /******************************************************************************

Line 82: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Entire_Quote',1,'Y');

78: END IF;
79:
80: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
81: l_pricing_start_time := dbms_utility.get_time;
82: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Entire_Quote',1,'Y');
83: END IF;
84:
85: x_return_status := FND_API.G_RET_STS_SUCCESS;
86:

Line 88: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');

84:
85: x_return_status := FND_API.G_RET_STS_SUCCESS;
86:
87: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
88: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
89: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
90: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
91: END IF;
92:

Line 89: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');

85: x_return_status := FND_API.G_RET_STS_SUCCESS;
86:
87: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
88: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
89: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
90: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
91: END IF;
92:
93: l_prc_control_rec := p_control_rec;

Line 90: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');

86:
87: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
88: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
89: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
90: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
91: END IF;
92:
93: l_prc_control_rec := p_control_rec;
94: l_price_index := 1;

Line 98: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_internal_call_flag: '||p_internal_call_flag,1,'Y');

94: l_price_index := 1;
95:
96: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
97: aso_debug_pub.add('********************* PROCESSING HEADER STARTS *******************************',1,'Y');
98: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_internal_call_flag: '||p_internal_call_flag,1,'Y');
99: END IF;
100:
101: If p_internal_call_flag = 'N' then
102: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 103: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');

99: END IF;
100:
101: If p_internal_call_flag = 'N' then
102: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
103: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');
104: END IF;
105: ASO_PRICING_INT.G_HEADER_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (
106: p_qte_header_rec => p_qte_header_rec,
107: p_shipment_rec => p_hd_shipment_rec);

Line 130: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

126:
127: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
128: l_pricing_start_time := dbms_utility.get_time;
129: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
130: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
131: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
132: END IF;
133:
134:

Line 131: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');

127: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
128: l_pricing_start_time := dbms_utility.get_time;
129: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
130: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
131: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
132: END IF;
133:
134:
135: ASO_PRICING_CORE_PVT.Copy_Header_To_Request(

Line 141: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

137: p_price_line_index => l_price_index,
138: px_index_counter => 1);
139:
140: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
141: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
142: END IF;
143:
144: lx_index_counter:= 1;
145: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 152: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'

148: p_header_id => p_qte_header_rec.quote_header_id,
149: px_index_counter => lx_index_counter);
150:
151: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
152: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'
153: ||lx_index_counter,1,'Y');
154: END IF;
155: --increment the line index
156: l_price_index:= l_price_index+1;

Line 164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');

160: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
161: aso_debug_pub.add('************************ HEADER LEVEL ENDS *******************************',1,'Y');
162: aso_debug_pub.add(' ',1,'Y');
163: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');
165: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'
166: ||p_control_rec.pricing_event,1,'Y');
167: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'
168: ||p_control_rec.request_type,1,'Y');

Line 165: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'

161: aso_debug_pub.add('************************ HEADER LEVEL ENDS *******************************',1,'Y');
162: aso_debug_pub.add(' ',1,'Y');
163: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');
165: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'
166: ||p_control_rec.pricing_event,1,'Y');
167: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'
168: ||p_control_rec.request_type,1,'Y');
169: l_pricing_end_time := dbms_utility.get_time;

Line 167: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'

163: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');
165: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'
166: ||p_control_rec.pricing_event,1,'Y');
167: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'
168: ||p_control_rec.request_type,1,'Y');
169: l_pricing_end_time := dbms_utility.get_time;
170: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
171: END IF;

Line 182: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'

178: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
179: l_pricing_start_time := dbms_utility.get_time;
180: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
181:
182: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
183: ||lx_order_status_rec.all_lines_flag,1,'Y');
184: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
185: ||lx_order_status_rec.changed_lines_flag,1,'Y');
186: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'

Line 184: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'

180: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
181:
182: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
183: ||lx_order_status_rec.all_lines_flag,1,'Y');
184: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
185: ||lx_order_status_rec.changed_lines_flag,1,'Y');
186: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'
187: ||lx_order_status_rec.summary_line_flag,1,'Y');
188: END IF;

Line 186: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'

182: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
183: ||lx_order_status_rec.all_lines_flag,1,'Y');
184: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
185: ||lx_order_status_rec.changed_lines_flag,1,'Y');
186: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'
187: ||lx_order_status_rec.summary_line_flag,1,'Y');
188: END IF;
189:
190: If lx_order_status_rec.all_lines_flag = 'N' then

Line 199: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl.count :'||NVL(l_qte_line_tbl.count,0),1,'Y');

195:
196: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Pricing_Line_Rows(p_qte_header_rec.quote_header_id);
197:
198: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
199: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl.count :'||NVL(l_qte_line_tbl.count,0),1,'Y');
200: l_pricing_end_time := dbms_utility.get_time;
201: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
202: END IF;
203:

Line 207: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No lines in the database',1,'Y');

203:
204: -- Added this code to delete all the adjustments when there are no items in the cart
205: If l_qte_line_tbl.count = 0 Then
206: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
207: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No lines in the database',1,'Y');
208: END IF;
209:
210: Else
211: -- Line Count <> 0.

Line 217: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');

213: For i in 1..l_qte_line_tbl.count Loop
214:
215: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
216: l_pricing_start_time := dbms_utility.get_time;
217: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
218: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
219: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
220: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
221: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');

Line 218: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'

214:
215: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
216: l_pricing_start_time := dbms_utility.get_time;
217: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
218: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
219: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
220: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
221: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');
222: END IF;

Line 220: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'

216: l_pricing_start_time := dbms_utility.get_time;
217: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
218: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
219: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
220: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
221: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');
222: END IF;
223:
224: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;

Line 228: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');

224: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;
225: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
226:
227: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
228: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
229: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
230: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
232: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');

Line 229: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'

225: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
226:
227: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
228: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
229: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
230: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
232: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
233: END IF;

Line 231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'

227: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
228: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
229: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
230: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
232: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
233: END IF;
234: -- Pass header_level currency_code to line level by default.
235: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;

Line 238: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'

234: -- Pass header_level currency_code to line level by default.
235: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;
236:
237: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
238: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'
239: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
240: END IF;
241: -- Pass Header level price list by default.
242: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then

Line 244: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');

240: END IF;
241: -- Pass Header level price list by default.
242: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then
243: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
244: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');
245: END IF;
246: ELSE
247: /*Default the price list*/
248: If (l_qte_line_tbl(i).price_list_id is null

Line 252: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'

248: If (l_qte_line_tbl(i).price_list_id is null
249: OR l_qte_line_tbl(i).price_list_id= FND_API.G_MISS_NUM) Then
250: l_qte_line_tbl(i).price_list_id := p_qte_header_rec.price_list_id;
251: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
252: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'
253: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
254: END IF;
255: End if;
256: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'

Line 259: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'

255: End if;
256: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'
257:
258: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
259: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'
260: ||NVL(l_qte_line_dtl_tbl.count,0),1,'Y');
261: END IF;
262: IF l_qte_line_dtl_tbl.count = 1 THEN
263: l_qte_line_dtl_rec := l_qte_line_dtl_tbl(1);

Line 269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');

265: l_qte_line_dtl_rec := ASO_QUOTE_PUB.G_Miss_Qte_Line_Dtl_REC ;
266: END IF;
267:
268: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');
270: END IF;
271: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
272: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
273: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 274: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'

270: END IF;
271: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
272: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
273: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
274: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'
275: ||NVL(l_shipment_tbl.count,0),1,'Y');
276: END IF;
277: IF l_shipment_tbl.count = 1 THEN
278: l_shipment_rec := l_shipment_tbl(1);

Line 284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');

280: l_shipment_rec := ASO_QUOTE_PUB.G_Miss_Shipment_rec;
281: END IF;
282:
283: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
285: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
287: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

Line 285: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');

281: END IF;
282:
283: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
285: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
287: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
289: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');

Line 286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'

282:
283: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
285: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
287: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
289: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

Line 288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
285: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
287: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
289: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
291: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

Line 290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

286: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
287: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
289: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
291: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
293: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

Line 292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

288: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
289: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
291: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
293: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
295: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

Line 294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

290: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
291: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
293: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
295: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
297: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
298: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

Line 296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
293: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
295: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
297: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
298: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
299: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

Line 298: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

294: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
295: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
297: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
298: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
299: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
301: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
302: END IF;

Line 300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

296: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
297: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
298: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
299: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
301: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
302: END IF;
303:
304: ASO_PRICING_INT.G_LINE_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (

Line 312: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');

308:
309: ASO_PRICING_CORE_PVT.Print_G_Line_Rec;
310:
311: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
312: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');
313: l_pricing_end_time := dbms_utility.get_time;
314: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
315: END IF;
316: QP_ATTR_MAPPING_PUB.Build_Contexts (

Line 327: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

323: x_pass_line => x_pass_line);
324: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
325: l_pricing_start_time := dbms_utility.get_time;
326: l_accum_qp_time := l_accum_qp_time +(l_pricing_start_time - l_pricing_end_time);
327: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
328: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
329: END IF;
330:
331: ASO_PRICING_CORE_PVT.Copy_Line_To_Request(

Line 328: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');

324: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
325: l_pricing_start_time := dbms_utility.get_time;
326: l_accum_qp_time := l_accum_qp_time +(l_pricing_start_time - l_pricing_end_time);
327: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
328: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
329: END IF;
330:
331: ASO_PRICING_CORE_PVT.Copy_Line_To_Request(
332: p_Request_Type => p_control_rec.request_type,

Line 338: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

334: px_index_counter => i+1);
335:
336:
337: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
338: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
339: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
340: ||lx_index_counter,1,'Y');
341: END IF;
342: l_index_counter := lx_index_counter;

Line 339: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'

335:
336:
337: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
338: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
339: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
340: ||lx_index_counter,1,'Y');
341: END IF;
342: l_index_counter := lx_index_counter;
343: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 350: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'

346: p_header_id => p_qte_header_rec.quote_header_id,
347: p_line_id => l_qte_line_tbl(i).quote_line_id,
348: px_index_counter => lx_index_counter);
349: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
350: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'
351: ||lx_index_counter,1,'Y');
352: END IF;
353: If lx_index_counter = 0 then
354: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 355: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning the value of l_index_counter back to lx_index_counter:'||l_index_counter,1,'Y');

351: ||lx_index_counter,1,'Y');
352: END IF;
353: If lx_index_counter = 0 then
354: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
355: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning the value of l_index_counter back to lx_index_counter:'||l_index_counter,1,'Y');
356: END IF;
357: lx_index_counter := l_index_counter;
358: end if;
359:

Line 364: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');

360: /*Store the line_id of all the service_lines*/
361: If l_qte_line_tbl(i).service_item_flag = 'Y' then
362: if l_service_qte_line_id_tbl.EXISTS(1) then
363: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
364: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');
365: END IF;
366: l_service_qte_line_id_tbl.extend;
367: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count)
368: := l_qte_line_tbl(i).quote_line_id;

Line 371: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');

367: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count)
368: := l_qte_line_tbl(i).quote_line_id;
369: else
370: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
371: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');
372: END IF;
373: l_service_qte_line_id_tbl:= JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
374: end if;
375: end if;-- l_qte_line_tbl(i).service_item_flag = 'Y'

Line 380: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');

376:
377: /*Store all the quote_line_id processed*/
378: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
379: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
380: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');
381: END IF;
382: l_Qte_Line_id_tbl.extend;
383: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
384: ELSE

Line 386: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');

382: l_Qte_Line_id_tbl.extend;
383: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
384: ELSE
385: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
386: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');
387: END IF;
388: l_Qte_Line_id_tbl := JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
389: END IF;
390: --increment the line index

Line 402: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');

398:
399: -- Call to Price Adjustment Relationships and Service Relationships
400: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
401: l_pricing_start_time := dbms_utility.get_time;
402: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
403: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'
404: ||NVL(l_qte_line_id_tbl.count,0),1,'Y');
405: END IF;
406: ASO_PRICING_CORE_PVT.Query_Price_Adjustments

Line 403: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'

399: -- Call to Price Adjustment Relationships and Service Relationships
400: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
401: l_pricing_start_time := dbms_utility.get_time;
402: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
403: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'
404: ||NVL(l_qte_line_id_tbl.count,0),1,'Y');
405: END IF;
406: ASO_PRICING_CORE_PVT.Query_Price_Adjustments
407: (p_quote_header_id => p_qte_header_rec.quote_header_id,

Line 414: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');

410:
411: If l_qte_adj_id_tbl.exists(1) OR l_service_qte_line_id_tbl.exists(1) Then
412: -- Adjustment and line Relationships and services...
413: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
414: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');
415: If l_qte_adj_id_tbl is not null then
416: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
417: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
418: end if;

Line 416: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'

412: -- Adjustment and line Relationships and services...
413: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
414: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');
415: If l_qte_adj_id_tbl is not null then
416: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
417: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
418: end if;
419: If l_service_qte_line_id_tbl is not null then
420: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'

Line 420: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'

416: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
417: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
418: end if;
419: If l_service_qte_line_id_tbl is not null then
420: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'
421: ||NVL(l_service_qte_line_id_tbl.count,0),1,'Y');
422: end if;
423: END IF;
424: ASO_PRICING_CORE_PVT.Query_relationships

Line 429: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: There are no service lines or manual related Adjustments',1,'Y');

425: (p_qte_adj_id_tbl => l_qte_adj_id_tbl,
426: p_service_qte_line_id_tbl => l_service_qte_line_id_tbl);
427: else
428: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
429: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: There are no service lines or manual related Adjustments',1,'Y');
430: END IF;
431: end if;--If l_qte_adj_id_tbl.exists(1) OR l_service_qte_line_id_tbl.exists(1)
432:
433: END IF; -- l_qte_line_tbl.count = 0 check.

Line 437: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin bulk collect adj ids', 1, 'Y');

433: END IF; -- l_qte_line_tbl.count = 0 check.
434:
435:
436: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
437: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin bulk collect adj ids', 1, 'Y');
438: END IF;
439:
440: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
441: --If nvl(l_qte_adj_id_tbl.count,0) > 0 then

Line 444: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');

440: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
441: --If nvl(l_qte_adj_id_tbl.count,0) > 0 then
442: If l_qte_adj_id_tbl is not null then
443: For i in 1..l_qte_adj_id_tbl.count loop
444: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');
445: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');
446: end loop;
447: end if;
448: END IF;

Line 445: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');

441: --If nvl(l_qte_adj_id_tbl.count,0) > 0 then
442: If l_qte_adj_id_tbl is not null then
443: For i in 1..l_qte_adj_id_tbl.count loop
444: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');
445: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');
446: end loop;
447: end if;
448: END IF;
449:

Line 459: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount: '||sql%rowcount,1,'Y');

455: AND adj.price_adjustment_id NOT IN (SELECT column_value
456: FROM TABLE (CAST(l_qte_adj_id_tbl AS JTF_NUMBER_TABLE)) passed_adj);
457:
458: if aso_debug_pub.g_debug_flag = 'Y' THEN
459: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount: '||sql%rowcount,1,'Y');
460: end if;
461:
462: if aso_debug_pub.g_debug_flag = 'Y' THEN
463:

Line 467: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_adj_id_tbl('||k||'): ' || l_adj_id_tbl(k),1,'Y');

463:
464: if l_adj_id_tbl.count > 0 then
465:
466: for k in l_adj_id_tbl.FIRST..l_adj_id_tbl.LAST loop
467: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_adj_id_tbl('||k||'): ' || l_adj_id_tbl(k),1,'Y');
468: end loop;
469:
470: end if;
471:

Line 476: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');

472: end if;
473:
474: if l_adj_id_tbl.count > 0 then
475: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
476: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');
477: END IF;
478: FORALL i IN l_adj_id_tbl.FIRST..l_adj_id_tbl.LAST
479: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
480: WHERE PRICE_ADJUSTMENT_ID = l_adj_id_tbl(i);

Line 483: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No of adjustment attribute lines deleted is sql%rowcount: '||sql%rowcount,1,'Y');

479: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
480: WHERE PRICE_ADJUSTMENT_ID = l_adj_id_tbl(i);
481:
482: if aso_debug_pub.g_debug_flag = 'Y' THEN
483: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No of adjustment attribute lines deleted is sql%rowcount: '||sql%rowcount,1,'Y');
484: end if;
485:
486: end if;
487:

Line 489: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');

485:
486: end if;
487:
488: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
489: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
490: END IF;
491: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
492: WHERE QUOTE_LINE_ID in (SELECT quote_line_id
493: FROM ASO_PRICE_ADJUSTMENTS

Line 498: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');

494: WHERE quote_header_id = p_qte_header_rec.quote_header_id
495: AND quote_line_id IS NOT NULL);
496:
497: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
498: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
499: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
500: END IF;
501:
502: DELETE FROM ASO_PRICE_ADJUSTMENTS

Line 499: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');

495: AND quote_line_id IS NOT NULL);
496:
497: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
498: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
499: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
500: END IF;
501:
502: DELETE FROM ASO_PRICE_ADJUSTMENTS
503: WHERE quote_header_id = p_qte_header_rec.quote_header_id;

Line 505: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');

501:
502: DELETE FROM ASO_PRICE_ADJUSTMENTS
503: WHERE quote_header_id = p_qte_header_rec.quote_header_id;
504: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
505: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');
506: END IF;
507:
508:
509: If (l_qte_line_tbl.count <> 0 ) OR (p_control_rec.pricing_event = 'ORDER') then

Line 527: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');

523: p_global_tbl => l_global_num_tbl,
524: p_search_tbl => px_line_index_search_tbl);
525:
526: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
527: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');
528: l_pricing_end_time := dbms_utility.get_time;
529: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
530: END IF;
531:

Line 545: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_req_control_rec.calculate_flag:'||l_req_control_rec.calculate_flag,1,'Y');

541:
542: l_req_control_rec.pricing_event := p_control_rec.pricing_event;
543: l_req_control_rec.calculate_flag := p_control_rec.calculate_flag;
544: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
545: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_req_control_rec.calculate_flag:'||l_req_control_rec.calculate_flag,1,'Y');
546: END IF;
547: l_req_control_rec.simulation_flag := p_control_rec.simulation_flag;
548: l_req_control_rec.TEMP_TABLE_INSERT_FLAG := 'N'; ---- Modified
549: l_req_control_rec.source_order_amount_flag := 'Y';

Line 556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

552: l_req_control_rec.REQUEST_TYPE_CODE := p_control_rec.request_type;
553: l_req_control_rec.rounding_flag := 'Q';
554:
555: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
557: l_pricing_end_time := dbms_utility.get_time;
558: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
559: END IF;
560:

Line 587: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

583:
584: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
585: l_pricing_start_time := dbms_utility.get_time;
586: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
587: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
588: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
589: ||l_return_status, 1, 'Y');
590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
591: ||l_return_status_text,1,'Y');

Line 588: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'

584: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
585: l_pricing_start_time := dbms_utility.get_time;
586: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
587: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
588: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
589: ||l_return_status, 1, 'Y');
590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
591: ||l_return_status_text,1,'Y');
592: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

Line 590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '

586: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
587: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
588: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
589: ||l_return_status, 1, 'Y');
590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
591: ||l_return_status_text,1,'Y');
592: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
593: END IF;
594:

Line 592: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

588: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
589: ||l_return_status, 1, 'Y');
590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
591: ||l_return_status_text,1,'Y');
592: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
593: END IF;
594:
595:
596: ASO_PRICING_CORE_PVT.Copy_Price_To_Quote(

Line 606: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '

602: x_return_status => x_return_status,
603: x_msg_count => x_msg_count,
604: x_msg_data => x_msg_data);
605: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
606: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
607: ||nvl(x_return_status,'NULL'),1,'Y');
608: END IF;
609:
610: If p_internal_call_flag = 'N' then

Line 624: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_PRG : x_return_status: '

620: x_msg_count => x_msg_count,
621: x_msg_data => x_msg_data);
622:
623: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
624: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_PRG : x_return_status: '
625: ||nvl(x_return_status,'NULL'),1,'Y');
626: END IF;
627:
628: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS

Line 632: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Process_PRG : x_qte_line_tbl.count: '

628: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS
629:
630: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
631: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
632: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Process_PRG : x_qte_line_tbl.count: '
633: ||x_qte_line_tbl.count,1,'Y');
634: END IF;
635:
636: ASO_PRICING_CORE_PVT.Process_Charges(

Line 646: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '

642: x_return_status => x_return_status,
643: x_msg_count => x_msg_count,
644: x_msg_data => x_msg_data);
645: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
646: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '
647: ||nvl(x_return_status,'NULL'),1,'Y');
648: END IF;
649:
650: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS

Line 673: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing in Price Entire Quote**************',1,'Y');

669:
670: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
671: l_pricing_end_time := dbms_utility.get_time;
672: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
673: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing in Price Entire Quote**************',1,'Y');
674: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
675: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
676: END IF;
677:

Line 674: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');

670: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
671: l_pricing_end_time := dbms_utility.get_time;
672: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
673: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing in Price Entire Quote**************',1,'Y');
674: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
675: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
676: END IF;
677:
678: END Price_Entire_Quote;

Line 675: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');

671: l_pricing_end_time := dbms_utility.get_time;
672: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
673: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing in Price Entire Quote**************',1,'Y');
674: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
675: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
676: END IF;
677:
678: END Price_Entire_Quote;
679:

Line 842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');

838: l_price_index := 1;
839:
840:
841: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');
843: END IF;
844: ASO_PRICING_INT.G_HEADER_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (
845: p_qte_header_rec => p_qte_header_rec,
846: p_shipment_rec => p_hd_shipment_rec);

Line 851: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build Contexts - Header Level ... ',1,'Y');

847:
848: ASO_PRICING_CORE_PVT.Print_G_Header_Rec;
849:
850: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
851: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build Contexts - Header Level ... ',1,'Y');
852: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.quote_header_id: '
853: ||NVL(to_char(p_qte_header_rec.quote_header_id),'NULL'),1,'Y');
854: END IF;
855:

Line 852: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.quote_header_id: '

848: ASO_PRICING_CORE_PVT.Print_G_Header_Rec;
849:
850: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
851: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build Contexts - Header Level ... ',1,'Y');
852: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.quote_header_id: '
853: ||NVL(to_char(p_qte_header_rec.quote_header_id),'NULL'),1,'Y');
854: END IF;
855:
856: QP_Price_Request_Context.Set_Request_Id;

Line 867: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

863: p_check_line_flag => 'N',
864: x_pass_line => x_pass_line);
865:
866: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
867: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
869: END IF;
870:
871:

Line 868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');

864: x_pass_line => x_pass_line);
865:
866: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
867: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
869: END IF;
870:
871:
872: ASO_PRICING_CORE_PVT.Copy_Header_To_Request(

Line 878: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

874: p_price_line_index => l_price_index,
875: px_index_counter => 1);
876:
877: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
878: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
879: END IF;
880:
881: lx_index_counter := 1;
882: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 888: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Header Append_asked_for: lx_index_counter:'

884: p_price_line_index => l_price_index,
885: p_header_id => p_qte_header_rec.quote_header_id,
886: px_index_counter => lx_index_counter);
887: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
888: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Header Append_asked_for: lx_index_counter:'
889: ||lx_index_counter,1,'Y');
890: END IF;
891:
892: IF ( p_control_rec.pricing_event = 'BATCH' ) THEN

Line 894: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_Header...',1,'Y');

890: END IF;
891:
892: IF ( p_control_rec.pricing_event = 'BATCH' ) THEN
893: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
894: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_Header...',1,'Y');
895: END IF;
896: ASO_PRICING_CORE_PVT.Query_Price_Adj_Header(
897: p_quote_header_id => p_qte_header_rec.quote_header_id) ;
898: END IF;

Line 913: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Deleting from ASO_PRICE_ADJUSTMENTS if p_qte_line_tbl.count = 0',1,'Y');

909:
910: -- Added this code to delete all the adjustments when there are no items in the cart
911: IF NVL(p_qte_line_tbl.count,0) = 0 THEN
912: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
913: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Deleting from ASO_PRICE_ADJUSTMENTS if p_qte_line_tbl.count = 0',1,'Y');
914: END IF;
915:
916: IF p_control_rec.pricing_event = 'BATCH' THEN
917: DELETE FROM aso_price_adjustments

Line 923: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted if p_qte_line_tbl.count = 0 '||sql%ROWCOUNT,1,'Y');

919: AND quote_line_id IS NULL;
920: End if;--p_control_rec.pricing_event = 'BATCH'
921:
922: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
923: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted if p_qte_line_tbl.count = 0 '||sql%ROWCOUNT,1,'Y');
924: END IF;
925: END IF; -- p_qte_line_tbl.count = 0
926:
927:

Line 932: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl.count :'||NVL(p_qte_line_tbl.count,0),1,'Y');

928: IF p_qte_line_tbl.count IS NOT NULL AND
929: p_qte_line_tbl.count > 0
930: THEN
931: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
932: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl.count :'||NVL(p_qte_line_tbl.count,0),1,'Y');
933: END IF;
934:
935:
936: -- Filtering OUT NOCOPY /* file.sql.39 change */ deleted and updated lines from p_qte_line_tbl.

Line 939: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Filtering Quote lines that are deleted...',1,'Y');

935:
936: -- Filtering OUT NOCOPY /* file.sql.39 change */ deleted and updated lines from p_qte_line_tbl.
937:
938: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
939: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Filtering Quote lines that are deleted...',1,'Y');
940: END IF;
941: l_service_proc_done_flag := 'N';
942: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Initialize... l_service_proc_done_flag :'||NVL(l_service_proc_done_flag,'null'),1,'Y');

Line 943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Initialize... l_service_proc_done_flag :'||NVL(l_service_proc_done_flag,'null'),1,'Y');

939: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Filtering Quote lines that are deleted...',1,'Y');
940: END IF;
941: l_service_proc_done_flag := 'N';
942: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Initialize... l_service_proc_done_flag :'||NVL(l_service_proc_done_flag,'null'),1,'Y');
944: END IF;
945: For i in 1..p_qte_line_tbl.count Loop
946: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');

Line 947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');

943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Initialize... l_service_proc_done_flag :'||NVL(l_service_proc_done_flag,'null'),1,'Y');
944: END IF;
945: For i in 1..p_qte_line_tbl.count Loop
946: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');
948: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').operation_code :'||NVL(p_qte_line_tbl(i).operation_code,'null'),1,'Y');
949: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').service_item_flag :'||NVL(p_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
951: END IF;

Line 948: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').operation_code :'||NVL(p_qte_line_tbl(i).operation_code,'null'),1,'Y');

944: END IF;
945: For i in 1..p_qte_line_tbl.count Loop
946: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');
948: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').operation_code :'||NVL(p_qte_line_tbl(i).operation_code,'null'),1,'Y');
949: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').service_item_flag :'||NVL(p_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
951: END IF;
952: IF p_qte_line_tbl(i).operation_code = 'DELETE' THEN

Line 949: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').service_item_flag :'||NVL(p_qte_line_tbl(i).service_item_flag,'null'),1,'Y');

945: For i in 1..p_qte_line_tbl.count Loop
946: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');
948: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').operation_code :'||NVL(p_qte_line_tbl(i).operation_code,'null'),1,'Y');
949: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').service_item_flag :'||NVL(p_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
951: END IF;
952: IF p_qte_line_tbl(i).operation_code = 'DELETE' THEN
953: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');

946: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
947: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');
948: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').operation_code :'||NVL(p_qte_line_tbl(i).operation_code,'null'),1,'Y');
949: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').service_item_flag :'||NVL(p_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
951: END IF;
952: IF p_qte_line_tbl(i).operation_code = 'DELETE' THEN
953: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
954: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id - deleted :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');

Line 954: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id - deleted :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');

950: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(p_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
951: END IF;
952: IF p_qte_line_tbl(i).operation_code = 'DELETE' THEN
953: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
954: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_line_tbl('||i||').quote_line_id - deleted :'||NVL(to_char(p_qte_line_tbl(i).quote_line_id),'NULL'),1,'Y');
955: END IF;
956: -- This Quote Line is not added to the l_quote_line_tbl.
957: ELSE
958: -- Operation is either CREATE or UPDATE.

Line 973: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(i).quote_line_id,1,'Y');

969:
970: end if;
971: -- Service Processing Logic Begins Here...
972:
973: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(i).quote_line_id,1,'Y');
974: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg:'||l_service_item_flg,1,'Y');
975: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg:'||l_servicable_item_flg,1,'Y');
976:
977: -- IF NVL(p_qte_line_tbl(i).serviceable_product_flag,'N') = 'Y' AND

Line 974: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg:'||l_service_item_flg,1,'Y');

970: end if;
971: -- Service Processing Logic Begins Here...
972:
973: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(i).quote_line_id,1,'Y');
974: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg:'||l_service_item_flg,1,'Y');
975: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg:'||l_servicable_item_flg,1,'Y');
976:
977: -- IF NVL(p_qte_line_tbl(i).serviceable_product_flag,'N') = 'Y' AND
978: if l_servicable_item_flg='Y' and

Line 975: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg:'||l_servicable_item_flg,1,'Y');

971: -- Service Processing Logic Begins Here...
972:
973: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(i).quote_line_id,1,'Y');
974: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg:'||l_service_item_flg,1,'Y');
975: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg:'||l_servicable_item_flg,1,'Y');
976:
977: -- IF NVL(p_qte_line_tbl(i).serviceable_product_flag,'N') = 'Y' AND
978: if l_servicable_item_flg='Y' and
979: NVL(l_service_proc_done_flag,'N') = 'N'

Line 983: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl('||p_qte_line_tbl(i).quote_line_id||'). :'||NVL(to_char(l_service_product_id_tbl(p_qte_line_tbl(i).quote_line_id)),'null'),1,'Y');

979: NVL(l_service_proc_done_flag,'N') = 'N'
980: THEN
981: l_service_product_id_tbl(p_qte_line_tbl(i).quote_line_id) := p_qte_line_tbl(i).quote_line_id;
982: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
983: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl('||p_qte_line_tbl(i).quote_line_id||'). :'||NVL(to_char(l_service_product_id_tbl(p_qte_line_tbl(i).quote_line_id)),'null'),1,'Y');
984: END IF;
985: END IF;
986:
987: -- IF NVL(p_qte_line_tbl(i).service_item_flag,'N') = 'Y' THEN

Line 990: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service lines processing........ ',1,'Y');

986:
987: -- IF NVL(p_qte_line_tbl(i).service_item_flag,'N') = 'Y' THEN
988: If l_service_item_flg='Y' then
989: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
990: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service lines processing........ ',1,'Y');
991: END IF;
992: IF NVL(l_service_proc_done_flag,'N') = 'N' THEN
993: FOR j IN i..p_qte_line_tbl.COUNT LOOP
994:

Line 1006: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(j).quote_line_id,1,'Y');

1002: l_service_item_flg1:= NVL(p_qte_line_tbl(j).service_item_flag,'N');
1003: l_servicable_item_flg1:=nvl(p_qte_line_tbl(j).serviceable_product_flag,'N');
1004:
1005: end if;
1006: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(j).quote_line_id,1,'Y');
1007: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg1:'||l_service_item_flg1,1,'Y');
1008: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg1:'||l_servicable_item_flg1,1,'Y');
1009:
1010: IF l_servicable_item_flg1 = 'Y' THEN

Line 1007: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg1:'||l_service_item_flg1,1,'Y');

1003: l_servicable_item_flg1:=nvl(p_qte_line_tbl(j).serviceable_product_flag,'N');
1004:
1005: end if;
1006: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(j).quote_line_id,1,'Y');
1007: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg1:'||l_service_item_flg1,1,'Y');
1008: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg1:'||l_servicable_item_flg1,1,'Y');
1009:
1010: IF l_servicable_item_flg1 = 'Y' THEN
1011: l_service_product_id_tbl(p_qte_line_tbl(j).quote_line_id) := p_qte_line_tbl(j).quote_line_id;

Line 1008: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg1:'||l_servicable_item_flg1,1,'Y');

1004:
1005: end if;
1006: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: quote_line_id:'||p_qte_line_tbl(j).quote_line_id,1,'Y');
1007: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_service_item_flg1:'||l_service_item_flg1,1,'Y');
1008: aso_debug_pub.add('rassharm ASO_PRICING_FLOWS_PVT: l_servicable_item_flg1:'||l_servicable_item_flg1,1,'Y');
1009:
1010: IF l_servicable_item_flg1 = 'Y' THEN
1011: l_service_product_id_tbl(p_qte_line_tbl(j).quote_line_id) := p_qte_line_tbl(j).quote_line_id;
1012: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1013: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl('||p_qte_line_tbl(j).quote_line_id||'). :'||NVL(to_char(l_service_product_id_tbl(p_qte_line_tbl(j).quote_line_id)),'null'),1,'Y');

1009:
1010: IF l_servicable_item_flg1 = 'Y' THEN
1011: l_service_product_id_tbl(p_qte_line_tbl(j).quote_line_id) := p_qte_line_tbl(j).quote_line_id;
1012: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1013: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl('||p_qte_line_tbl(j).quote_line_id||'). :'||NVL(to_char(l_service_product_id_tbl(p_qte_line_tbl(j).quote_line_id)),'null'),1,'Y');
1014: END IF;
1015: END IF;
1016: IF l_service_item_flg1 = 'Y' THEN
1017: l_service_id_tbl(p_qte_line_tbl(j).quote_line_id) := p_qte_line_tbl(j).quote_line_id;

Line 1019: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl('||p_qte_line_tbl(j).quote_line_id||'). :'||NVL(to_char(l_service_id_tbl(p_qte_line_tbl(j).quote_line_id)),'null'),1,'Y');

1015: END IF;
1016: IF l_service_item_flg1 = 'Y' THEN
1017: l_service_id_tbl(p_qte_line_tbl(j).quote_line_id) := p_qte_line_tbl(j).quote_line_id;
1018: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1019: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl('||p_qte_line_tbl(j).quote_line_id||'). :'||NVL(to_char(l_service_id_tbl(p_qte_line_tbl(j).quote_line_id)),'null'),1,'Y');
1020: END IF;
1021: END IF;
1022: END LOOP;
1023: l_service_proc_done_flag := 'Y';

Line 1026: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_proc_done_flag: '||NVL(l_service_proc_done_flag,'null'),1,'Y');

1022: END LOOP;
1023: l_service_proc_done_flag := 'Y';
1024: END IF;
1025: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1026: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_proc_done_flag: '||NVL(l_service_proc_done_flag,'null'),1,'Y');
1027: IF (l_service_id_tbl.exists(1)) THEN
1028: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl.count: '||NVL(l_service_id_tbl.count,0),1,'Y');
1029: END IF;
1030: IF (l_service_product_id_tbl.exists(1)) THEN

Line 1028: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl.count: '||NVL(l_service_id_tbl.count,0),1,'Y');

1024: END IF;
1025: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1026: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_proc_done_flag: '||NVL(l_service_proc_done_flag,'null'),1,'Y');
1027: IF (l_service_id_tbl.exists(1)) THEN
1028: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl.count: '||NVL(l_service_id_tbl.count,0),1,'Y');
1029: END IF;
1030: IF (l_service_product_id_tbl.exists(1)) THEN
1031: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl.count: '||NVL(l_service_product_id_tbl.count,0),1,'Y');
1032: END IF;

Line 1031: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl.count: '||NVL(l_service_product_id_tbl.count,0),1,'Y');

1027: IF (l_service_id_tbl.exists(1)) THEN
1028: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_id_tbl.count: '||NVL(l_service_id_tbl.count,0),1,'Y');
1029: END IF;
1030: IF (l_service_product_id_tbl.exists(1)) THEN
1031: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_product_id_tbl.count: '||NVL(l_service_product_id_tbl.count,0),1,'Y');
1032: END IF;
1033: END IF;
1034:
1035: OPEN c_qte_line_SVC_ref(p_qte_line_tbl(i).quote_line_id);

Line 1040: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_ref_type_code: '||NVL(l_ref_type_code,'null'),1,'Y');

1036: FETCH c_qte_line_SVC_ref INTO l_ref_type_code, l_service_ref_line_id;
1037: CLOSE c_qte_line_SVC_ref;
1038:
1039: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1040: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_ref_type_code: '||NVL(l_ref_type_code,'null'),1,'Y');
1041: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id: '||NVL(to_char(l_service_ref_line_id),'NULL'),1,'Y');
1042: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Line collection to pass for Query Relationships procedure... ',1,'Y');
1043: END IF;
1044:

Line 1041: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id: '||NVL(to_char(l_service_ref_line_id),'NULL'),1,'Y');

1037: CLOSE c_qte_line_SVC_ref;
1038:
1039: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1040: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_ref_type_code: '||NVL(l_ref_type_code,'null'),1,'Y');
1041: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id: '||NVL(to_char(l_service_ref_line_id),'NULL'),1,'Y');
1042: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Line collection to pass for Query Relationships procedure... ',1,'Y');
1043: END IF;
1044:
1045: -- l_service_qte_line_id_tbl is used to collect all quote line id(s) of service lines only.

Line 1042: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Line collection to pass for Query Relationships procedure... ',1,'Y');

1038:
1039: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1040: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_ref_type_code: '||NVL(l_ref_type_code,'null'),1,'Y');
1041: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id: '||NVL(to_char(l_service_ref_line_id),'NULL'),1,'Y');
1042: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Line collection to pass for Query Relationships procedure... ',1,'Y');
1043: END IF;
1044:
1045: -- l_service_qte_line_id_tbl is used to collect all quote line id(s) of service lines only.
1046: -- l_service_qte_line_id_tbl is one of the parameter for ASO_PRICING_CORE_PVT.Query_Relationships procedure.

Line 1049: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Qte Line ID Tbl already exists... ',1,'Y');

1045: -- l_service_qte_line_id_tbl is used to collect all quote line id(s) of service lines only.
1046: -- l_service_qte_line_id_tbl is one of the parameter for ASO_PRICING_CORE_PVT.Query_Relationships procedure.
1047: IF l_service_qte_line_id_tbl.exists(1) THEN
1048: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1049: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Qte Line ID Tbl already exists... ',1,'Y');
1050: END IF;
1051: l_service_qte_line_id_tbl.extend;
1052: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.COUNT) := p_qte_line_tbl(i).quote_line_id;
1053: ELSE

Line 1055: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Qte Line ID Tbl NOT exists... ',1,'Y');

1051: l_service_qte_line_id_tbl.extend;
1052: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.COUNT) := p_qte_line_tbl(i).quote_line_id;
1053: ELSE
1054: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1055: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Service Qte Line ID Tbl NOT exists... ',1,'Y');
1056: END IF;
1057: l_service_qte_line_id_tbl := JTF_NUMBER_TABLE(p_qte_line_tbl(i).quote_line_id);
1058: END IF;
1059:

Line 1061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Service Line collection ... ',1,'Y');

1057: l_service_qte_line_id_tbl := JTF_NUMBER_TABLE(p_qte_line_tbl(i).quote_line_id);
1058: END IF;
1059:
1060: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Service Line collection ... ',1,'Y');
1062: END IF;
1063:
1064:
1065: -- l_service_ref_line_id_tbl is used for parent line id collection and its different

Line 1071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Order Line exists in p_qte_line_tbl. ',1,'Y');

1067:
1068: IF l_ref_type_code = 'ORDER' THEN
1069: IF l_service_ref_line_id_tbl.exists(l_service_ref_line_id) THEN
1070: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Order Line exists in p_qte_line_tbl. ',1,'Y');
1072: END IF;
1073: ELSE
1074: FOR c_order_line_rec IN c_order_line(l_service_ref_line_id) LOOP
1075: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;

Line 1077: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Order Line Not Exists... ', 1, 'N');

1073: ELSE
1074: FOR c_order_line_rec IN c_order_line(l_service_ref_line_id) LOOP
1075: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1076: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1077: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Order Line Not Exists... ', 1, 'N');
1078: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1079: END IF;
1080: l_qte_line_rec.QUOTE_LINE_ID := c_order_line_rec.LINE_ID;
1081: l_qte_line_rec.INVENTORY_ITEM_ID := c_order_line_rec.INVENTORY_ITEM_ID;

Line 1078: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');

1074: FOR c_order_line_rec IN c_order_line(l_service_ref_line_id) LOOP
1075: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1076: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1077: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Order Line Not Exists... ', 1, 'N');
1078: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1079: END IF;
1080: l_qte_line_rec.QUOTE_LINE_ID := c_order_line_rec.LINE_ID;
1081: l_qte_line_rec.INVENTORY_ITEM_ID := c_order_line_rec.INVENTORY_ITEM_ID;
1082: l_qte_line_rec.QUANTITY := c_order_line_rec.PRICING_QUANTITY;

Line 1090: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Order Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

1086: l_qte_line_rec.LINE_CATEGORY_CODE := 'SERVICE_REF_ORDER_LINE';
1087:
1088: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1089: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1090: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Order Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1091: END IF;
1092: END LOOP;
1093: END IF; -- Parent line already exists.
1094: ELSIF l_ref_type_code = 'CUSTOMER_PRODUCT' THEN

Line 1097: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line exists in p_qte_line_tbl. ',1,'Y');

1093: END IF; -- Parent line already exists.
1094: ELSIF l_ref_type_code = 'CUSTOMER_PRODUCT' THEN
1095: IF l_service_ref_line_id_tbl.exists(l_service_ref_line_id) THEN
1096: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1097: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line exists in p_qte_line_tbl. ',1,'Y');
1098: END IF;
1099: ELSE
1100: -- FOR c_get_cust_acct_id_rec IN c_get_cust_acct_id LOOP
1101: /*** Start: BugNo 8647883: R12.1.2 Service reference SUN ER ***/

Line 1117: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_cust_account_id'||l_cust_account_id, 1, 'N');

1113: /*** End: BugNo 8647883: R12.1.2 Service reference SUN ER ***/
1114: FOR c_csi_line_rec IN c_csi_line
1115: (l_service_ref_line_id,l_cust_account_id) LOOP
1116: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1117: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_cust_account_id'||l_cust_account_id, 1, 'N');
1118: END IF;
1119: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1120: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1121: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line not exists...', 1, 'N');

Line 1121: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line not exists...', 1, 'N');

1117: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_cust_account_id'||l_cust_account_id, 1, 'N');
1118: END IF;
1119: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1120: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1121: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line not exists...', 1, 'N');
1122: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1123: END IF;
1124: FOR c_order_line_rec IN c_order_line(c_csi_line_rec.original_order_line_id) LOOP
1125: l_order_found := TRUE;

Line 1122: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');

1118: END IF;
1119: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1120: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1121: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line not exists...', 1, 'N');
1122: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||').: '||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1123: END IF;
1124: FOR c_order_line_rec IN c_order_line(c_csi_line_rec.original_order_line_id) LOOP
1125: l_order_found := TRUE;
1126: l_qte_line_rec.QUOTE_LINE_ID := l_service_ref_line_id;

Line 1135: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

1131: l_qte_line_rec.LINE_LIST_PRICE := c_order_line_rec.UNIT_LIST_PRICE;
1132: l_qte_line_rec.LINE_CATEGORY_CODE := 'SERVICE_REF_CUSTOMER_LINE';
1133: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1134: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1135: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1136: END IF;
1137: END LOOP;--c_order_line
1138: /******* Start SUN Changes ER: 3802859 ***********/
1139:

Line 1142: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Inside new condition', 1, 'N');

1138: /******* Start SUN Changes ER: 3802859 ***********/
1139:
1140: IF l_order_found = FALSE THEN -- this means no order line was found then
1141: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1142: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Inside new condition', 1, 'N');
1143: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_cust_account_id: '|| l_cust_account_id, 1, 'N');
1145: END IF;
1146:

Line 1143: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');

1139:
1140: IF l_order_found = FALSE THEN -- this means no order line was found then
1141: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1142: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Inside new condition', 1, 'N');
1143: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_cust_account_id: '|| l_cust_account_id, 1, 'N');
1145: END IF;
1146:
1147: open c_csi_line_details(l_service_ref_line_id,l_cust_account_id);

Line 1144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_cust_account_id: '|| l_cust_account_id, 1, 'N');

1140: IF l_order_found = FALSE THEN -- this means no order line was found then
1141: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1142: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Inside new condition', 1, 'N');
1143: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_cust_account_id: '|| l_cust_account_id, 1, 'N');
1145: END IF;
1146:
1147: open c_csi_line_details(l_service_ref_line_id,l_cust_account_id);
1148: fetch c_csi_line_details into l_prod,l_item_id,l_qty,l_uom;

Line 1151: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ****** After getting the csi line details', 1, 'N');

1147: open c_csi_line_details(l_service_ref_line_id,l_cust_account_id);
1148: fetch c_csi_line_details into l_prod,l_item_id,l_qty,l_uom;
1149:
1150: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1151: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ****** After getting the csi line details', 1, 'N');
1152: END IF;
1153:
1154: l_qte_line_rec.QUOTE_LINE_ID := l_service_ref_line_id;
1155: l_qte_line_rec.INVENTORY_ITEM_ID := l_item_id;

Line 1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');

1165: l_qte_line_rec.LINE_CATEGORY_CODE := 'SERVICE_REF_CUSTOMER_LINE';
1166: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1167:
1168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');

Line 1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');

1166: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1167:
1168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

Line 1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');

1167:
1168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1175: END IF;

Line 1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');

1168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1175: END IF;
1176:

Line 1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');

1169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1175: END IF;
1176:
1177: close c_csi_line_details;

Line 1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

1170: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_item_id: '|| l_item_id, 1, 'N');
1171: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qty: '|| l_qty, 1, 'N');
1172: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_uom: '|| l_uom, 1, 'N');
1173: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1174: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** ER: 3802859 ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1175: END IF;
1176:
1177: close c_csi_line_details;
1178: END IF;

Line 1192: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Quote Line exists in p_qte_line_tbl. ',1,'Y');

1188: IF l_service_ref_line_id_tbl.exists(l_service_ref_line_id) OR
1189: l_service_product_id_tbl.exists(l_service_ref_line_id)
1190: THEN
1191: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1192: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Quote Line exists in p_qte_line_tbl. ',1,'Y');
1193: END IF;
1194: ELSE
1195: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1196: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1197: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Quote Line NOT exists in p_qte_line_tbl. ',1,'Y');

1193: END IF;
1194: ELSE
1195: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1196: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1197: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Quote Line NOT exists in p_qte_line_tbl. ',1,'Y');
1198: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||'). :'||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1199: END IF;
1200: l_qte_line_tbl(l_qte_line_tbl.COUNT+1) := ASO_UTILITY_PVT.Query_Qte_Line_Row(l_service_ref_line_id);
1201: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1198: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||'). :'||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');

1194: ELSE
1195: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1196: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1197: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Quote Line NOT exists in p_qte_line_tbl. ',1,'Y');
1198: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||'). :'||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1199: END IF;
1200: l_qte_line_tbl(l_qte_line_tbl.COUNT+1) := ASO_UTILITY_PVT.Query_Qte_Line_Row(l_service_ref_line_id);
1201: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1202: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Quote Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

Line 1202: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Quote Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

1198: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_ref_line_id_tbl('||l_service_ref_line_id||'). :'||NVL(to_char(l_service_ref_line_id_tbl(l_service_ref_line_id)),'null'),1,'Y');
1199: END IF;
1200: l_qte_line_tbl(l_qte_line_tbl.COUNT+1) := ASO_UTILITY_PVT.Query_Qte_Line_Row(l_service_ref_line_id);
1201: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1202: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Quote Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1203: END IF;
1204: END IF;-- Parent line already exists.
1205: /*** Start: BugNo 8647883: R12.1.2 Service reference SUN ER ***/
1206: ELSIF l_ref_type_code = 'PRODUCT_CATALOG' THEN

Line 1208: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** ', 1, 'N');

1204: END IF;-- Parent line already exists.
1205: /*** Start: BugNo 8647883: R12.1.2 Service reference SUN ER ***/
1206: ELSIF l_ref_type_code = 'PRODUCT_CATALOG' THEN
1207: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1208: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** ', 1, 'N');
1209: END IF;
1210: IF l_service_ref_line_id_tbl.exists(l_service_ref_line_id) THEN
1211: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1212: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line exists in p_qte_line_tbl. ',1,'Y');

Line 1212: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line exists in p_qte_line_tbl. ',1,'Y');

1208: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** ', 1, 'N');
1209: END IF;
1210: IF l_service_ref_line_id_tbl.exists(l_service_ref_line_id) THEN
1211: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1212: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Parent Instance Line exists in p_qte_line_tbl. ',1,'Y');
1213: END IF;
1214: ELSE
1215: l_service_ref_line_id_tbl(l_service_ref_line_id) := l_service_ref_line_id;
1216: l_qte_line_rec.QUOTE_LINE_ID := l_service_ref_line_id;

Line 1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');

1227: l_qte_line_rec.LINE_CATEGORY_CODE := 'SERVICE_REF_CUSTOMER_LINE';
1228: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1229:
1230: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');

Line 1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');

1228: l_Qte_Line_tbl(l_Qte_Line_tbl.COUNT+1) := l_Qte_Line_rec;
1229:
1230: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

Line 1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');

1229:
1230: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1237: END IF;

Line 1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');

1230: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1237: END IF;
1238: END IF;-- l_service_ref_line_id_tbl

Line 1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');

1231: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_service_ref_line_id: '|| l_service_ref_line_id, 1, 'N');
1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1237: END IF;
1238: END IF;-- l_service_ref_line_id_tbl
1239: /*** End: BugNo 8647883: R12.1.2 Service reference SUN ER ***/

Line 1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');

1232: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_item_id: '|| l_service_ref_line_id, 1, 'N');
1233: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qty: '|| p_qte_line_tbl(i).QUANTITY, 1, 'N');
1234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_uom: '|| p_qte_line_tbl(i).UOM_CODE, 1, 'N');
1235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** l_qte_line_rec.PRICE_LIST_ID: '||l_qte_line_rec.PRICE_LIST_ID, 1, 'N');
1236: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: **** SUN ER PRODUCT CATALOG ****** Instance Line Count: '|| NVL(l_Qte_line_tbl.COUNT,0), 1, 'N');
1237: END IF;
1238: END IF;-- l_service_ref_line_id_tbl
1239: /*** End: BugNo 8647883: R12.1.2 Service reference SUN ER ***/
1240: END IF; -- ref_type_code check.

Line 1243: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start the Process of adding the service(child)or any normal lines into l_qte_line_tbl ...',1,'Y');

1239: /*** End: BugNo 8647883: R12.1.2 Service reference SUN ER ***/
1240: END IF; -- ref_type_code check.
1241: END IF; -- Service Item Flag Check.
1242: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1243: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start the Process of adding the service(child)or any normal lines into l_qte_line_tbl ...',1,'Y');
1244: END IF;
1245: IF l_qte_line_tbl.exists(1) THEN
1246: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1247: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: One or more records exists in l_qte_line_tbl...',1,'Y');

Line 1247: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: One or more records exists in l_qte_line_tbl...',1,'Y');

1243: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start the Process of adding the service(child)or any normal lines into l_qte_line_tbl ...',1,'Y');
1244: END IF;
1245: IF l_qte_line_tbl.exists(1) THEN
1246: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1247: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: One or more records exists in l_qte_line_tbl...',1,'Y');
1248: END IF;
1249: --changes for bug 4353654
1250: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_tbl(i).quote_line_id);
1251: l_qte_line_tbl(l_qte_line_tbl.COUNT+1) := l_qte_line_rec;

Line 1253: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');

1249: --changes for bug 4353654
1250: l_qte_line_rec := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_tbl(i).quote_line_id);
1251: l_qte_line_tbl(l_qte_line_tbl.COUNT+1) := l_qte_line_rec;
1252: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1253: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');
1254: END IF;
1255: ELSE
1256: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1257: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No record exists in l_qte_line_tbl...',1,'Y');

Line 1257: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No record exists in l_qte_line_tbl...',1,'Y');

1253: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');
1254: END IF;
1255: ELSE
1256: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1257: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No record exists in l_qte_line_tbl...',1,'Y');
1258: END IF;
1259: l_qte_line_tbl(1) := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_tbl(i).quote_line_id);
1260: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1261: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');

Line 1261: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');

1257: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No record exists in l_qte_line_tbl...',1,'Y');
1258: END IF;
1259: l_qte_line_tbl(1) := ASO_UTILITY_PVT.Query_Qte_Line_Row(p_qte_line_tbl(i).quote_line_id);
1260: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1261: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After adding a new record in l_qte_line_tbl...',1,'Y');
1262: END IF;
1263: END IF; -- l_qte_line_tbl.exists.
1264: END IF; -- operation code check
1265: END LOOP;

Line 1268: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: TOTAL Number of records in l_qte_line_tbl... :'||NVL(l_qte_line_tbl.count,0),1,'Y');

1264: END IF; -- operation code check
1265: END LOOP;
1266:
1267: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1268: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: TOTAL Number of records in l_qte_line_tbl... :'||NVL(l_qte_line_tbl.count,0),1,'Y');
1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');
1270: For i in 1..l_qte_line_tbl.count Loop
1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');

Line 1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');

1265: END LOOP;
1266:
1267: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1268: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: TOTAL Number of records in l_qte_line_tbl... :'||NVL(l_qte_line_tbl.count,0),1,'Y');
1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');
1270: For i in 1..l_qte_line_tbl.count Loop
1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');

Line 1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');

1267: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1268: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: TOTAL Number of records in l_qte_line_tbl... :'||NVL(l_qte_line_tbl.count,0),1,'Y');
1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');
1270: For i in 1..l_qte_line_tbl.count Loop
1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
1274: END LOOP;
1275: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List End **************** ',1,'Y');

Line 1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');

1268: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: TOTAL Number of records in l_qte_line_tbl... :'||NVL(l_qte_line_tbl.count,0),1,'Y');
1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');
1270: For i in 1..l_qte_line_tbl.count Loop
1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
1274: END LOOP;
1275: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List End **************** ',1,'Y');
1276: END IF;

Line 1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');

1269: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List **************** ',1,'Y');
1270: For i in 1..l_qte_line_tbl.count Loop
1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
1274: END LOOP;
1275: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List End **************** ',1,'Y');
1276: END IF;
1277:

Line 1275: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List End **************** ',1,'Y');

1271: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1272: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').serviceable_product_flag:'||NVL(l_qte_line_tbl(i).serviceable_product_flag,'null'),1,'Y');
1273: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT : l_qte_line_tbl('||i||').service_item_flag:'||NVL(l_qte_line_tbl(i).service_item_flag,'null'),1,'Y');
1274: END LOOP;
1275: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: *************** l_qte_line_tbl List End **************** ',1,'Y');
1276: END IF;
1277:
1278: IF (l_service_qte_line_id_tbl.exists(1)) THEN
1279: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1280: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'||NVL(l_service_qte_line_id_tbl.count,0),1,'Y');

1276: END IF;
1277:
1278: IF (l_service_qte_line_id_tbl.exists(1)) THEN
1279: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1280: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'||NVL(l_service_qte_line_id_tbl.count,0),1,'Y');
1281: END IF;
1282: ELSE
1283: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No service lines exists',1,'Y');

Line 1284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No service lines exists',1,'Y');

1280: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'||NVL(l_service_qte_line_id_tbl.count,0),1,'Y');
1281: END IF;
1282: ELSE
1283: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No service lines exists',1,'Y');
1285: END IF;
1286: END IF;
1287:
1288: For i in 1..l_qte_line_tbl.count Loop

Line 1291: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');

1287:
1288: For i in 1..l_qte_line_tbl.count Loop
1289:
1290: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1291: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
1292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1293: END IF;
1294: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;
1295: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);

Line 1292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');

1288: For i in 1..l_qte_line_tbl.count Loop
1289:
1290: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1291: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
1292: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl('||i||').quote_line_id :'||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1293: END IF;
1294: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;
1295: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
1296:

Line 1299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Defaulting Hdr Lvl Price List and Currency..',1,'Y');

1295: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
1296:
1297:
1298: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Defaulting Hdr Lvl Price List and Currency..',1,'Y');
1300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
1301: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
1302: END IF;
1303: -- Pass header_level currency_code to line level by default.

Line 1300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');

1296:
1297:
1298: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Defaulting Hdr Lvl Price List and Currency..',1,'Y');
1300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
1301: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
1302: END IF;
1303: -- Pass header_level currency_code to line level by default.
1304: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;

Line 1301: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');

1297:
1298: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Defaulting Hdr Lvl Price List and Currency..',1,'Y');
1300: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
1301: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
1302: END IF;
1303: -- Pass header_level currency_code to line level by default.
1304: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;
1305:

Line 1308: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');

1304: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;
1305:
1306:
1307: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1308: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
1309: END IF;
1310: -- Pass Header level price list by default.
1311: IF (l_qte_line_tbl(i).price_list_id is null OR
1312: l_qte_line_tbl(i).price_list_id= FND_API.G_MISS_NUM) THEN

Line 1318: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'||NVL(l_qte_line_dtl_tbl.count,0),1,'Y');

1314: END IF;
1315:
1316:
1317: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1318: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'||NVL(l_qte_line_dtl_tbl.count,0),1,'Y');
1319: END IF;
1320: IF l_qte_line_dtl_tbl.count = 1 THEN
1321: l_qte_line_dtl_rec := l_qte_line_dtl_tbl(1);
1322: ELSE

Line 1327: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');

1323: l_qte_line_dtl_rec := ASO_QUOTE_PUB.G_Miss_Qte_Line_Dtl_REC ;
1324: END IF;
1325:
1326: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1327: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');
1328: END IF;
1329: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
1330: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
1331: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1332: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'||NVL(l_shipment_tbl.count,0),1,'Y');

1328: END IF;
1329: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
1330: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
1331: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1332: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'||NVL(l_shipment_tbl.count,0),1,'Y');
1333: END IF;
1334: l_shipment_rec := ASO_QUOTE_PUB.G_Miss_Shipment_rec;
1335: IF l_shipment_tbl.count = 1 THEN
1336: l_shipment_rec := l_shipment_tbl(1);

Line 1341: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');

1337: END IF;
1338:
1339:
1340: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1341: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
1342: END IF;
1343: ASO_PRICING_INT.G_LINE_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (
1344: p_qte_line_rec => l_qte_line_tbl(i),
1345: p_qte_line_dtl_rec => l_qte_line_dtl_rec,

Line 1352: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');

1348: ASO_PRICING_CORE_PVT.Print_G_Line_Rec;
1349:
1350:
1351: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1352: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');
1353: END IF;
1354:
1355: QP_ATTR_MAPPING_PUB.Build_Contexts (
1356: p_request_type_code => p_control_rec.request_type,

Line 1366: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line : '||nvl(x_pass_line,'null'),1,'Y');

1362: x_pass_line => x_pass_line);
1363:
1364:
1365: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1366: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line : '||nvl(x_pass_line,'null'),1,'Y');
1367: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
1368: END IF;
1369:
1370: -- Begin fix for bug 5951790.

Line 1367: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');

1363:
1364:
1365: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1366: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line : '||nvl(x_pass_line,'null'),1,'Y');
1367: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
1368: END IF;
1369:
1370: -- Begin fix for bug 5951790.
1371: -- We should send null as selling_price to pricing engine when the pricing_event is PRICE.

Line 1375: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.pricing_event: ' || p_control_rec.pricing_event,1,'Y');

1371: -- We should send null as selling_price to pricing engine when the pricing_event is PRICE.
1372:
1373: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1374:
1375: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.pricing_event: ' || p_control_rec.pricing_event,1,'Y');
1376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Old ASO_PRICING_INT.G_LINE_REC.line_quote_price: ' || ASO_PRICING_INT.G_LINE_REC.line_quote_price,1,'Y');
1377:
1378: END IF;
1379:

Line 1376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Old ASO_PRICING_INT.G_LINE_REC.line_quote_price: ' || ASO_PRICING_INT.G_LINE_REC.line_quote_price,1,'Y');

1372:
1373: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1374:
1375: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_control_rec.pricing_event: ' || p_control_rec.pricing_event,1,'Y');
1376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Old ASO_PRICING_INT.G_LINE_REC.line_quote_price: ' || ASO_PRICING_INT.G_LINE_REC.line_quote_price,1,'Y');
1377:
1378: END IF;
1379:
1380: IF (p_control_rec.pricing_event = 'PRICE') THEN

Line 1385: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: New ASO_PRICING_INT.G_LINE_REC.line_quote_price: ' || ASO_PRICING_INT.G_LINE_REC.line_quote_price,1,'Y');

1381: ASO_PRICING_INT.G_LINE_REC.line_quote_price := null;
1382: END IF;
1383:
1384: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1385: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: New ASO_PRICING_INT.G_LINE_REC.line_quote_price: ' || ASO_PRICING_INT.G_LINE_REC.line_quote_price,1,'Y');
1386: END IF;
1387:
1388: -- End fix for bug 5951790.
1389:

Line 1397: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

1393: px_index_counter => i+1);
1394:
1395:
1396: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1397: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
1398: END IF;
1399:
1400: l_index_counter := lx_index_counter;
1401: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 1408: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Line Append_asked_for: lx_index_counter : '||NVL(lx_index_counter,0),1,'Y');

1404: ,p_header_id => p_qte_header_rec.quote_header_id
1405: ,p_line_id => l_qte_line_tbl(i).quote_line_id
1406: ,px_index_counter => lx_index_counter);
1407: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1408: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Line Append_asked_for: lx_index_counter : '||NVL(lx_index_counter,0),1,'Y');
1409: END IF;
1410: IF lx_index_counter = 0 THEN
1411: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1412: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning the value of l_index_counter back to lx_index_counter:'||l_index_counter,1,'Y');

Line 1412: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning the value of l_index_counter back to lx_index_counter:'||l_index_counter,1,'Y');

1408: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Line Append_asked_for: lx_index_counter : '||NVL(lx_index_counter,0),1,'Y');
1409: END IF;
1410: IF lx_index_counter = 0 THEN
1411: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1412: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning the value of l_index_counter back to lx_index_counter:'||l_index_counter,1,'Y');
1413: END IF;
1414: lx_index_counter := l_index_counter;
1415: END IF;
1416:

Line 1432: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');

1428: END LOOP;
1429:
1430: -- Call to Price Adjustment Relationships and Service Relationships
1431: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1432: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
1433: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count : '||NVL(l_qte_line_id_tbl.count,0),1,'Y');
1434: END IF;
1435:
1436: IF p_control_rec.pricing_event = 'BATCH' THEN

Line 1433: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count : '||NVL(l_qte_line_id_tbl.count,0),1,'Y');

1429:
1430: -- Call to Price Adjustment Relationships and Service Relationships
1431: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1432: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
1433: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count : '||NVL(l_qte_line_id_tbl.count,0),1,'Y');
1434: END IF;
1435:
1436: IF p_control_rec.pricing_event = 'BATCH' THEN
1437: ASO_PRICING_CORE_PVT.Query_Price_Adjustments(

Line 1442: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count : '||NVL(l_qte_adj_id_tbl.count,0),1,'Y');

1438: p_quote_header_id => p_qte_header_rec.quote_header_id,
1439: p_qte_line_id_tbl => l_qte_line_id_tbl,
1440: x_adj_id_tbl => l_qte_adj_id_tbl);
1441: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1442: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count : '||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
1443: END IF;
1444: END IF;--p_control_rec.pricing_event = 'BATCH'
1445:
1446: -- Adjustment,line,Services Relationships.

Line 1448: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Relationships...',1,'Y');

1444: END IF;--p_control_rec.pricing_event = 'BATCH'
1445:
1446: -- Adjustment,line,Services Relationships.
1447: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1448: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Relationships...',1,'Y');
1449: END IF;
1450: ASO_PRICING_CORE_PVT.Query_Relationships(
1451: p_qte_adj_id_tbl => l_qte_adj_id_tbl,
1452: p_service_qte_line_id_tbl => l_service_qte_line_id_tbl);

Line 1456: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');

1452: p_service_qte_line_id_tbl => l_service_qte_line_id_tbl);
1453:
1454: FOR i IN 1..l_qte_line_tbl.count LOOP
1455: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1456: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');
1457: END IF;
1458: IF p_control_rec.pricing_event = 'BATCH' THEN
1459: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
1460: WHERE PRICE_ADJUSTMENT_ID IN (SELECT PRICE_ADJUSTMENT_ID

Line 1466: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adj Attribs Lines deleted '||sql%ROWCOUNT,1,'Y');

1462: WHERE QUOTE_HEADER_ID = p_qte_header_rec.quote_header_id
1463: AND QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id);
1464:
1465: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1466: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adj Attribs Lines deleted '||sql%ROWCOUNT,1,'Y');
1467: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
1468: END IF;
1469: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
1470: WHERE QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id;

Line 1467: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');

1463: AND QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id);
1464:
1465: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1466: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adj Attribs Lines deleted '||sql%ROWCOUNT,1,'Y');
1467: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
1468: END IF;
1469: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
1470: WHERE QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id;
1471: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1472: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');

1468: END IF;
1469: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
1470: WHERE QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id;
1471: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1472: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
1473: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
1474: END IF;
1475:
1476: DELETE FROM ASO_PRICE_ADJUSTMENTS

Line 1473: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');

1469: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
1470: WHERE QUOTE_LINE_ID = l_qte_line_tbl(i).quote_line_id;
1471: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1472: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
1473: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
1474: END IF;
1475:
1476: DELETE FROM ASO_PRICE_ADJUSTMENTS
1477: WHERE quote_line_id = l_qte_line_tbl(i).quote_line_id;

Line 1479: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');

1475:
1476: DELETE FROM ASO_PRICE_ADJUSTMENTS
1477: WHERE quote_line_id = l_qte_line_tbl(i).quote_line_id;
1478: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1479: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');
1480: END IF;
1481: END IF;--p_control_rec.pricing_event = 'BATCH'
1482: END LOOP;
1483:

Line 1505: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');

1501:
1502: End If; -- l_qte_line_tbl.count >0
1503:
1504: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1505: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');
1506: END IF;
1507:
1508: ASO_PRICING_CORE_PVT.populate_qp_temp_tables;
1509:

Line 1523: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

1519: l_req_control_rec.REQUEST_TYPE_CODE := p_control_rec.request_type;
1520: l_req_control_rec.rounding_flag := 'Q';
1521:
1522: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1523: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
1524: END IF;
1525:
1526: /* Change for populating QP_PREQ_GRP.CONTROL_RECORD_TYPE.ORG_ID Yogeshwar (MOAC) */
1527:

Line 1551: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

1547: RAISE FND_API.G_EXC_ERROR;
1548: END IF;
1549:
1550: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1551: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
1552: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
1553: ||l_return_status, 1, 'Y');
1554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
1555: ||l_return_status_text,1,'Y');

Line 1552: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'

1548: END IF;
1549:
1550: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1551: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
1552: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
1553: ||l_return_status, 1, 'Y');
1554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
1555: ||l_return_status_text,1,'Y');
1556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Price_To_Quote...',1,'Y');

Line 1554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '

1550: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1551: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
1552: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
1553: ||l_return_status, 1, 'Y');
1554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
1555: ||l_return_status_text,1,'Y');
1556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Price_To_Quote...',1,'Y');
1557: END IF;
1558:

Line 1556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Price_To_Quote...',1,'Y');

1552: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
1553: ||l_return_status, 1, 'Y');
1554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
1555: ||l_return_status_text,1,'Y');
1556: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Price_To_Quote...',1,'Y');
1557: END IF;
1558:
1559:
1560: ASO_PRICING_CORE_PVT.Copy_Price_To_Quote(

Line 1570: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '

1566: x_return_status => x_return_status,
1567: x_msg_count => x_msg_count,
1568: x_msg_data => x_msg_data);
1569: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1570: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
1571: ||NVL(x_return_status,'X'),1,'Y');
1572: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_count: '
1573: ||NVL(x_msg_count,0),1,'Y');
1574: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_data: '

Line 1572: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_count: '

1568: x_msg_data => x_msg_data);
1569: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1570: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
1571: ||NVL(x_return_status,'X'),1,'Y');
1572: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_count: '
1573: ||NVL(x_msg_count,0),1,'Y');
1574: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_data: '
1575: ||NVL(x_msg_data,'X'),1,'Y');
1576: END IF;

Line 1574: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_data: '

1570: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
1571: ||NVL(x_return_status,'X'),1,'Y');
1572: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_count: '
1573: ||NVL(x_msg_count,0),1,'Y');
1574: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_msg_data: '
1575: ||NVL(x_msg_data,'X'),1,'Y');
1576: END IF;
1577:
1578: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN

Line 1590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '

1586: x_return_status => x_return_status,
1587: x_msg_count => x_msg_count,
1588: x_msg_data => x_msg_data);
1589: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1590: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '
1591: ||nvl(x_return_status,'NULL'),1,'Y');
1592: END IF;
1593:
1594: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS

Line 1734: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Quote_With_Change_Lines',1,'Y');

1730: END IF;
1731:
1732: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1733: l_pricing_start_time := dbms_utility.get_time;
1734: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Quote_With_Change_Lines',1,'Y');
1735: END IF;
1736:
1737: x_return_status := FND_API.G_RET_STS_SUCCESS;
1738:

Line 1740: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');

1736:
1737: x_return_status := FND_API.G_RET_STS_SUCCESS;
1738:
1739: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1740: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
1741: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
1742: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.price_mode:'||p_control_rec.price_mode,1,'Y');
1743: END IF;
1744:

Line 1741: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');

1737: x_return_status := FND_API.G_RET_STS_SUCCESS;
1738:
1739: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1740: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
1741: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
1742: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.price_mode:'||p_control_rec.price_mode,1,'Y');
1743: END IF;
1744:
1745: l_prc_control_rec := p_control_rec;

Line 1742: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.price_mode:'||p_control_rec.price_mode,1,'Y');

1738:
1739: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1740: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
1741: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
1742: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.price_mode:'||p_control_rec.price_mode,1,'Y');
1743: END IF;
1744:
1745: l_prc_control_rec := p_control_rec;
1746: l_price_index := 1;

Line 1750: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_prc_control_rec.price_mode:'||l_prc_control_rec.price_mode,1,'Y');

1746: l_price_index := 1;
1747: l_complete_qte_flag := 'Y';
1748:
1749: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1750: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_prc_control_rec.price_mode:'||l_prc_control_rec.price_mode,1,'Y');
1751: END IF;
1752:
1753: --Always process and send the summary line
1754:

Line 1757: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_internal_call_flag: '||p_internal_call_flag,1,'Y');

1753: --Always process and send the summary line
1754:
1755: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1756: aso_debug_pub.add('********************* PROCESSING HEADER STARTS *******************************',1,'Y');
1757: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_internal_call_flag: '||p_internal_call_flag,1,'Y');
1758: END IF;
1759:
1760: If p_internal_call_flag = 'N' then
1761: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 1762: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');

1758: END IF;
1759:
1760: If p_internal_call_flag = 'N' then
1761: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1762: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Header Level... ',1,'Y');
1763: END IF;
1764: ASO_PRICING_INT.G_HEADER_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (
1765: p_qte_header_rec => p_qte_header_rec,
1766: p_shipment_rec => p_hd_shipment_rec);

Line 1772: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Build_Context - Header Level... ',1,'Y');

1768:
1769: ASO_PRICING_CORE_PVT.Print_G_Header_Rec;
1770:
1771: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1772: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Build_Context - Header Level... ',1,'Y');
1773: l_pricing_end_time := dbms_utility.get_time;
1774: l_accum_aso_time := l_pricing_end_time - l_pricing_start_time;
1775: END IF;
1776:

Line 1791: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

1787:
1788: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1789: l_pricing_start_time := dbms_utility.get_time;
1790: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
1791: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
1792: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
1793: END IF;
1794:
1795:

Line 1792: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');

1788: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1789: l_pricing_start_time := dbms_utility.get_time;
1790: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
1791: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
1792: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
1793: END IF;
1794:
1795:
1796: ASO_PRICING_CORE_PVT.Copy_Header_To_Request(

Line 1802: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

1798: p_price_line_index => l_price_index,
1799: px_index_counter => 1);
1800:
1801: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1802: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
1803: END IF;
1804:
1805: lx_index_counter:= 1;
1806: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 1813: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'

1809: p_header_id => p_qte_header_rec.quote_header_id,
1810: px_index_counter => lx_index_counter);
1811:
1812: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1813: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'
1814: ||lx_index_counter,1,'Y');
1815: END IF;
1816: --increment the line index
1817: l_price_index:= l_price_index+1;

Line 1825: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'

1821: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1822: aso_debug_pub.add('************************ HEADER LEVEL ENDS *******************************',1,'Y');
1823: aso_debug_pub.add(' ',1,'Y');
1824: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
1825: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'
1826: ||p_control_rec.pricing_event,1,'Y');
1827: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'
1828: ||p_control_rec.request_type,1,'Y');
1829: l_pricing_end_time := dbms_utility.get_time;

Line 1827: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'

1823: aso_debug_pub.add(' ',1,'Y');
1824: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
1825: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.pricing_event:'
1826: ||p_control_rec.pricing_event,1,'Y');
1827: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Before call Get_Order_Lines_Status:p_control_rec.request_type:'
1828: ||p_control_rec.request_type,1,'Y');
1829: l_pricing_end_time := dbms_utility.get_time;
1830: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
1831: END IF;

Line 1842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'

1838: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1839: l_pricing_start_time := dbms_utility.get_time;
1840: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
1841:
1842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
1843: ||lx_order_status_rec.all_lines_flag,1,'Y');
1844: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
1845: ||lx_order_status_rec.changed_lines_flag,1,'Y');
1846: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'

Line 1844: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'

1840: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
1841:
1842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
1843: ||lx_order_status_rec.all_lines_flag,1,'Y');
1844: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
1845: ||lx_order_status_rec.changed_lines_flag,1,'Y');
1846: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'
1847: ||lx_order_status_rec.summary_line_flag,1,'Y');
1848: END IF;

Line 1846: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'

1842: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.all_lines_flag:'
1843: ||lx_order_status_rec.all_lines_flag,1,'Y');
1844: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.changed_lines_flag:'
1845: ||lx_order_status_rec.changed_lines_flag,1,'Y');
1846: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:lx_order_status_rec.summary_line_flag:'
1847: ||lx_order_status_rec.summary_line_flag,1,'Y');
1848: END IF;
1849:
1850: If lx_order_status_rec.all_lines_flag = 'N' then

Line 1869: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Pricing_Line_Rows...',1,'Y');

1865: end if;
1866:
1867: --Query all lines and Serviceable lines
1868: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1869: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Pricing_Line_Rows...',1,'Y');
1870: END IF;
1871:
1872: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Pricing_Line_Rows(P_Qte_Header_Id => p_qte_header_rec.quote_header_id,
1873: P_change_line_flag => FND_API.G_TRUE);

Line 1875: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Query_Lines_lineIdlocation l_qte_line_tbl.count :'

1871:
1872: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Pricing_Line_Rows(P_Qte_Header_Id => p_qte_header_rec.quote_header_id,
1873: P_change_line_flag => FND_API.G_TRUE);
1874: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1875: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Query_Lines_lineIdlocation l_qte_line_tbl.count :'
1876: ||NVL(l_qte_line_tbl.count,0),1,'Y');
1877: l_pricing_end_time := dbms_utility.get_time;
1878: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
1879: END IF;

Line 1887: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Count of passed table p_qte_line_tbl.count:'

1883: --Set Check line flag from the given QP matrix
1884: --If the line is not changed and the all_lines_flag is 'Y' then only l_check_line_flag = 'Y'
1885: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1886: l_pricing_start_time := dbms_utility.get_time;
1887: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Count of passed table p_qte_line_tbl.count:'
1888: ||nvl(p_qte_line_tbl.count,0),1,'Y');
1889: END IF;
1890:
1891: For i in 1..p_qte_line_tbl.count loop

Line 1893: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Operation code:'||p_qte_line_tbl(i).operation_code,1,'Y');

1889: END IF;
1890:
1891: For i in 1..p_qte_line_tbl.count loop
1892: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1893: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Operation code:'||p_qte_line_tbl(i).operation_code,1,'Y');
1894: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_line_tbl(i).quote_line_id:'
1895: ||p_qte_line_tbl(i).quote_line_id,1,'Y');
1896: END IF;
1897: if p_qte_line_tbl(i).operation_code <> 'DELETE' Then

Line 1894: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_line_tbl(i).quote_line_id:'

1890:
1891: For i in 1..p_qte_line_tbl.count loop
1892: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1893: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Operation code:'||p_qte_line_tbl(i).operation_code,1,'Y');
1894: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_line_tbl(i).quote_line_id:'
1895: ||p_qte_line_tbl(i).quote_line_id,1,'Y');
1896: END IF;
1897: if p_qte_line_tbl(i).operation_code <> 'DELETE' Then
1898: --changed line

Line 1902: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assign the Is_line_changed_flag to N',1,'Y');

1898: --changed line
1899: --assign all the Is_line_changed_flag to 'N' for the ones that are created and updated i.e. are the chg lines
1900: --Is Line Changed flag is set to 'N' because this value is what needs to be sent to BuildContext
1901: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1902: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assign the Is_line_changed_flag to N',1,'Y');
1903: END IF;
1904: l_qte_line_tbl(p_qte_line_tbl(i).quote_line_id).Is_line_changed_flag := 'N';
1905: l_changed_qte_line_tbl(p_qte_line_tbl(i).quote_line_id) := l_qte_line_tbl(p_qte_line_tbl(i).quote_line_id);
1906:

Line 1913: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).item_type_code,1,'Y');

1909: from aso_quote_lines_all
1910: where quote_line_id = p_qte_line_tbl(i).quote_line_id;
1911:
1912: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1913: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).item_type_code,1,'Y');
1914: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).operation_code,1,'Y');
1915: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:l_item_type_code :'||l_item_type_code,1,'Y');
1916: END IF;
1917:

Line 1914: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).operation_code,1,'Y');

1910: where quote_line_id = p_qte_line_tbl(i).quote_line_id;
1911:
1912: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1913: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).item_type_code,1,'Y');
1914: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).operation_code,1,'Y');
1915: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:l_item_type_code :'||l_item_type_code,1,'Y');
1916: END IF;
1917:
1918: -- bug 13482837 rassharm

Line 1915: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:l_item_type_code :'||l_item_type_code,1,'Y');

1911:
1912: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1913: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).item_type_code,1,'Y');
1914: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).operation_code,1,'Y');
1915: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:l_item_type_code :'||l_item_type_code,1,'Y');
1916: END IF;
1917:
1918: -- bug 13482837 rassharm
1919: if p_qte_line_tbl(i).item_type_code='SRV' and (p_qte_line_tbl(i).operation_code='CREATE' or p_qte_line_tbl(i).operation_code = 'UPDATE') then

Line 1922: aso_debug_pub.add(' rassharm ASO_PRICING_FLOWS_PVT:service ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');

1918: -- bug 13482837 rassharm
1919: if p_qte_line_tbl(i).item_type_code='SRV' and (p_qte_line_tbl(i).operation_code='CREATE' or p_qte_line_tbl(i).operation_code = 'UPDATE') then
1920: If (lx_order_status_rec.all_lines_flag = 'N') AND (lx_order_status_rec.changed_lines_flag = 'Y') then
1921: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1922: aso_debug_pub.add(' rassharm ASO_PRICING_FLOWS_PVT:service ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');
1923: end if;
1924: ls_qte_line_tbl:=ASO_UTILITY_PVT.Query_Pricing_Line_Row(P_Qte_Header_Id => p_qte_header_rec.quote_header_id, p_qte_line_id=>p_qte_line_tbl(i).quote_line_id);
1925: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1926: aso_debug_pub.add(' ASO_PRICING_FLOWS_PVT:ls_qte_line_tbl count :'||ls_qte_line_tbl.count,1,'Y');

Line 1926: aso_debug_pub.add(' ASO_PRICING_FLOWS_PVT:ls_qte_line_tbl count :'||ls_qte_line_tbl.count,1,'Y');

1922: aso_debug_pub.add(' rassharm ASO_PRICING_FLOWS_PVT:service ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');
1923: end if;
1924: ls_qte_line_tbl:=ASO_UTILITY_PVT.Query_Pricing_Line_Row(P_Qte_Header_Id => p_qte_header_rec.quote_header_id, p_qte_line_id=>p_qte_line_tbl(i).quote_line_id);
1925: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1926: aso_debug_pub.add(' ASO_PRICING_FLOWS_PVT:ls_qte_line_tbl count :'||ls_qte_line_tbl.count,1,'Y');
1927: end if;
1928: for ls in 1..ls_qte_line_tbl.count loop
1929: l_qte_line_tbl(ls_qte_line_tbl(ls).quote_line_id).Is_line_changed_flag := 'N';
1930: l_changed_qte_line_tbl(ls_qte_line_tbl(ls).quote_line_id) := l_qte_line_tbl(ls_qte_line_tbl(ls).quote_line_id);

Line 1940: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).quote_header_id,1,'Y');

1936:
1937: if (l_item_type_code='MDL') and (p_qte_line_tbl(i).operation_code = 'UPDATE') then
1938: If (lx_order_status_rec.all_lines_flag = 'N') AND (lx_order_status_rec.changed_lines_flag = 'Y') then
1939: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1940: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).quote_header_id,1,'Y');
1941: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');
1942: END IF;
1943: for opt_cursor in (
1944: SELECT quote_line_id

Line 1941: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');

1937: if (l_item_type_code='MDL') and (p_qte_line_tbl(i).operation_code = 'UPDATE') then
1938: If (lx_order_status_rec.all_lines_flag = 'N') AND (lx_order_status_rec.changed_lines_flag = 'Y') then
1939: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1940: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM header id :'||p_qte_line_tbl(i).quote_header_id,1,'Y');
1941: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM line id :'||p_qte_line_tbl(i).quote_line_id,1,'Y');
1942: END IF;
1943: for opt_cursor in (
1944: SELECT quote_line_id
1945: FROM aso_quote_line_details

Line 1954: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM:'||opt_cursor.quote_line_id,1,'Y');

1950: where quote_header_id=p_qte_line_tbl(i).quote_header_id
1951: and item_type_code in ('CFG')))
1952: loop
1953: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1954: aso_debug_pub.add('8976983 ASO_PRICING_FLOWS_PVT:MODEL ITEM:'||opt_cursor.quote_line_id,1,'Y');
1955: END IF;
1956: l_qte_line_tbl(opt_cursor.quote_line_id).Is_line_changed_flag := 'N';
1957: l_changed_qte_line_tbl(opt_cursor.quote_line_id) := l_qte_line_tbl(opt_cursor.quote_line_id);
1958: end loop;

Line 1964: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(p_qte_line_tbl(i).quote_line_id).Is_line_changed_flag:'

1960: end if; -- model item
1961: -- end Code added for option lines bug 8976983
1962: end if;
1963: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1964: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(p_qte_line_tbl(i).quote_line_id).Is_line_changed_flag:'
1965: ||l_qte_line_tbl(p_qte_line_tbl(i).quote_line_id).Is_line_changed_flag,1,'Y');
1966: END IF;
1967: end loop;
1968:

Line 1972: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_changed_qte_line_tbl.count:'

1968:
1969: --If all lines flag is 'N' and changed lines flag 'Y' then in the table just have the changed lines.
1970: If (lx_order_status_rec.all_lines_flag = 'N') AND (lx_order_status_rec.changed_lines_flag = 'Y') then
1971: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1972: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_changed_qte_line_tbl.count:'
1973: ||NVL(l_changed_qte_line_tbl.count,0),1,'Y');
1974: END IF;
1975: l_qte_line_tbl := l_changed_qte_line_tbl;
1976: End If;

Line 1987: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:--------------Start line loop---------------',1,'Y');

1983:
1984: While i is not null Loop
1985: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1986: l_pricing_start_time := dbms_utility.get_time;
1987: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:--------------Start line loop---------------',1,'Y');
1988: END IF;
1989: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1990: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
1991: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');

Line 1990: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'

1986: l_pricing_start_time := dbms_utility.get_time;
1987: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:--------------Start line loop---------------',1,'Y');
1988: END IF;
1989: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1990: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
1991: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
1992: END IF;
1993:
1994: l_check_line_flag := l_qte_line_tbl(i).Is_line_changed_flag;

Line 1996: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_check_line_flag passed to Build Context:'

1992: END IF;
1993:
1994: l_check_line_flag := l_qte_line_tbl(i).Is_line_changed_flag;
1995: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
1996: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_check_line_flag passed to Build Context:'
1997: ||l_check_line_flag,1,'Y');
1998: END IF;
1999:
2000: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2001: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');

1997: ||l_check_line_flag,1,'Y');
1998: END IF;
1999:
2000: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2001: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2002: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2003: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2004: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2005: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');

Line 2002: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'

1998: END IF;
1999:
2000: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2001: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2002: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2003: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2004: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2005: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
2006: END IF;

Line 2004: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'

2000: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2001: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2002: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2003: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2004: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2005: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
2006: END IF;
2007:
2008: -- Pass header_level currency_code to line level by default.

Line 2012: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'

2008: -- Pass header_level currency_code to line level by default.
2009: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;
2010:
2011: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2012: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'
2013: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
2014: END IF;
2015: -- Pass Header level price list by default.
2016: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then

Line 2018: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');

2014: END IF;
2015: -- Pass Header level price list by default.
2016: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then
2017: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2018: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');
2019: END IF;
2020: ELSE
2021: /*Default the price list*/
2022: If l_qte_line_tbl(i).price_list_id is null Then

Line 2025: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'

2021: /*Default the price list*/
2022: If l_qte_line_tbl(i).price_list_id is null Then
2023: l_qte_line_tbl(i).price_list_id := p_qte_header_rec.price_list_id;
2024: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2025: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'
2026: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
2027: END IF;
2028: End if;
2029: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'

Line 2033: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'

2029: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'
2030:
2031: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_tbl(i).quote_line_id);
2032: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2033: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'
2034: ||NVL(l_qte_line_dtl_tbl.count,0),1,'Y');
2035: END IF;
2036: IF l_qte_line_dtl_tbl.count = 1 THEN
2037: l_qte_line_dtl_rec := l_qte_line_dtl_tbl(1);

Line 2043: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');

2039: l_qte_line_dtl_rec := ASO_QUOTE_PUB.G_Miss_Qte_Line_Dtl_REC ;
2040: END IF;
2041:
2042: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2043: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');
2044: END IF;
2045: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
2046: (p_qte_header_rec.quote_header_id, l_qte_line_tbl(i).quote_line_id);
2047: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2048: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'

2044: END IF;
2045: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
2046: (p_qte_header_rec.quote_header_id, l_qte_line_tbl(i).quote_line_id);
2047: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2048: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'
2049: ||NVL(l_shipment_tbl.count,0),1,'Y');
2050: END IF;
2051: IF l_shipment_tbl.count = 1 THEN
2052: l_shipment_rec := l_shipment_tbl(1);

Line 2057: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');

2053: else
2054: l_shipment_rec := ASO_QUOTE_PUB.G_Miss_Shipment_rec;
2055: END IF;
2056: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2057: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2058: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2060: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

Line 2058: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');

2054: l_shipment_rec := ASO_QUOTE_PUB.G_Miss_Shipment_rec;
2055: END IF;
2056: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2057: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2058: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2060: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2062: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');

Line 2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'

2055: END IF;
2056: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2057: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2058: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2060: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2062: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

Line 2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

2057: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2058: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2060: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2062: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2064: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

Line 2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

2059: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2060: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2062: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2064: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2066: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

Line 2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

2061: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2062: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2064: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2066: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2068: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

Line 2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

2063: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2064: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2066: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2068: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2070: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

Line 2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

2065: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2066: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2068: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2070: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2072: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2073: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

Line 2071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

2067: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2068: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2070: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2072: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2073: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
2074: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
2075: END IF;

Line 2073: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

2069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2070: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2071: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2072: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2073: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
2074: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
2075: END IF;
2076:
2077: ASO_PRICING_INT.G_LINE_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (

Line 2085: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');

2081:
2082: ASO_PRICING_CORE_PVT.Print_G_Line_Rec;
2083:
2084: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2085: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');
2086: l_pricing_end_time := dbms_utility.get_time;
2087: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2088: END IF;
2089:

Line 2102: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

2098:
2099: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2100: l_pricing_start_time := dbms_utility.get_time;
2101: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2102: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
2103: END IF;
2104:
2105: --Note: If the line has been changed, we have to send this line to pricing engine
2106: --Also, if the line has not been changed but x_pass_line is 'Y' then we have to send this line to PE

Line 2112: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');

2108: --Store this in the processed id table and put it in the PE structure
2109: /*Store all the quote_line_id processed*/
2110: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2111: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2112: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');
2113: END IF;
2114: l_Qte_Line_id_tbl.extend;
2115: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2116: ELSE

Line 2118: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');

2114: l_Qte_Line_id_tbl.extend;
2115: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2116: ELSE
2117: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2118: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');
2119: END IF;
2120: l_Qte_Line_id_tbl := JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
2121: END IF;
2122:

Line 2125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).service_item_flag: '

2121: END IF;
2122:
2123: --Store all the service lines processed in the service line id table
2124: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).service_item_flag: '
2126: ||l_qte_line_tbl(i).service_item_flag,1,'Y');
2127: END IF;
2128: If l_qte_line_tbl(i).service_item_flag = 'Y' then
2129: if l_service_qte_line_id_tbl.EXISTS(1) then

Line 2131: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');

2127: END IF;
2128: If l_qte_line_tbl(i).service_item_flag = 'Y' then
2129: if l_service_qte_line_id_tbl.EXISTS(1) then
2130: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2131: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');
2132: END IF;
2133: l_service_qte_line_id_tbl.extend;
2134: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2135: else

Line 2137: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');

2133: l_service_qte_line_id_tbl.extend;
2134: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2135: else
2136: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2137: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');
2138: END IF;
2139: l_service_qte_line_id_tbl:= JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
2140: end if;
2141: end if;-- l_qte_line_tbl(i).service_item_flag = 'Y'

Line 2144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');

2140: end if;
2141: end if;-- l_qte_line_tbl(i).service_item_flag = 'Y'
2142:
2143: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2144: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
2145: END IF;
2146: ASO_PRICING_CORE_PVT.Copy_Line_To_Request(
2147: p_Request_Type => p_control_rec.request_type,
2148: p_price_line_index => l_price_index,

Line 2152: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

2148: p_price_line_index => l_price_index,
2149: px_index_counter => l_price_index);
2150:
2151: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2152: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
2153: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
2154: ||lx_index_counter,1,'Y');
2155: END IF;
2156: l_index_counter := lx_index_counter;

Line 2153: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'

2149: px_index_counter => l_price_index);
2150:
2151: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2152: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
2153: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
2154: ||lx_index_counter,1,'Y');
2155: END IF;
2156: l_index_counter := lx_index_counter;
2157: ASO_PRICING_CORE_PVT.Append_asked_for(

Line 2164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'

2160: p_header_id => p_qte_header_rec.quote_header_id,
2161: p_line_id => l_qte_line_tbl(i).quote_line_id,
2162: px_index_counter => lx_index_counter);
2163: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2164: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:After Append Ask for lx_index_counter:'
2165: ||lx_index_counter,1,'Y');
2166: END IF;
2167: If lx_index_counter = 0 then
2168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning l_index_counter back to lx_index_counter:'

2165: ||lx_index_counter,1,'Y');
2166: END IF;
2167: If lx_index_counter = 0 then
2168: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2169: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Assigning l_index_counter back to lx_index_counter:'
2170: ||l_index_counter,1,'Y');
2171: END IF;
2172: lx_index_counter := l_index_counter;
2173: end if;

Line 2183: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:This line is not passed to PE:'

2179: Else
2180: -- x_pass_line = 'N' OR l_check_line_flag = 'Y'
2181: l_complete_qte_flag := 'N';
2182: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2183: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:This line is not passed to PE:'
2184: ||l_qte_line_tbl(i).quote_line_id,1,'Y');
2185: END IF;
2186: i:= l_qte_line_tbl.next(i);
2187: end If;--x_pass_line = 'Y' AND l_check_line_flag = 'Y'

Line 2209: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_db_ln_counter:'||l_db_ln_counter,1,'Y');

2205: INTO l_db_ln_counter
2206: FROM ASO_QUOTE_LINES_ALL
2207: WHERE quote_header_id = p_qte_header_rec.quote_header_id;
2208: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2209: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_db_ln_counter:'||l_db_ln_counter,1,'Y');
2210: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_price_index:'||l_price_index,1,'Y');
2211: END IF;
2212: If (l_db_ln_counter <> (l_price_index - 2)) Then
2213: l_complete_qte_flag := 'N';

Line 2210: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_price_index:'||l_price_index,1,'Y');

2206: FROM ASO_QUOTE_LINES_ALL
2207: WHERE quote_header_id = p_qte_header_rec.quote_header_id;
2208: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2209: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_db_ln_counter:'||l_db_ln_counter,1,'Y');
2210: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_price_index:'||l_price_index,1,'Y');
2211: END IF;
2212: If (l_db_ln_counter <> (l_price_index - 2)) Then
2213: l_complete_qte_flag := 'N';
2214: end if;

Line 2222: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:All line flag is N and changed line flag is N',1,'Y');

2218: --Since we are only sending the summary line to pricing the quote is not completely priced
2219: l_complete_qte_flag := 'N';
2220:
2221: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2222: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:All line flag is N and changed line flag is N',1,'Y');
2223: END IF;
2224:
2225: End If;
2226:

Line 2234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');

2230: END IF;
2231: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2232: -- Call to Price Adjustment Relationships and Service Relationships
2233: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
2235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'
2236: ||NVL(l_qte_line_id_tbl.count,0),1,'Y');
2237: END IF;
2238: ASO_PRICING_CORE_PVT.Query_Price_Adjustments

Line 2235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'

2231: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2232: -- Call to Price Adjustment Relationships and Service Relationships
2233: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2234: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adjustments...',1,'Y');
2235: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_id_tbl.count :'
2236: ||NVL(l_qte_line_id_tbl.count,0),1,'Y');
2237: END IF;
2238: ASO_PRICING_CORE_PVT.Query_Price_Adjustments
2239: (p_quote_header_id => p_qte_header_rec.quote_header_id,

Line 2246: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');

2242:
2243: If l_qte_adj_id_tbl.exists(1) OR l_service_qte_line_id_tbl.exists(1) Then
2244: -- Adjustment and line Relationships and services...
2245: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2246: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');
2247: If l_qte_adj_id_tbl is not null then
2248: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
2249: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
2250: end if;

Line 2248: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'

2244: -- Adjustment and line Relationships and services...
2245: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2246: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Adj_rltship_Bulk...',1,'Y');
2247: If l_qte_adj_id_tbl is not null then
2248: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
2249: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
2250: end if;
2251: If l_service_qte_line_id_tbl is not null then
2252: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'

Line 2252: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'

2248: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_adj_id_tbl.count :'
2249: ||NVL(l_qte_adj_id_tbl.count,0),1,'Y');
2250: end if;
2251: If l_service_qte_line_id_tbl is not null then
2252: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_service_qte_line_id_tbl.count :'
2253: ||NVL(l_service_qte_line_id_tbl.count,0),1,'Y');
2254: end if;
2255: END IF;
2256: ASO_PRICING_CORE_PVT.Query_relationships

Line 2261: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: There are no service lines or manual related Adjustments',1,'Y');

2257: (p_qte_adj_id_tbl => l_qte_adj_id_tbl,
2258: p_service_qte_line_id_tbl => l_service_qte_line_id_tbl);
2259: else
2260: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2261: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: There are no service lines or manual related Adjustments',1,'Y');
2262: END IF;
2263: end if;--If l_qte_adj_id_tbl.exists(1) OR l_service_qte_line_id_tbl.exists(1)
2264: ELSIF (lx_order_status_rec.summary_line_flag = 'Y') THEN
2265: --Just send the header level manual adjustments

Line 2267: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_Header...',1,'Y');

2263: end if;--If l_qte_adj_id_tbl.exists(1) OR l_service_qte_line_id_tbl.exists(1)
2264: ELSIF (lx_order_status_rec.summary_line_flag = 'Y') THEN
2265: --Just send the header level manual adjustments
2266: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2267: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_Header...',1,'Y');
2268: END IF;
2269: ASO_PRICING_CORE_PVT.Query_Price_Adj_Header
2270: (p_quote_header_id => p_qte_header_rec.quote_header_id);
2271:

Line 2277: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin bulk collect adj ids that are not passed to PE', 1, 'Y');

2273:
2274: -- Start of Deleting of attributes logic
2275:
2276: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2277: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin bulk collect adj ids that are not passed to PE', 1, 'Y');
2278: END IF;
2279:
2280: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2281: If l_qte_adj_id_tbl is not null then

Line 2283: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');

2279:
2280: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2281: If l_qte_adj_id_tbl is not null then
2282: For i in 1..l_qte_adj_id_tbl.count loop
2283: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');
2284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');
2285: end loop;
2286: end if;
2287: END IF;

Line 2284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');

2280: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2281: If l_qte_adj_id_tbl is not null then
2282: For i in 1..l_qte_adj_id_tbl.count loop
2283: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Querying for the following adjustment ids:',1,'Y');
2284: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_adj_id_tbl(i):'||l_qte_adj_id_tbl(i),1,'Y');
2285: end loop;
2286: end if;
2287: END IF;
2288:

Line 2299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount(Both hdr and lines): '

2295: AND adj.price_adjustment_id NOT IN (SELECT column_value
2296: FROM TABLE (CAST(l_qte_adj_id_tbl AS JTF_NUMBER_TABLE)) passed_adj);
2297:
2298: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2299: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount(Both hdr and lines): '
2300: ||sql%rowcount,1,'Y');
2301: END IF;
2302: Elsif (lx_order_status_rec.summary_line_flag = 'Y') Then
2303: SELECT adj.PRICE_ADJUSTMENT_ID

Line 2310: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount(Header): '

2306: FROM ASO_PRICE_ADJUSTMENTS adj
2307: WHERE adj.quote_header_id = p_qte_header_rec.quote_header_id
2308: AND adj.quote_line_id IS NULL;
2309: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2310: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: No. of adjustment lines selected is sql%rowcount(Header): '
2311: ||sql%rowcount,1,'Y');
2312: END IF;
2313: END If;--l_qte_adj_id_tbl.EXISTS(1)
2314:

Line 2320: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_adj_id_tbl('||k||'): ' || l_adj_id_tbl(k),1,'Y');

2316:
2317: if l_adj_id_tbl.count > 0 then
2318:
2319: for k in l_adj_id_tbl.FIRST..l_adj_id_tbl.LAST loop
2320: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_adj_id_tbl('||k||'): ' || l_adj_id_tbl(k),1,'Y');
2321: end loop;
2322:
2323: end if;
2324:

Line 2329: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');

2325: END IF;
2326:
2327: if l_adj_id_tbl.count > 0 then
2328: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2329: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_ATTRIBS', 1, 'Y');
2330: END IF;
2331: FORALL i IN l_adj_id_tbl.FIRST..l_adj_id_tbl.LAST
2332: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
2333: WHERE PRICE_ADJUSTMENT_ID = l_adj_id_tbl(i);

Line 2336: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No of adjustment attribute lines deleted is sql%rowcount: '

2332: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
2333: WHERE PRICE_ADJUSTMENT_ID = l_adj_id_tbl(i);
2334:
2335: IF aso_debug_pub.g_debug_flag = 'Y' THEN
2336: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No of adjustment attribute lines deleted is sql%rowcount: '
2337: ||sql%rowcount,1,'Y');
2338: END IF;
2339:
2340: end if;

Line 2343: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag before delete:'||l_complete_qte_flag,1,'Y');

2339:
2340: end if;
2341:
2342: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2343: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag before delete:'||l_complete_qte_flag,1,'Y');
2344: END IF;
2345:
2346: -- End Deleting of attributes
2347:

Line 2350: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');

2346: -- End Deleting of attributes
2347:
2348: if l_complete_qte_flag = 'Y' then
2349: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2350: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
2351: END IF;
2352: DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS
2353: WHERE QUOTE_LINE_ID in (SELECT quote_line_id
2354: FROM ASO_PRICE_ADJUSTMENTS

Line 2359: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');

2355: WHERE quote_header_id = p_qte_header_rec.quote_header_id
2356: AND quote_line_id IS NOT NULL);
2357:
2358: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2359: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
2360: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
2361: END IF;
2362:
2363: DELETE FROM ASO_PRICE_ADJUSTMENTS

Line 2360: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');

2356: AND quote_line_id IS NOT NULL);
2357:
2358: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2359: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
2360: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
2361: END IF;
2362:
2363: DELETE FROM ASO_PRICE_ADJUSTMENTS
2364: WHERE quote_header_id = p_qte_header_rec.quote_header_id;

Line 2366: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');

2362:
2363: DELETE FROM ASO_PRICE_ADJUSTMENTS
2364: WHERE quote_header_id = p_qte_header_rec.quote_header_id;
2365: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2366: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');
2367: END IF;
2368:
2369: else
2370: --l_complete_qte_flag is 'N'

Line 2374: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');

2370: --l_complete_qte_flag is 'N'
2371:
2372: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2373: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2374: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
2375: For i in 1..l_qte_line_id_tbl.count loop
2376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE for l_qte_line_id_tbl(i):'
2377: ||l_qte_line_id_tbl(i), 1, 'Y');
2378: end loop;

Line 2376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE for l_qte_line_id_tbl(i):'

2372: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2373: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2374: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJ_RELATIONSHIPS', 1, 'Y');
2375: For i in 1..l_qte_line_id_tbl.count loop
2376: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE for l_qte_line_id_tbl(i):'
2377: ||l_qte_line_id_tbl(i), 1, 'Y');
2378: end loop;
2379: END IF;
2380:

Line 2386: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');

2382: WHERE quote_line_id IN (SELECT column_value
2383: FROM TABLE (CAST(l_qte_line_id_tbl AS JTF_NUMBER_TABLE)));
2384:
2385: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2386: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
2387: END IF;
2388:
2389: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2390: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');

Line 2390: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');

2386: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Rltd adj Lines deleted '||sql%ROWCOUNT,1,'Y');
2387: END IF;
2388:
2389: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2390: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Begin DELETE FROM ASO_PRICE_ADJUSTMENTS', 1, 'Y');
2391: END IF;
2392: DELETE FROM ASO_PRICE_ADJUSTMENTS
2393: WHERE quote_line_id IN (SELECT column_value
2394: FROM TABLE (CAST(l_qte_line_id_tbl AS JTF_NUMBER_TABLE)))

Line 2397: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');

2393: WHERE quote_line_id IN (SELECT column_value
2394: FROM TABLE (CAST(l_qte_line_id_tbl AS JTF_NUMBER_TABLE)))
2395: AND quote_header_id = p_qte_header_rec.quote_header_id;
2396: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2397: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');
2398: END IF;
2399:
2400: DELETE FROM ASO_PRICE_ADJUSTMENTS
2401: WHERE quote_header_id = p_qte_header_rec.quote_header_id

Line 2405: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Header Adjustment deleted '||sql%ROWCOUNT,1,'Y');

2401: WHERE quote_header_id = p_qte_header_rec.quote_header_id
2402: AND quote_line_id is NULL;
2403:
2404: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2405: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Header Adjustment deleted '||sql%ROWCOUNT,1,'Y');
2406: END IF;
2407: ELSIF (lx_order_status_rec.summary_line_flag = 'Y') Then
2408: DELETE FROM ASO_PRICE_ADJUSTMENTS
2409: WHERE quote_header_id = p_qte_header_rec.quote_header_id

Line 2413: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Header Adjustment deleted '||sql%ROWCOUNT,1,'Y');

2409: WHERE quote_header_id = p_qte_header_rec.quote_header_id
2410: AND quote_line_id is NULL;
2411:
2412: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2413: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Header Adjustment deleted '||sql%ROWCOUNT,1,'Y');
2414: END IF;
2415:
2416: END IF;--l_Qte_Line_id_tbl.EXISTS(1)
2417:

Line 2430: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_LDET_LINE_INDEX_TBL',1,'Y');

2426:
2427: --Need to modify the global index table of pls integer types
2428: l_global_pls_tbl := ASO_PRICING_CORE_PVT.G_LDET_LINE_INDEX_TBL;
2429: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2430: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_LDET_LINE_INDEX_TBL',1,'Y');
2431: END IF;
2432: ASO_PRICING_CORE_PVT.G_LDET_LINE_INDEX_TBL:= ASO_PRICING_CORE_PVT.Modify_Global_PlsIndex_Table(
2433: p_global_tbl => l_global_pls_tbl,
2434: p_search_tbl => px_line_index_search_tbl);

Line 2437: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_RLTD_LINE_INDEX_TBL',1,'Y');

2433: p_global_tbl => l_global_pls_tbl,
2434: p_search_tbl => px_line_index_search_tbl);
2435: l_global_num_tbl := ASO_PRICING_CORE_PVT.G_RLTD_LINE_INDEX_TBL;
2436: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2437: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_RLTD_LINE_INDEX_TBL',1,'Y');
2438: END IF;
2439: ASO_PRICING_CORE_PVT.G_RLTD_LINE_INDEX_TBL:= ASO_PRICING_CORE_PVT.Modify_Global_NumIndex_Table(
2440: p_global_tbl => l_global_num_tbl,
2441: p_search_tbl => px_line_index_search_tbl);

Line 2444: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_RLTD_RELATED_LINE_IND_TBL',1,'Y');

2440: p_global_tbl => l_global_num_tbl,
2441: p_search_tbl => px_line_index_search_tbl);
2442: l_global_num_tbl := ASO_PRICING_CORE_PVT.G_RLTD_RELATED_LINE_IND_TBL;
2443: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2444: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Modifying G_RLTD_RELATED_LINE_IND_TBL',1,'Y');
2445: END IF;
2446: ASO_PRICING_CORE_PVT.G_RLTD_RELATED_LINE_IND_TBL:= ASO_PRICING_CORE_PVT.Modify_Global_NumIndex_Table(
2447: p_global_tbl => l_global_num_tbl,
2448: p_search_tbl => px_line_index_search_tbl);

Line 2451: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');

2447: p_global_tbl => l_global_num_tbl,
2448: p_search_tbl => px_line_index_search_tbl);
2449:
2450: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2451: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');
2452: l_pricing_end_time := dbms_utility.get_time;
2453: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2454: END IF;
2455:

Line 2474: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_req_control_rec.calculate_flag:'||l_req_control_rec.calculate_flag,1,'Y');

2470: l_req_control_rec.GSA_DUP_CHECK_FLAG := 'Y';
2471: l_req_control_rec.REQUEST_TYPE_CODE := p_control_rec.request_type;
2472: l_req_control_rec.rounding_flag := 'Q';
2473: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2474: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_req_control_rec.calculate_flag:'||l_req_control_rec.calculate_flag,1,'Y');
2475: END IF;
2476:
2477: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

Line 2478: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

2474: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_req_control_rec.calculate_flag:'||l_req_control_rec.calculate_flag,1,'Y');
2475: END IF;
2476:
2477: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2478: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
2479: l_pricing_end_time := dbms_utility.get_time;
2480: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2481: END IF;
2482:

Line 2508: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

2504:
2505: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2506: l_pricing_start_time := dbms_utility.get_time;
2507: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2508: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
2509: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
2510: ||l_return_status, 1, 'Y');
2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
2512: ||l_return_status_text,1,'Y');

Line 2509: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'

2505: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2506: l_pricing_start_time := dbms_utility.get_time;
2507: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2508: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
2509: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
2510: ||l_return_status, 1, 'Y');
2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
2512: ||l_return_status_text,1,'Y');
2513: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

Line 2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '

2507: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2508: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
2509: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
2510: ||l_return_status, 1, 'Y');
2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
2512: ||l_return_status_text,1,'Y');
2513: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
2514: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag:'||l_complete_qte_flag,1,'Y');
2515: END IF;

Line 2513: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

2509: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
2510: ||l_return_status, 1, 'Y');
2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
2512: ||l_return_status_text,1,'Y');
2513: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
2514: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag:'||l_complete_qte_flag,1,'Y');
2515: END IF;
2516: /*Insert all the applied adjustments and the nonapplied manual adjustments*/
2517: ASO_PRICING_CORE_PVT.Copy_Price_To_Quote(

Line 2514: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag:'||l_complete_qte_flag,1,'Y');

2510: ||l_return_status, 1, 'Y');
2511: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
2512: ||l_return_status_text,1,'Y');
2513: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
2514: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_complete_qte_flag:'||l_complete_qte_flag,1,'Y');
2515: END IF;
2516: /*Insert all the applied adjustments and the nonapplied manual adjustments*/
2517: ASO_PRICING_CORE_PVT.Copy_Price_To_Quote(
2518: P_Api_Version_Number => 1.0,

Line 2528: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '

2524: x_return_status => x_return_status,
2525: x_msg_count => x_msg_count,
2526: x_msg_data => x_msg_data);
2527: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2528: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
2529: ||nvl(x_return_status,'NULL'),1,'Y');
2530: END IF;
2531:
2532: If p_internal_call_flag = 'N' then

Line 2546: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_PRG : x_return_status: '

2542: x_msg_count => x_msg_count,
2543: x_msg_data => x_msg_data);
2544:
2545: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2546: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_PRG : x_return_status: '
2547: ||nvl(x_return_status,'NULL'),1,'Y');
2548: END IF;
2549:
2550: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS

Line 2554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Process_PRG : x_qte_line_tbl.count: '

2550: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS
2551:
2552: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
2553: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2554: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After Process_PRG : x_qte_line_tbl.count: '
2555: ||x_qte_line_tbl.count,1,'Y');
2556: END IF;
2557:
2558: ASO_PRICING_CORE_PVT.Process_Charges(

Line 2568: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '

2564: x_return_status => x_return_status,
2565: x_msg_count => x_msg_count,
2566: x_msg_data => x_msg_data);
2567: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2568: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '
2569: ||nvl(x_return_status,'NULL'),1,'Y');
2570: END IF;
2571:
2572: END IF;--x_return_status = FND_API.G_RET_STS_SUCCESS

Line 2581: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing Before Calculate Call****************',1,'Y');

2577: -- is a bucketing implementation for the header level modifier ASO does not have a way to compare the percentages.
2578: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2579: l_pricing_end_time := dbms_utility.get_time;
2580: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2581: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing Before Calculate Call****************',1,'Y');
2582:
2583: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
2584: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
2585: END IF;

Line 2583: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');

2579: l_pricing_end_time := dbms_utility.get_time;
2580: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2581: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing Before Calculate Call****************',1,'Y');
2582:
2583: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
2584: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
2585: END IF;
2586:
2587: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN

Line 2584: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');

2580: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2581: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:**********Timing Before Calculate Call****************',1,'Y');
2582:
2583: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Price Entire Quote(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
2584: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
2585: END IF;
2586:
2587: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
2588: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2589: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call l_complete_qte_flag:'

2585: END IF;
2586:
2587: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
2588: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2589: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call l_complete_qte_flag:'
2590: ||l_complete_qte_flag,1,'Y');
2591: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call lx_order_status_rec.summary_line_flag:'
2592: ||lx_order_status_rec.summary_line_flag,1,'Y');
2593: END IF;

Line 2591: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call lx_order_status_rec.summary_line_flag:'

2587: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
2588: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2589: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call l_complete_qte_flag:'
2590: ||l_complete_qte_flag,1,'Y');
2591: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Calling Calculate Call lx_order_status_rec.summary_line_flag:'
2592: ||lx_order_status_rec.summary_line_flag,1,'Y');
2593: END IF;
2594: If (l_complete_qte_flag = 'N') then
2595: If (lx_order_status_rec.summary_line_flag <> 'N') then

Line 2601: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price Request should be called again to get header level adj',1,'Y');

2597: --Since the processed flag is not coded for Order Capture, Current work around is such that Order Capture should
2598: --always make the second call except in the above two conditions of complete qte flag and summary line flag.
2599:
2600: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2601: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price Request should be called again to get header level adj',1,'Y');
2602: END IF;
2603:
2604: l_prc_control_rec.calculate_flag := QP_PREQ_GRP.G_CALCULATE_ONLY;
2605:

Line 2702: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Quote_Calculate_Call',1,'Y');

2698: END IF;
2699:
2700: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2701: l_pricing_start_time := dbms_utility.get_time;
2702: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Start of Price_Quote_Calculate_Call',1,'Y');
2703: END IF;
2704:
2705: x_return_status := FND_API.G_RET_STS_SUCCESS;
2706:

Line 2708: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');

2704:
2705: x_return_status := FND_API.G_RET_STS_SUCCESS;
2706:
2707: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2708: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
2709: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');
2712: IF p_delta_line_id_tbl is not null THEN

Line 2709: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');

2705: x_return_status := FND_API.G_RET_STS_SUCCESS;
2706:
2707: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2708: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
2709: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');
2712: IF p_delta_line_id_tbl is not null THEN
2713: for i in 1..p_delta_line_id_tbl.count loop

Line 2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');

2706:
2707: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2708: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
2709: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');
2712: IF p_delta_line_id_tbl is not null THEN
2713: for i in 1..p_delta_line_id_tbl.count loop
2714: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_delta_line_id_tbl(i):'||p_delta_line_id_tbl(i), 1, 'Y');

Line 2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');

2707: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2708: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.request_type:'||p_control_rec.request_type,1,'Y');
2709: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.pricing_event:'||p_control_rec.pricing_event,1,'Y');
2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');
2712: IF p_delta_line_id_tbl is not null THEN
2713: for i in 1..p_delta_line_id_tbl.count loop
2714: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_delta_line_id_tbl(i):'||p_delta_line_id_tbl(i), 1, 'Y');
2715: end loop;

Line 2714: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_delta_line_id_tbl(i):'||p_delta_line_id_tbl(i), 1, 'Y');

2710: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_control_rec.calculate_flag:'||p_control_rec.calculate_flag,1,'Y');
2711: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_qte_header_rec.quote_header_id:'||p_qte_header_rec.quote_header_id,1,'Y');
2712: IF p_delta_line_id_tbl is not null THEN
2713: for i in 1..p_delta_line_id_tbl.count loop
2714: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:p_delta_line_id_tbl(i):'||p_delta_line_id_tbl(i), 1, 'Y');
2715: end loop;
2716: END IF;
2717: END IF;
2718: l_prc_control_rec := p_control_rec;

Line 2747: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

2743: l_price_index := 1;
2744: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2745: l_pricing_start_time := dbms_utility.get_time;
2746: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
2747: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
2748: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
2749: END IF;
2750: ASO_PRICING_CORE_PVT.Copy_Header_To_Request(
2751: p_Request_Type => p_control_rec.request_type,

Line 2748: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');

2744: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2745: l_pricing_start_time := dbms_utility.get_time;
2746: l_accum_qp_time := l_pricing_start_time - l_pricing_end_time;
2747: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
2748: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Header_To_Request...',1,'Y');
2749: END IF;
2750: ASO_PRICING_CORE_PVT.Copy_Header_To_Request(
2751: p_Request_Type => p_control_rec.request_type,
2752: p_price_line_index => l_price_index,

Line 2766: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');

2762: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2763: aso_debug_pub.add('************************ HEADER LEVEL ENDS *******************************',1,'Y');
2764: aso_debug_pub.add(' ',1,'Y');
2765: aso_debug_pub.add('************************ LINE LEVEL BEGINS *******************************',1,'Y');
2766: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of ASO UTL PVT Query_Pricing_Line_Rows...',1,'Y');
2767: END IF;
2768:
2769: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Pricing_Line_Rows(p_qte_header_rec.quote_header_id);
2770: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2771: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl.count :'||NVL(l_qte_line_tbl.count,0),1,'Y');

2767: END IF;
2768:
2769: l_qte_line_tbl := ASO_UTILITY_PVT.Query_Pricing_Line_Rows(p_qte_header_rec.quote_header_id);
2770: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2771: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl.count :'||NVL(l_qte_line_tbl.count,0),1,'Y');
2772: l_pricing_end_time := dbms_utility.get_time;
2773: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2774: END IF;
2775:

Line 2778: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No lines in the database',1,'Y');

2774: END IF;
2775:
2776: If l_qte_line_tbl.count = 0 Then
2777: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2778: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:No lines in the database',1,'Y');
2779: END IF;
2780:
2781: Else
2782: -- Line Count <> 0.

Line 2787: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');

2783: For i in 1..l_qte_line_tbl.count Loop
2784:
2785: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2786: l_pricing_start_time := dbms_utility.get_time;
2787: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
2788: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
2789: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
2790: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
2791: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');

Line 2788: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'

2784:
2785: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2786: l_pricing_start_time := dbms_utility.get_time;
2787: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
2788: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
2789: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
2790: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
2791: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');
2792: END IF;

Line 2790: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'

2786: l_pricing_start_time := dbms_utility.get_time;
2787: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Line_Dtl_Rows...',1,'Y');
2788: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).quote_line_id:'
2789: ||NVL(l_qte_line_tbl(i).quote_line_id,0),1,'Y');
2790: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).pricing_line_type_indicator:'
2791: ||l_qte_line_tbl(i).pricing_line_type_indicator,1,'Y');
2792: END IF;
2793:
2794: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;

Line 2798: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');

2794: l_qte_line_id := l_qte_line_tbl(i).quote_line_id;
2795: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
2796:
2797: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2798: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2799: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2800: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2801: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2802: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');

Line 2799: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'

2795: l_qte_line_dtl_tbl := ASO_UTILITY_PVT.Query_Line_Dtl_Rows(l_qte_line_id);
2796:
2797: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2798: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2799: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2800: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2801: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2802: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
2803: END IF;

Line 2801: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'

2797: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2798: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Defaulting Hdr Lvl Price List and Currency..',1,'Y');
2799: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.currency_code :'
2800: ||NVL(p_qte_header_rec.currency_code,'NULL'),1,'Y');
2801: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: p_qte_header_rec.price_list_id :'
2802: ||NVL(to_char(p_qte_header_rec.price_list_id),'NULL'),1,'Y');
2803: END IF;
2804: -- Pass header_level currency_code to line level by default.
2805: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;

Line 2808: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'

2804: -- Pass header_level currency_code to line level by default.
2805: l_qte_line_tbl(i).currency_code := p_qte_header_rec.currency_code;
2806:
2807: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2808: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_tbl(i).price_list_id :'
2809: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
2810: END IF;
2811: -- Pass Header level price list by default.
2812: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then

Line 2814: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');

2810: END IF;
2811: -- Pass Header level price list by default.
2812: IF l_qte_line_tbl(i).pricing_line_type_indicator = 'F' then
2813: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2814: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Free line so not defaulting of the price list',1,'Y');
2815: END IF;
2816: ELSE
2817: /*Default the price list*/
2818: If l_qte_line_tbl(i).price_list_id is null Then

Line 2821: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'

2817: /*Default the price list*/
2818: If l_qte_line_tbl(i).price_list_id is null Then
2819: l_qte_line_tbl(i).price_list_id := p_qte_header_rec.price_list_id;
2820: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2821: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Price list id defaulted from Header:'
2822: ||NVL(to_char(l_qte_line_tbl(i).price_list_id),'NULL'),1,'Y');
2823: END IF;
2824: End if;
2825: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'

Line 2828: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'

2824: End if;
2825: END IF;--l_qte_line_tbl(i).pricing_line_type_indicator = 'F'
2826:
2827: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2828: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_qte_line_dtl_tbl.count :'
2829: ||NVL(l_qte_line_dtl_tbl.count,0),1,'Y');
2830: END IF;
2831: IF l_qte_line_dtl_tbl.count = 1 THEN
2832: l_qte_line_dtl_rec := l_qte_line_dtl_tbl(1);

Line 2838: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');

2834: l_qte_line_dtl_rec := ASO_QUOTE_PUB.G_Miss_Qte_Line_Dtl_REC ;
2835: END IF;
2836:
2837: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2838: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Shipment_Rows..',1,'Y');
2839: END IF;
2840: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
2841: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
2842: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN

Line 2843: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'

2839: END IF;
2840: l_shipment_tbl := ASO_UTILITY_PVT.Query_Shipment_Rows
2841: (p_qte_header_rec.quote_header_id, l_QTE_LINE_ID);
2842: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2843: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: l_shipment_tbl.count :'
2844: ||NVL(l_shipment_tbl.count,0),1,'Y');
2845: END IF;
2846: IF l_shipment_tbl.count = 1 THEN
2847: l_shipment_rec := l_shipment_tbl(1);

Line 2854: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');

2850: END IF;
2851:
2852:
2853: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2854: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2855: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2857: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

Line 2855: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');

2851:
2852:
2853: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2854: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2855: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2857: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2859: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');

Line 2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'

2852:
2853: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2854: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2855: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2857: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2859: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

Line 2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'

2854: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Set_Global_Rec - Line Level...', 1, 'Y');
2855: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:These values will be defaulted from header for pricing qualification only:',1,'Y');
2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2857: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2859: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2861: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

Line 2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'

2856: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).invoice_to_party_site_id:'
2857: ||NVL(to_char(l_qte_line_tbl(i).invoice_to_party_site_id),'NULL'),1,'Y');
2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2859: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2861: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2863: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

Line 2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'

2858: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_to_party_site_id:'
2859: ||NVL(to_char(l_shipment_rec.ship_to_party_site_id),'NULL'),1,'Y');
2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2861: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2863: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2865: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

Line 2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'

2860: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_qte_line_tbl(i).agreement_id:'
2861: ||NVL(to_char(l_qte_line_tbl(i).agreement_id),'NULL'),1,'Y');
2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2863: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2865: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2867: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

Line 2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'

2862: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.ship_method_code:'
2863: ||NVL(l_shipment_rec.ship_method_code,'NULL'),1,'Y');
2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2865: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2867: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2869: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2870: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

Line 2868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'

2864: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.freight_terms_code:'
2865: ||NVL(l_shipment_rec.freight_terms_code,'NULL'),1,'Y');
2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2867: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2869: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2870: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
2871: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
2872: END IF;

Line 2870: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'

2866: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FREIGHT_CARRIER_CODE:'
2867: ||NVL(l_shipment_rec.FREIGHT_CARRIER_CODE,'NULL'),1,'Y');
2868: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.FOB_CODE:'
2869: ||NVL(l_shipment_rec.FOB_CODE,'NULL'),1,'Y');
2870: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:l_shipment_rec.REQUEST_DATE:'
2871: ||NVL(to_char(l_shipment_rec.REQUEST_DATE),'NULL'),1,'Y');
2872: END IF;
2873:
2874: ASO_PRICING_INT.G_LINE_REC := ASO_PRICING_CORE_PVT.Set_Global_Rec (

Line 2882: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');

2878:
2879: ASO_PRICING_CORE_PVT.Print_G_Line_Rec;
2880:
2881: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2882: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP Build_Contexts - Line Level...',1,'Y');
2883: l_pricing_end_time := dbms_utility.get_time;
2884: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
2885: END IF;
2886:

Line 2898: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');

2894: x_pass_line => x_pass_line);
2895: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2896: l_pricing_start_time := dbms_utility.get_time;
2897: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2898: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
2899: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
2900: END IF;
2901:
2902: ASO_PRICING_CORE_PVT.Copy_Line_To_Request(

Line 2899: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');

2895: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2896: l_pricing_start_time := dbms_utility.get_time;
2897: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
2898: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: x_pass_line: '||nvl(x_pass_line,'null'),1,'Y');
2899: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Copy_Line_To_Request...',1,'Y');
2900: END IF;
2901:
2902: ASO_PRICING_CORE_PVT.Copy_Line_To_Request(
2903: p_Request_Type => p_control_rec.request_type,

Line 2909: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');

2905: px_index_counter => i+1);
2906:
2907:
2908: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2909: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
2910: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
2911: ||lx_index_counter,1,'Y');
2912: END IF;
2913: l_index_counter := lx_index_counter;

Line 2910: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'

2906:
2907:
2908: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2909: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Append_asked_for...',1,'Y');
2910: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Before Append Ask for lx_index_counter:'
2911: ||lx_index_counter,1,'Y');
2912: END IF;
2913: l_index_counter := lx_index_counter;
2914:

Line 2921: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');

2917: /*Store the line_id of all the service_lines*/
2918: If l_qte_line_tbl(i).service_item_flag = 'Y' then
2919: if l_service_qte_line_id_tbl.EXISTS(1) then
2920: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2921: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_service_qte_line_id_tbl.extend...',1,'Y');
2922: END IF;
2923: l_service_qte_line_id_tbl.extend;
2924: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count)
2925: := l_qte_line_tbl(i).quote_line_id;

Line 2928: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');

2924: l_service_qte_line_id_tbl(l_service_qte_line_id_tbl.count)
2925: := l_qte_line_tbl(i).quote_line_id;
2926: else
2927: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2928: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_service_qte_line_id_tbl',1,'Y');
2929: END IF;
2930: l_service_qte_line_id_tbl:= JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
2931: end if;
2932: end if;-- l_qte_line_tbl(i).service_item_flag = 'Y'

Line 2937: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');

2933:
2934: /*Store all the quote_line_id processed*/
2935: IF l_Qte_Line_id_tbl.EXISTS(1) THEN
2936: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2937: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of l_qte_line_id_tbl.extend...',1,'Y');
2938: END IF;
2939: l_Qte_Line_id_tbl.extend;
2940: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2941: ELSE

Line 2943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');

2939: l_Qte_Line_id_tbl.extend;
2940: l_Qte_Line_id_tbl(l_Qte_Line_id_tbl.count) := l_qte_line_tbl(i).quote_line_id;
2941: ELSE
2942: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2943: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: First quote_line_id in l_qte_line_id_tbl',1,'Y');
2944: END IF;
2945: l_Qte_Line_id_tbl := JTF_NUMBER_TABLE(l_qte_line_tbl(i).quote_line_id);
2946: END IF;
2947: --increment the line index

Line 2960: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_All...',1,'Y');

2956:
2957: -- Call to Price Adjustment Relationships and Service Relationships
2958: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2959: l_pricing_start_time := dbms_utility.get_time;
2960: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Price_Adj_All...',1,'Y');
2961: END IF;
2962:
2963: ASO_PRICING_CORE_PVT.Query_Price_Adj_All
2964: (p_quote_header_id => p_qte_header_rec.quote_header_id,

Line 2969: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Relationships...',1,'Y');

2965: x_adj_id_tbl => l_qte_adj_id_tbl);
2966:
2967:
2968: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2969: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Query_Relationships...',1,'Y');
2970: END IF;
2971:
2972: ASO_PRICING_CORE_PVT.Query_Relationships(
2973: p_qte_adj_id_tbl => l_qte_adj_id_tbl,

Line 2986: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');

2982: WHERE quote_header_id = p_qte_header_rec.quote_header_id
2983: AND quote_line_id IS NULL
2984: AND (applied_flag = 'Y' OR updated_flag = 'Y');
2985: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2986: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Adjustment Lines deleted '||sql%ROWCOUNT,1,'Y');
2987: END IF;
2988: DELETE FROM ASO_PRICE_ADJ_ATTRIBS
2989: WHERE PRICE_ADJUSTMENT_ID IN (SELECT PRICE_ADJUSTMENT_ID
2990: FROM ASO_PRICE_ADJUSTMENTS

Line 2995: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Hdr Adjustment Attributes deleted '||sql%ROWCOUNT,1,'Y');

2991: WHERE QUOTE_HEADER_ID = p_qte_header_rec.quote_header_id
2992: AND QUOTE_LINE_ID is NULL
2993: AND (applied_flag = 'Y' OR updated_flag = 'Y'));
2994: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
2995: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Hdr Adjustment Attributes deleted '||sql%ROWCOUNT,1,'Y');
2996: END IF;
2997:
2998: --Need to modify the global index table of pls integer types
2999: l_global_pls_tbl := ASO_PRICING_CORE_PVT.G_LDET_LINE_INDEX_TBL;

Line 3013: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');

3009: p_global_tbl => l_global_num_tbl,
3010: p_search_tbl => px_line_index_search_tbl);
3011:
3012: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3013: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Populate_QP_Temp_tables...',1,'Y');
3014: l_pricing_end_time := dbms_utility.get_time;
3015: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
3016: END IF;
3017:

Line 3037: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

3033: l_req_control_rec.REQUEST_TYPE_CODE := p_control_rec.request_type;
3034: l_req_control_rec.rounding_flag := 'Q';
3035:
3036: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3037: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
3038: l_pricing_end_time := dbms_utility.get_time;
3039: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
3040: END IF;
3041:

Line 3069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');

3065:
3066: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3067: l_pricing_start_time := dbms_utility.get_time;
3068: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
3069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
3070: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
3071: ||l_return_status, 1, 'Y');
3072: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
3073: ||l_return_status_text,1,'Y');

Line 3070: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'

3066: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3067: l_pricing_start_time := dbms_utility.get_time;
3068: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
3069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
3070: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
3071: ||l_return_status, 1, 'Y');
3072: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
3073: ||l_return_status_text,1,'Y');
3074: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

Line 3072: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '

3068: l_accum_qp_time := l_accum_qp_time + (l_pricing_start_time - l_pricing_end_time);
3069: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: End of QP_PREQ_PUB.PRICE_REQUEST', 1, 'Y');
3070: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
3071: ||l_return_status, 1, 'Y');
3072: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
3073: ||l_return_status_text,1,'Y');
3074: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
3075: END IF;
3076:

Line 3074: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');

3070: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status:'
3071: ||l_return_status, 1, 'Y');
3072: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: After PRICE_REQUEST l_return_status_text '
3073: ||l_return_status_text,1,'Y');
3074: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Start of Post_Price_Request...',1,'Y');
3075: END IF;
3076:
3077: ASO_PRICING_CORE_PVT.Copy_Price_To_Quote(
3078: P_Api_Version_Number => 1.0,

Line 3088: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '

3084: x_return_status => x_return_status,
3085: x_msg_count => x_msg_count,
3086: x_msg_data => x_msg_data);
3087: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3088: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Copy_Price_To_Quote : x_return_status: '
3089: ||nvl(x_return_status,'NULL'),1,'Y');
3090: END IF;
3091: IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
3092: ASO_PRICING_CORE_PVT.Process_Charges(

Line 3102: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '

3098: x_return_status => x_return_status,
3099: x_msg_count => x_msg_count,
3100: x_msg_data => x_msg_data);
3101: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3102: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT: Process_Charges : x_return_status: '
3103: ||nvl(x_return_status,'NULL'),1,'Y');
3104: END IF;
3105: END IF;
3106:

Line 3125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:********Timing in Calculate Call**************',1,'Y');

3121:
3122: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3123: l_pricing_end_time := dbms_utility.get_time;
3124: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
3125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:********Timing in Calculate Call**************',1,'Y');
3126: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Calculate call(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
3127: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
3128: END IF;
3129:

Line 3126: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Calculate call(Besides Pricing):'||l_accum_aso_time/100,1,'Y');

3122: IF ASO_DEBUG_PUB.G_Debug_Flag = 'Y' THEN
3123: l_pricing_end_time := dbms_utility.get_time;
3124: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
3125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:********Timing in Calculate Call**************',1,'Y');
3126: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Calculate call(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
3127: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
3128: END IF;
3129:
3130:

Line 3127: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');

3123: l_pricing_end_time := dbms_utility.get_time;
3124: l_accum_aso_time := l_accum_aso_time + (l_pricing_end_time - l_pricing_start_time);
3125: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:********Timing in Calculate Call**************',1,'Y');
3126: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Calculate call(Besides Pricing):'||l_accum_aso_time/100,1,'Y');
3127: aso_debug_pub.add('ASO_PRICING_FLOWS_PVT:Total time taken (in secs) in Pricing+BuildContext:'||l_accum_qp_time/100,1,'Y');
3128: END IF;
3129:
3130:
3131:

Line 3136: End ASO_PRICING_FLOWS_PVT;

3132: END Price_Quote_Calculate_Call;
3133:
3134:
3135:
3136: End ASO_PRICING_FLOWS_PVT;