DBA Data[Home] [Help]

APPS.OE_LINE_UTIL dependencies on OE_GLOBALS

Line 129: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

125:
126: END IF;
127:
128: OE_Atchmt_Util.Delete_Attachments
129: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
130: , p_entity_id => p_line_id
131: , x_return_status => l_return_status
132: );
133: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 160: AND p_item_type_code <> OE_GLOBALS.G_ITEM_CONFIG THEN

156: -- BUG 2670775 Reverse Limits End
157:
158: -- Scheduling restructure.
159: IF p_schedule_status_code IS NOT NULL
160: AND p_item_type_code <> OE_GLOBALS.G_ITEM_CONFIG THEN
161:
162: --4504362: Branch scheduling checs removed
163: OE_SCHEDULE_UTIL.Delete_row(p_line_id => p_line_id);
164:

Line 237: l_delete_lines_tbl(1).entity_code := OE_GLOBALS.G_ENTITY_LINE;

233: the call to be made at actually databse delete in delete_row api.
234: */
235: -- Preparing the table for calling Update_Shipping_From_OE for the deleted line
236:
237: l_delete_lines_tbl(1).entity_code := OE_GLOBALS.G_ENTITY_LINE;
238: l_delete_lines_tbl(1).entity_id := p_line_id;
239: l_delete_lines_tbl(1).param1 := FND_API.G_TRUE;
240: l_delete_lines_tbl(1).param2 := FND_API.G_FALSE;
241: l_delete_lines_tbl(1).request_unique_key1 := OE_GLOBALS.G_OPR_DELETE;

Line 241: l_delete_lines_tbl(1).request_unique_key1 := OE_GLOBALS.G_OPR_DELETE;

237: l_delete_lines_tbl(1).entity_code := OE_GLOBALS.G_ENTITY_LINE;
238: l_delete_lines_tbl(1).entity_id := p_line_id;
239: l_delete_lines_tbl(1).param1 := FND_API.G_TRUE;
240: l_delete_lines_tbl(1).param2 := FND_API.G_FALSE;
241: l_delete_lines_tbl(1).request_unique_key1 := OE_GLOBALS.G_OPR_DELETE;
242:
243: OE_Shipping_Integration_PVT.Update_Shipping_From_OE
244: (p_update_lines_tbl => l_delete_lines_tbl,
245: x_return_status => l_return_status

Line 263: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

259: RAISE FND_API.G_EXC_ERROR;
260: END IF;
261:
262: OE_Delayed_Requests_Pvt.Delete_Reqs_for_deleted_entity(
263: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
264: p_delete_against => FALSE, -- bug 5114189
265: p_entity_id => p_line_id,
266: x_return_status => l_return_status
267: );

Line 413: l_control_rec OE_GLOBALS.Control_Rec_Type;

409: l_ordered_quantity NUMBER := p_x_line_rec.ordered_quantity;
410: l_ordered_quantity2 NUMBER := p_x_line_rec.ordered_quantity2;
411: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
412: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
413: l_control_rec OE_GLOBALS.Control_Rec_Type;
414: --OPM BUG 1491504 END
415: /* csheu -- bug #1533658 start*/
416: l_copy_service_fields boolean := FALSE;
417: /* csheu -- bug #1533658 end*/

Line 496: IF NOT OE_GLOBALS.Equal(p_x_line_rec.accounting_rule_id,p_old_line_rec.accounting_rule_id)

492:
493: l_tax_calculation_flag := l_tax_calc_rec.tax_calculation_flag;
494:
495:
496: IF NOT OE_GLOBALS.Equal(p_x_line_rec.accounting_rule_id,p_old_line_rec.accounting_rule_id)
497: THEN
498: --Customer Acceptance
499: l_def_contingency_attributes := FND_API.G_TRUE;
500: END IF;

Line 502: IF NOT OE_GLOBALS.Equal(p_x_line_rec.agreement_id,p_old_line_rec.agreement_id)

498: --Customer Acceptance
499: l_def_contingency_attributes := FND_API.G_TRUE;
500: END IF;
501:
502: IF NOT OE_GLOBALS.Equal(p_x_line_rec.agreement_id,p_old_line_rec.agreement_id)
503: THEN
504: OE_GLOBALS.G_PRICE_FLAG := 'Y';
505:
506: -- bug 1829201, need to recalculate commitment.

Line 504: OE_GLOBALS.G_PRICE_FLAG := 'Y';

500: END IF;
501:
502: IF NOT OE_GLOBALS.Equal(p_x_line_rec.agreement_id,p_old_line_rec.agreement_id)
503: THEN
504: OE_GLOBALS.G_PRICE_FLAG := 'Y';
505:
506: -- bug 1829201, need to recalculate commitment.
507: IF p_x_line_rec.commitment_id is not null then
508: l_calculate_commitment_flag := 'Y';

Line 516: OE_GLOBALS.Equal(p_x_line_rec.customer_job,p_old_line_rec.customer_job) THEN

512: --bug3280378
513: --changes in the customer job field should be reflected in the
514: --shipping tables also
515: IF NOT
516: OE_GLOBALS.Equal(p_x_line_rec.customer_job,p_old_line_rec.customer_job) THEN
517:
518: l_update_shipping := FND_API.G_TRUE;
519:
520: END IF;

Line 523: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set_id,p_old_line_rec.arrival_set_id)

519:
520: END IF;
521: --bug3280378
522:
523: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set_id,p_old_line_rec.arrival_set_id)
524: THEN
525: -- Need to Call Shipping Update
526: l_update_shipping := FND_API.G_TRUE;
527:

Line 530: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set,p_old_line_rec.arrival_set) THEN

526: l_update_shipping := FND_API.G_TRUE;
527:
528: END IF;
529:
530: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set,p_old_line_rec.arrival_set) THEN
531:
532: NULL;
533:
534: END IF;

Line 538: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)

534: END IF;
535:
536: -- CMS Date Changes
537:
538: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)
539: THEN
540: -- Need to Call Shipping Update
541: l_update_shipping := FND_API.G_TRUE;
542:

Line 545: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,p_old_line_rec.promise_date)

541: l_update_shipping := FND_API.G_TRUE;
542:
543: END IF;
544:
545: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,p_old_line_rec.promise_date)
546: THEN
547: -- Need to Call Shipping Update
548: l_update_shipping := FND_API.G_TRUE;
549:

Line 552: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_acceptable_date,p_old_line_rec.earliest_acceptable_date)

548: l_update_shipping := FND_API.G_TRUE;
549:
550: END IF;
551:
552: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_acceptable_date,p_old_line_rec.earliest_acceptable_date)
553: THEN
554: -- Need to Call Shipping Update
555: l_update_shipping := FND_API.G_TRUE;
556:

Line 559: IF NOT OE_GLOBALS.Equal(p_x_line_rec.latest_acceptable_date,p_old_line_rec.latest_acceptable_date)

555: l_update_shipping := FND_API.G_TRUE;
556:
557: END IF;
558:
559: IF NOT OE_GLOBALS.Equal(p_x_line_rec.latest_acceptable_date,p_old_line_rec.latest_acceptable_date)
560: THEN
561: -- Need to Call Shipping Update
562: l_update_shipping := FND_API.G_TRUE;
563:

Line 566: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_ship_date,p_old_line_rec.earliest_ship_date)

562: l_update_shipping := FND_API.G_TRUE;
563:
564: END IF;
565:
566: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_ship_date,p_old_line_rec.earliest_ship_date)
567: THEN
568: -- Need to Call Shipping Update
569: l_update_shipping := FND_API.G_TRUE;
570:

Line 574: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ato_line_id,p_old_line_rec.ato_line_id)

570:
571: END IF;
572:
573:
574: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ato_line_id,p_old_line_rec.ato_line_id)
575: THEN
576:
577: -- Need to Call Shipping Update
578: l_update_shipping := FND_API.G_TRUE;

Line 582: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_quantity,p_old_line_rec.cancelled_quantity)

578: l_update_shipping := FND_API.G_TRUE;
579:
580: END IF;
581:
582: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_quantity,p_old_line_rec.cancelled_quantity)
583: THEN
584:
585: -- Call Pricing
586: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 586: OE_GLOBALS.G_PRICE_FLAG := 'Y';

582: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_quantity,p_old_line_rec.cancelled_quantity)
583: THEN
584:
585: -- Call Pricing
586: OE_GLOBALS.G_PRICE_FLAG := 'Y';
587:
588: -- bug 1829201, need to recalculate commitment.
589: IF p_x_line_rec.commitment_id is not null then
590: l_calculate_commitment_flag := 'Y';

Line 597: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

593: /* Additional task:
594: Log delayed request for Verify Payment if the payment type
595: is not CREDIT CARD and the Order line is Booked */
596:
597: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
598: IF NVL(OE_Order_Cache.g_header_rec.payment_type_code,'NULL') <> 'CREDIT_CARD'
599: AND p_x_line_rec.booked_flag ='Y'
600: THEN
601: -- Log Delayed Request for Verify Payment

Line 612: IF NOT OE_GLOBALS.Equal(p_x_line_rec.customer_dock_code,p_old_line_rec.customer_dock_code)

608:
609: --Should not include any code here for cancellation specific
610: END IF;
611:
612: IF NOT OE_GLOBALS.Equal(p_x_line_rec.customer_dock_code,p_old_line_rec.customer_dock_code)
613: THEN
614:
615: -- Need to Call Shipping Update
616: l_update_shipping := FND_API.G_TRUE;

Line 620: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_production_seq_num,p_old_line_rec.cust_production_seq_num)

616: l_update_shipping := FND_API.G_TRUE;
617:
618: END IF;
619:
620: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_production_seq_num,p_old_line_rec.cust_production_seq_num)
621: THEN
622: -- Need to Call Shipping Update
623: l_update_shipping := FND_API.G_TRUE;
624: END IF;

Line 626: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_po_number,p_old_line_rec.cust_po_number)

622: -- Need to Call Shipping Update
623: l_update_shipping := FND_API.G_TRUE;
624: END IF;
625:
626: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_po_number,p_old_line_rec.cust_po_number)
627: THEN
628: /*Changes for ER 6072870 begin*/
629:
630: IF (Nvl(p_x_line_rec.shipped_quantity,0)>0 AND --suneela

Line 685: OE_GLOBALS.G_PRICE_FLAG := 'Y';

681: END IF ;
682:
683: /*Changes for ER 6072870 end */
684: -- Call Pricing
685: OE_GLOBALS.G_PRICE_FLAG := 'Y';
686:
687: IF p_x_line_rec.commitment_id IS NOT NULL THEN
688: l_get_commitment_bal := 'Y';
689: END IF;

Line 692: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_contact_id,p_old_line_rec.deliver_to_contact_id)

688: l_get_commitment_bal := 'Y';
689: END IF;
690: END IF;
691:
692: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_contact_id,p_old_line_rec.deliver_to_contact_id)
693: THEN
694: -- Need to Call Shipping Update
695: l_update_shipping := FND_API.G_TRUE;
696: -- Call Pricing

Line 697: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204

693: THEN
694: -- Need to Call Shipping Update
695: l_update_shipping := FND_API.G_TRUE;
696: -- Call Pricing
697: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
698: END IF;
699:
700: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
701: THEN

Line 700: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)

696: -- Call Pricing
697: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
698: END IF;
699:
700: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
701: THEN
702: -- Need to Call Shipping Update
703: l_update_shipping := FND_API.G_TRUE;
704: -- Call Pricing

Line 705: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204

701: THEN
702: -- Need to Call Shipping Update
703: l_update_shipping := FND_API.G_TRUE;
704: -- Call Pricing
705: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
706:
707:
708: END IF;
709:

Line 710: IF NOT OE_GLOBALS.Equal(p_x_line_rec.explosion_date,p_old_line_rec.explosion_date)

706:
707:
708: END IF;
709:
710: IF NOT OE_GLOBALS.Equal(p_x_line_rec.explosion_date,p_old_line_rec.explosion_date)
711: THEN
712: IF OE_GLOBALS.EQUAL(p_x_line_rec.ship_model_complete_flag,'Y') THEN
713: l_explosion_date_changed := FND_API.G_TRUE;
714: END IF;

Line 712: IF OE_GLOBALS.EQUAL(p_x_line_rec.ship_model_complete_flag,'Y') THEN

708: END IF;
709:
710: IF NOT OE_GLOBALS.Equal(p_x_line_rec.explosion_date,p_old_line_rec.explosion_date)
711: THEN
712: IF OE_GLOBALS.EQUAL(p_x_line_rec.ship_model_complete_flag,'Y') THEN
713: l_explosion_date_changed := FND_API.G_TRUE;
714: END IF;
715: END IF;
716:

Line 717: IF NOT OE_GLOBALS.Equal(p_x_line_rec.fob_point_code,p_old_line_rec.fob_point_code)

713: l_explosion_date_changed := FND_API.G_TRUE;
714: END IF;
715: END IF;
716:
717: IF NOT OE_GLOBALS.Equal(p_x_line_rec.fob_point_code,p_old_line_rec.fob_point_code)
718: THEN
719: -- Need to Call Shipping Update
720: l_update_shipping := FND_API.G_TRUE;
721: END IF;

Line 723: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,p_old_line_rec.freight_terms_code)

719: -- Need to Call Shipping Update
720: l_update_shipping := FND_API.G_TRUE;
721: END IF;
722:
723: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,p_old_line_rec.freight_terms_code)
724: THEN
725: -- Need to Call Shipping Update
726: l_update_shipping := FND_API.G_TRUE;
727: END IF;

Line 729: IF NOT OE_GLOBALS.Equal(p_x_line_rec.calculate_price_flag,p_old_line_rec.calculate_price_flag)

725: -- Need to Call Shipping Update
726: l_update_shipping := FND_API.G_TRUE;
727: END IF;
728:
729: IF NOT OE_GLOBALS.Equal(p_x_line_rec.calculate_price_flag,p_old_line_rec.calculate_price_flag)
730: THEN
731:
732: If p_x_line_rec.calculate_price_flag = 'Y' then
733: Begin

Line 761: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N'

757: if l_debug_level > 0 then
758: oe_debug_pub.add('old calculate price flag'||p_old_line_rec.calculate_price_flag, 3);
759: oe_debug_pub.add('new calculate price flag'||p_x_line_rec.calculate_price_flag, 3);
760: end if;
761: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N'
762: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
763: AND ((p_old_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.calculate_price_flag = 'Y')
764: OR (p_old_line_rec.calculate_price_flag = 'N' and p_x_line_rec.calculate_price_flag = 'P'))
765: THEN

Line 762: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

758: oe_debug_pub.add('old calculate price flag'||p_old_line_rec.calculate_price_flag, 3);
759: oe_debug_pub.add('new calculate price flag'||p_x_line_rec.calculate_price_flag, 3);
760: end if;
761: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N'
762: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
763: AND ((p_old_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.calculate_price_flag = 'Y')
764: OR (p_old_line_rec.calculate_price_flag = 'N' and p_x_line_rec.calculate_price_flag = 'P'))
765: THEN
766: if l_debug_level > 0 then

Line 769: IF nvl(OE_GLOBALS.G_PRICE_FLAG, 'N') <> 'Y' THEN

765: THEN
766: if l_debug_level > 0 then
767: oe_debug_pub.add('setting price flag because of calculate price flag change', 3);
768: end if;
769: IF nvl(OE_GLOBALS.G_PRICE_FLAG, 'N') <> 'Y' THEN
770: OE_GLOBALS.G_PRICE_FLAG := 'Y';
771: OE_LINE_ADJ_UTIL.Register_Changed_Lines
772: (p_line_id => p_x_line_rec.line_id,
773: p_header_id => p_x_line_rec.header_id,

Line 770: OE_GLOBALS.G_PRICE_FLAG := 'Y';

766: if l_debug_level > 0 then
767: oe_debug_pub.add('setting price flag because of calculate price flag change', 3);
768: end if;
769: IF nvl(OE_GLOBALS.G_PRICE_FLAG, 'N') <> 'Y' THEN
770: OE_GLOBALS.G_PRICE_FLAG := 'Y';
771: OE_LINE_ADJ_UTIL.Register_Changed_Lines
772: (p_line_id => p_x_line_rec.line_id,
773: p_header_id => p_x_line_rec.header_id,
774: p_operation => p_x_line_rec.operation );

Line 780: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_org_id,p_old_line_rec.intermed_ship_to_org_id)

776: END IF;
777: -- end bug 3585862
778: END IF;
779:
780: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_org_id,p_old_line_rec.intermed_ship_to_org_id)
781: THEN
782: -- Need to Call Shipping Update
783: l_update_shipping := FND_API.G_TRUE;
784: /* may need to call pricing */

Line 786: OE_GLOBALS.G_PRICE_FLAG := 'Y';

782: -- Need to Call Shipping Update
783: l_update_shipping := FND_API.G_TRUE;
784: /* may need to call pricing */
785: /*
786: OE_GLOBALS.G_PRICE_FLAG := 'Y';
787: */
788:
789: END IF;
790:

Line 791: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_contact_id,p_old_line_rec.intermed_ship_to_contact_id)

787: */
788:
789: END IF;
790:
791: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_contact_id,p_old_line_rec.intermed_ship_to_contact_id)
792: THEN
793: -- Need to Call Shipping Update
794: l_update_shipping := FND_API.G_TRUE;
795: /* may need to call pricing */

Line 797: OE_GLOBALS.G_PRICE_FLAG := 'Y';

793: -- Need to Call Shipping Update
794: l_update_shipping := FND_API.G_TRUE;
795: /* may need to call pricing */
796: /*
797: OE_GLOBALS.G_PRICE_FLAG := 'Y';
798: */
799: END IF;
800:
801:

Line 802: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)

798: */
799: END IF;
800:
801:
802: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
803: THEN
804:
805: -- QUOTING changes - log explosion request only for lines in
806: -- fulfillment phase

Line 816: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

812: if l_debug_level > 0 then
813: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
814: end if;
815: --3286378 : Added check for operation= create
816: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
817: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
819: p_x_line_rec.split_from_line_id IS NULL)) AND
820: p_x_line_rec.ato_line_id is NULL AND

Line 817: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR

813: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
814: end if;
815: --3286378 : Added check for operation= create
816: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
817: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
819: p_x_line_rec.split_from_line_id IS NULL)) AND
820: p_x_line_rec.ato_line_id is NULL AND
821: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

Line 818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

814: end if;
815: --3286378 : Added check for operation= create
816: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
817: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
819: p_x_line_rec.split_from_line_id IS NULL)) AND
820: p_x_line_rec.ato_line_id is NULL AND
821: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
822: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

Line 821: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

817: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
819: p_x_line_rec.split_from_line_id IS NULL)) AND
820: p_x_line_rec.ato_line_id is NULL AND
821: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
822: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
823: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
824: THEN
825: if l_debug_level > 0 then

Line 822: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

818: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
819: p_x_line_rec.split_from_line_id IS NULL)) AND
820: p_x_line_rec.ato_line_id is NULL AND
821: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
822: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
823: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
824: THEN
825: if l_debug_level > 0 then
826: oe_debug_pub.ADD('LINE ID : '||p_x_line_rec.line_id,2);

Line 843: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

839: -- NULL;
840: -- Need to Call Shipping Update
841: l_update_shipping := FND_API.G_TRUE;
842:
843: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
844: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT' )
845: -- QUOTING change
846: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
847: THEN

Line 855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

851: ' Entity ID: '|| to_char(p_x_line_rec.inventory_item_id));
852: end if;
853:
854: OE_delayed_requests_Pvt.log_request
855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
856: p_entity_id => p_x_line_rec.line_id,
857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
858: p_requesting_entity_id => p_x_line_rec.line_id,
859: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

853:
854: OE_delayed_requests_Pvt.log_request
855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
856: p_entity_id => p_x_line_rec.line_id,
857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
858: p_requesting_entity_id => p_x_line_rec.line_id,
859: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
860: p_request_unique_key1 => 'ITEM',
861: p_param1 => 'I',

Line 859: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
856: p_entity_id => p_x_line_rec.line_id,
857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
858: p_requesting_entity_id => p_x_line_rec.line_id,
859: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
860: p_request_unique_key1 => 'ITEM',
861: p_param1 => 'I',
862: p_param2 => p_x_line_rec.inventory_item_id,
863: x_return_status => l_return_status);

Line 895: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

891: oe_debug_pub.add('value of ONT_HONOR_ITEM_CHANGE:'||l_item_chg_prof,5);
892: oe_debug_pub.add('p_x_line_rec.inventory_item_id : '||p_x_line_rec.inventory_item_id);
893: oe_debug_pub.add('p_old_line_rec.inventory_item_id : '||p_old_line_rec.inventory_item_id);
894: end if;
895: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
896: /*if nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM)
897: <> FND_API.G_MISS_NUM
898: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <>
899: FND_API.G_MISS_NUM*/

Line 923: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

919: p_x_line_rec.calculate_price_flag := 'Y';
920: end if;
921: -- bug 2971066 end
922: -- bug 1819133, need to recalculate price if item is updated
923: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
924: --change made for bug 1998333 Begin
925: if nvl(l_item_chg_prof,'N') = 'N' then
926: --retaining the old behaviour
927: p_x_line_rec.calculate_price_flag := 'Y';

Line 935: OE_GLOBALS.G_PRICE_FLAG := 'Y';

931: end if;
932: --change made for bug 1998333 End
933: END IF;
934:
935: OE_GLOBALS.G_PRICE_FLAG := 'Y';
936:
937: -- bug 1829201, need to recalculate commitment.
938: IF p_x_line_rec.commitment_id is not null then
939: l_calculate_commitment_flag := 'Y';

Line 955: oe_debug_pub.ADD('OE_GLOBALS.G_PRICING_RECURSION:'||oe_globals.g_pricing_recursion,1);

951:
952:
953: /*sdatti*/
954: if l_debug_level > 0 then
955: oe_debug_pub.ADD('OE_GLOBALS.G_PRICING_RECURSION:'||oe_globals.g_pricing_recursion,1);
956: end if;
957: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
958: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
959: update_adjustment_flags(p_old_line_rec,p_x_line_rec);

Line 958: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN

954: if l_debug_level > 0 then
955: oe_debug_pub.ADD('OE_GLOBALS.G_PRICING_RECURSION:'||oe_globals.g_pricing_recursion,1);
956: end if;
957: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
958: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
959: update_adjustment_flags(p_old_line_rec,p_x_line_rec);
960: END IF;
961: END IF;
962: /*sdatti*/

Line 967: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)

963:
964: END IF;
965:
966:
967: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
968: THEN
969: /* may need to call pricing */
970:
971: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 971: OE_GLOBALS.G_PRICE_FLAG := 'Y';

967: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
968: THEN
969: /* may need to call pricing */
970:
971: OE_GLOBALS.G_PRICE_FLAG := 'Y';
972: --Customer Acceptance
973: l_def_contingency_attributes := FND_API.G_TRUE;
974:
975: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 979: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

975: IF p_x_line_rec.commitment_id IS NOT NULL THEN
976: l_get_commitment_bal := 'Y';
977: END IF;
978:
979: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
980: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
981: -- QUOTING change
982: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
983: THEN

Line 990: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

986: oe_debug_pub.ADD('line ID: '|| to_char(p_x_line_rec.line_id)||
987: ' Entity ID: '|| to_char(p_x_line_rec.invoice_to_org_id));
988: end if;
989: OE_delayed_requests_Pvt.log_request(
990: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
991: p_entity_id => p_x_line_rec.line_id,
992: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
993: p_requesting_entity_id => p_x_line_rec.line_id,
994: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 992: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

988: end if;
989: OE_delayed_requests_Pvt.log_request(
990: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
991: p_entity_id => p_x_line_rec.line_id,
992: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
993: p_requesting_entity_id => p_x_line_rec.line_id,
994: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
995: p_request_unique_key1 => 'BILL_TO',
996: p_param1 => 'B',

Line 994: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

990: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
991: p_entity_id => p_x_line_rec.line_id,
992: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
993: p_requesting_entity_id => p_x_line_rec.line_id,
994: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
995: p_request_unique_key1 => 'BILL_TO',
996: p_param1 => 'B',
997: p_param2 => p_x_line_rec.invoice_to_org_id,
998: x_return_status => l_return_status);

Line 1001: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

997: p_param2 => p_x_line_rec.invoice_to_org_id,
998: x_return_status => l_return_status);
999: END IF;
1000:
1001: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1002: --R12 CC Encryption
1003: select count(payment_type_code) into
1004: l_delete_payment_count from oe_payments
1005: where header_id = p_x_line_rec.header_id

Line 1013: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,

1009: --Delayed request for deleting the payments when
1010: --invoice to changes
1011: IF l_delete_payment_count > 0 THEN
1012: OE_delayed_requests_Pvt.log_request
1013: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1014: p_entity_id => p_x_line_rec.line_id,
1015: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1016: p_requesting_entity_id => p_x_line_rec.line_id,
1017: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,

Line 1015: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,

1011: IF l_delete_payment_count > 0 THEN
1012: OE_delayed_requests_Pvt.log_request
1013: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1014: p_entity_id => p_x_line_rec.line_id,
1015: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1016: p_requesting_entity_id => p_x_line_rec.line_id,
1017: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,
1018: p_param1 => p_x_line_rec.header_id,
1019: p_param2 => to_char(p_old_line_rec.invoice_to_org_id),

Line 1017: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,

1013: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1014: p_entity_id => p_x_line_rec.line_id,
1015: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1016: p_requesting_entity_id => p_x_line_rec.line_id,
1017: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,
1018: p_param1 => p_x_line_rec.header_id,
1019: p_param2 => to_char(p_old_line_rec.invoice_to_org_id),
1020: x_return_status => l_return_status);
1021: END IF;--Payment type code check

Line 1039: IF NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_number,p_old_line_rec.blanket_number) OR

1035: END IF;
1036:
1037: -- Changes for Blanket Orders
1038:
1039: IF NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_number,p_old_line_rec.blanket_number) OR
1040: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1041: THEN
1042: --for ER 2901219
1043: --To trigger Pricing event if Blanket Number or Line Number is Changed

Line 1040: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)

1036:
1037: -- Changes for Blanket Orders
1038:
1039: IF NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_number,p_old_line_rec.blanket_number) OR
1040: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1041: THEN
1042: --for ER 2901219
1043: --To trigger Pricing event if Blanket Number or Line Number is Changed
1044: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 1044: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1040: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1041: THEN
1042: --for ER 2901219
1043: --To trigger Pricing event if Blanket Number or Line Number is Changed
1044: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1045:
1046: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1047: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
1048: -- QUOTING change

Line 1046: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

1042: --for ER 2901219
1043: --To trigger Pricing event if Blanket Number or Line Number is Changed
1044: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1045:
1046: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1047: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
1048: -- QUOTING change
1049: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1050: THEN

Line 1052: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1048: -- QUOTING change
1049: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1050: THEN
1051: OE_delayed_requests_Pvt.log_request(
1052: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1053: p_entity_id => p_x_line_rec.line_id,
1054: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1055: p_requesting_entity_id => p_x_line_rec.line_id,
1056: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 1054: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1050: THEN
1051: OE_delayed_requests_Pvt.log_request(
1052: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1053: p_entity_id => p_x_line_rec.line_id,
1054: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1055: p_requesting_entity_id => p_x_line_rec.line_id,
1056: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1057: p_param1 => 'H',
1058: p_param2 => p_x_line_rec.blanket_number,

Line 1056: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

1052: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1053: p_entity_id => p_x_line_rec.line_id,
1054: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1055: p_requesting_entity_id => p_x_line_rec.line_id,
1056: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1057: p_param1 => 'H',
1058: p_param2 => p_x_line_rec.blanket_number,
1059: x_return_status => l_return_status);
1060: END IF;

Line 1063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)

1059: x_return_status => l_return_status);
1060: END IF;
1061: END IF;
1062:
1063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)
1064: THEN
1065: /* need to reprice the line*/
1066:
1067: -- bug 1819133, need to recalculate price if item is updated

Line 1068: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

1064: THEN
1065: /* need to reprice the line*/
1066:
1067: -- bug 1819133, need to recalculate price if item is updated
1068: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1069: if l_debug_level > 0 then
1070: oe_debug_pub.add('before checking profile ONT_HONOR_ITEM_CHANGE',5);
1071: end if;
1072: --change made for bug 1998333 Begin

Line 1087: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1083: end if;
1084: --change made for bug 1998333 End
1085: END IF;
1086:
1087: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1088:
1089: -- bug 1829201, need to recalculate commitment.
1090: IF p_x_line_rec.commitment_id is not null then
1091: l_calculate_commitment_flag := 'Y';

Line 1096: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_identifier_type,p_old_line_rec.item_identifier_type)

1092: END IF;
1093:
1094: END IF;
1095:
1096: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_identifier_type,p_old_line_rec.item_identifier_type)
1097: THEN
1098: /* need to reprice the line*/
1099: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
1100: null;

Line 1099: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204

1095:
1096: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_identifier_type,p_old_line_rec.item_identifier_type)
1097: THEN
1098: /* need to reprice the line*/
1099: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
1100: null;
1101:
1102: END IF;
1103:

Line 1104: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item,p_old_line_rec.ordered_item)

1100: null;
1101:
1102: END IF;
1103:
1104: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item,p_old_line_rec.ordered_item)
1105: THEN
1106: -- Call Pricing
1107: -- bug 1819133, need to recalculate price if item is updated
1108: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

Line 1108: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

1104: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item,p_old_line_rec.ordered_item)
1105: THEN
1106: -- Call Pricing
1107: -- bug 1819133, need to recalculate price if item is updated
1108: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1109: if l_debug_level > 0 then
1110: oe_debug_pub.add('before checking profile ONT_HONOR_ITEM_CHANGE',5);
1111: end if;
1112: --change made for bug 1998333 Begin

Line 1127: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1123: end if;
1124: --change made for bug 1998333 End
1125: END IF;
1126:
1127: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1128:
1129: OE_GLOBALS.G_TAX_FLAG := 'Y';
1130:
1131: -- bug 1829201, need to recalculate commitment.

Line 1129: OE_GLOBALS.G_TAX_FLAG := 'Y';

1125: END IF;
1126:
1127: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1128:
1129: OE_GLOBALS.G_TAX_FLAG := 'Y';
1130:
1131: -- bug 1829201, need to recalculate commitment.
1132: IF p_x_line_rec.commitment_id is not null then
1133: l_calculate_commitment_flag := 'Y';

Line 1137: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_revision,p_old_line_rec.item_revision)

1133: l_calculate_commitment_flag := 'Y';
1134: END IF;
1135: END IF;
1136:
1137: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_revision,p_old_line_rec.item_revision)
1138: THEN
1139: -- Need to Call Shipping Update
1140: l_update_shipping := FND_API.G_TRUE;
1141: END IF;

Line 1143: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_type_code,p_old_line_rec.item_type_code)

1139: -- Need to Call Shipping Update
1140: l_update_shipping := FND_API.G_TRUE;
1141: END IF;
1142:
1143: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_type_code,p_old_line_rec.item_type_code)
1144: THEN
1145:
1146: -- Need to Call Shipping Update
1147: l_update_shipping := FND_API.G_TRUE;

Line 1160: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1156: if l_debug_level > 0 then
1157: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1158: end if;
1159:
1160: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1161: p_x_line_rec.booked_flag = 'Y' AND
1162: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1163: THEN
1164: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;

Line 1162: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE

1158: end if;
1159:
1160: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1161: p_x_line_rec.booked_flag = 'Y' AND
1162: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1163: THEN
1164: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1165: END IF;
1166:

Line 1164: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;

1160: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1161: p_x_line_rec.booked_flag = 'Y' AND
1162: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1163: THEN
1164: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1165: END IF;
1166:
1167: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1168:

Line 1167: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);

1163: THEN
1164: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1165: END IF;
1166:
1167: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1168:
1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND

Line 1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

1165: END IF;
1166:
1167: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1168:
1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND
1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

Line 1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1166:
1167: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1168:
1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND
1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1174: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

Line 1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

1168:
1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND
1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1174: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1175: THEN
1176: if l_debug_level > 0 then

Line 1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

1169: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND
1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1174: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1175: THEN
1176: if l_debug_level > 0 then
1177: oe_debug_pub.ADD('freeze inc items ' || l_freeze_method,2);

Line 1174: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

1170: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1171: p_x_line_rec.ato_line_id is NULL AND
1172: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1173: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1174: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1175: THEN
1176: if l_debug_level > 0 then
1177: oe_debug_pub.ADD('freeze inc items ' || l_freeze_method,2);
1178: end if;

Line 1190: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

1186: -- Need to log Freight Rating request for configured item.
1187: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
1188: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
1189: (p_x_line_rec.header_id) = 'OM_CALLED_FREIGHT_RATES'
1190: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
1191: AND p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG THEN
1192: if l_debug_level > 0 then
1193: oe_debug_pub.add('Log Freight Rating request for CONFIG item. ',3);
1194: end if;

Line 1191: AND p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG THEN

1187: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
1188: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
1189: (p_x_line_rec.header_id) = 'OM_CALLED_FREIGHT_RATES'
1190: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
1191: AND p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG THEN
1192: if l_debug_level > 0 then
1193: oe_debug_pub.add('Log Freight Rating request for CONFIG item. ',3);
1194: end if;
1195: l_get_FTE_freight_rate := 'Y';

Line 1203: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_category_code,p_old_line_rec.line_category_code)

1199: l_def_contingency_attributes := FND_API.G_TRUE;
1200:
1201: END IF;
1202:
1203: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_category_code,p_old_line_rec.line_category_code)
1204: THEN
1205:
1206: -- Need to Call Shipping Update
1207: l_update_shipping := FND_API.G_TRUE;

Line 1209: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1205:
1206: -- Need to Call Shipping Update
1207: l_update_shipping := FND_API.G_TRUE;
1208: -- Call Pricing
1209: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1210:
1211: IF p_x_line_rec.commitment_id IS NOT NULL THEN
1212: l_get_commitment_bal := 'Y';
1213: END IF;

Line 1225: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)

1221: l_def_contingency_attributes := FND_API.G_TRUE;
1222:
1223: END IF;
1224:
1225: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
1226: THEN
1227:
1228: -- Need to Call Shipping Update
1229: l_update_shipping := FND_API.G_TRUE;

Line 1231: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1227:
1228: -- Need to Call Shipping Update
1229: l_update_shipping := FND_API.G_TRUE;
1230: -- Call Pricing
1231: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1232: --Customer Acceptance
1233: l_def_contingency_attributes := FND_API.G_TRUE;
1234:
1235:

Line 1243: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)

1239:
1240: END IF;
1241:
1242: -- bug 2072014, need to recalculate price if uom is updated BEGIN
1243: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
1244: THEN
1245: /* Added the following if condition to fix the bug 2967630 */
1246: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
1247: if (nvl(p_old_line_rec.order_quantity_uom,FND_API.G_MISS_CHAR)

Line 1246: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

1242: -- bug 2072014, need to recalculate price if uom is updated BEGIN
1243: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
1244: THEN
1245: /* Added the following if condition to fix the bug 2967630 */
1246: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
1247: if (nvl(p_old_line_rec.order_quantity_uom,FND_API.G_MISS_CHAR)
1248: <> FND_API.G_MISS_CHAR)
1249: and (nvl(p_x_line_rec.order_quantity_uom,FND_API.G_MISS_CHAR)
1250: <> FND_API.G_MISS_CHAR) and

Line 1259: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

1255: end if;
1256: p_x_line_rec.calculate_price_flag := 'Y';
1257: end if;
1258:
1259: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1260: --bug 3942402
1261: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id, p_old_line_rec.inventory_item_id) THEN
1262: IF (nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM) = FND_API.G_MISS_NUM
1263: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM)

Line 1261: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id, p_old_line_rec.inventory_item_id) THEN

1257: end if;
1258:
1259: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1260: --bug 3942402
1261: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id, p_old_line_rec.inventory_item_id) THEN
1262: IF (nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM) = FND_API.G_MISS_NUM
1263: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM)
1264: and p_x_line_rec.calculate_price_flag in ('N','P')
1265: and nvl(l_item_chg_prof,'N') = 'N' then

Line 1280: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1276: --bug 3942402
1277: /* Added the following line to fix the bug 2917690 */
1278: OE_LINE_ADJ_UTIL.Change_adj_for_uom_change(p_x_line_rec);
1279: END IF;
1280: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1281: l_3a7_attribute_change := FND_API.G_TRUE;
1282:
1283: -- Freight Rating.
1284: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

Line 1296: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)

1292: END IF;
1293: END IF;
1294: -- bug 2072014, need to recalculate price if uom is updated END
1295:
1296: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
1297: THEN
1298:
1299: if l_debug_level > 0 then
1300: oe_debug_pub.add('Ordered Qty has changed',1); -- PETER

Line 1309: IF (OE_GLOBALS.G_UI_FLAG) THEN

1305: l_3a7_attribute_change := FND_API.G_TRUE;
1306:
1307: /* Added the following code to fix the bug 3739180 */
1308: If p_x_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.reference_line_id IS NOT NULL THEN
1309: IF (OE_GLOBALS.G_UI_FLAG) THEN
1310: if l_debug_level > 0 then
1311: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
1312: end if;
1313: OE_delayed_requests_Pvt.log_request(

Line 1314: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1310: if l_debug_level > 0 then
1311: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
1312: end if;
1313: OE_delayed_requests_Pvt.log_request(
1314: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1315: p_entity_id => p_x_line_rec.line_id,
1316: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1317: p_requesting_entity_id => p_x_line_rec.line_id,
1318: p_request_unique_key1 => 'LINE',

Line 1316: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1312: end if;
1313: OE_delayed_requests_Pvt.log_request(
1314: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1315: p_entity_id => p_x_line_rec.line_id,
1316: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1317: p_requesting_entity_id => p_x_line_rec.line_id,
1318: p_request_unique_key1 => 'LINE',
1319: p_param1 => 'RETURN',
1320: p_param2 => NULL,

Line 1325: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1321: p_param3 => NULL,
1322: p_param4 => NULL,
1323: p_param5 => NULL,
1324: p_param6 => p_x_line_rec.ordered_quantity,
1325: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1326: x_return_status => l_return_status);
1327: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
1328: if l_debug_level > 0 then
1329: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);

Line 1327: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN

1323: p_param5 => NULL,
1324: p_param6 => p_x_line_rec.ordered_quantity,
1325: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1326: x_return_status => l_return_status);
1327: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
1328: if l_debug_level > 0 then
1329: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
1330: end if;
1331: OE_delayed_requests_Pvt.log_request(

Line 1332: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1328: if l_debug_level > 0 then
1329: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
1330: end if;
1331: OE_delayed_requests_Pvt.log_request(
1332: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1333: p_entity_id => p_x_line_rec.line_id,
1334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1335: p_requesting_entity_id => p_x_line_rec.line_id,
1336: p_request_unique_key1 => 'LINE',

Line 1334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1330: end if;
1331: OE_delayed_requests_Pvt.log_request(
1332: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1333: p_entity_id => p_x_line_rec.line_id,
1334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1335: p_requesting_entity_id => p_x_line_rec.line_id,
1336: p_request_unique_key1 => 'LINE',
1337: p_param1 => 'RETURN',
1338: p_param2 => NULL,

Line 1343: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1339: p_param3 => NULL,
1340: p_param4 => NULL,
1341: p_param5 => NULL,
1342: p_param6 => p_x_line_rec.ordered_quantity,
1343: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1344: x_return_status => l_return_status);
1345: END IF;
1346: END IF;
1347: /* End of the code added to fix the bug 3739180 */

Line 1378: -- of type OE_Globals.G_UPDATE_REQUISITION.

1374: --
1375: -- This program unit will track the specific change in Ordered Quantity
1376: -- and/or Schedule Ship Date on an internal sales order line shipment,
1377: -- and in the event of any change in values, it will log a delayed request
1378: -- of type OE_Globals.G_UPDATE_REQUISITION.
1379: --
1380: -- This delayed request will be logged only if global OE_Internal_Requisi
1381: -- tion_Pvt.G_Update_ISO_From_Req set to FALSE. If this global is TRUE
1382: -- then it means, the change requests for quantity/date or cancellation

Line 1405: -- In this project it can be OE_Globals.G_Entity_Line

1401: -- Please refer to following delayed request params with their meaning
1402: -- useful while logging the delayed request -
1403: --
1404: -- P_entity_code Entity for which delayed request has to be logged.
1405: -- In this project it can be OE_Globals.G_Entity_Line
1406: -- or OE_Globals.G_Entity_Header
1407: -- P_entity_id Primary key of the entity record. In this project,
1408: -- it can be Order Line_id or Header_id
1409: -- P_requesting_entity_code Which entity has requested this delayed request to

Line 1406: -- or OE_Globals.G_Entity_Header

1402: -- useful while logging the delayed request -
1403: --
1404: -- P_entity_code Entity for which delayed request has to be logged.
1405: -- In this project it can be OE_Globals.G_Entity_Line
1406: -- or OE_Globals.G_Entity_Header
1407: -- P_entity_id Primary key of the entity record. In this project,
1408: -- it can be Order Line_id or Header_id
1409: -- P_requesting_entity_code Which entity has requested this delayed request to
1410: -- be logged! In this project it will be OE_Globals.

Line 1410: -- be logged! In this project it will be OE_Globals.

1406: -- or OE_Globals.G_Entity_Header
1407: -- P_entity_id Primary key of the entity record. In this project,
1408: -- it can be Order Line_id or Header_id
1409: -- P_requesting_entity_code Which entity has requested this delayed request to
1410: -- be logged! In this project it will be OE_Globals.
1411: -- G_Entity_Line or OE_Globals.G_Entity_Header
1412: -- P_requesting_entity_id Primary key of the requesting entity. In this
1413: -- project, it is Line_id or Header_id
1414: -- P_request_type Indicates which business logic (or which procedure)

Line 1411: -- G_Entity_Line or OE_Globals.G_Entity_Header

1407: -- P_entity_id Primary key of the entity record. In this project,
1408: -- it can be Order Line_id or Header_id
1409: -- P_requesting_entity_code Which entity has requested this delayed request to
1410: -- be logged! In this project it will be OE_Globals.
1411: -- G_Entity_Line or OE_Globals.G_Entity_Header
1412: -- P_requesting_entity_id Primary key of the requesting entity. In this
1413: -- project, it is Line_id or Header_id
1414: -- P_request_type Indicates which business logic (or which procedure)
1415: -- should be executed. In this project, it is OE_Global

Line 1481: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

1477: -- request will be logged only if the change is not initiated from Requesting
1478: -- Organization user, and it is not a Internal Sales Order Full Cancellation
1479:
1480: OE_delayed_requests_Pvt.log_request
1481: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
1482: , p_entity_id => p_x_line_rec.line_id
1483: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1484: , p_requesting_entity_id => p_x_line_rec.line_id
1485: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 1483: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

1479:
1480: OE_delayed_requests_Pvt.log_request
1481: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
1482: , p_entity_id => p_x_line_rec.line_id
1483: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1484: , p_requesting_entity_id => p_x_line_rec.line_id
1485: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
1486: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1487: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 1490: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

1486: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1487: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id
1488: , p_param1 => (p_x_line_rec.ordered_quantity - p_old_line_rec.ordered_quantity)
1489: -- , p_date_param1 => p_x_line_rec.schedule_ship_date
1490: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
1491: , x_return_status => l_return_status
1492: );
1493:
1494: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 1510: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER

1506: -- request will be logged only if the change is not initiated from Requesting
1507: -- Organization user, and it is not a Internal Sales Order Full Cancellation
1508:
1509: OE_delayed_requests_Pvt.log_request
1510: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER
1511: , p_entity_id => p_x_line_rec.header_id
1512: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1513: , p_requesting_entity_id => p_x_line_rec.line_id
1514: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id

Line 1512: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

1508:
1509: OE_delayed_requests_Pvt.log_request
1510: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER
1511: , p_entity_id => p_x_line_rec.header_id
1512: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1513: , p_requesting_entity_id => p_x_line_rec.line_id
1514: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1515: , p_param3 => 1
1516: , p_long_param1 => p_x_line_rec.line_id

Line 1517: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

1513: , p_requesting_entity_id => p_x_line_rec.line_id
1514: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1515: , p_param3 => 1
1516: , p_long_param1 => p_x_line_rec.line_id
1517: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
1518: , x_return_status => l_return_status
1519: );
1520:
1521: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 1548: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

1544: l_freeze_method := G_FREEZE_METHOD; /* Bug # 5036404 */
1545: if l_debug_level > 0 then
1546: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1547: end if;
1548: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1549: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1550: p_x_line_rec.ato_line_id is NULL AND
1551: p_old_line_rec.ordered_quantity = 0 AND
1552: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

Line 1549: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

1545: if l_debug_level > 0 then
1546: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1547: end if;
1548: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1549: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1550: p_x_line_rec.ato_line_id is NULL AND
1551: p_old_line_rec.ordered_quantity = 0 AND
1552: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1553: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

Line 1552: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

1548: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1549: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1550: p_x_line_rec.ato_line_id is NULL AND
1551: p_old_line_rec.ordered_quantity = 0 AND
1552: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1553: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
1554: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
1555: THEN
1556: p_x_line_rec.explosion_date := null;

Line 1553: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

1549: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1550: p_x_line_rec.ato_line_id is NULL AND
1551: p_old_line_rec.ordered_quantity = 0 AND
1552: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1553: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
1554: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
1555: THEN
1556: p_x_line_rec.explosion_date := null;
1557: l_count := l_count + 1;

Line 1574: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and

1570: l_ordered_quantity_changed := FND_API.G_TRUE;
1571: END IF;
1572: --changes for bug 2315926 Begin
1573:
1574: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
1575: p_x_line_rec.split_by = 'SYSTEM' and
1576: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT')
1577: OR
1578: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

Line 1578: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1574: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
1575: p_x_line_rec.split_by = 'SYSTEM' and
1576: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT')
1577: OR
1578: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1579: p_x_line_rec.split_from_line_id IS NOT NULL AND
1580: nvl(p_x_line_rec.split_by, 'USER') = 'SYSTEM') THEN
1581: -- don't call credit checking for system split when tax value changes.
1582: l_param1 := 'No_Credit_Checking';

Line 1602: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1598: If l_debug_level > 0 Then
1599: oe_debug_pub.add('Catchweight enabled item',3);
1600: oe_debug_pub.add('Setting the price flag to Yes');
1601: End If;
1602: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1603: END IF;
1604: END IF;
1605: else
1606: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 1606: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1602: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1603: END IF;
1604: END IF;
1605: else
1606: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1607: if l_debug_level > 0 then
1608: oe_debug_pub.ADD('B2315926_2:',2);
1609: end if;
1610: end if;

Line 1615: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and

1611: --changes for bug 2315926 end
1612:
1613: --changes for bug#7491829
1614:
1615: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
1616: p_x_line_rec.split_by = 'SYSTEM' and
1617: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT') THEN
1618: IF l_debug_level > 0 THEN
1619: oe_debug_pub.add('Logging Reverse Limits delayed request for parent line');

Line 1624: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1620: oe_debug_pub.add('Price request code for parent : ' || p_x_line_rec.price_request_code);
1621: oe_debug_pub.add('OLD Price request code for parent : ' || p_old_line_rec.price_request_code);
1622: END IF;
1623: OE_delayed_requests_Pvt.log_request(
1624: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1625: p_entity_id => p_x_line_rec.line_id,
1626: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1627: p_requesting_entity_id => p_x_line_rec.line_id,
1628: p_request_unique_key1 => 'LINE',

Line 1626: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1622: END IF;
1623: OE_delayed_requests_Pvt.log_request(
1624: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1625: p_entity_id => p_x_line_rec.line_id,
1626: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1627: p_requesting_entity_id => p_x_line_rec.line_id,
1628: p_request_unique_key1 => 'LINE',
1629: p_param1 => 'SPLIT_ORIG',
1630: p_param2 => p_old_line_rec.price_request_code,

Line 1635: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1631: p_param3 => p_old_line_rec.ordered_quantity,
1632: p_param4 => p_x_line_rec.ordered_quantity,
1633: p_param5 => NULL,
1634: p_param6 => NULL,
1635: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1636: x_return_status => l_return_status);
1637:
1638: END IF;
1639:

Line 1640: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1636: x_return_status => l_return_status);
1637:
1638: END IF;
1639:
1640: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1641: p_x_line_rec.split_from_line_id IS NOT NULL AND
1642: nvl(p_x_line_rec.split_by, 'USER') = 'SYSTEM') THEN
1643: IF l_debug_level > 0 THEN
1644: oe_debug_pub.add('Logging Reverse Limits delayed request for child line');

Line 1647: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1643: IF l_debug_level > 0 THEN
1644: oe_debug_pub.add('Logging Reverse Limits delayed request for child line');
1645: END IF;
1646: OE_delayed_requests_Pvt.log_request(
1647: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1648: p_entity_id => p_x_line_rec.line_id,
1649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1650: p_requesting_entity_id => p_x_line_rec.line_id,
1651: p_request_unique_key1 => 'LINE',

Line 1649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1645: END IF;
1646: OE_delayed_requests_Pvt.log_request(
1647: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1648: p_entity_id => p_x_line_rec.line_id,
1649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1650: p_requesting_entity_id => p_x_line_rec.line_id,
1651: p_request_unique_key1 => 'LINE',
1652: p_param1 => 'SPLIT_NEW',
1653: p_param2 => NULL,

Line 1658: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1654: p_param3 => NULL,
1655: p_param4 => NULL,
1656: p_param5 => NULL,
1657: p_param6 => p_x_line_rec.ordered_quantity,
1658: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1659: x_return_status => l_return_status);
1660: END IF;
1661:
1662: --bug#7491829

Line 1664: OE_GLOBALS.G_TAX_FLAG := 'Y';

1660: END IF;
1661:
1662: --bug#7491829
1663:
1664: OE_GLOBALS.G_TAX_FLAG := 'Y';
1665:
1666: -- bug 1829201, need to recalculate commitment when quantity changes.
1667: IF p_x_line_rec.commitment_id is not null then
1668: l_calculate_commitment_flag := 'Y';

Line 1671: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

1667: IF p_x_line_rec.commitment_id is not null then
1668: l_calculate_commitment_flag := 'Y';
1669:
1670: -- lkxu, bug 1786533 for commitment during line split
1671: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1672: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
1673:
1674: l_update_commitment_flag := 'Y';
1675: OE_GLOBALS.g_original_commitment_applied

Line 1675: OE_GLOBALS.g_original_commitment_applied

1671: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1672: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
1673:
1674: l_update_commitment_flag := 'Y';
1675: OE_GLOBALS.g_original_commitment_applied
1676: := Oe_Commitment_Pvt.Get_Commitment_Applied_Amount
1677: (p_header_id => p_x_line_rec.header_id ,
1678: p_line_id => p_x_line_rec.line_id ,
1679: p_commitment_id => p_x_line_rec.commitment_id);

Line 1699: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1695: split line process items - CHILD
1696: ============================================================*/
1697: -- INVCONV
1698:
1699: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1700: p_x_line_rec.split_from_line_id IS NOT NULL AND
1701: nvl(p_x_line_rec.split_by, 'USER') = 'USER' AND
1702: p_x_line_rec.line_category_code <> 'RETURN'
1703: THEN

Line 1710: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN

1706: oe_line_util.Calculate_Ordered_Quantity2(p_x_line_rec);
1707: */
1708: /* OPM - NC 3/8/02 Bug#2046641
1709: Commented the above call and added the call to calculate_dual_quantity */
1710: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN
1711:
1712: if l_debug_level > 0 then
1713: oe_debug_pub.add('about to call calculate_dual_quantity 1' );
1714: end if;

Line 1743: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

1739:
1740: END IF; -- Bug#2046641
1741: END IF; -- INVCONV
1742:
1743: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1744: /* INVCONV 02/JUN/00 ordered_quantity2 needs to be calculated
1745: for split line process items - PARENT
1746: =======================================================*/
1747: IF p_x_line_rec.split_action_code = 'SPLIT' AND

Line 1757: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN

1753: oe_line_util.Calculate_Ordered_Quantity2(p_x_line_rec);
1754: */
1755: /* OPM - NC 3/8/02 Bug#2046641
1756: Commented the above call and added the call to calculate_dual_quantity */
1757: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN
1758: if l_debug_level > 0 then
1759: oe_debug_pub.add('about to call calculate_dual_quantity 2' );
1760: end if;
1761:

Line 1908: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)

1904: -- , p_old_line_rec => p_old_line_rec); INVCONV COMMENTED OUT FOR NOW
1905: END IF;
1906: END IF;
1907:
1908: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
1909: THEN
1910: -- Need to Call Shipping Update
1911: l_update_shipping := FND_API.G_TRUE;
1912: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 1912: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1908: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
1909: THEN
1910: -- Need to Call Shipping Update
1911: l_update_shipping := FND_API.G_TRUE;
1912: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1913: OE_GLOBALS.G_TAX_FLAG := 'Y';
1914: END IF;
1915:
1916: -- bug 1829201, need to recalculate commitment.

Line 1913: OE_GLOBALS.G_TAX_FLAG := 'Y';

1909: THEN
1910: -- Need to Call Shipping Update
1911: l_update_shipping := FND_API.G_TRUE;
1912: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1913: OE_GLOBALS.G_TAX_FLAG := 'Y';
1914: END IF;
1915:
1916: -- bug 1829201, need to recalculate commitment.
1917: --IF p_x_line_rec.commitment_id is not null then

Line 1925: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter

1921: -- INVCONV
1922: --OPM 02/JUN/00 Test for changes to process attributes
1923: -- (ordered_quantity2, preferred_grade)
1924: --------------------------------------------------------
1925: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
1926: THEN
1927: if l_debug_level > 0 then
1928: oe_debug_pub.add('Ordered Qty2 has changed',1); -- INVCONV
1929: oe_debug_pub.add('New Ordered Qty2 : ' || p_x_line_rec.ordered_quantity2, 1);

Line 1947: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1943: -- need to call pricing
1944: if l_debug_level > 0 then
1945: oe_debug_pub.add('dual uom - ont_pricing_qty_source = ' || l_item_rec.ont_pricing_qty_source );
1946: end if;
1947: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1948: OE_GLOBALS.G_TAX_FLAG := 'Y';
1949:
1950: END IF;
1951:

Line 1948: OE_GLOBALS.G_TAX_FLAG := 'Y';

1944: if l_debug_level > 0 then
1945: oe_debug_pub.add('dual uom - ont_pricing_qty_source = ' || l_item_rec.ont_pricing_qty_source );
1946: end if;
1947: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1948: OE_GLOBALS.G_TAX_FLAG := 'Y';
1949:
1950: END IF;
1951:
1952: oe_sales_can_util.check_constraints

Line 1969: END IF; -- IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter

1965: END IF; -- IF dual_uom_control -- INVCONV Process_Characteristics
1966: -- end 2046190
1967:
1968: -- NULL;
1969: END IF; -- IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
1970:
1971: IF NOT OE_GLOBALS.Equal(p_x_line_rec.preferred_grade,p_old_line_rec.preferred_grade
1972: )
1973: THEN

Line 1971: IF NOT OE_GLOBALS.Equal(p_x_line_rec.preferred_grade,p_old_line_rec.preferred_grade

1967:
1968: -- NULL;
1969: END IF; -- IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
1970:
1971: IF NOT OE_GLOBALS.Equal(p_x_line_rec.preferred_grade,p_old_line_rec.preferred_grade
1972: )
1973: THEN
1974: -- Need to Call Shipping Update
1975: l_update_shipping := FND_API.G_TRUE;

Line 1976: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1972: )
1973: THEN
1974: -- Need to Call Shipping Update
1975: l_update_shipping := FND_API.G_TRUE;
1976: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1977: OE_GLOBALS.G_TAX_FLAG := 'Y';
1978:
1979: IF p_x_line_rec.commitment_id IS NOT NULL THEN
1980: l_get_commitment_bal := 'Y';

Line 1977: OE_GLOBALS.G_TAX_FLAG := 'Y';

1973: THEN
1974: -- Need to Call Shipping Update
1975: l_update_shipping := FND_API.G_TRUE;
1976: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1977: OE_GLOBALS.G_TAX_FLAG := 'Y';
1978:
1979: IF p_x_line_rec.commitment_id IS NOT NULL THEN
1980: l_get_commitment_bal := 'Y';
1981: END IF;

Line 1986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)

1982: END IF;
1983: --INVCONV 02/JUN/00 END
1984: --=================
1985:
1986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
1987: THEN
1988:
1989: -- Need to Call Pricing: bug 1504821
1990: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 1990: OE_GLOBALS.G_PRICE_FLAG := 'Y';

1986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
1987: THEN
1988:
1989: -- Need to Call Pricing: bug 1504821
1990: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1991:
1992: /* Additional task: If the payment type is not CREDIT CARD
1993: then if the payment term changes for a line which is Booked
1994: it should log a delayed request for Verify Payment */

Line 1996: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

1992: /* Additional task: If the payment type is not CREDIT CARD
1993: then if the payment term changes for a line which is Booked
1994: it should log a delayed request for Verify Payment */
1995:
1996: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1997:
1998: if p_x_line_rec.booked_flag ='Y' then
1999:
2000: IF OE_PrePayment_UTIL.IS_MULTIPLE_PAYMENTS_ENABLED = TRUE THEN

Line 2024: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)

2020: END IF; -- if operation is update
2021:
2022: END IF; -- if payment_term_id has changed
2023:
2024: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
2025: THEN
2026: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2027:
2028: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 2026: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2022: END IF; -- if payment_term_id has changed
2023:
2024: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
2025: THEN
2026: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2027:
2028: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2029: l_get_commitment_bal := 'Y';
2030: END IF;

Line 2033: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_date,p_old_line_rec.pricing_date)

2029: l_get_commitment_bal := 'Y';
2030: END IF;
2031: END IF;
2032:
2033: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_date,p_old_line_rec.pricing_date)
2034: THEN
2035: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2036:
2037: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN

Line 2035: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2031: END IF;
2032:
2033: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_date,p_old_line_rec.pricing_date)
2034: THEN
2035: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2036:
2037: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2038: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2039: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190

Line 2038: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

2034: THEN
2035: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2036:
2037: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2038: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2039: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190
2040: p_x_line_rec.calculate_price_flag := 'Y';
2041: END IF;
2042: -- bug 2072014, need to recalculate price if pricing_date is updated END

Line 2039: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190

2035: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2036:
2037: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2038: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2039: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190
2040: p_x_line_rec.calculate_price_flag := 'Y';
2041: END IF;
2042: -- bug 2072014, need to recalculate price if pricing_date is updated END
2043:

Line 2049: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity,p_old_line_rec.pricing_quantity)

2045: l_get_commitment_bal := 'Y';
2046: END IF;
2047: END IF;
2048:
2049: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity,p_old_line_rec.pricing_quantity)
2050: THEN
2051: --commenting the below line for bug 2315926
2052: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2053:

Line 2052: --OE_GLOBALS.G_PRICE_FLAG := 'Y';

2048:
2049: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity,p_old_line_rec.pricing_quantity)
2050: THEN
2051: --commenting the below line for bug 2315926
2052: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2053:
2054: -- bug 1829201, need to recalculate commitment.
2055: IF p_x_line_rec.commitment_id is not null then
2056: l_calculate_commitment_flag := 'Y';

Line 2060: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity_uom,p_old_line_rec.pricing_quantity_uom)

2056: l_calculate_commitment_flag := 'Y';
2057: END IF;
2058: END IF;
2059:
2060: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity_uom,p_old_line_rec.pricing_quantity_uom)
2061: THEN
2062: --commenting the below line for bug 2315926
2063: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2064:

Line 2063: --OE_GLOBALS.G_PRICE_FLAG := 'Y';

2059:
2060: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity_uom,p_old_line_rec.pricing_quantity_uom)
2061: THEN
2062: --commenting the below line for bug 2315926
2063: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2064:
2065: -- bug 1829201, need to recalculate commitment.
2066: IF p_x_line_rec.commitment_id is not null then
2067: l_calculate_commitment_flag := 'Y';

Line 2071: IF NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id)

2067: l_calculate_commitment_flag := 'Y';
2068: END IF;
2069: END IF;
2070:
2071: IF NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id)
2072: THEN
2073: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2074: if l_debug_level > 0 then
2075: oe_debug_pub.ADD('RMA: logging delayed request ');

Line 2073: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN

2069: END IF;
2070:
2071: IF NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id)
2072: THEN
2073: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2074: if l_debug_level > 0 then
2075: oe_debug_pub.ADD('RMA: logging delayed request ');
2076: end if;
2077: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR

Line 2077: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR

2073: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2074: if l_debug_level > 0 then
2075: oe_debug_pub.ADD('RMA: logging delayed request ');
2076: end if;
2077: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
2078: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
2079:
2080: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2081:

Line 2078: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

2074: if l_debug_level > 0 then
2075: oe_debug_pub.ADD('RMA: logging delayed request ');
2076: end if;
2077: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
2078: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
2079:
2080: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2081:
2082: OE_delayed_requests_Pvt.log_request(

Line 2083: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2079:
2080: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2081:
2082: OE_delayed_requests_Pvt.log_request(
2083: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2084: p_entity_id => p_x_line_rec.line_id,
2085: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2086: p_requesting_entity_id => p_x_line_rec.line_id,
2087: p_param1 => p_x_line_rec.operation, --Bug 4651421

Line 2085: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2081:
2082: OE_delayed_requests_Pvt.log_request(
2083: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2084: p_entity_id => p_x_line_rec.line_id,
2085: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2086: p_requesting_entity_id => p_x_line_rec.line_id,
2087: p_param1 => p_x_line_rec.operation, --Bug 4651421
2088: p_param2 => p_x_line_rec.split_by,
2089: p_param3 => p_x_line_rec.split_action_code,

Line 2091: p_request_type => OE_GLOBALS.G_INSERT_RMA,

2087: p_param1 => p_x_line_rec.operation, --Bug 4651421
2088: p_param2 => p_x_line_rec.split_by,
2089: p_param3 => p_x_line_rec.split_action_code,
2090: p_param4 => to_char(p_x_line_rec.split_from_line_id),
2091: p_request_type => OE_GLOBALS.G_INSERT_RMA,
2092: x_return_status => l_return_status);
2093: END IF; -- Bug 5676051
2094:
2095: /* BUG 2013611 and 2109230 */

Line 2097: IF (OE_GLOBALS.G_UI_FLAG) THEN

2093: END IF; -- Bug 5676051
2094:
2095: /* BUG 2013611 and 2109230 */
2096: If p_x_line_rec.calculate_price_flag in ('N','P') THEN
2097: IF (OE_GLOBALS.G_UI_FLAG) THEN
2098: if l_debug_level > 0 then
2099: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
2100: end if;
2101: OE_delayed_requests_Pvt.log_request(

Line 2102: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2098: if l_debug_level > 0 then
2099: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
2100: end if;
2101: OE_delayed_requests_Pvt.log_request(
2102: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2103: p_entity_id => p_x_line_rec.line_id,
2104: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2105: p_requesting_entity_id => p_x_line_rec.line_id,
2106: p_request_unique_key1 => 'LINE',

Line 2104: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2100: end if;
2101: OE_delayed_requests_Pvt.log_request(
2102: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2103: p_entity_id => p_x_line_rec.line_id,
2104: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2105: p_requesting_entity_id => p_x_line_rec.line_id,
2106: p_request_unique_key1 => 'LINE',
2107: p_param1 => 'RETURN',
2108: p_param2 => NULL,

Line 2113: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2109: p_param3 => NULL,
2110: p_param4 => NULL,
2111: p_param5 => NULL,
2112: p_param6 => p_x_line_rec.ordered_quantity,
2113: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2114: x_return_status => l_return_status);
2115: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
2116: if l_debug_level > 0 then
2117: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);

Line 2115: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN

2111: p_param5 => NULL,
2112: p_param6 => p_x_line_rec.ordered_quantity,
2113: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2114: x_return_status => l_return_status);
2115: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
2116: if l_debug_level > 0 then
2117: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
2118: end if;
2119: OE_delayed_requests_Pvt.log_request(

Line 2120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2116: if l_debug_level > 0 then
2117: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
2118: end if;
2119: OE_delayed_requests_Pvt.log_request(
2120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2121: p_entity_id => p_x_line_rec.line_id,
2122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2123: p_requesting_entity_id => p_x_line_rec.line_id,
2124: p_request_unique_key1 => 'LINE',

Line 2122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2118: end if;
2119: OE_delayed_requests_Pvt.log_request(
2120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2121: p_entity_id => p_x_line_rec.line_id,
2122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2123: p_requesting_entity_id => p_x_line_rec.line_id,
2124: p_request_unique_key1 => 'LINE',
2125: p_param1 => 'RETURN',
2126: p_param2 => NULL,

Line 2131: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2127: p_param3 => NULL,
2128: p_param4 => NULL,
2129: p_param5 => NULL,
2130: p_param6 => p_x_line_rec.ordered_quantity,
2131: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2132: x_return_status => l_return_status);
2133: END IF;
2134: END IF;
2135: /* BUG 2013611 and 2109230 END */

Line 2151: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,p_old_line_rec.request_date)

2147: end if;
2148:
2149: END IF;
2150:
2151: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,p_old_line_rec.request_date)
2152: THEN
2153:
2154: -- Need to Call Shipping Update
2155: l_update_shipping := FND_API.G_TRUE;

Line 2158: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2154: -- Need to Call Shipping Update
2155: l_update_shipping := FND_API.G_TRUE;
2156:
2157: -- Call Pricing
2158: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2159:
2160: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2161: l_get_commitment_bal := 'Y';
2162: END IF;

Line 2166: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

2162: END IF;
2163:
2164: /*
2165: ** Commented as part of 1655720 after discussion with zbutt
2166: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2167: p_x_line_rec.booked_flag ='Y'
2168: THEN
2169: if l_debug_level > 0 then
2170: oe_debug_pub.ADD('logging delayed request for Verify Payment

Line 2179: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date)

2175: */
2176:
2177: END IF;
2178:
2179: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date)
2180: THEN
2181:
2182: -- Need to Call Shipping Update
2183: l_update_shipping := FND_API.G_TRUE;

Line 2190: -- OE_GLOBALS.G_TAX_FLAG := 'Y';

2186: -- schedule_ship_date changes.
2187: IF p_old_line_rec.schedule_ship_date IS NOT NULL THEN
2188: l_3a7_attribute_change := FND_API.G_TRUE;
2189: END IF;
2190: -- OE_GLOBALS.G_TAX_FLAG := 'Y';
2191:
2192: -- Call Pricing
2193: -- For performance bug 1351111, turning off Pricing for scheduling
2194:

Line 2199: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2195: /* Commenting out for 1419204
2196: l_turn_off_pricing := FND_PROFILE.VALUE('ONT_NO_PRICING_AT_SCHEDULING');
2197: -- by default, turn off pricing at scheduling
2198: IF l_turn_off_pricing = 'N' THEN
2199: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2200: End If;
2201: */
2202:
2203: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 2225: IF (p_x_line_rec.source_type_code <> OE_GLOBALS.G_SOURCE_EXTERNAL) THEN

2221:
2222: -- modified for bug 1655720 to not perform credit checking if
2223: -- schedule_ship_date changes.
2224: /***
2225: IF (p_x_line_rec.source_type_code <> OE_GLOBALS.G_SOURCE_EXTERNAL) THEN
2226:
2227: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
2228: THEN
2229: IF NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' AND

Line 2227: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

2223: -- schedule_ship_date changes.
2224: /***
2225: IF (p_x_line_rec.source_type_code <> OE_GLOBALS.G_SOURCE_EXTERNAL) THEN
2226:
2227: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
2228: THEN
2229: IF NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' AND
2230: p_x_line_rec.booked_flag ='Y' AND
2231: (to_date(p_x_line_rec.schedule_ship_date, 'DD/MM/YYYY') <>

Line 2254: -- of type OE_Globals.G_UPDATE_REQUISITION.

2250: --
2251: -- This program unit will track the specific change in Ordered Quantity
2252: -- and/or Schedule Ship Date on an internal sales order line shipment,
2253: -- and in the event of any change in values, it will log a delayed request
2254: -- of type OE_Globals.G_UPDATE_REQUISITION.
2255: --
2256: -- This delayed request will be logged only if global OE_Internal_Requisi
2257: -- tion_Pvt.G_Update_ISO_From_Req set to FALSE. If this global is TRUE
2258: -- then it means, the change requests for quantity/date or cancellation

Line 2281: -- In this project it can be OE_Globals.G_Entity_Line

2277: -- Please refer to following delayed request params with their meaning
2278: -- useful while logging the delayed request -
2279: --
2280: -- P_entity_code Entity for which delayed request has to be logged.
2281: -- In this project it can be OE_Globals.G_Entity_Line
2282: -- or OE_Globals.G_Entity_Header
2283: -- P_entity_id Primary key of the entity record. In this project,
2284: -- it can be Order Line_id or Header_id
2285: -- P_requesting_entity_code Which entity has requested this delayed request to

Line 2282: -- or OE_Globals.G_Entity_Header

2278: -- useful while logging the delayed request -
2279: --
2280: -- P_entity_code Entity for which delayed request has to be logged.
2281: -- In this project it can be OE_Globals.G_Entity_Line
2282: -- or OE_Globals.G_Entity_Header
2283: -- P_entity_id Primary key of the entity record. In this project,
2284: -- it can be Order Line_id or Header_id
2285: -- P_requesting_entity_code Which entity has requested this delayed request to
2286: -- be logged! In this project it will be OE_Globals.

Line 2286: -- be logged! In this project it will be OE_Globals.

2282: -- or OE_Globals.G_Entity_Header
2283: -- P_entity_id Primary key of the entity record. In this project,
2284: -- it can be Order Line_id or Header_id
2285: -- P_requesting_entity_code Which entity has requested this delayed request to
2286: -- be logged! In this project it will be OE_Globals.
2287: -- G_Entity_Line or OE_Globals.G_Entity_Header
2288: -- P_requesting_entity_id Primary key of the requesting entity. In this
2289: -- project, it is Line_id or Header_id
2290: -- P_request_type Indicates which business logic (or which procedure)

Line 2287: -- G_Entity_Line or OE_Globals.G_Entity_Header

2283: -- P_entity_id Primary key of the entity record. In this project,
2284: -- it can be Order Line_id or Header_id
2285: -- P_requesting_entity_code Which entity has requested this delayed request to
2286: -- be logged! In this project it will be OE_Globals.
2287: -- G_Entity_Line or OE_Globals.G_Entity_Header
2288: -- P_requesting_entity_id Primary key of the requesting entity. In this
2289: -- project, it is Line_id or Header_id
2290: -- P_request_type Indicates which business logic (or which procedure)
2291: -- should be executed. In this project, it is OE_Global

Line 2348: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

2344: /* -- Commented for IR ISO Tracking bug 7667702
2345: *
2346: IF (p_x_line_rec.order_source_id = 10) THEN
2347: IF (p_old_line_rec.schedule_ship_date IS NOT NULL) OR
2348: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2349: p_x_line_rec.split_from_line_id IS NOT NULL AND
2350: nvl(p_x_line_rec.split_by, 'X') = 'SYSTEM') THEN
2351: -- The above new OR condition is needed to ensure that a data
2352: -- change can happen either as a direct Update operation, OR

Line 2374: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

2370: -- Purchasing profile option does not allow update of Need By Date when
2371: -- Schedule Ship Date changes on internal sales order line
2372:
2373: OE_delayed_requests_Pvt.log_request
2374: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2375: , p_entity_id => p_x_line_rec.line_id
2376: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2377: , p_requesting_entity_id => p_x_line_rec.line_id
2378: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 2376: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

2372:
2373: OE_delayed_requests_Pvt.log_request
2374: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2375: , p_entity_id => p_x_line_rec.line_id
2376: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2377: , p_requesting_entity_id => p_x_line_rec.line_id
2378: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2379: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2380: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 2382: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

2378: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2379: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2380: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id
2381: , p_date_param1 => p_x_line_rec.schedule_ship_date
2382: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
2383: , x_return_status => l_return_status
2384: );
2385:
2386: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 2403: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)

2399:
2400:
2401: END IF;
2402:
2403: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)
2404: THEN
2405:
2406: -- Freight Rating
2407: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

Line 2426: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

2422:
2423:
2424: IF (p_x_line_rec.order_source_id = 10) THEN
2425: IF (p_old_line_rec.schedule_arrival_date IS NOT NULL) OR
2426: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2427: p_x_line_rec.split_from_line_id IS NOT NULL AND
2428: nvl(p_x_line_rec.split_by, 'X') = 'SYSTEM') THEN
2429: -- The above new OR condition is needed to ensure that a data
2430: -- change can happen either as a direct Update operation, OR

Line 2454: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

2450: -- Purchasing profile option does not allow update of Need By Date when
2451: -- Schedule Arrival Date changes on internal sales order line
2452:
2453: OE_delayed_requests_Pvt.log_request
2454: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2455: , p_entity_id => p_x_line_rec.line_id
2456: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2457: , p_requesting_entity_id => p_x_line_rec.line_id
2458: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 2456: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

2452:
2453: OE_delayed_requests_Pvt.log_request
2454: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2455: , p_entity_id => p_x_line_rec.line_id
2456: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2457: , p_requesting_entity_id => p_x_line_rec.line_id
2458: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2459: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2460: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 2467: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

2463: -- Schedule_Arrival_Date, as while executing G_UPDATE_REQUISITION delayed
2464: -- request via OE_Process_Requisition_Pvt.Update_Internal_Requisition,
2465: -- it can expect change with respect to Ship or Arrival date. Thus, will
2466: -- not raise any issues.
2467: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
2468: , x_return_status => l_return_status
2469: );
2470:
2471: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 2497: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_priority_code,p_old_line_rec.shipment_priority_code)

2493:
2494:
2495: END IF;
2496:
2497: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_priority_code,p_old_line_rec.shipment_priority_code)
2498: THEN
2499: -- Need to Call Shipping Update
2500: l_update_shipping := FND_API.G_TRUE;
2501: END IF;

Line 2503: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,p_old_line_rec.shipped_quantity)

2499: -- Need to Call Shipping Update
2500: l_update_shipping := FND_API.G_TRUE;
2501: END IF;
2502:
2503: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,p_old_line_rec.shipped_quantity)
2504: THEN
2505: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
2506: --OE_delayed_requests_Pvt.log_request(
2507: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

Line 2507: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2503: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,p_old_line_rec.shipped_quantity)
2504: THEN
2505: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
2506: --OE_delayed_requests_Pvt.log_request(
2507: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2508: --p_entity_id => p_x_line_rec.ship_set_id,
2509: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2510: --p_requesting_entity_id => p_x_line_rec.line_id,
2511: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,

Line 2509: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2505: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
2506: --OE_delayed_requests_Pvt.log_request(
2507: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2508: --p_entity_id => p_x_line_rec.ship_set_id,
2509: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2510: --p_requesting_entity_id => p_x_line_rec.line_id,
2511: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,
2512: --p_param1 => to_char(p_x_line_rec.actual_shipment_date,'DD-MON-RRRR'),
2513: --x_return_status => l_return_status);

Line 2511: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,

2507: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2508: --p_entity_id => p_x_line_rec.ship_set_id,
2509: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2510: --p_requesting_entity_id => p_x_line_rec.line_id,
2511: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,
2512: --p_param1 => to_char(p_x_line_rec.actual_shipment_date,'DD-MON-RRRR'),
2513: --x_return_status => l_return_status);
2514: --END IF;
2515:

Line 2520: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)

2516: NULL;
2517:
2518: END IF;
2519:
2520: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
2521: THEN
2522: -- Need to Call Pricing: bug 3344835
2523: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2524:

Line 2523: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2519:
2520: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
2521: THEN
2522: -- Need to Call Pricing: bug 3344835
2523: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2524:
2525: -- Need to Call Shipping Update
2526: l_update_shipping := FND_API.G_TRUE;
2527: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

Line 2531: AND oe_globals.g_freight_recursion = 'N' THEN

2527: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
2528: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
2529: (p_x_line_rec.header_id)
2530: = 'OM_CALLED_FREIGHT_RATES'
2531: AND oe_globals.g_freight_recursion = 'N' THEN
2532: if l_debug_level > 0 then
2533: oe_debug_pub.add('Log Freight Rating request for shipping method. ',3);
2534: end if;
2535: l_get_FTE_freight_rate := 'Y';

Line 2543: IF NOT OE_GLOBALS.Equal(p_x_line_rec.booked_flag, p_old_line_rec.booked_flag)

2539:
2540: -- Don't change the order for the following, flow_status_code depends on this
2541: -- order to update the appropriate flow_status_code
2542:
2543: IF NOT OE_GLOBALS.Equal(p_x_line_rec.booked_flag, p_old_line_rec.booked_flag)
2544: THEN
2545: IF p_x_line_rec.booked_flag = 'Y' AND p_x_line_rec.flow_status_code = 'ENTERED' THEN
2546: -- only set status to BOOKED if we were at ENTERED
2547: p_x_line_rec.flow_status_code := 'BOOKED';

Line 2549: --OE_GLOBALS.G_PRICE_FLAG := 'Y';

2545: IF p_x_line_rec.booked_flag = 'Y' AND p_x_line_rec.flow_status_code = 'ENTERED' THEN
2546: -- only set status to BOOKED if we were at ENTERED
2547: p_x_line_rec.flow_status_code := 'BOOKED';
2548: -- For bug 1304916. Booking wil call price_line directly
2549: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2550: if l_debug_level > 0 then
2551: oe_debug_pub.add('sam: flow_status_code is ' || p_x_line_rec.flow_status_code);
2552: end if;
2553: END IF;

Line 2561: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_quantity,p_old_line_rec.shipping_quantity)

2557:
2558: /* WARNING !!!! The following code will not get executed after patchset 'G'.
2559: This code HAS BEEN MOVED to package OE_SHIP_CONFIRMATION_PUB.SHIP_CONFIRM. Please change the code in file OEXPSHCB.pls if any changes are required in the following IF */
2560:
2561: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_quantity,p_old_line_rec.shipping_quantity)
2562: THEN
2563: -- Convert the shipping quantity from shipping quantity UOM to
2564: -- Ordered quantity UOM and update the field shipped quantity
2565:

Line 2730: p_x_line_rec.item_type_code = Oe_Globals.G_ITEM_CONFIG AND

2726: l_shipping_param1 := p_x_line_rec.top_model_line_id;
2727:
2728: ELSIF (p_x_line_rec.ato_line_id IS NOT NULL AND
2729: p_x_line_rec.ato_line_id <> FND_API.G_MISS_NUM) AND
2730: p_x_line_rec.item_type_code = Oe_Globals.G_ITEM_CONFIG AND
2731: nvl(p_x_line_rec.model_remnant_flag,'N') = 'N' THEN
2732: l_shipping_unique_key1 := 'ATO';
2733: l_shipping_param1 := p_x_line_rec.line_id;
2734: ELSE

Line 2745: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2741: oe_debug_pub.ADD('Ship Confirmation : logging delayed request for '|| l_shipping_unique_key1 || l_shipping_param1,1);
2742: end if;
2743:
2744: OE_Delayed_Requests_Pvt.Log_Request(
2745: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2746: p_entity_id => p_x_line_rec.line_id,
2747: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2748: p_requesting_entity_id => p_x_line_rec.line_id,
2749: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,

Line 2747: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2743:
2744: OE_Delayed_Requests_Pvt.Log_Request(
2745: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2746: p_entity_id => p_x_line_rec.line_id,
2747: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2748: p_requesting_entity_id => p_x_line_rec.line_id,
2749: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,
2750: p_request_unique_key1 => l_shipping_unique_key1,
2751: p_param1 => l_shipping_param1,

Line 2749: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,

2745: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2746: p_entity_id => p_x_line_rec.line_id,
2747: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2748: p_requesting_entity_id => p_x_line_rec.line_id,
2749: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,
2750: p_request_unique_key1 => l_shipping_unique_key1,
2751: p_param1 => l_shipping_param1,
2752: x_return_status => l_return_status);
2753:

Line 2760: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_interface_status_code, p_old_line_rec.invoice_interface_status_code)

2756: END IF;
2757:
2758:
2759:
2760: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_interface_status_code, p_old_line_rec.invoice_interface_status_code)
2761: THEN
2762: IF p_x_line_rec.invoice_interface_status_code = 'YES' THEN
2763: p_x_line_rec.flow_status_code := 'INVOICED';
2764: if l_debug_level > 0 then

Line 2777: IF NOT OE_GLOBALS.Equal(p_x_line_rec.open_flag, p_old_line_rec.open_flag)

2773:
2774: END IF;
2775:
2776:
2777: IF NOT OE_GLOBALS.Equal(p_x_line_rec.open_flag, p_old_line_rec.open_flag)
2778: THEN
2779: IF p_x_line_rec.open_flag = 'N' THEN
2780: p_x_line_rec.flow_status_code := 'CLOSED';
2781: IF p_x_line_rec.cancelled_flag = 'Y' THEN

Line 2792: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_flag, p_old_line_rec.cancelled_flag)

2788: END IF;
2789:
2790: END IF;
2791:
2792: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_flag, p_old_line_rec.cancelled_flag)
2793: THEN
2794: IF p_x_line_rec.cancelled_flag = 'Y' THEN
2795: p_x_line_rec.flow_status_code := 'CANCELLED';
2796: if l_debug_level > 0 then

Line 2804: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)

2800: END IF;
2801:
2802: END IF;
2803:
2804: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)
2805: THEN
2806: -- BUG 1491504 BEGIN -- INVCONV stet
2807: -- Warehouse data CAN determine whether the line is treated as process or discrete OR SINGLE uom OR dUAL uom CONTROLLED .
2808: -- Warehouse data can impact quantity calculations, so check the quantites here

Line 2816: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';

2812: -- Check to see if either the primary or secondary quantity has changed
2813: -- If there is a change, make a recursive call to OE_Order_Pvt.Lines
2814: IF p_x_line_rec.ordered_quantity <> l_ordered_quantity OR
2815: p_x_line_rec.ordered_quantity2 <> l_ordered_quantity2 THEN
2816: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
2817: l_control_rec.controlled_operation := TRUE;
2818: l_control_rec.check_security := TRUE;
2819: l_control_rec.clear_dependents := FALSE;
2820: l_control_rec.default_attributes := FALSE;

Line 2836: -- OE_GLOBALS.G_RECURSION_MODE := 'N';

2832: , p_x_old_line_tbl => l_old_line_tbl
2833: , x_return_status => l_return_status
2834: );
2835:
2836: -- OE_GLOBALS.G_RECURSION_MODE := 'N';
2837: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
2838: RAISE FND_API.G_EXC_ERROR;
2839: ELSIF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2840: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2846: OE_GLOBALS.G_TAX_FLAG := 'Y';

2842: END IF;
2843: -- BUG 1491504 END
2844: -- =======================================
2845: -- Log the request for Tax Calculation
2846: OE_GLOBALS.G_TAX_FLAG := 'Y';
2847: -- Need to Call Shipping Update
2848: l_update_shipping := FND_API.G_TRUE;
2849: /* may need to call pricing */
2850: -- For performance bug 1351111, turning off Pricing for scheduling

Line 2855: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2851: /* commenting out for fix 1419204
2852: l_turn_off_pricing := FND_PROFILE.VALUE('ONT_NO_PRICING_AT_SCHEDULING');
2853: -- by default, turn off pricing at scheduling
2854: IF l_turn_off_pricing = 'N' THEN
2855: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2856: End If;
2857: */
2858:
2859: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

Line 2859: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

2855: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2856: End If;
2857: */
2858:
2859: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2860: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
2861: -- QUOTING change
2862: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
2863: THEN

Line 2871: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2867: ' Entity ID :'|| to_char(p_x_line_rec.ship_from_org_id), 1);
2868: end if;
2869:
2870: OE_delayed_requests_Pvt.log_request(
2871: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2872: p_entity_id => p_x_line_rec.line_id,
2873: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2874: p_requesting_entity_id => p_x_line_rec.line_id,
2875: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 2873: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2869:
2870: OE_delayed_requests_Pvt.log_request(
2871: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2872: p_entity_id => p_x_line_rec.line_id,
2873: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2874: p_requesting_entity_id => p_x_line_rec.line_id,
2875: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
2876: p_request_unique_key1 => 'SHIP_FROM',
2877: p_param1 => 'W',

Line 2875: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

2871: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2872: p_entity_id => p_x_line_rec.line_id,
2873: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2874: p_requesting_entity_id => p_x_line_rec.line_id,
2875: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
2876: p_request_unique_key1 => 'SHIP_FROM',
2877: p_param1 => 'W',
2878: p_param2 => p_x_line_rec.ship_from_org_id,
2879: x_return_status => l_return_status);

Line 2924: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2920: oe_debug_pub.add('l_wms_org_flag_new:'|| l_wms_org_flag_new);
2921: oe_debug_pub.add('l_wms_org_flag_old:'|| l_wms_org_flag_old);
2922: END IF;
2923: IF l_wms_org_flag_new <> l_wms_org_flag_old THEN
2924: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2925: END IF;
2926: END IF;
2927: -- Pack J catchweight
2928:

Line 2932: IF NOT OE_GLOBALS.Equal(p_x_line_rec.subinventory,p_old_line_rec.subinventory)

2928:
2929:
2930: END IF;
2931:
2932: IF NOT OE_GLOBALS.Equal(p_x_line_rec.subinventory,p_old_line_rec.subinventory)
2933: THEN
2934: -- change of subinventory should not require tax or pricing calculation.
2935: -- or even hold evaluation
2936: l_update_shipping := FND_API.G_TRUE;

Line 2943: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_model_complete_flag,p_old_line_rec.ship_model_complete_flag)

2939: end if;
2940: END IF;
2941:
2942:
2943: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_model_complete_flag,p_old_line_rec.ship_model_complete_flag)
2944: THEN
2945: -- Need to Call Shipping Update
2946: l_update_shipping := FND_API.G_TRUE;
2947: END IF;

Line 2949: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set_id,p_old_line_rec.ship_set_id)

2945: -- Need to Call Shipping Update
2946: l_update_shipping := FND_API.G_TRUE;
2947: END IF;
2948:
2949: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set_id,p_old_line_rec.ship_set_id)
2950: THEN
2951: -- Need to Call Shipping Update
2952: l_update_shipping := FND_API.G_TRUE;
2953:

Line 2956: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set,p_old_line_rec.ship_set)

2952: l_update_shipping := FND_API.G_TRUE;
2953:
2954: END IF;
2955:
2956: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set,p_old_line_rec.ship_set)
2957: THEN
2958:
2959: NULL;
2960:

Line 2964: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,p_old_line_rec.ship_tolerance_above)

2960:
2961: END IF;
2962:
2963:
2964: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,p_old_line_rec.ship_tolerance_above)
2965: THEN
2966: -- Need to Call Shipping Update
2967: l_update_shipping := FND_API.G_TRUE;
2968: END IF;

Line 2972: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_set_id,p_old_line_rec.line_set_id)

2968: END IF;
2969:
2970: -- Changes for Bug-2579571
2971:
2972: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_set_id,p_old_line_rec.line_set_id)
2973: THEN
2974: -- Need to Call Shipping Update
2975: l_update_shipping := FND_API.G_TRUE;
2976: END IF;

Line 2978: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,p_old_line_rec.ship_tolerance_below)

2974: -- Need to Call Shipping Update
2975: l_update_shipping := FND_API.G_TRUE;
2976: END IF;
2977:
2978: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,p_old_line_rec.ship_tolerance_below)
2979: THEN
2980: -- Need to Call Shipping Update
2981: l_update_shipping := FND_API.G_TRUE;
2982: END IF;

Line 2984: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_contact_id,p_old_line_rec.ship_to_contact_id)

2980: -- Need to Call Shipping Update
2981: l_update_shipping := FND_API.G_TRUE;
2982: END IF;
2983:
2984: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_contact_id,p_old_line_rec.ship_to_contact_id)
2985: THEN
2986: -- Need to Call Shipping Update
2987: l_update_shipping := FND_API.G_TRUE;
2988: -- Call Pricing

Line 2989: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204

2985: THEN
2986: -- Need to Call Shipping Update
2987: l_update_shipping := FND_API.G_TRUE;
2988: -- Call Pricing
2989: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
2990:
2991: END IF;
2992:
2993: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)

Line 2993: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)

2989: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
2990:
2991: END IF;
2992:
2993: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)
2994: THEN
2995: -- Log the request for Tax Calculation
2996: OE_GLOBALS.G_TAX_FLAG := 'Y';
2997: -- Need to Call Shipping Update

Line 2996: OE_GLOBALS.G_TAX_FLAG := 'Y';

2992:
2993: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)
2994: THEN
2995: -- Log the request for Tax Calculation
2996: OE_GLOBALS.G_TAX_FLAG := 'Y';
2997: -- Need to Call Shipping Update
2998: l_update_shipping := FND_API.G_TRUE;
2999: /* may need to call pricing */
3000: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 3000: OE_GLOBALS.G_PRICE_FLAG := 'Y';

2996: OE_GLOBALS.G_TAX_FLAG := 'Y';
2997: -- Need to Call Shipping Update
2998: l_update_shipping := FND_API.G_TRUE;
2999: /* may need to call pricing */
3000: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3001:
3002: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3003: l_get_commitment_bal := 'Y';
3004: END IF;

Line 3016: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

3012: end if;
3013: l_get_FTE_freight_rate := 'Y';
3014: END IF;
3015:
3016: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
3017: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
3018: -- QUOTING change
3019: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3020: THEN

Line 3027: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3023: oe_debug_pub.add('line ID: '|| to_char(p_x_line_rec.line_id) ||
3024: ' Entity ID :'|| to_char(p_x_line_rec.ship_to_org_id), 1);
3025: end if;
3026: OE_delayed_requests_Pvt.log_request(
3027: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3028: p_entity_id => p_x_line_rec.line_id,
3029: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3030: p_requesting_entity_id => p_x_line_rec.line_id,
3031: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3029: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3025: end if;
3026: OE_delayed_requests_Pvt.log_request(
3027: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3028: p_entity_id => p_x_line_rec.line_id,
3029: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3030: p_requesting_entity_id => p_x_line_rec.line_id,
3031: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3032: p_request_unique_key1 => 'SHIP_TO',
3033: p_param1 => 'S',

Line 3031: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3027: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3028: p_entity_id => p_x_line_rec.line_id,
3029: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3030: p_requesting_entity_id => p_x_line_rec.line_id,
3031: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3032: p_request_unique_key1 => 'SHIP_TO',
3033: p_param1 => 'S',
3034: p_param2 => p_x_line_rec.ship_to_org_id,
3035: x_return_status => l_return_status);

Line 3047: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)

3043: END IF;
3044:
3045:
3046:
3047: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
3048: THEN
3049:
3050: -- Need to Call Shipping Update
3051: l_update_shipping := FND_API.G_TRUE;

Line 3061: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3057: oe_debug_pub.add('Return Status before is : '||p_x_line_rec.return_status, 1);
3058: end if;
3059:
3060: -- Call Pricing
3061: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3062:
3063:
3064: -- bug 1829201, need to recalculate commitment.
3065: IF p_x_line_rec.commitment_id is not null then

Line 3094: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_document_type_id,p_old_line_rec.source_document_type_id)

3090: end if;
3091:
3092: END IF;
3093:
3094: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_document_type_id,p_old_line_rec.source_document_type_id)
3095: THEN
3096:
3097: If p_x_line_rec.source_document_type_id = 2 Then
3098: --

Line 3108: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)) OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)) THEN

3104: l_copy_pricing_attributes := TRUE;
3105:
3106: -- commented out for 1819133
3107: /***
3108: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)) OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)) THEN
3109: p_x_line_rec.calculate_price_flag := 'Y';
3110: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3111: END IF;
3112: ***/

Line 3110: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3106: -- commented out for 1819133
3107: /***
3108: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)) OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)) THEN
3109: p_x_line_rec.calculate_price_flag := 'Y';
3110: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3111: END IF;
3112: ***/
3113:
3114: End If;

Line 3124: and p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3120: --
3121:
3122: -- SAO
3123: IF p_x_line_rec.line_category_code <> 'RETURN'
3124: and p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3125: and p_x_line_rec.split_by = 'SYSTEM'
3126: and NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT'
3127: and p_x_line_rec.calculate_price_flag = 'Y' Then
3128: p_x_line_rec.calculate_price_flag :='P';

Line 3132: IF NOT OE_GLOBALS.Equal(p_x_line_rec.split_from_line_id,p_old_line_rec.split_from_line_id)

3128: p_x_line_rec.calculate_price_flag :='P';
3129: End IF;
3130:
3131:
3132: IF NOT OE_GLOBALS.Equal(p_x_line_rec.split_from_line_id,p_old_line_rec.split_from_line_id)
3133: THEN
3134:
3135: -- Do not attempt to copy the adjustments for the parent line
3136: IF p_x_line_rec.operation = oe_globals.g_opr_create THEN

Line 3136: IF p_x_line_rec.operation = oe_globals.g_opr_create THEN

3132: IF NOT OE_GLOBALS.Equal(p_x_line_rec.split_from_line_id,p_old_line_rec.split_from_line_id)
3133: THEN
3134:
3135: -- Do not attempt to copy the adjustments for the parent line
3136: IF p_x_line_rec.operation = oe_globals.g_opr_create THEN
3137: l_copy_adjustments := TRUE;
3138: l_copy_pricing_attributes := TRUE;
3139:
3140: IF p_x_line_rec.split_by = 'SYSTEM'

Line 3204: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_code,p_old_line_rec.tax_code)

3200: End If;
3201:
3202: END IF;
3203:
3204: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_code,p_old_line_rec.tax_code)
3205: THEN
3206: OE_GLOBALS.G_TAX_FLAG := 'Y';
3207:
3208: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 3206: OE_GLOBALS.G_TAX_FLAG := 'Y';

3202: END IF;
3203:
3204: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_code,p_old_line_rec.tax_code)
3205: THEN
3206: OE_GLOBALS.G_TAX_FLAG := 'Y';
3207:
3208: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3209: l_get_commitment_bal := 'Y';
3210: END IF;

Line 3213: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_date,p_old_line_rec.tax_date)

3209: l_get_commitment_bal := 'Y';
3210: END IF;
3211: END IF;
3212:
3213: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_date,p_old_line_rec.tax_date)
3214: THEN
3215: OE_GLOBALS.G_TAX_FLAG := 'Y';
3216:
3217: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 3215: OE_GLOBALS.G_TAX_FLAG := 'Y';

3211: END IF;
3212:
3213: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_date,p_old_line_rec.tax_date)
3214: THEN
3215: OE_GLOBALS.G_TAX_FLAG := 'Y';
3216:
3217: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3218: l_get_commitment_bal := 'Y';
3219: END IF;

Line 3222: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_flag,p_old_line_rec.tax_exempt_flag)

3218: l_get_commitment_bal := 'Y';
3219: END IF;
3220: END IF;
3221:
3222: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_flag,p_old_line_rec.tax_exempt_flag)
3223: THEN
3224: OE_GLOBALS.G_TAX_FLAG := 'Y';
3225:
3226: IF p_x_line_rec.commitment_id IS NOT NULL THEN

Line 3224: OE_GLOBALS.G_TAX_FLAG := 'Y';

3220: END IF;
3221:
3222: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_flag,p_old_line_rec.tax_exempt_flag)
3223: THEN
3224: OE_GLOBALS.G_TAX_FLAG := 'Y';
3225:
3226: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3227: l_get_commitment_bal := 'Y';
3228: END IF;

Line 3231: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_number,p_old_line_rec.tax_exempt_number)

3227: l_get_commitment_bal := 'Y';
3228: END IF;
3229: END IF;
3230:
3231: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_number,p_old_line_rec.tax_exempt_number)
3232: THEN
3233: -- Log the request for Tax Calculation
3234: OE_GLOBALS.G_TAX_FLAG := 'Y';
3235:

Line 3234: OE_GLOBALS.G_TAX_FLAG := 'Y';

3230:
3231: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_number,p_old_line_rec.tax_exempt_number)
3232: THEN
3233: -- Log the request for Tax Calculation
3234: OE_GLOBALS.G_TAX_FLAG := 'Y';
3235:
3236: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3237: l_get_commitment_bal := 'Y';
3238: END IF;

Line 3241: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_reason_code,p_old_line_rec.tax_exempt_reason_code)

3237: l_get_commitment_bal := 'Y';
3238: END IF;
3239: END IF;
3240:
3241: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_reason_code,p_old_line_rec.tax_exempt_reason_code)
3242: THEN
3243: -- Log the request for Tax Calculation
3244: OE_GLOBALS.G_TAX_FLAG := 'Y';
3245:

Line 3244: OE_GLOBALS.G_TAX_FLAG := 'Y';

3240:
3241: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_reason_code,p_old_line_rec.tax_exempt_reason_code)
3242: THEN
3243: -- Log the request for Tax Calculation
3244: OE_GLOBALS.G_TAX_FLAG := 'Y';
3245:
3246: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3247: l_get_commitment_bal := 'Y';
3248: END IF;

Line 3251: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_value,p_old_line_rec.tax_value)

3247: l_get_commitment_bal := 'Y';
3248: END IF;
3249: END IF;
3250:
3251: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_value,p_old_line_rec.tax_value)
3252: THEN
3253:
3254: IF p_x_line_rec.commitment_id is NOT NULL THEN
3255: l_calculate_commitment_flag := 'Y';

Line 3259: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

3255: l_calculate_commitment_flag := 'Y';
3256:
3257: END IF;
3258:
3259: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3260: -- Log Verify Payment only if the Tax Value has
3261: -- Increased AND Payment Type Code is Credit Card.
3262: IF p_x_line_rec.tax_value > p_old_line_rec.tax_value AND
3263: OE_Order_Cache.g_header_rec.payment_type_code = 'CREDIT_CARD' THEN

Line 3283: IF NOT OE_GLOBALS.Equal(p_x_line_rec.top_model_line_id,p_old_line_rec.top_model_line_id)

3279: END IF;
3280:
3281: END IF;
3282:
3283: IF NOT OE_GLOBALS.Equal(p_x_line_rec.top_model_line_id,p_old_line_rec.top_model_line_id)
3284: THEN
3285: -- Need to Call Shipping Update
3286: l_update_shipping := FND_API.G_TRUE;
3287:

Line 3293: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) THEN

3289: l_def_contingency_attributes := FND_API.G_TRUE;
3290:
3291: END IF;
3292: -- Bug 3418496
3293: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) THEN
3294: IF( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3295: AND p_x_line_rec.booked_flag ='Y') THEN
3296: -- Log Delayed Request for Verify Payment
3297: if l_debug_level > 0 then

Line 3294: IF( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3290:
3291: END IF;
3292: -- Bug 3418496
3293: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) THEN
3294: IF( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3295: AND p_x_line_rec.booked_flag ='Y') THEN
3296: -- Log Delayed Request for Verify Payment
3297: if l_debug_level > 0 then
3298: oe_debug_pub.ADD('log verify payment delayed request for change in List price');

Line 3308: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price)

3304: If the new selling price is NULL AND old selling price is NOT NULL Then
3305: Reprice the line
3306: End if;
3307: */
3308: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price)
3309: THEN
3310:
3311: l_3a7_attribute_change := FND_API.G_TRUE;
3312: IF (p_x_line_rec.unit_selling_price is NULL And

Line 3319: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3315: oe_debug_pub.add('User has cleared unit selling price');
3316: oe_debug_pub.add('Just Reprice');
3317: end if;
3318: --Oe_Line_Adj_Util.Delete_Row(p_line_id=>p_x_line_rec.line_id); 7363196
3319: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3320: p_x_line_rec.unit_list_price := NULL;
3321: p_x_line_rec.unit_list_price_per_pqty := NULL;
3322: End if;
3323:

Line 3324: OE_GLOBALS.G_TAX_FLAG := 'Y';

3320: p_x_line_rec.unit_list_price := NULL;
3321: p_x_line_rec.unit_list_price_per_pqty := NULL;
3322: End if;
3323:
3324: OE_GLOBALS.G_TAX_FLAG := 'Y';
3325: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3326: -- Additional task : Log Verify Payment always when the payment Type
3327: -- code is not CREDIT CARD. For CREDIT CARD, log this request only if
3328: -- the Unit Selling Price has increased.

Line 3325: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

3321: p_x_line_rec.unit_list_price_per_pqty := NULL;
3322: End if;
3323:
3324: OE_GLOBALS.G_TAX_FLAG := 'Y';
3325: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3326: -- Additional task : Log Verify Payment always when the payment Type
3327: -- code is not CREDIT CARD. For CREDIT CARD, log this request only if
3328: -- the Unit Selling Price has increased.
3329:

Line 3378: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_date,p_old_line_rec.service_start_date)

3374: END IF;
3375:
3376: /* csheu -- bug #1533658 S*/
3377:
3378: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_date,p_old_line_rec.service_start_date)
3379:
3380: THEN
3381: -- Call Pricing
3382: if l_debug_level > 0 then

Line 3385: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3381: -- Call Pricing
3382: if l_debug_level > 0 then
3383: oe_debug_pub.add('CSH- service start_date is changed');
3384: end if;
3385: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3386: l_copy_service_fields := TRUE;
3387:
3388: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3389: l_get_commitment_bal := 'Y';

Line 3395: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_date,p_old_line_rec.service_end_date)

3391:
3392: END IF;
3393:
3394:
3395: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_date,p_old_line_rec.service_end_date)
3396:
3397: THEN
3398: if l_debug_level > 0 then
3399: oe_debug_pub.add('CSH- service end_date is changed');

Line 3402: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3398: if l_debug_level > 0 then
3399: oe_debug_pub.add('CSH- service end_date is changed');
3400: end if;
3401: -- Call Pricing
3402: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3403: l_copy_service_fields := TRUE;
3404:
3405: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3406: l_get_commitment_bal := 'Y';

Line 3413: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration)

3409: END IF;
3410:
3411: /* csheu -- bug #1533658 E*/
3412:
3413: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration)
3414:
3415: THEN
3416: -- Call Pricing
3417: OE_GLOBALS.G_PRICE_FLAG := 'Y';

Line 3417: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3413: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration)
3414:
3415: THEN
3416: -- Call Pricing
3417: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3418: /* csheu -- bug #1533658 s*/
3419: if l_debug_level > 0 then
3420: oe_debug_pub.add('CSH- service duration is changed');
3421: end if;

Line 3431: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period)

3427: END IF;
3428:
3429: END IF;
3430:
3431: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period)
3432: THEN
3433: -- Reprice the Line
3434: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3435:

Line 3434: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3430:
3431: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period)
3432: THEN
3433: -- Reprice the Line
3434: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3435:
3436: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3437: l_get_commitment_bal := 'Y';
3438: END IF;

Line 3448: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_reference_line_id,p_old_line_rec.service_reference_line_id)

3444: l_copy_service_fields := TRUE;
3445: /* csheu -- bug #1533658 e*/
3446: END IF;
3447:
3448: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_reference_line_id,p_old_line_rec.service_reference_line_id)
3449:
3450: THEN
3451: if l_debug_level > 0 then
3452: oe_debug_pub.add('JPN: line id is: ' || to_char(p_x_line_rec.line_id));

Line 3501: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) THEN

3497: END IF; /* source_document_type_id */
3498:
3499: /* hashraf bug # 2757859 */
3500:
3501: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) THEN
3502: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3503: END IF;
3504:
3505: /* end of 2757859 */

Line 3502: OE_GLOBALS.G_PRICE_FLAG := 'Y';

3498:
3499: /* hashraf bug # 2757859 */
3500:
3501: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) THEN
3502: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3503: END IF;
3504:
3505: /* end of 2757859 */
3506:

Line 3564: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or

3560: oe_debug_pub.add('Split from line:' || p_x_line_rec.split_from_line_id);
3561: end if;
3562:
3563: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
3564: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
3565: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
3566: p_x_line_rec.split_from_line_id is NOT NULL)) then
3567:
3568:

Line 3565: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and

3561: end if;
3562:
3563: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
3564: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
3565: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
3566: p_x_line_rec.split_from_line_id is NOT NULL)) then
3567:
3568:
3569: IF p_x_line_rec.service_reference_type_code = 'ORDER' and

Line 3571: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or

3567:
3568:
3569: IF p_x_line_rec.service_reference_type_code = 'ORDER' and
3570: p_x_line_rec.service_reference_line_id is NOT NULL and
3571: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or
3572: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and
3573: l_is_model = 'Y' THEN
3574: OE_Delayed_Requests_Pvt.log_request(
3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

Line 3572: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and

3568:
3569: IF p_x_line_rec.service_reference_type_code = 'ORDER' and
3570: p_x_line_rec.service_reference_line_id is NOT NULL and
3571: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or
3572: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and
3573: l_is_model = 'Y' THEN
3574: OE_Delayed_Requests_Pvt.log_request(
3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3576: p_entity_id => p_x_line_rec.line_id,

Line 3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3571: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or
3572: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and
3573: l_is_model = 'Y' THEN
3574: OE_Delayed_Requests_Pvt.log_request(
3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3576: p_entity_id => p_x_line_rec.line_id,
3577: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3578: p_requesting_entity_id => p_x_line_rec.line_id,
3579: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,

Line 3577: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3573: l_is_model = 'Y' THEN
3574: OE_Delayed_Requests_Pvt.log_request(
3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3576: p_entity_id => p_x_line_rec.line_id,
3577: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3578: p_requesting_entity_id => p_x_line_rec.line_id,
3579: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,
3580: x_return_status => l_return_status);
3581: END IF; /* delayed request */

Line 3579: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,

3575: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3576: p_entity_id => p_x_line_rec.line_id,
3577: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3578: p_requesting_entity_id => p_x_line_rec.line_id,
3579: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,
3580: x_return_status => l_return_status);
3581: END IF; /* delayed request */
3582: END IF; /* service_reference_type_code = ORDER */
3583: END IF; /* Check if not split */

Line 3597: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or

3593: p_x_line_rec.item_type_code = 'INCLUDED' OR
3594: p_x_line_rec.item_type_code = 'KIT' ) and p_x_line_rec.top_model_line_id is NOT NULL then
3595:
3596: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
3597: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
3598: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
3599: p_x_line_rec.split_from_line_id is NOT NULL)) then
3600:
3601: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

Line 3598: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and

3594: p_x_line_rec.item_type_code = 'KIT' ) and p_x_line_rec.top_model_line_id is NOT NULL then
3595:
3596: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
3597: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
3598: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
3599: p_x_line_rec.split_from_line_id is NOT NULL)) then
3600:
3601: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
3602: THEN

Line 3601: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

3597: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
3598: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
3599: p_x_line_rec.split_from_line_id is NOT NULL)) then
3600:
3601: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
3602: THEN
3603: if l_debug_level > 0 then
3604: oe_debug_pub.ADD('operation : '|| p_x_line_rec.operation);
3605: oe_debug_pub.ADD('inventory_item_id : '|| p_x_line_rec.inventory_item_id);

Line 3650: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3646: if l_debug_level > 0 then
3647: oe_debug_pub.add('Before log delayed request -- G_CASCADE_OPTIONS_SERVICE',1);
3648: end if;
3649: OE_Delayed_Requests_Pvt.log_request(
3650: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3651: p_entity_id => p_x_line_rec.line_id,
3652: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3653: p_requesting_entity_id => p_x_line_rec.line_id,
3654: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,

Line 3652: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3648: end if;
3649: OE_Delayed_Requests_Pvt.log_request(
3650: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3651: p_entity_id => p_x_line_rec.line_id,
3652: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3653: p_requesting_entity_id => p_x_line_rec.line_id,
3654: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,
3655: x_return_status => l_return_status);
3656:

Line 3654: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,

3650: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3651: p_entity_id => p_x_line_rec.line_id,
3652: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3653: p_requesting_entity_id => p_x_line_rec.line_id,
3654: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,
3655: x_return_status => l_return_status);
3656:
3657: END IF; /* delayed request -- G_CASCADE_OPTIONS_SERVICE */
3658: END IF; /*l_serviceable_item = 'Y' */

Line 3669: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_instructions,p_old_line_rec.shipping_instructions)

3665: /*lchen -- bug #1761154 end*/
3666:
3667: /* End of service related columns */
3668:
3669: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_instructions,p_old_line_rec.shipping_instructions)
3670: THEN
3671: -- Need to Call Shipping Update
3672: l_update_shipping := FND_API.G_TRUE;
3673: END IF;

Line 3675: IF NOT OE_GLOBALS.Equal(p_x_line_rec.packing_instructions,p_old_line_rec.packing_instructions)

3671: -- Need to Call Shipping Update
3672: l_update_shipping := FND_API.G_TRUE;
3673: END IF;
3674:
3675: IF NOT OE_GLOBALS.Equal(p_x_line_rec.packing_instructions,p_old_line_rec.packing_instructions)
3676: THEN
3677: -- Need to Call Shipping Update
3678: l_update_shipping := FND_API.G_TRUE;
3679: END IF;

Line 3683: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)

3679: END IF;
3680:
3681: -- Added for the bug 2939731
3682:
3683: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)
3684: THEN
3685: -- Need to Call Shipping Update
3686: l_update_shipping := FND_API.G_TRUE;
3687: END IF;

Line 3692: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)

3688:
3689:
3690: -- adding check for changes in project/task
3691:
3692: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
3693: THEN
3694: -- Need to Call Shipping Update
3695: l_update_shipping := FND_API.G_TRUE;
3696: END IF;

Line 3699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)

3695: l_update_shipping := FND_API.G_TRUE;
3696: END IF;
3697:
3698:
3699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
3700: THEN
3701: -- Need to Call Shipping Update
3702: l_update_shipping := FND_API.G_TRUE;
3703: END IF;

Line 3707: IF NOT OE_GLOBALS.Equal(p_x_line_rec.created_by,p_old_line_rec.created_by)

3703: END IF;
3704:
3705:
3706: --ER#7479609 start
3707: IF NOT OE_GLOBALS.Equal(p_x_line_rec.created_by,p_old_line_rec.created_by)
3708: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3709: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3710: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3711: THEN

Line 3708: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3704:
3705:
3706: --ER#7479609 start
3707: IF NOT OE_GLOBALS.Equal(p_x_line_rec.created_by,p_old_line_rec.created_by)
3708: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3709: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3710: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3711: THEN
3712: IF l_debug_level > 0 then

Line 3719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3715: ' Entity ID: '|| to_char(p_x_line_rec.created_by));
3716: END IF;
3717:
3718: OE_delayed_requests_Pvt.log_request(
3719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3720: p_entity_id => p_x_line_rec.line_id,
3721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3722: p_requesting_entity_id => p_x_line_rec.line_id,
3723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3717:
3718: OE_delayed_requests_Pvt.log_request(
3719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3720: p_entity_id => p_x_line_rec.line_id,
3721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3722: p_requesting_entity_id => p_x_line_rec.line_id,
3723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3724: p_request_unique_key1 => 'CREATED_BY',
3725: p_param1 => 'CB',

Line 3723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3720: p_entity_id => p_x_line_rec.line_id,
3721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3722: p_requesting_entity_id => p_x_line_rec.line_id,
3723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3724: p_request_unique_key1 => 'CREATED_BY',
3725: p_param1 => 'CB',
3726: p_param2 => p_x_line_rec.created_by,
3727: x_return_status => l_return_status);

Line 3730: IF NOT OE_GLOBALS.Equal(p_x_line_rec.creation_date,p_old_line_rec.creation_date)

3726: p_param2 => p_x_line_rec.created_by,
3727: x_return_status => l_return_status);
3728: END IF;
3729:
3730: IF NOT OE_GLOBALS.Equal(p_x_line_rec.creation_date,p_old_line_rec.creation_date)
3731: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3732: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3733: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3734: THEN

Line 3731: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3727: x_return_status => l_return_status);
3728: END IF;
3729:
3730: IF NOT OE_GLOBALS.Equal(p_x_line_rec.creation_date,p_old_line_rec.creation_date)
3731: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3732: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3733: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3734: THEN
3735: IF l_debug_level > 0 then

Line 3742: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3738: ' Entity ID: '|| to_char(p_x_line_rec.creation_date));
3739: END IF;
3740:
3741: OE_delayed_requests_Pvt.log_request(
3742: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3743: p_entity_id => p_x_line_rec.line_id,
3744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3745: p_requesting_entity_id => p_x_line_rec.line_id,
3746: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3740:
3741: OE_delayed_requests_Pvt.log_request(
3742: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3743: p_entity_id => p_x_line_rec.line_id,
3744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3745: p_requesting_entity_id => p_x_line_rec.line_id,
3746: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3747: p_request_unique_key1 => 'CREATION_DATE',
3748: p_param1 => 'CD',

Line 3746: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3742: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3743: p_entity_id => p_x_line_rec.line_id,
3744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3745: p_requesting_entity_id => p_x_line_rec.line_id,
3746: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3747: p_request_unique_key1 => 'CREATION_DATE',
3748: p_param1 => 'CD',
3749: p_param2 => p_x_line_rec.creation_date,
3750: x_return_status => l_return_status);

Line 3753: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)

3749: p_param2 => p_x_line_rec.creation_date,
3750: x_return_status => l_return_status);
3751: END IF;
3752:
3753: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
3754: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3755: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3756: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3757: THEN

Line 3754: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3750: x_return_status => l_return_status);
3751: END IF;
3752:
3753: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
3754: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3755: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3756: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3757: THEN
3758: IF l_debug_level > 0 then

Line 3765: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3761: ' Entity ID: '|| to_char(p_x_line_rec.sold_to_org_id));
3762: END IF;
3763:
3764: OE_delayed_requests_Pvt.log_request(
3765: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3766: p_entity_id => p_x_line_rec.line_id,
3767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3768: p_requesting_entity_id => p_x_line_rec.line_id,
3769: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3763:
3764: OE_delayed_requests_Pvt.log_request(
3765: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3766: p_entity_id => p_x_line_rec.line_id,
3767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3768: p_requesting_entity_id => p_x_line_rec.line_id,
3769: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3770: p_request_unique_key1 => 'CUSTOMER',
3771: p_param1 => 'C',

Line 3769: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3765: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3766: p_entity_id => p_x_line_rec.line_id,
3767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3768: p_requesting_entity_id => p_x_line_rec.line_id,
3769: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3770: p_request_unique_key1 => 'CUSTOMER',
3771: p_param1 => 'C',
3772: p_param2 => p_x_line_rec.sold_to_org_id,
3773: x_return_status => l_return_status);

Line 3776: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)

3772: p_param2 => p_x_line_rec.sold_to_org_id,
3773: x_return_status => l_return_status);
3774: END IF;
3775:
3776: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
3777: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3778: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3779: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3780: THEN

Line 3777: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3773: x_return_status => l_return_status);
3774: END IF;
3775:
3776: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
3777: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3778: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3779: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3780: THEN
3781: IF l_debug_level > 0 then

Line 3788: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3784: ' Entity ID: '|| to_char(p_x_line_rec.deliver_to_org_id));
3785: END IF;
3786:
3787: OE_delayed_requests_Pvt.log_request(
3788: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3789: p_entity_id => p_x_line_rec.line_id,
3790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3791: p_requesting_entity_id => p_x_line_rec.line_id,
3792: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3786:
3787: OE_delayed_requests_Pvt.log_request(
3788: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3789: p_entity_id => p_x_line_rec.line_id,
3790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3791: p_requesting_entity_id => p_x_line_rec.line_id,
3792: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3793: p_request_unique_key1 => 'DELIVER_TO',
3794: p_param1 => 'D',

Line 3792: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3788: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3789: p_entity_id => p_x_line_rec.line_id,
3790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3791: p_requesting_entity_id => p_x_line_rec.line_id,
3792: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3793: p_request_unique_key1 => 'DELIVER_TO',
3794: p_param1 => 'D',
3795: p_param2 => p_x_line_rec.deliver_to_org_id,
3796: x_return_status => l_return_status);

Line 3799: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)

3795: p_param2 => p_x_line_rec.deliver_to_org_id,
3796: x_return_status => l_return_status);
3797: END IF;
3798:
3799: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
3800: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3801: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3802: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3803: THEN

Line 3800: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3796: x_return_status => l_return_status);
3797: END IF;
3798:
3799: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
3800: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3801: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3802: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3803: THEN
3804: IF l_debug_level > 0 then

Line 3811: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3807: ' Entity ID: '|| to_char(p_x_line_rec.line_type_id));
3808: END IF;
3809:
3810: OE_delayed_requests_Pvt.log_request(
3811: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3812: p_entity_id => p_x_line_rec.line_id,
3813: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3814: p_requesting_entity_id => p_x_line_rec.line_id,
3815: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3813: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3809:
3810: OE_delayed_requests_Pvt.log_request(
3811: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3812: p_entity_id => p_x_line_rec.line_id,
3813: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3814: p_requesting_entity_id => p_x_line_rec.line_id,
3815: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3816: p_request_unique_key1 => 'LINE_TYPE',
3817: p_param1 => 'LT',

Line 3815: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3811: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3812: p_entity_id => p_x_line_rec.line_id,
3813: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3814: p_requesting_entity_id => p_x_line_rec.line_id,
3815: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3816: p_request_unique_key1 => 'LINE_TYPE',
3817: p_param1 => 'LT',
3818: p_param2 => p_x_line_rec.line_type_id,
3819: x_return_status => l_return_status);

Line 3822: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)

3818: p_param2 => p_x_line_rec.line_type_id,
3819: x_return_status => l_return_status);
3820: END IF;
3821:
3822: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
3823: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3824: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3825: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3826: THEN

Line 3823: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3819: x_return_status => l_return_status);
3820: END IF;
3821:
3822: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
3823: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3824: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3825: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3826: THEN
3827: IF l_debug_level > 0 then

Line 3834: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3830: ' Entity ID: '|| to_char(p_x_line_rec.payment_term_id));
3831: END IF;
3832:
3833: OE_delayed_requests_Pvt.log_request(
3834: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3835: p_entity_id => p_x_line_rec.line_id,
3836: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3837: p_requesting_entity_id => p_x_line_rec.line_id,
3838: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3836: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3832:
3833: OE_delayed_requests_Pvt.log_request(
3834: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3835: p_entity_id => p_x_line_rec.line_id,
3836: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3837: p_requesting_entity_id => p_x_line_rec.line_id,
3838: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3839: p_request_unique_key1 => 'TERM',
3840: p_param1 => 'PT',

Line 3838: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3834: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3835: p_entity_id => p_x_line_rec.line_id,
3836: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3837: p_requesting_entity_id => p_x_line_rec.line_id,
3838: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3839: p_request_unique_key1 => 'TERM',
3840: p_param1 => 'PT',
3841: p_param2 => p_x_line_rec.payment_term_id,
3842: x_return_status => l_return_status);

Line 3845: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)

3841: p_param2 => p_x_line_rec.payment_term_id,
3842: x_return_status => l_return_status);
3843: END IF;
3844:
3845: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
3846: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3847: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3848: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3849: THEN

Line 3846: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3842: x_return_status => l_return_status);
3843: END IF;
3844:
3845: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
3846: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3847: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3848: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3849: THEN
3850: IF l_debug_level > 0 then

Line 3857: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3853: ' Entity ID: '|| to_char(p_x_line_rec.price_list_id));
3854: END IF;
3855:
3856: OE_delayed_requests_Pvt.log_request(
3857: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3858: p_entity_id => p_x_line_rec.line_id,
3859: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3860: p_requesting_entity_id => p_x_line_rec.line_id,
3861: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3859: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3855:
3856: OE_delayed_requests_Pvt.log_request(
3857: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3858: p_entity_id => p_x_line_rec.line_id,
3859: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3860: p_requesting_entity_id => p_x_line_rec.line_id,
3861: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3862: p_request_unique_key1 => 'PRICE_LIST',
3863: p_param1 => 'PL',

Line 3861: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3857: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3858: p_entity_id => p_x_line_rec.line_id,
3859: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3860: p_requesting_entity_id => p_x_line_rec.line_id,
3861: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3862: p_request_unique_key1 => 'PRICE_LIST',
3863: p_param1 => 'PL',
3864: p_param2 => p_x_line_rec.price_list_id,
3865: x_return_status => l_return_status);

Line 3868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)

3864: p_param2 => p_x_line_rec.price_list_id,
3865: x_return_status => l_return_status);
3866: END IF;
3867:
3868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
3869: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3870: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3871: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3872: THEN

Line 3869: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3865: x_return_status => l_return_status);
3866: END IF;
3867:
3868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
3869: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3870: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3871: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3872: THEN
3873: IF l_debug_level > 0 then

Line 3880: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3876: ' Entity ID: '|| to_char(p_x_line_rec.project_id));
3877: END IF;
3878:
3879: OE_delayed_requests_Pvt.log_request(
3880: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3881: p_entity_id => p_x_line_rec.line_id,
3882: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3883: p_requesting_entity_id => p_x_line_rec.line_id,
3884: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3882: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3878:
3879: OE_delayed_requests_Pvt.log_request(
3880: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3881: p_entity_id => p_x_line_rec.line_id,
3882: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3883: p_requesting_entity_id => p_x_line_rec.line_id,
3884: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3885: p_request_unique_key1 => 'PROJECT',
3886: p_param1 => 'PR',

Line 3884: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3880: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3881: p_entity_id => p_x_line_rec.line_id,
3882: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3883: p_requesting_entity_id => p_x_line_rec.line_id,
3884: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3885: p_request_unique_key1 => 'PROJECT',
3886: p_param1 => 'PR',
3887: p_param2 => p_x_line_rec.project_id,
3888: x_return_status => l_return_status);

Line 3891: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)

3887: p_param2 => p_x_line_rec.project_id,
3888: x_return_status => l_return_status);
3889: END IF;
3890:
3891: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
3892: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3893: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3894: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3895: THEN

Line 3892: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3888: x_return_status => l_return_status);
3889: END IF;
3890:
3891: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
3892: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3893: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3894: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3895: THEN
3896: IF l_debug_level > 0 then

Line 3903: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3899: ' Entity ID: '|| to_char(p_x_line_rec.shipping_method_code));
3900: END IF;
3901:
3902: OE_delayed_requests_Pvt.log_request(
3903: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3904: p_entity_id => p_x_line_rec.line_id,
3905: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3906: p_requesting_entity_id => p_x_line_rec.line_id,
3907: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3905: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3901:
3902: OE_delayed_requests_Pvt.log_request(
3903: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3904: p_entity_id => p_x_line_rec.line_id,
3905: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3906: p_requesting_entity_id => p_x_line_rec.line_id,
3907: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3908: p_request_unique_key1 => 'SHIP_METHOD',
3909: p_param1 => 'SM',

Line 3907: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3903: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3904: p_entity_id => p_x_line_rec.line_id,
3905: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3906: p_requesting_entity_id => p_x_line_rec.line_id,
3907: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3908: p_request_unique_key1 => 'SHIP_METHOD',
3909: p_param1 => 'SM',
3910: p_param2 => p_x_line_rec.shipping_method_code,
3911: x_return_status => l_return_status);

Line 3914: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,p_old_line_rec.source_type_code)

3910: p_param2 => p_x_line_rec.shipping_method_code,
3911: x_return_status => l_return_status);
3912: END IF;
3913:
3914: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,p_old_line_rec.source_type_code)
3915: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3916: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3917: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3918: THEN

Line 3915: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3911: x_return_status => l_return_status);
3912: END IF;
3913:
3914: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,p_old_line_rec.source_type_code)
3915: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3916: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3917: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3918: THEN
3919: IF l_debug_level > 0 then

Line 3926: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3922: ' Entity ID: '|| to_char(p_x_line_rec.source_type_code));
3923: END IF;
3924:
3925: OE_delayed_requests_Pvt.log_request(
3926: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3927: p_entity_id => p_x_line_rec.line_id,
3928: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3929: p_requesting_entity_id => p_x_line_rec.line_id,
3930: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3928: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3924:
3925: OE_delayed_requests_Pvt.log_request(
3926: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3927: p_entity_id => p_x_line_rec.line_id,
3928: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3929: p_requesting_entity_id => p_x_line_rec.line_id,
3930: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3931: p_request_unique_key1 => 'SOURCE_TYPE',
3932: p_param1 => 'ST',

Line 3930: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3926: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3927: p_entity_id => p_x_line_rec.line_id,
3928: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3929: p_requesting_entity_id => p_x_line_rec.line_id,
3930: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3931: p_request_unique_key1 => 'SOURCE_TYPE',
3932: p_param1 => 'ST',
3933: p_param2 => p_x_line_rec.source_type_code,
3934: x_return_status => l_return_status);

Line 3937: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)

3933: p_param2 => p_x_line_rec.source_type_code,
3934: x_return_status => l_return_status);
3935: END IF;
3936:
3937: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
3938: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3939: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3940: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3941: THEN

Line 3938: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3934: x_return_status => l_return_status);
3935: END IF;
3936:
3937: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
3938: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3939: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3940: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3941: THEN
3942: IF l_debug_level > 0 then

Line 3949: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3945: ' Entity ID: '|| to_char(p_x_line_rec.task_id));
3946: END IF;
3947:
3948: OE_delayed_requests_Pvt.log_request(
3949: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3950: p_entity_id => p_x_line_rec.line_id,
3951: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3952: p_requesting_entity_id => p_x_line_rec.line_id,
3953: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3951: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3947:
3948: OE_delayed_requests_Pvt.log_request(
3949: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3950: p_entity_id => p_x_line_rec.line_id,
3951: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3952: p_requesting_entity_id => p_x_line_rec.line_id,
3953: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3954: p_request_unique_key1 => 'TASK',
3955: p_param1 => 'T',

Line 3953: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3949: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3950: p_entity_id => p_x_line_rec.line_id,
3951: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3952: p_requesting_entity_id => p_x_line_rec.line_id,
3953: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3954: p_request_unique_key1 => 'TASK',
3955: p_param1 => 'T',
3956: p_param2 => p_x_line_rec.task_id,
3957: x_return_status => l_return_status);

Line 3960: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)

3956: p_param2 => p_x_line_rec.task_id,
3957: x_return_status => l_return_status);
3958: END IF;
3959:
3960: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
3961: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3962: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3963: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3964: THEN

Line 3961: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3957: x_return_status => l_return_status);
3958: END IF;
3959:
3960: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
3961: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3962: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
3963: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3964: THEN
3965: IF l_debug_level > 0 then

Line 3972: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3968: ' Entity ID: '|| to_char(p_x_line_rec.inventory_item_id));
3969: END IF;
3970:
3971: OE_delayed_requests_Pvt.log_request(
3972: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3973: p_entity_id => p_x_line_rec.line_id,
3974: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3975: p_requesting_entity_id => p_x_line_rec.line_id,
3976: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3974: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3970:
3971: OE_delayed_requests_Pvt.log_request(
3972: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3973: p_entity_id => p_x_line_rec.line_id,
3974: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3975: p_requesting_entity_id => p_x_line_rec.line_id,
3976: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3977: p_request_unique_key1 => 'TOP_MODEL',
3978: p_param1 => 'TM',

Line 3976: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3972: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3973: p_entity_id => p_x_line_rec.line_id,
3974: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3975: p_requesting_entity_id => p_x_line_rec.line_id,
3976: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3977: p_request_unique_key1 => 'TOP_MODEL',
3978: p_param1 => 'TM',
3979: p_param2 => p_x_line_rec.inventory_item_id,
3980: x_return_status => l_return_status);

Line 3987: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,p_old_line_rec.commitment_id)

3983:
3984: --ER#7479609 end
3985:
3986: -- bug 1829201, commitment related change.
3987: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,p_old_line_rec.commitment_id)
3988: THEN
3989:
3990: l_calculate_commitment_flag := 'Y';
3991: OE_GLOBALS.G_TAX_FLAG := 'Y';

Line 3991: OE_GLOBALS.G_TAX_FLAG := 'Y';

3987: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,p_old_line_rec.commitment_id)
3988: THEN
3989:
3990: l_calculate_commitment_flag := 'Y';
3991: OE_GLOBALS.G_TAX_FLAG := 'Y';
3992:
3993: -- log delayed request for Verify_Payment.
3994: if l_debug_level > 0 then
3995: oe_debug_pub.add('log verify payment delayed request for change in commitment_id', 3);

Line 4000: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_applied_amount,p_old_line_rec.commitment_applied_amount)

3996: end if;
3997: l_verify_payment_flag := 'Y';
3998: END IF;
3999:
4000: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_applied_amount,p_old_line_rec.commitment_applied_amount)
4001: AND OE_Commitment_Pvt.Do_Commitment_Sequencing
4002: AND oe_code_control.code_release_level >= '110510'
4003: AND p_x_line_rec.commitment_id IS NOT NULL
4004: THEN

Line 4017: NOT OE_GLOBALS.Equal(p_x_line_rec.transaction_phase_code

4013: -- updated during complete negotiation WF activity
4014: IF
4015: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
4016: AND
4017: NOT OE_GLOBALS.Equal(p_x_line_rec.transaction_phase_code
4018: ,p_old_line_rec.transaction_phase_code)
4019: THEN
4020:
4021: -- NOTE: Evaluate Hold Source Requests will be directly executed

Line 4035: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

4031: if l_debug_level > 0 then
4032: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
4033: end if;
4034:
4035: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4036: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4037: p_x_line_rec.ato_line_id is NULL AND
4038: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4039: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

Line 4036: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

4032: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
4033: end if;
4034:
4035: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4036: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4037: p_x_line_rec.ato_line_id is NULL AND
4038: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4039: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4040: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))

Line 4038: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

4034:
4035: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4036: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4037: p_x_line_rec.ato_line_id is NULL AND
4038: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4039: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4040: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
4041: THEN
4042: p_x_line_rec.explosion_date := null;

Line 4039: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

4035: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4036: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4037: p_x_line_rec.ato_line_id is NULL AND
4038: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4039: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4040: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
4041: THEN
4042: p_x_line_rec.explosion_date := null;
4043: l_count := l_count + 1;

Line 4060: IF NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)

4056: -- QUOTING changes: END
4057:
4058: --Customer Acceptance:: Log delayed request to default contingency attributes
4059:
4060: IF NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)
4061: THEN
4062: --Customer Acceptance
4063: l_def_contingency_attributes := FND_API.G_TRUE;
4064: END IF;

Line 4071: p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE)

4067: oe_debug_pub.add('operation:'||p_x_line_rec.operation||' booked_flag:'||p_x_line_rec.booked_flag||' new contingency_id: '||p_x_line_rec.contingency_id ||' old contingency_id: '||p_old_line_rec.contingency_id);
4068: END IF;
4069: IF NVL(OE_SYS_PARAMETERS.VALUE('ENABLE_FULFILLMENT_ACCEPTANCE'), 'N') = 'Y'
4070: AND (NVL( p_x_line_rec.booked_flag, 'N') = 'N' OR
4071: p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE)
4072: AND l_def_contingency_attributes = FND_API.G_TRUE
4073: AND p_x_line_rec.inventory_item_id IS NOT NULL
4074: AND p_x_line_rec.inventory_item_id <> FND_API.G_MISS_NUM
4075: AND p_x_line_rec.line_type_id IS NOT NULL

Line 4084: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NULL AND NVL( p_x_line_rec.booked_flag, 'N') = 'N' AND nvl(p_x_line_rec.contingency_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) OR

4080: p_x_line_rec.source_document_type_id = 10 OR
4081: (p_x_line_rec.order_source_id=27 AND p_x_line_rec.retrobill_request_id IS NOT NULL) OR
4082: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4083: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4084: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NULL AND NVL( p_x_line_rec.booked_flag, 'N') = 'N' AND nvl(p_x_line_rec.contingency_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) OR
4085: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4086: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE AND NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)) OR
4087: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4088: IF l_debug_level > 0 THEN

Line 4085: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR

4081: (p_x_line_rec.order_source_id=27 AND p_x_line_rec.retrobill_request_id IS NOT NULL) OR
4082: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4083: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4084: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NULL AND NVL( p_x_line_rec.booked_flag, 'N') = 'N' AND nvl(p_x_line_rec.contingency_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) OR
4085: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4086: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE AND NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)) OR
4087: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4088: IF l_debug_level > 0 THEN
4089: oe_debug_pub.add('Item_type_code:'||p_x_line_rec.item_type_code||'-Do not default Contingency Attributes for this line' );

Line 4086: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE AND NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)) OR

4082: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4083: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4084: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NULL AND NVL( p_x_line_rec.booked_flag, 'N') = 'N' AND nvl(p_x_line_rec.contingency_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) OR
4085: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4086: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE AND NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)) OR
4087: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4088: IF l_debug_level > 0 THEN
4089: oe_debug_pub.add('Item_type_code:'||p_x_line_rec.item_type_code||'-Do not default Contingency Attributes for this line' );
4090: END IF;

Line 4102: , p_operation => OE_GLOBALS.G_OPR_DELETE);

4098: , p_inventory_item_id => p_x_line_rec.inventory_item_id
4099: , p_shippable_flag => p_x_line_rec.shippable_flag
4100: , p_org_id => p_x_line_rec.org_id
4101: , p_accounting_rule_id => p_x_line_rec.accounting_rule_id
4102: , p_operation => OE_GLOBALS.G_OPR_DELETE);
4103:
4104: ELSE
4105:
4106: OE_ACCEPTANCE_UTIL.Register_Changed_Lines(

Line 4120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4116: , p_operation => p_x_line_rec.operation);
4117:
4118: /** Logic to Default Contingency attributes**/
4119: oe_delayed_requests_pvt.log_request(
4120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4121: p_entity_id => p_x_line_rec.header_id,
4122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4123: p_requesting_entity_id => p_x_line_rec.header_id,
4124: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,

Line 4122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4118: /** Logic to Default Contingency attributes**/
4119: oe_delayed_requests_pvt.log_request(
4120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4121: p_entity_id => p_x_line_rec.header_id,
4122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4123: p_requesting_entity_id => p_x_line_rec.header_id,
4124: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,
4125: x_return_status => l_return_status);
4126:

Line 4124: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,

4120: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4121: p_entity_id => p_x_line_rec.header_id,
4122: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4123: p_requesting_entity_id => p_x_line_rec.header_id,
4124: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,
4125: x_return_status => l_return_status);
4126:
4127: END IF;
4128: END IF;

Line 4137: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')) THEN

4133: -- interfaced with Shipping.
4134:
4135: IF (p_x_line_rec.shipping_interfaced_flag = 'Y' AND
4136: (l_update_shipping = FND_API.G_TRUE OR l_explosion_date_changed = FND_API.G_TRUE) AND
4137: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')) THEN
4138:
4139: if l_debug_level > 0 then
4140: oe_debug_pub.ADD('Logging update shipping delayed request for line ID : '|| to_char(p_x_line_rec.line_id) ,1);
4141: end if;

Line 4144: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4140: oe_debug_pub.ADD('Logging update shipping delayed request for line ID : '|| to_char(p_x_line_rec.line_id) ,1);
4141: end if;
4142:
4143: OE_Delayed_Requests_Pvt.Log_Request(
4144: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4145: p_entity_id => p_x_line_rec.line_id,
4146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4147: p_requesting_entity_id => p_x_line_rec.line_id,
4148: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 4146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4142:
4143: OE_Delayed_Requests_Pvt.Log_Request(
4144: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4145: p_entity_id => p_x_line_rec.line_id,
4146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4147: p_requesting_entity_id => p_x_line_rec.line_id,
4148: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
4149: p_request_unique_key1 => p_x_line_rec.operation,
4150: p_param1 => l_update_shipping,

Line 4148: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

4144: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4145: p_entity_id => p_x_line_rec.line_id,
4146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4147: p_requesting_entity_id => p_x_line_rec.line_id,
4148: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
4149: p_request_unique_key1 => p_x_line_rec.operation,
4150: p_param1 => l_update_shipping,
4151: p_param2 => l_explosion_date_changed,
4152: p_param5 => l_ordered_quantity_changed,

Line 4178: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4174: l_from_header_id := p_x_line_rec.source_document_id;
4175: End If;
4176:
4177: OE_delayed_requests_Pvt.log_request(
4178: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4179: p_entity_id => p_x_line_rec.line_id,
4180: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4181: p_requesting_entity_id => p_x_line_rec.line_id,
4182: p_param1 => p_x_line_rec.header_id,

Line 4180: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4176:
4177: OE_delayed_requests_Pvt.log_request(
4178: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4179: p_entity_id => p_x_line_rec.line_id,
4180: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4181: p_requesting_entity_id => p_x_line_rec.line_id,
4182: p_param1 => p_x_line_rec.header_id,
4183: p_param2 => l_from_line_id,
4184: p_param3 => l_from_header_id,

Line 4188: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,

4184: p_param3 => l_from_header_id,
4185: p_param4 => p_x_line_rec.line_category_code,
4186: p_param5 => p_x_line_rec.split_by,
4187: p_param6 => p_x_line_rec.booked_flag,
4188: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,
4189: x_return_status => l_return_status);
4190:
4191: end if;
4192:

Line 4199: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

4195: IF l_copy_service_fields and
4196: p_x_line_rec.item_type_code = 'SERVICE' and
4197: p_x_line_rec.service_reference_type_code = 'ORDER' and
4198: p_x_line_rec.service_reference_line_id is NOT NULL and
4199: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
4200: BEGIN
4201:
4202: Select 'Y'
4203: INTO l_is_model

Line 4218: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4214: if l_debug_level > 0 then
4215: oe_debug_pub.add('CSH Before log request --G_UPDATE_SERVICE', 1);
4216: end if;
4217: OE_Delayed_Requests_Pvt.log_request(
4218: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4219: p_entity_id => p_x_line_rec.line_id,
4220: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4221: p_requesting_entity_id => p_x_line_rec.line_id,
4222: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,

Line 4220: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4216: end if;
4217: OE_Delayed_Requests_Pvt.log_request(
4218: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4219: p_entity_id => p_x_line_rec.line_id,
4220: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4221: p_requesting_entity_id => p_x_line_rec.line_id,
4222: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,
4223: x_return_status => l_return_status);
4224: END IF;

Line 4222: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,

4218: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4219: p_entity_id => p_x_line_rec.line_id,
4220: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4221: p_requesting_entity_id => p_x_line_rec.line_id,
4222: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,
4223: x_return_status => l_return_status);
4224: END IF;
4225: END IF; /* IF l_copy_service_fields... = TRUE */
4226:

Line 4248: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4244: l_from_header_id := p_x_line_rec.source_document_id;
4245: End IF;
4246:
4247: OE_delayed_requests_Pvt.log_request(
4248: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4249: p_entity_id => p_x_line_rec.line_id,
4250: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4251: p_requesting_entity_id => p_x_line_rec.line_id,
4252: p_param1 => p_x_line_rec.header_id,

Line 4250: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4246:
4247: OE_delayed_requests_Pvt.log_request(
4248: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4249: p_entity_id => p_x_line_rec.line_id,
4250: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4251: p_requesting_entity_id => p_x_line_rec.line_id,
4252: p_param1 => p_x_line_rec.header_id,
4253: p_param2 => l_from_line_id,
4254: p_param3 => l_from_header_id,

Line 4255: p_request_type => OE_GLOBALS.G_COPY_PRICING_ATTRIBUTES,

4251: p_requesting_entity_id => p_x_line_rec.line_id,
4252: p_param1 => p_x_line_rec.header_id,
4253: p_param2 => l_from_line_id,
4254: p_param3 => l_from_header_id,
4255: p_request_type => OE_GLOBALS.G_COPY_PRICING_ATTRIBUTES,
4256: x_return_status => l_return_status);
4257:
4258: END IF;
4259:

Line 4277: oe_globals.g_price_flag := 'Y';

4273:
4274:
4275: If p_x_line_rec.item_type_code = 'INCLUDED' and
4276: l_charges_for_included_item = 'Y' Then
4277: oe_globals.g_price_flag := 'Y';
4278: --Elsif p_x_line_rec.item_type_code = 'CONFIG' THEN
4279: -- oe_globals.g_price_flag := 'Y';
4280: Else
4281: if l_debug_level > 0 then

Line 4279: -- oe_globals.g_price_flag := 'Y';

4275: If p_x_line_rec.item_type_code = 'INCLUDED' and
4276: l_charges_for_included_item = 'Y' Then
4277: oe_globals.g_price_flag := 'Y';
4278: --Elsif p_x_line_rec.item_type_code = 'CONFIG' THEN
4279: -- oe_globals.g_price_flag := 'Y';
4280: Else
4281: if l_debug_level > 0 then
4282: oe_debug_pub.add('2207809: no price for config item', 3);
4283: end if;

Line 4284: oe_globals.g_price_flag := 'N';

4280: Else
4281: if l_debug_level > 0 then
4282: oe_debug_pub.add('2207809: no price for config item', 3);
4283: end if;
4284: oe_globals.g_price_flag := 'N';
4285: End If;
4286: End If;
4287:
4288: -------------------------------------------------------------------

Line 4320: AND OE_GLOBALS.G_UI_FLAG

4316: p_x_line_rec.order_quantity_uom <> fnd_api.g_miss_char
4317: AND oe_code_control.code_release_level >= '110510'
4318: -- bug 3491752
4319: --AND /*nvl(fnd_profile.value('ONT_LIST_PRICE_OVERRIDE_PRIV'), 'NONE')*/ --G_LIST_PRICE_OVERRIDE = 'UNLIMITED' --bug4080363
4320: AND OE_GLOBALS.G_UI_FLAG
4321: AND OE_Globals.G_PRICING_RECURSION = 'N' THEN
4322:
4323: IF p_x_line_rec.unit_list_price IS NOT NULL AND
4324: p_x_line_rec.unit_list_price <> FND_API.G_MISS_NUM AND

Line 4321: AND OE_Globals.G_PRICING_RECURSION = 'N' THEN

4317: AND oe_code_control.code_release_level >= '110510'
4318: -- bug 3491752
4319: --AND /*nvl(fnd_profile.value('ONT_LIST_PRICE_OVERRIDE_PRIV'), 'NONE')*/ --G_LIST_PRICE_OVERRIDE = 'UNLIMITED' --bug4080363
4320: AND OE_GLOBALS.G_UI_FLAG
4321: AND OE_Globals.G_PRICING_RECURSION = 'N' THEN
4322:
4323: IF p_x_line_rec.unit_list_price IS NOT NULL AND
4324: p_x_line_rec.unit_list_price <> FND_API.G_MISS_NUM AND
4325: p_x_line_rec.original_list_price IS NOT NULL AND

Line 4354: IF oe_globals.g_price_flag = 'Y' and

4350: end if;
4351: L_Call_pricing := 'Y';
4352: End If;
4353: -- Override List Price
4354: IF oe_globals.g_price_flag = 'Y' and
4355: not l_no_price_flag and
4356: nvl(oe_globals.g_pricing_recursion,'N') <> 'Y' and
4357: --bsadri nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
4358: --For bug 7115648

Line 4356: nvl(oe_globals.g_pricing_recursion,'N') <> 'Y' and

4352: End If;
4353: -- Override List Price
4354: IF oe_globals.g_price_flag = 'Y' and
4355: not l_no_price_flag and
4356: nvl(oe_globals.g_pricing_recursion,'N') <> 'Y' and
4357: --bsadri nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
4358: --For bug 7115648
4359: p_x_line_rec.inventory_item_id is not null and
4360: --End of 7115648

Line 4375: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4371: if l_debug_level > 0 then
4372: oe_debug_pub.ADD('Logging REVERSE_LIMITS delayed request for LINE CANCEL ',1);
4373: end if;
4374: OE_delayed_requests_Pvt.log_request(
4375: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4376: p_entity_id => p_x_line_rec.line_id,
4377: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4378: p_requesting_entity_id => p_x_line_rec.line_id,
4379: p_request_unique_key1 => 'LINE',

Line 4377: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4373: end if;
4374: OE_delayed_requests_Pvt.log_request(
4375: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4376: p_entity_id => p_x_line_rec.line_id,
4377: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4378: p_requesting_entity_id => p_x_line_rec.line_id,
4379: p_request_unique_key1 => 'LINE',
4380: p_param1 => 'CANCEL',
4381: p_param2 => p_x_line_rec.price_request_code,

Line 4386: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

4382: p_param3 => NULL,
4383: p_param4 => NULL,
4384: p_param5 => NULL,
4385: p_param6 => NULL,
4386: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
4387: x_return_status => l_return_status);
4388: if l_debug_level > 0 then
4389: oe_debug_pub.ADD('REVERSE_LIMITS Delayed request has been logged',1);
4390: end if;

Line 4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or

4394: END IF;
4395: If
4396: ( (p_x_line_rec.unit_list_price is null or
4397: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea

Line 4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET

4395: If
4396: ( (p_x_line_rec.unit_list_price is null or
4397: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )

Line 4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or

4396: ( (p_x_line_rec.unit_list_price is null or
4397: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE

Line 4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or

4397: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
4405: )

Line 4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea

4398: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
4405: )
4406: --RT{

Line 4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )

4399: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
4405: )
4406: --RT{
4407: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)= FND_API.G_MISS_NUM

Line 4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE

4400: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
4401: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
4402: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
4403: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
4404: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
4405: )
4406: --RT{
4407: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)= FND_API.G_MISS_NUM
4408: --RT}

Line 4413: IF ((OE_GLOBALS.G_UI_FLAG)

4409: or l_call_pricing = 'Y' -- Override List Price
4410: then
4411:
4412:
4413: IF ((OE_GLOBALS.G_UI_FLAG)
4414: and OE_GLOBALS.G_DEFER_PRICING='N'
4415: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
4416: THEN
4417:

Line 4414: and OE_GLOBALS.G_DEFER_PRICING='N'

4410: then
4411:
4412:
4413: IF ((OE_GLOBALS.G_UI_FLAG)
4414: and OE_GLOBALS.G_DEFER_PRICING='N'
4415: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
4416: THEN
4417:
4418: l_Price_Control_Rec.pricing_event := 'PRICE';

Line 4457: IF NOT OE_GLOBALS.Equal(p_old_line_rec.unit_selling_price,

4453: -- Bug 2757443.
4454: -- Need to log delayed request for tax and commitment
4455: -- when unit_selling_price changes from null to not null
4456: -- during PRICE event.
4457: IF NOT OE_GLOBALS.Equal(p_old_line_rec.unit_selling_price,
4458: l_x_Line_Tbl(1).unit_selling_price) THEN
4459:
4460: OE_GLOBALS.G_TAX_FLAG := 'Y';
4461: IF l_x_Line_Tbl(1).commitment_id IS NOT NULL THEN

Line 4460: OE_GLOBALS.G_TAX_FLAG := 'Y';

4456: -- during PRICE event.
4457: IF NOT OE_GLOBALS.Equal(p_old_line_rec.unit_selling_price,
4458: l_x_Line_Tbl(1).unit_selling_price) THEN
4459:
4460: OE_GLOBALS.G_TAX_FLAG := 'Y';
4461: IF l_x_Line_Tbl(1).commitment_id IS NOT NULL THEN
4462: l_calculate_commitment_flag := 'Y';
4463: END IF;
4464: END IF;

Line 4484: IF ((OE_GLOBALS.G_UI_FLAG)

4480: End If; --end if for UI Flag Check
4481: if l_debug_level > 0 then
4482: oe_debug_pub.ADD('Logging delayed request for pricing');
4483: end if;
4484: IF ((OE_GLOBALS.G_UI_FLAG)
4485: and OE_GLOBALS.G_DEFER_PRICING='N'
4486: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
4487: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
4488: --RT

Line 4485: and OE_GLOBALS.G_DEFER_PRICING='N'

4481: if l_debug_level > 0 then
4482: oe_debug_pub.ADD('Logging delayed request for pricing');
4483: end if;
4484: IF ((OE_GLOBALS.G_UI_FLAG)
4485: and OE_GLOBALS.G_DEFER_PRICING='N'
4486: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
4487: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
4488: --RT
4489: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM THEN

Line 4487: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')

4483: end if;
4484: IF ((OE_GLOBALS.G_UI_FLAG)
4485: and OE_GLOBALS.G_DEFER_PRICING='N'
4486: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
4487: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
4488: --RT
4489: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM THEN
4490: if l_debug_level > 0 then
4491: oe_debug_pub.add('ui mode or config, included item'||p_x_line_rec.line_id);

Line 4508: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4504: oe_debug_pub.ADD('logging price line request');
4505: end if;
4506:
4507: OE_delayed_requests_Pvt.log_request(
4508: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4509: p_entity_id => p_x_line_rec.line_id,
4510: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4511: p_requesting_entity_id => p_x_line_rec.line_id,
4512: p_request_unique_key1 => 'LINE',

Line 4510: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4506:
4507: OE_delayed_requests_Pvt.log_request(
4508: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4509: p_entity_id => p_x_line_rec.line_id,
4510: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4511: p_requesting_entity_id => p_x_line_rec.line_id,
4512: p_request_unique_key1 => 'LINE',
4513: p_param1 => p_x_line_rec.header_id,
4514: p_param2 => 'LINE',

Line 4515: p_request_type => OE_GLOBALS.G_PRICE_LINE,

4511: p_requesting_entity_id => p_x_line_rec.line_id,
4512: p_request_unique_key1 => 'LINE',
4513: p_param1 => p_x_line_rec.header_id,
4514: p_param2 => 'LINE',
4515: p_request_type => OE_GLOBALS.G_PRICE_LINE,
4516: x_return_status => l_return_status);
4517: end if; --bug 2855794
4518:
4519: ELSE

Line 4522: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code) THEN

4518:
4519: ELSE
4520:
4521: IF OE_LINE_ADJ_UTIL.Is_Pricing_Related_Change(p_x_line_rec,p_old_line_rec)
4522: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code) THEN
4523: if l_debug_level > 0 then
4524: oe_debug_pub.add('renga-logging delayed req freight_for_included',1);
4525: end if;
4526:

Line 4528: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4524: oe_debug_pub.add('renga-logging delayed req freight_for_included',1);
4525: end if;
4526:
4527: OE_delayed_requests_Pvt.log_request(
4528: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4529: p_entity_id => p_x_line_rec.header_id,
4530: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4531: p_requesting_entity_id => p_x_line_rec.header_id,
4532: p_request_unique_key1 => 'ORDER',

Line 4530: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4526:
4527: OE_delayed_requests_Pvt.log_request(
4528: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4529: p_entity_id => p_x_line_rec.header_id,
4530: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4531: p_requesting_entity_id => p_x_line_rec.header_id,
4532: p_request_unique_key1 => 'ORDER',
4533: p_param1 => p_x_line_rec.header_id,
4534: p_param2 => 'ORDER',

Line 4535: p_request_type => OE_GLOBALS.G_FREIGHT_FOR_INCLUDED,

4531: p_requesting_entity_id => p_x_line_rec.header_id,
4532: p_request_unique_key1 => 'ORDER',
4533: p_param1 => p_x_line_rec.header_id,
4534: p_param2 => 'ORDER',
4535: p_request_type => OE_GLOBALS.G_FREIGHT_FOR_INCLUDED,
4536: x_return_status => l_return_status);
4537:
4538: if l_debug_level > 0 then
4539: oe_debug_pub.add('renga-after logging delayed req freight_for_included',1);

Line 4553: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4549: ELSE
4550: l_pricing_event := 'ORDER';
4551: END IF;
4552: OE_delayed_requests_Pvt.log_request(
4553: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4554: p_entity_id => p_x_line_rec.Header_Id,
4555: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4556: p_requesting_entity_id => p_x_line_rec.Header_Id,
4557: p_request_unique_key1 => l_pricing_event,

Line 4555: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4551: END IF;
4552: OE_delayed_requests_Pvt.log_request(
4553: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4554: p_entity_id => p_x_line_rec.Header_Id,
4555: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4556: p_requesting_entity_id => p_x_line_rec.Header_Id,
4557: p_request_unique_key1 => l_pricing_event,
4558: p_param1 => p_x_line_rec.header_id,
4559: p_param2 => l_pricing_event,

Line 4560: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

4556: p_requesting_entity_id => p_x_line_rec.Header_Id,
4557: p_request_unique_key1 => l_pricing_event,
4558: p_param1 => p_x_line_rec.header_id,
4559: p_param2 => l_pricing_event,
4560: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
4561: x_return_status => l_return_status);
4562: END IF; -- item_type_code not included
4563: ELSE
4564: if l_debug_level > 0 then

Line 4570: IF p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE THEN

4566: end if;
4567: --RT{
4568: IF nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)<>FND_API.G_MISS_NUM Then
4569: --call pricing for retrobilling lines in one shot (PRICE_ORDER)
4570: IF p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE THEN
4571: l_retrobill_operation:='CREATE';
4572: ELSE
4573: l_retrobill_operation:='UPDATE';
4574: END IF;

Line 4578: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4574: END IF;
4575:
4576:
4577: OE_delayed_requests_Pvt.log_request(
4578: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4579: p_entity_id => p_x_line_rec.Header_Id,
4580: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4581: p_requesting_entity_id => p_x_line_rec.Header_Id,
4582: p_request_unique_key1 => 'RETROBILL',

Line 4580: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4576:
4577: OE_delayed_requests_Pvt.log_request(
4578: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4579: p_entity_id => p_x_line_rec.Header_Id,
4580: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4581: p_requesting_entity_id => p_x_line_rec.Header_Id,
4582: p_request_unique_key1 => 'RETROBILL',
4583: p_param1 => p_x_line_rec.header_id,
4584: p_param2 => 'RETROBILL',

Line 4586: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

4582: p_request_unique_key1 => 'RETROBILL',
4583: p_param1 => p_x_line_rec.header_id,
4584: p_param2 => 'RETROBILL',
4585: p_param3 => l_retrobill_operation,
4586: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
4587: x_return_status => l_return_status);
4588:
4589: --copy the adjustments over to the new retrobilling line
4590: OE_delayed_requests_Pvt.log_request(

Line 4591: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4587: x_return_status => l_return_status);
4588:
4589: --copy the adjustments over to the new retrobilling line
4590: OE_delayed_requests_Pvt.log_request(
4591: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4592: p_entity_id => p_x_line_rec.line_id,
4593: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4594: p_requesting_entity_id => p_x_line_rec.line_id,
4595: p_param1 => p_x_line_rec.header_id,

Line 4593: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4589: --copy the adjustments over to the new retrobilling line
4590: OE_delayed_requests_Pvt.log_request(
4591: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4592: p_entity_id => p_x_line_rec.line_id,
4593: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4594: p_requesting_entity_id => p_x_line_rec.line_id,
4595: p_param1 => p_x_line_rec.header_id,
4596: --x_line_rec.orig_sys_line_ref stores orignial line_id
4597: --p_param2 is copy_line_line_id

Line 4605: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,

4601: p_param3 => p_x_line_rec.orig_sys_document_ref,
4602: p_param4 => p_x_line_rec.line_category_code,
4603: p_param5 => p_x_line_rec.split_by,
4604: p_param6 => p_x_line_rec.booked_flag,
4605: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,
4606: p_param7 => 'RETROBILL',
4607: p_param8 => p_x_line_rec.retrobill_request_id,
4608: x_return_status => l_return_status);
4609: --RT}

Line 4617: IF OE_GLOBALS.G_DEFER_PRICING='Y' AND

4613: ELSE
4614: l_pricing_event := 'BATCH';
4615: END IF;
4616:
4617: IF OE_GLOBALS.G_DEFER_PRICING='Y' AND
4618: p_x_line_rec.booked_flag='Y'AND
4619: p_x_line_rec.item_type_code <>'INCLUDED' THEN --2442012
4620: l_pricing_event := 'PRICE,BATCH,BOOK';
4621: ELSIF OE_GLOBALS.G_DEFER_PRICING='Y' THEN

Line 4621: ELSIF OE_GLOBALS.G_DEFER_PRICING='Y' THEN

4617: IF OE_GLOBALS.G_DEFER_PRICING='Y' AND
4618: p_x_line_rec.booked_flag='Y'AND
4619: p_x_line_rec.item_type_code <>'INCLUDED' THEN --2442012
4620: l_pricing_event := 'PRICE,BATCH,BOOK';
4621: ELSIF OE_GLOBALS.G_DEFER_PRICING='Y' THEN
4622: l_pricing_event := 'PRICE,BATCH';
4623: END IF;
4624:
4625: OE_delayed_requests_Pvt.log_request(

Line 4626: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4622: l_pricing_event := 'PRICE,BATCH';
4623: END IF;
4624:
4625: OE_delayed_requests_Pvt.log_request(
4626: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4627: p_entity_id => p_x_line_rec.Header_Id,
4628: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4629: p_requesting_entity_id => p_x_line_rec.Header_Id,
4630: p_request_unique_key1 => l_pricing_event,

Line 4628: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4624:
4625: OE_delayed_requests_Pvt.log_request(
4626: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4627: p_entity_id => p_x_line_rec.Header_Id,
4628: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4629: p_requesting_entity_id => p_x_line_rec.Header_Id,
4630: p_request_unique_key1 => l_pricing_event,
4631: p_param1 => p_x_line_rec.header_id,
4632: p_param2 => l_pricing_event,

Line 4633: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

4629: p_requesting_entity_id => p_x_line_rec.Header_Id,
4630: p_request_unique_key1 => l_pricing_event,
4631: p_param1 => p_x_line_rec.header_id,
4632: p_param2 => l_pricing_event,
4633: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
4634: x_return_status => l_return_status);
4635: END IF; --RT
4636: END IF; --2442012
4637:

Line 4640: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4636: END IF; --2442012
4637:
4638: /* If p_x_line_rec.booked_flag='Y' and p_x_line_rec.item_type_code <> 'INCLUDED' Then
4639: OE_delayed_requests_Pvt.log_request(
4640: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4641: p_entity_id => p_x_line_rec.Header_Id,
4642: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4643: p_requesting_entity_id => p_x_line_rec.Header_Id,
4644: p_request_unique_key1 => 'BOOK',

Line 4642: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4638: /* If p_x_line_rec.booked_flag='Y' and p_x_line_rec.item_type_code <> 'INCLUDED' Then
4639: OE_delayed_requests_Pvt.log_request(
4640: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4641: p_entity_id => p_x_line_rec.Header_Id,
4642: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4643: p_requesting_entity_id => p_x_line_rec.Header_Id,
4644: p_request_unique_key1 => 'BOOK',
4645: p_param1 => p_x_line_rec.header_id,
4646: p_param2 => 'BOOK',

Line 4647: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

4643: p_requesting_entity_id => p_x_line_rec.Header_Id,
4644: p_request_unique_key1 => 'BOOK',
4645: p_param1 => p_x_line_rec.header_id,
4646: p_param2 => 'BOOK',
4647: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
4648: x_return_status => l_return_status);
4649: End If;
4650: */
4651: -- fixed bug 1688064, move the following line out of IF block.

Line 4652: -- Oe_Globals.g_price_flag := 'N';

4648: x_return_status => l_return_status);
4649: End If;
4650: */
4651: -- fixed bug 1688064, move the following line out of IF block.
4652: -- Oe_Globals.g_price_flag := 'N';
4653: END IF;
4654:
4655: /* rlanka: Fix for Bug 1729372
4656:

Line 4664: oe_debug_pub.add('g_price_flag = ' || oe_globals.g_price_flag);

4660:
4661: */
4662:
4663: if l_debug_level > 0 then
4664: oe_debug_pub.add('g_price_flag = ' || oe_globals.g_price_flag);
4665: --oe_debug_pub.add('l_no_price_flag = '|| l_no_price_flag);
4666: oe_debug_pub.add('g_pricing_recursion = ' || oe_globals.g_pricing_recursion);
4667: oe_debug_pub.add('Ordered quantity = '|| to_char(p_x_line_rec.ordered_quantity));
4668: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);

Line 4666: oe_debug_pub.add('g_pricing_recursion = ' || oe_globals.g_pricing_recursion);

4662:
4663: if l_debug_level > 0 then
4664: oe_debug_pub.add('g_price_flag = ' || oe_globals.g_price_flag);
4665: --oe_debug_pub.add('l_no_price_flag = '|| l_no_price_flag);
4666: oe_debug_pub.add('g_pricing_recursion = ' || oe_globals.g_pricing_recursion);
4667: oe_debug_pub.add('Ordered quantity = '|| to_char(p_x_line_rec.ordered_quantity));
4668: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);
4669: oe_debug_pub.add('Calculate_price_flag = '|| p_x_line_rec.calculate_price_flag);
4670: end if;

Line 4672: if (oe_globals.g_price_flag = 'Y' and

4668: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);
4669: oe_debug_pub.add('Calculate_price_flag = '|| p_x_line_rec.calculate_price_flag);
4670: end if;
4671:
4672: if (oe_globals.g_price_flag = 'Y' and
4673: not l_no_price_flag and
4674: oe_globals.g_pricing_recursion = 'Y' and
4675: nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
4676: p_x_line_rec.Ordered_Quantity <> fnd_api.g_miss_num and

Line 4674: oe_globals.g_pricing_recursion = 'Y' and

4670: end if;
4671:
4672: if (oe_globals.g_price_flag = 'Y' and
4673: not l_no_price_flag and
4674: oe_globals.g_pricing_recursion = 'Y' and
4675: nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
4676: p_x_line_rec.Ordered_Quantity <> fnd_api.g_miss_num and
4677: p_x_line_rec.order_quantity_uom is not null and
4678: p_x_line_rec.order_quantity_uom <> fnd_api.g_miss_char and

Line 4704: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

4700: Else
4701: l_pricing_event := 'BATCH';
4702: End If;
4703: OE_delayed_requests_Pvt.log_request(
4704: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
4705: p_entity_id => p_x_line_rec.line_Id,
4706: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4707: p_requesting_entity_id => p_x_line_rec.line_Id,
4708: p_request_unique_key1 => l_pricing_event,

Line 4706: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4702: End If;
4703: OE_delayed_requests_Pvt.log_request(
4704: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
4705: p_entity_id => p_x_line_rec.line_Id,
4706: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4707: p_requesting_entity_id => p_x_line_rec.line_Id,
4708: p_request_unique_key1 => l_pricing_event,
4709: p_param1 => p_x_line_rec.header_id,
4710: p_param2 => l_pricing_event,

Line 4711: p_request_type => OE_GLOBALS.G_PRICE_LINE,

4707: p_requesting_entity_id => p_x_line_rec.line_Id,
4708: p_request_unique_key1 => l_pricing_event,
4709: p_param1 => p_x_line_rec.header_id,
4710: p_param2 => l_pricing_event,
4711: p_request_type => OE_GLOBALS.G_PRICE_LINE,
4712: x_return_status => l_return_status);
4713:
4714: /* if (p_x_line_rec.booked_flag = 'Y')
4715: then

Line 4718: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

4714: /* if (p_x_line_rec.booked_flag = 'Y')
4715: then
4716: oe_debug_pub.add('Booked order -- log a request to Price Line');
4717: OE_delayed_requests_Pvt.log_request(
4718: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
4719: p_entity_id => p_x_line_rec.line_Id,
4720: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4721: p_requesting_entity_id => p_x_line_rec.line_Id,
4722: p_request_unique_key1 => 'BOOK',

Line 4720: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4716: oe_debug_pub.add('Booked order -- log a request to Price Line');
4717: OE_delayed_requests_Pvt.log_request(
4718: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
4719: p_entity_id => p_x_line_rec.line_Id,
4720: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4721: p_requesting_entity_id => p_x_line_rec.line_Id,
4722: p_request_unique_key1 => 'BOOK',
4723: p_param1 => p_x_line_rec.header_id,
4724: p_param2 => 'BOOK',

Line 4725: p_request_type => OE_GLOBALS.G_PRICE_LINE,

4721: p_requesting_entity_id => p_x_line_rec.line_Id,
4722: p_request_unique_key1 => 'BOOK',
4723: p_param1 => p_x_line_rec.header_id,
4724: p_param2 => 'BOOK',
4725: p_request_type => OE_GLOBALS.G_PRICE_LINE,
4726: x_return_status => l_return_status);
4727: end if; -- if order is BOOKED
4728: */ --2442012
4729: end if; -- if new line created by Promotional modifier needs to be re-priced.

Line 4733: Oe_Globals.g_price_flag := 'N';

4729: end if; -- if new line created by Promotional modifier needs to be re-priced.
4730:
4731: -- end of fix for bug 1729372
4732:
4733: Oe_Globals.g_price_flag := 'N';
4734:
4735: If NOT OE_GLOBALS.Equal(p_x_line_rec.Shipped_Quantity,p_old_line_rec.Shipped_Quantity)
4736: --RT{
4737: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM

Line 4735: If NOT OE_GLOBALS.Equal(p_x_line_rec.Shipped_Quantity,p_old_line_rec.Shipped_Quantity)

4731: -- end of fix for bug 1729372
4732:
4733: Oe_Globals.g_price_flag := 'N';
4734:
4735: If NOT OE_GLOBALS.Equal(p_x_line_rec.Shipped_Quantity,p_old_line_rec.Shipped_Quantity)
4736: --RT{
4737: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM
4738: --RT}
4739: Then

Line 4748: IF l_x_result_out = OE_GLOBALS.G_PARTIALLY_SHIPPED THEN

4744: , p_shipped_quantity => p_x_line_rec.Shipped_Quantity
4745: , x_result_out => l_x_result_out
4746: );
4747:
4748: IF l_x_result_out = OE_GLOBALS.G_PARTIALLY_SHIPPED THEN
4749: -- This line will split, set the calculate_price_flag to 'P' if 'Y'
4750: IF (p_x_line_rec.calculate_price_flag = 'Y') THEN
4751: p_x_line_rec.calculate_price_flag := 'P';
4752: END IF;

Line 4757: Elsif p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4753:
4754:
4755: END IF;
4756:
4757: Elsif p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4758: and p_x_line_rec.split_by = 'SYSTEM'
4759: and NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT'
4760: and p_x_line_rec.calculate_price_flag = 'Y' Then
4761: p_x_line_rec.calculate_price_flag :='P';

Line 4765: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4761: p_x_line_rec.calculate_price_flag :='P';
4762: End If;
4763:
4764: OE_delayed_requests_Pvt.log_request(
4765: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4766: p_entity_id => p_x_line_rec.line_id,
4767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4768: p_requesting_entity_id => p_x_line_rec.line_id,
4769: p_request_unique_key1 => 'SHIP',

Line 4767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4763:
4764: OE_delayed_requests_Pvt.log_request(
4765: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4766: p_entity_id => p_x_line_rec.line_id,
4767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4768: p_requesting_entity_id => p_x_line_rec.line_id,
4769: p_request_unique_key1 => 'SHIP',
4770: p_param1 => p_x_line_rec.header_id,
4771: p_param2 => 'SHIP',

Line 4772: p_request_type => OE_GLOBALS.G_PRICE_LINE,

4768: p_requesting_entity_id => p_x_line_rec.line_id,
4769: p_request_unique_key1 => 'SHIP',
4770: p_param1 => p_x_line_rec.header_id,
4771: p_param2 => 'SHIP',
4772: p_request_type => OE_GLOBALS.G_PRICE_LINE,
4773: x_return_status => l_return_status);
4774: End If;
4775:
4776: -- change for bug 1406890

Line 4868: oe_globals.g_tax_flag := 'N';

4864: if l_debug_level > 0 then
4865: oe_debug_pub.add('Ren: no tax delayed request for include and config',1);
4866: end if;
4867:
4868: oe_globals.g_tax_flag := 'N';
4869:
4870: END IF;
4871: --changes for bug 2505961 begin
4872:

Line 4876: and oe_globals.g_tax_flag = 'Y'

4872:
4873: --commented the following for bug7306510 as the sql execution is no more required
4874: /*if p_x_line_rec.commitment_id is not null
4875: and p_x_line_rec.commitment_id <> FND_API.G_MISS_NUM
4876: and oe_globals.g_tax_flag = 'Y'
4877: then
4878: begin
4879: select nvl(tax_calculation_flag,'N') into l_tax_commt_flag
4880: from ra_cust_trx_types ract where ract.cust_trx_type_id =

Line 4913: IF ( oe_globals.g_tax_flag = 'Y' and

4909: -- tax calcualtion .ra_cust_trx_types.tax_calculation_flag is no more considered while logging delayed requests for tax
4910:
4911:
4912:
4913: IF ( oe_globals.g_tax_flag = 'Y' and
4914: l_current_event >= l_tax_calculation_event_code and
4915: /*bug7306510 ( l_tax_calculation_flag = 'Y' or
4916: p_x_line_rec.tax_exempt_flag = 'R' or l_tax_commt_flag = 'Y'
4917: or (l_tax_calculation_flag = 'N' and

Line 4928: IF (OE_GLOBALS.G_UI_FLAG) THEN

4924: oe_debug_pub.ADD('Logging delayed request for taxing');
4925: end if;
4926: -- lkxu, make changes for bug 1581188
4927: l_tax_commt_flag := 'N'; --bug 2505961
4928: IF (OE_GLOBALS.G_UI_FLAG) THEN
4929: OE_delayed_requests_Pvt.log_request(
4930: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4931: p_entity_id => p_x_line_rec.line_id,
4932: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

Line 4930: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4926: -- lkxu, make changes for bug 1581188
4927: l_tax_commt_flag := 'N'; --bug 2505961
4928: IF (OE_GLOBALS.G_UI_FLAG) THEN
4929: OE_delayed_requests_Pvt.log_request(
4930: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4931: p_entity_id => p_x_line_rec.line_id,
4932: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4933: p_requesting_entity_id => p_x_line_rec.line_id,
4934: p_request_type => OE_GLOBALS.g_tax_line,

Line 4932: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4928: IF (OE_GLOBALS.G_UI_FLAG) THEN
4929: OE_delayed_requests_Pvt.log_request(
4930: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4931: p_entity_id => p_x_line_rec.line_id,
4932: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4933: p_requesting_entity_id => p_x_line_rec.line_id,
4934: p_request_type => OE_GLOBALS.g_tax_line,
4935: x_return_status => l_return_status);
4936: ELSE

Line 4934: p_request_type => OE_GLOBALS.g_tax_line,

4930: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4931: p_entity_id => p_x_line_rec.line_id,
4932: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4933: p_requesting_entity_id => p_x_line_rec.line_id,
4934: p_request_type => OE_GLOBALS.g_tax_line,
4935: x_return_status => l_return_status);
4936: ELSE
4937: -- added p_param1 for bug 1786533.
4938: OE_delayed_requests_Pvt.log_request(

Line 4939: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4935: x_return_status => l_return_status);
4936: ELSE
4937: -- added p_param1 for bug 1786533.
4938: OE_delayed_requests_Pvt.log_request(
4939: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4940: p_entity_id => p_x_line_rec.line_id,
4941: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4942: p_requesting_entity_id => p_x_line_rec.line_id,
4943: p_request_type => OE_GLOBALS.g_tax_line,

Line 4941: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4937: -- added p_param1 for bug 1786533.
4938: OE_delayed_requests_Pvt.log_request(
4939: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4940: p_entity_id => p_x_line_rec.line_id,
4941: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4942: p_requesting_entity_id => p_x_line_rec.line_id,
4943: p_request_type => OE_GLOBALS.g_tax_line,
4944: p_param1 => l_param1,
4945: x_return_status => l_return_status);

Line 4943: p_request_type => OE_GLOBALS.g_tax_line,

4939: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4940: p_entity_id => p_x_line_rec.line_id,
4941: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4942: p_requesting_entity_id => p_x_line_rec.line_id,
4943: p_request_type => OE_GLOBALS.g_tax_line,
4944: p_param1 => l_param1,
4945: x_return_status => l_return_status);
4946: END IF;
4947: oe_globals.g_tax_flag := 'N';

Line 4947: oe_globals.g_tax_flag := 'N';

4943: p_request_type => OE_GLOBALS.g_tax_line,
4944: p_param1 => l_param1,
4945: x_return_status => l_return_status);
4946: END IF;
4947: oe_globals.g_tax_flag := 'N';
4948: END IF;
4949:
4950: /** commented out for bug 1581188
4951: IF (oe_globals.g_tax_flag = 'Y') THEN

Line 4951: IF (oe_globals.g_tax_flag = 'Y') THEN

4947: oe_globals.g_tax_flag := 'N';
4948: END IF;
4949:
4950: /** commented out for bug 1581188
4951: IF (oe_globals.g_tax_flag = 'Y') THEN
4952: if l_debug_level > 0 then
4953: oe_debug_pub.ADD('Logging delayed request for taxing');
4954: end if;
4955: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

Line 4955: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4951: IF (oe_globals.g_tax_flag = 'Y') THEN
4952: if l_debug_level > 0 then
4953: oe_debug_pub.ADD('Logging delayed request for taxing');
4954: end if;
4955: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4956: p_entity_id => p_x_line_rec.line_id,
4957: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4958: p_requesting_entity_id => p_x_line_rec.line_id,
4959: p_request_type => OE_GLOBALS.g_tax_line,

Line 4957: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4953: oe_debug_pub.ADD('Logging delayed request for taxing');
4954: end if;
4955: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4956: p_entity_id => p_x_line_rec.line_id,
4957: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4958: p_requesting_entity_id => p_x_line_rec.line_id,
4959: p_request_type => OE_GLOBALS.g_tax_line,
4960: x_return_status => l_return_status);
4961: oe_globals.g_tax_flag := 'N';

Line 4959: p_request_type => OE_GLOBALS.g_tax_line,

4955: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4956: p_entity_id => p_x_line_rec.line_id,
4957: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4958: p_requesting_entity_id => p_x_line_rec.line_id,
4959: p_request_type => OE_GLOBALS.g_tax_line,
4960: x_return_status => l_return_status);
4961: oe_globals.g_tax_flag := 'N';
4962: END IF;
4963: **/

Line 4961: oe_globals.g_tax_flag := 'N';

4957: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4958: p_requesting_entity_id => p_x_line_rec.line_id,
4959: p_request_type => OE_GLOBALS.g_tax_line,
4960: x_return_status => l_return_status);
4961: oe_globals.g_tax_flag := 'N';
4962: END IF;
4963: **/
4964:
4965: -- Log a verify payment request if the order is booked and a new line.

Line 4968: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

4964:
4965: -- Log a verify payment request if the order is booked and a new line.
4966: -- Fix 1939779: Added condition to not log verify payment request for
4967: -- new config item lines being added to an order.
4968: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
4969: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
4970: p_x_line_rec.booked_flag = 'Y' THEN
4971: IF (NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD'
4972: AND OE_PrePayment_UTIL.is_prepaid_order(p_x_line_rec.header_id) = 'N')

Line 4969: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND

4965: -- Log a verify payment request if the order is booked and a new line.
4966: -- Fix 1939779: Added condition to not log verify payment request for
4967: -- new config item lines being added to an order.
4968: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
4969: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
4970: p_x_line_rec.booked_flag = 'Y' THEN
4971: IF (NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD'
4972: AND OE_PrePayment_UTIL.is_prepaid_order(p_x_line_rec.header_id) = 'N')
4973: OR OE_PrePayment_UTIL.is_prepaid_order(p_x_line_rec.header_id) = 'Y'

Line 4984: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

4980: END IF;
4981: END IF;
4982:
4983: -- Suppress verify payment and credit checking if the line is split
4984: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4985: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) OR
4986: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
4987: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
4988: if l_debug_level > 0 then

Line 4986: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

4982:
4983: -- Suppress verify payment and credit checking if the line is split
4984: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4985: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) OR
4986: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
4987: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
4988: if l_debug_level > 0 then
4989: oe_debug_pub.ADD('Line is being Split, Suppress Verify Payment', 1);
4990: end if;

Line 5004: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5000: oe_debug_pub.ADD('Logging delayed request for Verify Payment');
5001: end if;
5002: --
5003: OE_delayed_requests_Pvt.log_request
5004: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5005: p_entity_id => p_x_line_rec.header_id,
5006: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5007: p_requesting_entity_id => p_x_line_rec.line_id,
5008: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,

Line 5006: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5002: --
5003: OE_delayed_requests_Pvt.log_request
5004: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5005: p_entity_id => p_x_line_rec.header_id,
5006: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5007: p_requesting_entity_id => p_x_line_rec.line_id,
5008: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,
5009: x_return_status => l_return_status);
5010: END IF;

Line 5008: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,

5004: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5005: p_entity_id => p_x_line_rec.header_id,
5006: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5007: p_requesting_entity_id => p_x_line_rec.line_id,
5008: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,
5009: x_return_status => l_return_status);
5010: END IF;
5011: END IF;
5012:

Line 5023: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'

5019: -- don't get the balance again, as this is the second call due to the change
5020: -- of unit_selling_price, and the returned value at this moment would be the
5021: -- balance after the current line is saved to database.
5022:
5023: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
5024: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
5025: oe_globals.g_commitment_balance IS NULL) THEN
5026: l_class := NULL;
5027: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');

Line 5024: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND

5020: -- of unit_selling_price, and the returned value at this moment would be the
5021: -- balance after the current line is saved to database.
5022:
5023: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
5024: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
5025: oe_globals.g_commitment_balance IS NULL) THEN
5026: l_class := NULL;
5027: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
5028: l_oe_installed_flag := 'I';

Line 5025: oe_globals.g_commitment_balance IS NULL) THEN

5021: -- balance after the current line is saved to database.
5022:
5023: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
5024: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
5025: oe_globals.g_commitment_balance IS NULL) THEN
5026: l_class := NULL;
5027: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
5028: l_oe_installed_flag := 'I';
5029:

Line 5031: IF NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

5027: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
5028: l_oe_installed_flag := 'I';
5029:
5030: -- get the available commitmenb balance before saving the line.
5031: IF NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
5032: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
5033: oe_globals.g_commitment_balance := ARP_BAL_UTIL.GET_COMMITMENT_BALANCE(
5034: p_x_line_rec.commitment_id
5035: ,l_class

Line 5033: oe_globals.g_commitment_balance := ARP_BAL_UTIL.GET_COMMITMENT_BALANCE(

5029:
5030: -- get the available commitmenb balance before saving the line.
5031: IF NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
5032: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
5033: oe_globals.g_commitment_balance := ARP_BAL_UTIL.GET_COMMITMENT_BALANCE(
5034: p_x_line_rec.commitment_id
5035: ,l_class
5036: ,l_so_source_code
5037: ,l_oe_installed_flag );

Line 5041: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

5037: ,l_oe_installed_flag );
5038: END IF;
5039:
5040: -- if updating, then the applied commitment should become available
5041: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
5042: l_commitment_applied_amount
5043: := OE_Commitment_PVT.get_commitment_applied_amount
5044: (p_header_id => p_x_line_rec.header_id ,
5045: p_line_id => p_x_line_rec.line_id ,

Line 5048: oe_globals.g_commitment_balance

5044: (p_header_id => p_x_line_rec.header_id ,
5045: p_line_id => p_x_line_rec.line_id ,
5046: p_commitment_id => p_x_line_rec.commitment_id);
5047: /* Fix Bug # 2511389: This is now done in OE_Commitment_PVT.Calculate_Commitments
5048: oe_globals.g_commitment_balance
5049: := oe_globals.g_commitment_balance + l_commitment_applied_amount;
5050: */
5051:
5052:

Line 5049: := oe_globals.g_commitment_balance + l_commitment_applied_amount;

5045: p_line_id => p_x_line_rec.line_id ,
5046: p_commitment_id => p_x_line_rec.commitment_id);
5047: /* Fix Bug # 2511389: This is now done in OE_Commitment_PVT.Calculate_Commitments
5048: oe_globals.g_commitment_balance
5049: := oe_globals.g_commitment_balance + l_commitment_applied_amount;
5050: */
5051:
5052:
5053: END IF;

Line 5064: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5060: if l_debug_level > 0 then
5061: oe_debug_pub.add('Logging delayed request for Commitment.', 2);
5062: end if;
5063: OE_Delayed_Requests_Pvt.Log_Request(
5064: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5065: p_entity_id => p_x_line_rec.line_id,
5066: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5067: p_requesting_entity_id => p_x_line_rec.line_id,
5068: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,

Line 5066: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5062: end if;
5063: OE_Delayed_Requests_Pvt.Log_Request(
5064: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5065: p_entity_id => p_x_line_rec.line_id,
5066: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5067: p_requesting_entity_id => p_x_line_rec.line_id,
5068: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,
5069: x_return_status => l_return_status);
5070:

Line 5068: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,

5064: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5065: p_entity_id => p_x_line_rec.line_id,
5066: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5067: p_requesting_entity_id => p_x_line_rec.line_id,
5068: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,
5069: x_return_status => l_return_status);
5070:
5071: END IF;
5072:

Line 5083: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

5079: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
5080: THEN
5081:
5082: -- lkxu, bug 1786533.
5083: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
5084: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
5085:
5086: if l_debug_level > 0 then
5087: oe_debug_pub.add('Logging delayed request for updating commitment for line '||p_x_line_rec.line_id, 2);

Line 5092: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

5088: end if;
5089:
5090: -- should log as ENTITY_ALL, as SPLIT is a batch mode
5091: OE_Delayed_Requests_Pvt.Log_Request(
5092: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5093: p_entity_id =>p_x_line_rec.line_id,
5094: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
5095: p_requesting_entity_id =>p_x_line_rec.line_id,
5096: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,

Line 5094: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,

5090: -- should log as ENTITY_ALL, as SPLIT is a batch mode
5091: OE_Delayed_Requests_Pvt.Log_Request(
5092: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5093: p_entity_id =>p_x_line_rec.line_id,
5094: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
5095: p_requesting_entity_id =>p_x_line_rec.line_id,
5096: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,
5097: x_return_status =>l_return_status);
5098: END IF;

Line 5096: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,

5092: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5093: p_entity_id =>p_x_line_rec.line_id,
5094: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
5095: p_requesting_entity_id =>p_x_line_rec.line_id,
5096: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,
5097: x_return_status =>l_return_status);
5098: END IF;
5099: END IF;
5100:

Line 5110: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5106: oe_debug_pub.add('param2 is: '|| p_x_line_rec.header_id, 3);
5107: oe_debug_pub.add('param3 is: '|| p_x_line_rec.commitment_id, 3);
5108: end if;
5109: OE_Delayed_Requests_Pvt.Log_Request(
5110: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5111: p_entity_id => p_x_line_rec.line_id,
5112: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5113: p_requesting_entity_id => p_x_line_rec.line_id,
5114: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,

Line 5112: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5108: end if;
5109: OE_Delayed_Requests_Pvt.Log_Request(
5110: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5111: p_entity_id => p_x_line_rec.line_id,
5112: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5113: p_requesting_entity_id => p_x_line_rec.line_id,
5114: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,
5115: p_param1 => p_x_line_rec.commitment_applied_amount,
5116: p_param2 => p_x_line_rec.header_id,

Line 5114: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,

5110: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5111: p_entity_id => p_x_line_rec.line_id,
5112: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5113: p_requesting_entity_id => p_x_line_rec.line_id,
5114: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,
5115: p_param1 => p_x_line_rec.commitment_applied_amount,
5116: p_param2 => p_x_line_rec.header_id,
5117: p_param3 => p_x_line_rec.commitment_id,
5118: x_return_status => l_return_status);

Line 5130: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5126: oe_debug_pub.add('Logging delayed request for freight rate: '||p_x_line_rec.header_id, 2);
5127: end if;
5128:
5129: OE_delayed_requests_Pvt.log_request
5130: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5131: p_entity_id => p_x_line_rec.header_id,
5132: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5133: p_requesting_entity_id => p_x_line_rec.line_id,
5134: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,

Line 5132: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5128:
5129: OE_delayed_requests_Pvt.log_request
5130: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5131: p_entity_id => p_x_line_rec.header_id,
5132: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5133: p_requesting_entity_id => p_x_line_rec.line_id,
5134: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,
5135: x_return_status => l_return_status);
5136:

Line 5134: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,

5130: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5131: p_entity_id => p_x_line_rec.header_id,
5132: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5133: p_requesting_entity_id => p_x_line_rec.line_id,
5134: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,
5135: x_return_status => l_return_status);
5136:
5137: IF p_x_line_rec.booked_flag='Y' THEN
5138: l_pricing_event := 'BATCH,BOOK';

Line 5145: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5141: END IF;
5142:
5143: -- also log pricing request to calculate fregight rates.
5144: OE_delayed_requests_Pvt.log_request(
5145: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5146: p_entity_id => p_x_line_rec.header_id,
5147: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5148: p_requesting_entity_id => p_x_line_rec.header_id,
5149: p_request_unique_key1 => l_pricing_event,

Line 5147: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5143: -- also log pricing request to calculate fregight rates.
5144: OE_delayed_requests_Pvt.log_request(
5145: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5146: p_entity_id => p_x_line_rec.header_id,
5147: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5148: p_requesting_entity_id => p_x_line_rec.header_id,
5149: p_request_unique_key1 => l_pricing_event,
5150: p_request_unique_key2 => 'Y', -- get freight flag
5151: p_param1 => p_x_line_rec.header_id,

Line 5153: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

5149: p_request_unique_key1 => l_pricing_event,
5150: p_request_unique_key2 => 'Y', -- get freight flag
5151: p_param1 => p_x_line_rec.header_id,
5152: p_param2 => l_pricing_event,
5153: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
5154: x_return_status => l_return_status);
5155: END IF;
5156: -- end of bug 2668298.
5157:

Line 5177: OE_GLOBALS.g_recursion_mode = 'N' AND -- Bug 3379121

5173: */
5174:
5175: IF p_x_line_rec.ordered_quantity = 0 AND
5176: p_old_line_rec.ordered_quantity = 0 AND
5177: OE_GLOBALS.g_recursion_mode = 'N' AND -- Bug 3379121
5178: OE_OE_FORM_CANCEL_LINE.g_ord_lvl_can THEN
5179:
5180: IF l_debug_level > 0 THEN
5181: oe_debug_pub.add('Line Ord Qty already 0, Calling Check_Constraints based on Order Cancel Global');

Line 5200: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR

5196: /* Fix # 3147694 End */
5197:
5198:
5199: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
5200: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
5201: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
5202: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
5203: ,p_old_line_rec.ship_from_org_id)
5204: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR

Line 5201: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

5197:
5198:
5199: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
5200: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
5201: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
5202: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
5203: ,p_old_line_rec.ship_from_org_id)
5204: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
5205: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

Line 5202: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id

5198:
5199: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
5200: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
5201: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
5202: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
5203: ,p_old_line_rec.ship_from_org_id)
5204: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
5205: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
5206: ,p_old_line_rec.ship_to_org_id)

Line 5205: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

5201: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
5202: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
5203: ,p_old_line_rec.ship_from_org_id)
5204: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
5205: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
5206: ,p_old_line_rec.ship_to_org_id)
5207: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
5208: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
5209: ,p_old_line_rec.inventory_item_id)

Line 5208: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id

5204: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
5205: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
5206: ,p_old_line_rec.ship_to_org_id)
5207: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
5208: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
5209: ,p_old_line_rec.inventory_item_id)
5210: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
5211: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
5212: ,p_old_line_rec.order_quantity_uom)

Line 5211: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

5207: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
5208: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
5209: ,p_old_line_rec.inventory_item_id)
5210: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
5211: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
5212: ,p_old_line_rec.order_quantity_uom)
5213: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
5214: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
5215: ,p_old_line_rec.ordered_quantity)

Line 5214: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

5210: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
5211: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
5212: ,p_old_line_rec.order_quantity_uom)
5213: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
5214: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
5215: ,p_old_line_rec.ordered_quantity)
5216: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
5217: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
5218: ,p_old_line_rec.schedule_ship_date)

Line 5217: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

5213: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
5214: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
5215: ,p_old_line_rec.ordered_quantity)
5216: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
5217: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
5218: ,p_old_line_rec.schedule_ship_date)
5219: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
5220: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
5221: ,p_old_line_rec.schedule_arrival_date)

Line 5220: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date

5216: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
5217: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
5218: ,p_old_line_rec.schedule_ship_date)
5219: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
5220: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
5221: ,p_old_line_rec.schedule_arrival_date)
5222: AND p_old_line_rec.schedule_arrival_date <> FND_API.G_MISS_DATE) OR
5223: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
5224: ,p_old_line_rec.freight_terms_code)

Line 5223: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code

5219: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
5220: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
5221: ,p_old_line_rec.schedule_arrival_date)
5222: AND p_old_line_rec.schedule_arrival_date <> FND_API.G_MISS_DATE) OR
5223: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
5224: ,p_old_line_rec.freight_terms_code)
5225: AND p_old_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR)))
5226: THEN
5227: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN

Line 5227: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN

5223: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
5224: ,p_old_line_rec.freight_terms_code)
5225: AND p_old_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR)))
5226: THEN
5227: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN
5228: Select Count(*) into l_fte_count
5229: from oe_price_adjustments where
5230: header_id = p_x_line_rec.header_id
5231: and LIST_LINE_TYPE_CODE = 'OM_CALLED_CHOOSE_SHIP_METHOD';

Line 5239: OE_GLOBALS.G_FTE_REINVOKE := 'Y';

5235: If l_fte_count > 0 Then
5236: --fnd_message.set_name('ONT','MY_MESSAGE');
5237: --OE_MSG_PUB.Add;
5238: --NULL;
5239: OE_GLOBALS.G_FTE_REINVOKE := 'Y';
5240: ELSE
5241: OE_GLOBALS.G_FTE_REINVOKE := 'N';
5242: End If;
5243: END IF;

Line 5241: OE_GLOBALS.G_FTE_REINVOKE := 'N';

5237: --OE_MSG_PUB.Add;
5238: --NULL;
5239: OE_GLOBALS.G_FTE_REINVOKE := 'Y';
5240: ELSE
5241: OE_GLOBALS.G_FTE_REINVOKE := 'N';
5242: End If;
5243: END IF;
5244: END IF;
5245: END IF;

Line 5270: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN

5266: END IF;
5267: END IF; */
5268:
5269: /*Bug2848734 */
5270: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
5271: IF (p_x_line_rec.line_category_code = 'RETURN' and
5272: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
5273: p_x_line_rec.return_context IS NULL ) THEN
5274:

Line 5272: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and

5268:
5269: /*Bug2848734 */
5270: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
5271: IF (p_x_line_rec.line_category_code = 'RETURN' and
5272: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
5273: p_x_line_rec.return_context IS NULL ) THEN
5274:
5275: p_x_line_rec.reference_customer_trx_line_id := NULL;
5276: p_x_line_rec.credit_invoice_line_id := NULL;

Line 8157: OE_GLOBALS.Set_Context;

8153: oe_debug_pub.add('Entering OE_LINE_UTIL.UPDATE_ROW', 1);
8154: end if;
8155: --Commented for MOAC start
8156: /*if l_org_id IS NULL THEN
8157: OE_GLOBALS.Set_Context;
8158: l_org_id := OE_GLOBALS.G_ORG_ID;
8159: end if;*/
8160: --Commented for MOAC end
8161:

Line 8158: l_org_id := OE_GLOBALS.G_ORG_ID;

8154: end if;
8155: --Commented for MOAC start
8156: /*if l_org_id IS NULL THEN
8157: OE_GLOBALS.Set_Context;
8158: l_org_id := OE_GLOBALS.G_ORG_ID;
8159: end if;*/
8160: --Commented for MOAC end
8161:
8162: SELECT lock_control

Line 8623: OE_GLOBALS.Set_Context;

8619: oe_debug_pub.add('Entering OE_LINE_UTIL.INSERT_ROW', 1);
8620: end if;
8621:
8622: --MOAC change
8623: OE_GLOBALS.Set_Context;
8624: l_org_id := OE_GLOBALS.G_ORG_ID;
8625: IF l_org_id IS NULL THEN
8626: -- org_id is null, don't do insert. raise an error.
8627: IF l_debug_level > 0 then

Line 8624: l_org_id := OE_GLOBALS.G_ORG_ID;

8620: end if;
8621:
8622: --MOAC change
8623: OE_GLOBALS.Set_Context;
8624: l_org_id := OE_GLOBALS.G_ORG_ID;
8625: IF l_org_id IS NULL THEN
8626: -- org_id is null, don't do insert. raise an error.
8627: IF l_debug_level > 0 then
8628: oe_debug_pub.ADD('Org_Id is NULL',1);

Line 8636: OE_GLOBALS.Set_Context;

8632: RAISE FND_API.G_EXC_ERROR;
8633: END IF;
8634: /*
8635: if l_org_id IS NULL THEN
8636: OE_GLOBALS.Set_Context;
8637: l_org_id := OE_GLOBALS.G_ORG_ID;
8638: end if;
8639: */
8640: l_sold_from_org := l_org_id;

Line 8637: l_org_id := OE_GLOBALS.G_ORG_ID;

8633: END IF;
8634: /*
8635: if l_org_id IS NULL THEN
8636: OE_GLOBALS.Set_Context;
8637: l_org_id := OE_GLOBALS.G_ORG_ID;
8638: end if;
8639: */
8640: l_sold_from_org := l_org_id;
8641:

Line 8643: if p_line_rec.split_from_line_id is not null and p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

8639: */
8640: l_sold_from_org := l_org_id;
8641:
8642: -- For the split's issue Bug #3721385
8643: if p_line_rec.split_from_line_id is not null and p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
8644: (p_line_rec.sold_from_org_id is not null OR p_line_rec.sold_from_org_id <> FND_API.G_MISS_NUM)
8645: then
8646:
8647: l_sold_from_org := p_line_rec.sold_from_org_id;

Line 8663: p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

8659: END IF;
8660: --bug 4446805 set the price request code to NULL if operation is create during splitting
8661: IF p_line_rec.split_from_line_id is not null AND
8662: p_line_rec.split_from_line_id <> FND_API.G_MISS_NUM AND
8663: p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
8664: THEN
8665: l_price_request_code := NULL;
8666: ELSE
8667: l_price_request_code := p_line_rec.price_request_code;

Line 9512: /*l_org_id := OE_GLOBALS.G_ORG_ID;

9508: BEGIN
9509:
9510: oe_debug_pub.add('Entering OE_LINE_UTIL.DELETE_ROW', 1);
9511: --Commented for MOAC start
9512: /*l_org_id := OE_GLOBALS.G_ORG_ID;
9513:
9514: IF l_org_id IS NULL THEN
9515: OE_GLOBALS.Set_Context;
9516: l_org_id := OE_GLOBALS.G_ORG_ID;

Line 9515: OE_GLOBALS.Set_Context;

9511: --Commented for MOAC start
9512: /*l_org_id := OE_GLOBALS.G_ORG_ID;
9513:
9514: IF l_org_id IS NULL THEN
9515: OE_GLOBALS.Set_Context;
9516: l_org_id := OE_GLOBALS.G_ORG_ID;
9517: END IF;
9518:
9519: oe_debug_pub.add('Entering delete '||to_char(l_org_id), 1); */

Line 9516: l_org_id := OE_GLOBALS.G_ORG_ID;

9512: /*l_org_id := OE_GLOBALS.G_ORG_ID;
9513:
9514: IF l_org_id IS NULL THEN
9515: OE_GLOBALS.Set_Context;
9516: l_org_id := OE_GLOBALS.G_ORG_ID;
9517: END IF;
9518:
9519: oe_debug_pub.add('Entering delete '||to_char(l_org_id), 1); */
9520: --Commented for MOAC end

Line 9530: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

9526: --check code release level first. Notification framework is at Pack H level
9527: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110508' THEN
9528: oe_debug_pub.add('JFC: in delete row, l_line_id'|| l_line.line_id , 1);
9529: /* Set the operation on the record so that globals are updated as well */
9530: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
9531: l_new_line_rec.line_id :=l_line.line_id;
9532: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,
9533: p_line_rec =>l_new_line_rec,
9534: p_line_id =>l_line.line_id,

Line 9552: IF l_line.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

9548: -- notification framework end
9549:
9550: -- Keep all your dependencies in Delete Dependents Procedure
9551: -- If model is deleted, delete from SPC tables
9552: IF l_line.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
9553: OE_Config_Pvt.Delete_Config
9554: ( p_config_hdr_id => l_line.config_header_id,
9555: p_config_rev_nbr => l_line.config_rev_nbr,
9556: x_return_status => l_return_status );

Line 9709: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

9705: AND SERVICE_REFERENCE_TYPE_CODE = 'ORDER'; -- bug 3056313
9706:
9707: END IF; -- if service lines exist, for bug 2408321
9708:
9709: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
9710: END LOOP; -- loop for models
9711:
9712: CLOSE llinetbl;
9713:

Line 9744: IF l_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

9740: -- if model, call spc's delete
9741: IF p_header_id = FND_API.G_MISS_NUM THEN
9742: -- we already have l_line_rec
9743:
9744: IF l_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
9745: OE_Config_Pvt.Delete_Config
9746: ( p_config_hdr_id => l_line_rec.config_header_id,
9747: p_config_rev_nbr => l_line_rec.config_rev_nbr,
9748: x_return_status => l_return_status );

Line 9795: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

9791: ,p_shipping_interfaced_flag => l_shipping_interfaced_flag
9792: ,p_ordered_quantity => l_ordered_quantity -- BUG 2670775 Reverse Limits
9793: ,p_price_request_code => l_price_request_code); -- BUG 2670775 Reverse Limits
9794:
9795: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
9796: END LOOP; -- loop of the service lines.
9797:
9798: CLOSE llinetbl;
9799:

Line 9823: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

9819: --check code release level first. Notification framework is at Pack H level
9820: oe_debug_pub.add('JPN: Delete all lines now');
9821: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110508' THEN
9822: /* Set the operation on the record so that globals are updated as well */
9823: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
9824: l_new_line_rec.line_id :=l_line_rec.line_id;
9825: l_new_line_rec.last_update_date :=l_line_rec.last_update_date;
9826:
9827: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,

Line 9858: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

9854: FOR l_svc IN svc_line
9855: LOOP
9856: oe_debug_pub.add('JFC: in delete row, service line_id= '|| l_svc.line_id , 1);
9857: /* Set the operation on the record so that globals are updated as well */
9858: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
9859: l_new_line_rec.line_id :=l_svc.line_id;
9860: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,
9861: p_line_rec =>l_new_line_rec,
9862: p_line_id =>l_svc.line_id,

Line 11604: /*l_org_id := OE_GLOBALS.G_ORG_ID;

11600:
11601: END IF;
11602:
11603: --Commented for MOAC start
11604: /*l_org_id := OE_GLOBALS.G_ORG_ID;
11605: if l_org_id IS NULL THEN
11606: OE_GLOBALS.Set_Context;
11607: l_org_id := OE_GLOBALS.G_ORG_ID;
11608: end if;

Line 11606: OE_GLOBALS.Set_Context;

11602:
11603: --Commented for MOAC start
11604: /*l_org_id := OE_GLOBALS.G_ORG_ID;
11605: if l_org_id IS NULL THEN
11606: OE_GLOBALS.Set_Context;
11607: l_org_id := OE_GLOBALS.G_ORG_ID;
11608: end if;
11609: IF l_debug_level > 0 THEN
11610: oe_debug_pub.add('Entering '||to_char(l_org_id), 1);

Line 11607: l_org_id := OE_GLOBALS.G_ORG_ID;

11603: --Commented for MOAC start
11604: /*l_org_id := OE_GLOBALS.G_ORG_ID;
11605: if l_org_id IS NULL THEN
11606: OE_GLOBALS.Set_Context;
11607: l_org_id := OE_GLOBALS.G_ORG_ID;
11608: end if;
11609: IF l_debug_level > 0 THEN
11610: oe_debug_pub.add('Entering '||to_char(l_org_id), 1);
11611: END IF;*/

Line 12460: IF (OE_GLOBALS.G_UI_FLAG) THEN -- 3025978

12456: -- Retrieve the primary key.
12457:
12458: IF p_line_id <> FND_API.G_MISS_NUM THEN
12459: l_line_id := p_line_id;
12460: IF (OE_GLOBALS.G_UI_FLAG) THEN -- 3025978
12461: l_lock_control := p_x_line_rec.lock_control;
12462: END IF;
12463: ELSE
12464: l_line_id := p_x_line_rec.line_id;

Line 12599: OR (OE_GLOBALS.G_UI_FLAG = TRUE ) THEN -- 3025978

12595: END IF;
12596:
12597: IF l_lock_control IS NULL
12598: OR (l_lock_control <> l_db_lock_control)
12599: OR (OE_GLOBALS.G_UI_FLAG = TRUE ) THEN -- 3025978
12600:
12601: oe_line_util.Query_Row
12602: (p_line_id => l_line_id
12603: ,x_line_rec => p_x_line_rec

Line 12639: OE_GLOBALS.G_LOCK_CONST := 0;

12635: -- following constants are used to debug lock_order,
12636: -- please do not use them for any other purpose.
12637: -- set G_LOCK_TEST := 'Y', for debugging.
12638:
12639: OE_GLOBALS.G_LOCK_CONST := 0;
12640: --OE_GLOBALS.G_LOCK_TEST := 'Y';
12641: OE_GLOBALS.G_LOCK_TEST := 'N';
12642:
12643: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,

Line 12640: --OE_GLOBALS.G_LOCK_TEST := 'Y';

12636: -- please do not use them for any other purpose.
12637: -- set G_LOCK_TEST := 'Y', for debugging.
12638:
12639: OE_GLOBALS.G_LOCK_CONST := 0;
12640: --OE_GLOBALS.G_LOCK_TEST := 'Y';
12641: OE_GLOBALS.G_LOCK_TEST := 'N';
12642:
12643: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
12644: l_lock_control)

Line 12641: OE_GLOBALS.G_LOCK_TEST := 'N';

12637: -- set G_LOCK_TEST := 'Y', for debugging.
12638:
12639: OE_GLOBALS.G_LOCK_CONST := 0;
12640: --OE_GLOBALS.G_LOCK_TEST := 'Y';
12641: OE_GLOBALS.G_LOCK_TEST := 'N';
12642:
12643: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
12644: l_lock_control)
12645: THEN

Line 12643: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,

12639: OE_GLOBALS.G_LOCK_CONST := 0;
12640: --OE_GLOBALS.G_LOCK_TEST := 'Y';
12641: OE_GLOBALS.G_LOCK_TEST := 'N';
12642:
12643: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
12644: l_lock_control)
12645: THEN
12646:
12647: -- Row has not changed. Set out parameter.

Line 12681: OE_GLOBALS.G_LOCK_TEST := 'N';

12677: END IF;
12678:
12679: END IF;
12680:
12681: OE_GLOBALS.G_LOCK_TEST := 'N';
12682:
12683: IF l_debug_level > 0 THEN
12684: oe_debug_pub.add('Exiting OE_LINE_UTIL.LOCK_ROW', 1);
12685: oe_debug_pub.add(' ', 1);

Line 12686: oe_debug_pub.add('lock const: '|| oe_globals.g_lock_const, 1);

12682:
12683: IF l_debug_level > 0 THEN
12684: oe_debug_pub.add('Exiting OE_LINE_UTIL.LOCK_ROW', 1);
12685: oe_debug_pub.add(' ', 1);
12686: oe_debug_pub.add('lock const: '|| oe_globals.g_lock_const, 1);
12687: END IF;
12688:
12689: EXCEPTION
12690:

Line 12692: OE_GLOBALS.G_LOCK_TEST := 'N';

12688:
12689: EXCEPTION
12690:
12691: WHEN CAN_NOT_LOCK_MODEL THEN
12692: OE_GLOBALS.G_LOCK_TEST := 'N';
12693: IF l_debug_level > 0 THEN
12694: oe_debug_pub.add('model locking exception', 1);
12695: END IF;
12696: x_return_status := FND_API.G_RET_STS_ERROR;

Line 12701: OE_GLOBALS.G_LOCK_TEST := 'N';

12697: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
12698:
12699:
12700: WHEN NO_DATA_FOUND THEN
12701: OE_GLOBALS.G_LOCK_TEST := 'N';
12702: x_return_status := FND_API.G_RET_STS_ERROR;
12703: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
12704:
12705: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)

Line 12713: OE_GLOBALS.G_LOCK_TEST := 'N';

12709: OE_MSG_PUB.Add;
12710:
12711: END IF;
12712: WHEN APP_EXCEPTIONS.RECORD_LOCK_EXCEPTION THEN
12713: OE_GLOBALS.G_LOCK_TEST := 'N';
12714: x_return_status := FND_API.G_RET_STS_ERROR;
12715: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
12716:
12717: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)

Line 12725: OE_GLOBALS.G_LOCK_TEST := 'N';

12721: OE_MSG_PUB.Add;
12722:
12723: END IF;
12724: WHEN OTHERS THEN
12725: OE_GLOBALS.G_LOCK_TEST := 'N';
12726: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12727: p_x_line_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12728:
12729: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)

Line 12892: NOT OE_GLOBALS.Equal(p_line_rec.calculate_price_flag,

12888: end if;
12889:
12890: IF (p_line_rec.calculate_price_flag IS NULL OR
12891: p_line_rec.calculate_price_flag <> FND_API.G_MISS_CHAR) AND
12892: NOT OE_GLOBALS.Equal(p_line_rec.calculate_price_flag,
12893: p_old_line_rec.calculate_price_flag)
12894: THEN
12895: l_line_val_rec.calculate_price_descr := OE_Id_To_Value.Calculate_price_Flag ( p_calculate_price_flag => p_line_rec.calculate_price_flag
12896: );

Line 12906: NOT OE_GLOBALS.Equal(p_line_rec.accounting_rule_id,

12902:
12903:
12904: IF (p_line_rec.accounting_rule_id IS NULL OR
12905: p_line_rec.accounting_rule_id <> FND_API.G_MISS_NUM) AND
12906: NOT OE_GLOBALS.Equal(p_line_rec.accounting_rule_id,
12907: p_old_line_rec.accounting_rule_id)
12908: THEN
12909: l_line_val_rec.accounting_rule := OE_Id_To_Value.Accounting_Rule
12910: ( p_accounting_rule_id => p_line_rec.accounting_rule_id

Line 12916: NOT OE_GLOBALS.Equal(p_line_rec.agreement_id,

12912: END IF;
12913:
12914: IF (p_line_rec.agreement_id IS NULL OR
12915: p_line_rec.agreement_id <> FND_API.G_MISS_NUM) AND
12916: NOT OE_GLOBALS.Equal(p_line_rec.agreement_id,
12917: p_old_line_rec.agreement_id)
12918: THEN
12919: l_line_val_rec.agreement := OE_Id_To_Value.Agreement
12920: ( p_agreement_id => p_line_rec.agreement_id

Line 12926: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_contact_id,

12922: END IF;
12923:
12924: IF (p_line_rec.deliver_to_contact_id IS NULL OR
12925: p_line_rec.deliver_to_contact_id <> FND_API.G_MISS_NUM) AND
12926: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_contact_id,
12927: p_old_line_rec.deliver_to_contact_id)
12928: THEN
12929: l_line_val_rec.deliver_to_contact := OE_Id_To_Value.Deliver_To_Contact
12930: ( p_deliver_to_contact_id => p_line_rec.deliver_to_contact_id

Line 12936: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_org_id,

12932: END IF;
12933:
12934: IF (p_line_rec.deliver_to_org_id IS NULL OR
12935: p_line_rec.deliver_to_org_id <> FND_API.G_MISS_NUM) AND
12936: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_org_id,
12937: p_old_line_rec.deliver_to_org_id)
12938: THEN
12939: get_customer_details
12940: ( p_org_id => p_line_rec.deliver_to_org_id

Line 12961: NOT OE_GLOBALS.Equal(p_line_rec.demand_bucket_type_code,

12957: END IF;
12958:
12959: IF (p_line_rec.demand_bucket_type_code IS NULL OR
12960: p_line_rec.demand_bucket_type_code <> FND_API.G_MISS_CHAR) AND
12961: NOT OE_GLOBALS.Equal(p_line_rec.demand_bucket_type_code,
12962: p_old_line_rec.demand_bucket_type_code)
12963: THEN
12964: l_line_val_rec.demand_bucket_type := OE_Id_To_Value.Demand_Bucket_Type
12965: ( p_demand_bucket_type_code => p_line_rec.demand_bucket_type_code

Line 12971: NOT OE_GLOBALS.Equal(p_line_rec.fob_point_code,

12967: END IF;
12968:
12969: IF (p_line_rec.fob_point_code IS NULL OR
12970: p_line_rec.fob_point_code <> FND_API.G_MISS_CHAR) AND
12971: NOT OE_GLOBALS.Equal(p_line_rec.fob_point_code,
12972: p_old_line_rec.fob_point_code)
12973: THEN
12974: l_line_val_rec.fob_point := OE_Id_To_Value.Fob_Point
12975: ( p_fob_point_code => p_line_rec.fob_point_code

Line 12981: NOT OE_GLOBALS.Equal(p_line_rec.freight_terms_code,

12977: END IF;
12978:
12979: IF (p_line_rec.freight_terms_code IS NULL OR
12980: p_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR) AND
12981: NOT OE_GLOBALS.Equal(p_line_rec.freight_terms_code,
12982: p_old_line_rec.freight_terms_code)
12983: THEN
12984: l_line_val_rec.freight_terms := OE_Id_To_Value.Freight_Terms
12985: ( p_freight_terms_code => p_line_rec.freight_terms_code

Line 12991: NOT OE_GLOBALS.Equal(p_line_rec.freight_carrier_code,

12987: END IF;
12988:
12989: IF (p_line_rec.freight_carrier_code IS NULL OR
12990: p_line_rec.freight_carrier_code <> FND_API.G_MISS_CHAR) AND
12991: NOT OE_GLOBALS.Equal(p_line_rec.freight_carrier_code,
12992: p_old_line_rec.freight_carrier_code)
12993: THEN
12994: l_line_val_rec.freight_carrier := OE_Id_To_Value.Freight_Carrier
12995: ( p_freight_carrier_code => p_line_rec.freight_carrier_code

Line 13001: NOT OE_GLOBALS.Equal(p_line_rec.shipping_method_code,

12997: );
12998: END IF;
12999: IF (p_line_rec.shipping_method_code IS NULL OR
13000: p_line_rec.shipping_method_code <> FND_API.G_MISS_CHAR) AND
13001: NOT OE_GLOBALS.Equal(p_line_rec.shipping_method_code,
13002: p_old_line_rec.shipping_method_code)
13003: THEN
13004: l_line_val_rec.shipping_method := OE_Id_To_Value.ship_method
13005: ( p_ship_method_code => p_line_rec.shipping_method_code

Line 13011: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_contact_id,

13007: END IF;
13008:
13009: IF (p_line_rec.intermed_ship_to_contact_id IS NULL OR
13010: p_line_rec.intermed_ship_to_contact_id <> FND_API.G_MISS_NUM) AND
13011: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_contact_id,
13012: p_old_line_rec.intermed_ship_to_contact_id)
13013: THEN
13014: l_line_val_rec.intermed_ship_to_contact := OE_Id_To_Value.Intermed_Ship_To_Contact
13015: ( p_intermed_ship_to_contact_id => p_line_rec.intermed_ship_to_contact_id

Line 13022: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_org_id,

13018:
13019: /*1621182*/
13020: IF (p_line_rec.intermed_ship_to_org_id IS NULL OR
13021: p_line_rec.intermed_ship_to_org_id <> FND_API.G_MISS_NUM) AND
13022: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_org_id,
13023: p_old_line_rec.intermed_ship_to_org_id)
13024: THEN
13025: OE_Id_To_Value.Intermed_Ship_To_Org
13026: ( p_intermed_ship_to_org_id => p_line_rec.intermed_ship_to_org_id

Line 13043: NOT OE_GLOBALS.Equal(p_line_rec.inventory_item_id,

13039: /*1621182*/
13040:
13041: IF (p_line_rec.inventory_item_id IS NULL OR
13042: p_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) AND
13043: NOT OE_GLOBALS.Equal(p_line_rec.inventory_item_id,
13044: p_old_line_rec.inventory_item_id)
13045: THEN
13046: l_line_val_rec.inventory_item := OE_Id_To_Value.Inventory_Item
13047: ( p_inventory_item_id => p_line_rec.inventory_item_id

Line 13053: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_contact_id,

13049: END IF;
13050:
13051: IF (p_line_rec.invoice_to_contact_id IS NULL OR
13052: p_line_rec.invoice_to_contact_id <> FND_API.G_MISS_NUM) AND
13053: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_contact_id,
13054: p_old_line_rec.invoice_to_contact_id)
13055: THEN
13056: l_line_val_rec.invoice_to_contact := OE_Id_To_Value.Invoice_To_Contact
13057: ( p_invoice_to_contact_id => p_line_rec.invoice_to_contact_id

Line 13063: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_org_id,

13059: END IF;
13060:
13061: IF (p_line_rec.invoice_to_org_id IS NULL OR
13062: p_line_rec.invoice_to_org_id <> FND_API.G_MISS_NUM) AND
13063: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_org_id,
13064: p_old_line_rec.invoice_to_org_id)
13065: THEN
13066:
13067: get_customer_details

Line 13089: NOT OE_GLOBALS.Equal(p_line_rec.invoicing_rule_id,

13085: END IF;
13086:
13087: IF (p_line_rec.invoicing_rule_id IS NULL OR
13088: p_line_rec.invoicing_rule_id <> FND_API.G_MISS_NUM) AND
13089: NOT OE_GLOBALS.Equal(p_line_rec.invoicing_rule_id,
13090: p_old_line_rec.invoicing_rule_id)
13091: THEN
13092: l_line_val_rec.invoicing_rule := OE_Id_To_Value.Invoicing_Rule
13093: ( p_invoicing_rule_id => p_line_rec.invoicing_rule_id

Line 13099: NOT OE_GLOBALS.Equal(p_line_rec.item_type_code,

13095: END IF;
13096:
13097: IF (p_line_rec.item_type_code IS NULL OR
13098: p_line_rec.item_type_code <> FND_API.G_MISS_CHAR) AND
13099: NOT OE_GLOBALS.Equal(p_line_rec.item_type_code,
13100: p_old_line_rec.item_type_code)
13101: THEN
13102: l_line_val_rec.item_type := OE_Id_To_Value.Item_Type
13103: ( p_item_type_code => p_line_rec.item_type_code

Line 13109: NOT OE_GLOBALS.Equal(p_line_rec.line_type_id,

13105: END IF;
13106:
13107: IF (p_line_rec.line_type_id IS NULL OR
13108: p_line_rec.line_type_id <> FND_API.G_MISS_NUM) AND
13109: NOT OE_GLOBALS.Equal(p_line_rec.line_type_id,
13110: p_old_line_rec.line_type_id)
13111: THEN
13112: l_line_val_rec.line_type := OE_Id_To_Value.Line_Type
13113: ( p_line_type_id => p_line_rec.line_type_id

Line 13119: NOT OE_GLOBALS.Equal(p_line_rec.over_ship_reason_code,

13115: END IF;
13116:
13117: IF (p_line_rec.over_ship_reason_code IS NULL OR
13118: p_line_rec.over_ship_reason_code <> FND_API.G_MISS_CHAR) AND
13119: NOT OE_GLOBALS.Equal(p_line_rec.over_ship_reason_code,
13120: p_old_line_rec.over_ship_reason_code)
13121: THEN
13122: l_line_val_rec.over_ship_reason := OE_Id_To_Value.over_ship_reason
13123: ( p_over_ship_reason_code => p_line_rec.over_ship_reason_code

Line 13129: NOT OE_GLOBALS.Equal(p_line_rec.payment_term_id,

13125: END IF;
13126:
13127: IF (p_line_rec.payment_term_id IS NULL OR
13128: p_line_rec.payment_term_id <> FND_API.G_MISS_NUM) AND
13129: NOT OE_GLOBALS.Equal(p_line_rec.payment_term_id,
13130: p_old_line_rec.payment_term_id)
13131: THEN
13132: l_line_val_rec.payment_term := OE_Id_To_Value.Payment_Term
13133: ( p_payment_term_id => p_line_rec.payment_term_id

Line 13139: NOT OE_GLOBALS.Equal(p_line_rec.price_list_id,

13135: END IF;
13136:
13137: IF (p_line_rec.price_list_id IS NULL OR
13138: p_line_rec.price_list_id <> FND_API.G_MISS_NUM) AND
13139: NOT OE_GLOBALS.Equal(p_line_rec.price_list_id,
13140: p_old_line_rec.price_list_id)
13141: THEN
13142: l_line_val_rec.price_list := OE_Id_To_Value.Price_List
13143: ( p_price_list_id => p_line_rec.price_list_id

Line 13149: NOT OE_GLOBALS.Equal(p_line_rec.project_id,

13145: END IF;
13146:
13147: IF (p_line_rec.project_id IS NULL OR
13148: p_line_rec.project_id <> FND_API.G_MISS_NUM) AND
13149: NOT OE_GLOBALS.Equal(p_line_rec.project_id,
13150: p_old_line_rec.project_id)
13151: THEN
13152: l_line_val_rec.project := OE_Id_To_Value.Project
13153: ( p_project_id => p_line_rec.project_id

Line 13160: NOT OE_GLOBALS.Equal(p_line_rec.source_type_code,

13156:
13157:
13158: IF (p_line_rec.source_type_code IS NULL OR
13159: p_line_rec.source_type_code <> FND_API.G_MISS_CHAR) AND
13160: NOT OE_GLOBALS.Equal(p_line_rec.source_type_code,
13161: p_old_line_rec.source_type_code)
13162: THEN
13163:
13164: l_line_val_rec.source_type := OE_Id_To_Value.source_type

Line 13172: NOT OE_GLOBALS.Equal(p_line_rec.return_reason_code,

13168:
13169:
13170: IF (p_line_rec.return_reason_code IS NULL OR
13171: p_line_rec.return_reason_code <> FND_API.G_MISS_CHAR) AND
13172: NOT OE_GLOBALS.Equal(p_line_rec.return_reason_code,
13173: p_old_line_rec.return_reason_code)
13174: THEN
13175:
13176: l_line_val_rec.return_reason := OE_Id_To_Value.return_reason

Line 13183: NOT OE_GLOBALS.Equal(p_line_rec.reference_line_id,

13179: END IF;
13180:
13181: IF (p_line_rec.reference_line_id IS NULL OR
13182: p_line_rec.reference_line_id <> FND_API.G_MISS_NUM) AND
13183: NOT OE_GLOBALS.Equal(p_line_rec.reference_line_id,
13184: p_old_line_rec.reference_line_id)
13185: THEN
13186: OE_Id_To_Value.reference_line
13187: ( p_reference_line_id => p_line_rec.reference_line_id

Line 13199: NOT OE_GLOBALS.Equal(p_line_rec.reference_customer_trx_line_id,

13195: END IF;
13196:
13197: IF (p_line_rec.reference_customer_trx_line_id IS NULL OR
13198: p_line_rec.reference_customer_trx_line_id <> FND_API.G_MISS_NUM) AND
13199: NOT OE_GLOBALS.Equal(p_line_rec.reference_customer_trx_line_id,
13200: p_old_line_rec.reference_customer_trx_line_id)
13201: THEN
13202: OE_Id_To_Value.Reference_Cust_Trx_Line
13203: ( p_reference_cust_trx_line_id => p_line_rec.reference_customer_trx_line_id

Line 13211: NOT OE_GLOBALS.Equal(p_line_rec.credit_invoice_line_id,

13207: END IF;
13208:
13209: IF (p_line_rec.credit_invoice_line_id IS NULL OR
13210: p_line_rec.credit_invoice_line_id <> FND_API.G_MISS_NUM) AND
13211: NOT OE_GLOBALS.Equal(p_line_rec.credit_invoice_line_id,
13212: p_old_line_rec.credit_invoice_line_id)
13213: THEN
13214: l_line_val_rec.credit_invoice_number
13215: := OE_Id_To_Value.credit_invoice_line

Line 13222: NOT OE_GLOBALS.Equal(p_line_rec.rla_schedule_type_code,

13218: END IF;
13219:
13220: IF (p_line_rec.rla_schedule_type_code IS NULL OR
13221: p_line_rec.rla_schedule_type_code <> FND_API.G_MISS_CHAR) AND
13222: NOT OE_GLOBALS.Equal(p_line_rec.rla_schedule_type_code,
13223: p_old_line_rec.rla_schedule_type_code)
13224: THEN
13225: l_line_val_rec.rla_schedule_type := OE_Id_To_Value.Rla_Schedule_Type
13226: ( p_rla_schedule_type_code => p_line_rec.rla_schedule_type_code

Line 13232: NOT OE_GLOBALS.Equal(p_line_rec.salesrep_id,

13228: END IF;
13229:
13230: IF (p_line_rec.salesrep_id IS NULL OR
13231: p_line_rec.salesrep_id <> FND_API.G_MISS_NUM) AND
13232: NOT OE_GLOBALS.Equal(p_line_rec.salesrep_id,
13233: p_old_line_rec.salesrep_id)
13234: THEN
13235: l_line_val_rec.salesrep := OE_Id_To_Value.salesrep
13236: ( p_salesrep_id => p_line_rec.salesrep_id

Line 13242: NOT OE_GLOBALS.Equal(p_line_rec.commitment_id,

13238: END IF;
13239:
13240: IF (p_line_rec.commitment_id IS NULL OR
13241: p_line_rec.commitment_id <> FND_API.G_MISS_NUM) AND
13242: NOT OE_GLOBALS.Equal(p_line_rec.commitment_id,
13243: p_old_line_rec.commitment_id)
13244: THEN
13245: l_line_val_rec.commitment := OE_Id_To_Value.Commitment
13246: ( p_commitment_id => p_line_rec.commitment_id

Line 13253: NOT OE_GLOBALS.Equal(p_line_rec.shipment_priority_code,

13249:
13250:
13251: IF (p_line_rec.shipment_priority_code IS NULL OR
13252: p_line_rec.shipment_priority_code <> FND_API.G_MISS_CHAR) AND
13253: NOT OE_GLOBALS.Equal(p_line_rec.shipment_priority_code,
13254: p_old_line_rec.shipment_priority_code)
13255: THEN
13256: l_line_val_rec.shipment_priority := OE_Id_To_Value.Shipment_Priority
13257: ( p_shipment_priority_code => p_line_rec.shipment_priority_code

Line 13263: NOT OE_GLOBALS.Equal(p_line_rec.demand_class_code,

13259: END IF;
13260:
13261: IF (p_line_rec.demand_class_code IS NULL OR
13262: p_line_rec.demand_class_code <> FND_API.G_MISS_CHAR) AND
13263: NOT OE_GLOBALS.Equal(p_line_rec.demand_class_code,
13264: p_old_line_rec.demand_class_code)
13265: THEN
13266: l_line_val_rec.demand_class := OE_Id_To_Value.Demand_Class
13267: ( p_demand_class_code => p_line_rec.demand_class_code

Line 13273: NOT OE_GLOBALS.Equal(p_line_rec.ship_from_org_id,

13269: END IF;
13270:
13271: IF (p_line_rec.ship_from_org_id IS NULL OR
13272: p_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) AND
13273: NOT OE_GLOBALS.Equal(p_line_rec.ship_from_org_id,
13274: p_old_line_rec.ship_from_org_id)
13275: THEN
13276: OE_Id_To_Value.Ship_From_Org
13277: ( p_ship_from_org_id => p_line_rec.ship_from_org_id

Line 13289: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_contact_id,

13285: END IF;
13286:
13287: IF (p_line_rec.ship_to_contact_id IS NULL OR
13288: p_line_rec.ship_to_contact_id <> FND_API.G_MISS_NUM) AND
13289: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_contact_id,
13290: p_old_line_rec.ship_to_contact_id)
13291: THEN
13292: l_line_val_rec.ship_to_contact := OE_Id_To_Value.Ship_To_Contact
13293: ( p_ship_to_contact_id => p_line_rec.ship_to_contact_id

Line 13299: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_org_id,

13295: END IF;
13296:
13297: IF (p_line_rec.ship_to_org_id IS NULL OR
13298: p_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) AND
13299: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_org_id,
13300: p_old_line_rec.ship_to_org_id)
13301: THEN
13302: get_customer_details
13303: ( p_org_id => p_line_rec.ship_to_org_id

Line 13325: NOT OE_GLOBALS.Equal(p_line_rec.sold_to_org_id,

13321:
13322:
13323: IF (p_line_rec.sold_to_org_id IS NULL OR
13324: p_line_rec.sold_to_org_id <> FND_API.G_MISS_NUM) AND
13325: NOT OE_GLOBALS.Equal(p_line_rec.sold_to_org_id,
13326: p_old_line_rec.sold_to_org_id)
13327: THEN
13328: OE_Id_To_Value.Sold_To_Org
13329: ( p_sold_to_org_id => p_line_rec.sold_to_org_id

Line 13337: NOT OE_GLOBALS.Equal(p_line_rec.task_id,

13333: END IF;
13334:
13335: IF (p_line_rec.task_id IS NULL OR
13336: p_line_rec.task_id <> FND_API.G_MISS_NUM) AND
13337: NOT OE_GLOBALS.Equal(p_line_rec.task_id,
13338: p_old_line_rec.task_id)
13339: THEN
13340: l_line_val_rec.task := OE_Id_To_Value.Task
13341: ( p_task_id => p_line_rec.task_id

Line 13347: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_flag,

13343: END IF;
13344:
13345: IF (p_line_rec.tax_exempt_flag IS NULL OR
13346: p_line_rec.tax_exempt_flag <> FND_API.G_MISS_CHAR) AND
13347: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_flag,
13348: p_old_line_rec.tax_exempt_flag)
13349: THEN
13350: l_line_val_rec.tax_exempt := OE_Id_To_Value.Tax_Exempt
13351: ( p_tax_exempt_flag => p_line_rec.tax_exempt_flag

Line 13357: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_reason_code,

13353: END IF;
13354:
13355: IF (p_line_rec.tax_exempt_reason_code IS NULL OR
13356: p_line_rec.tax_exempt_reason_code <> FND_API.G_MISS_CHAR) AND
13357: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_reason_code,
13358: p_old_line_rec.tax_exempt_reason_code)
13359: THEN
13360: l_line_val_rec.tax_exempt_reason := OE_Id_To_Value.Tax_Exempt_Reason
13361: ( p_tax_exempt_reason_code => p_line_rec.tax_exempt_reason_code

Line 13367: NOT OE_GLOBALS.Equal(p_line_rec.tax_point_code,

13363: END IF;
13364:
13365: IF (p_line_rec.tax_point_code IS NULL OR
13366: p_line_rec.tax_point_code <> FND_API.G_MISS_CHAR) AND
13367: NOT OE_GLOBALS.Equal(p_line_rec.tax_point_code,
13368: p_old_line_rec.tax_point_code)
13369: THEN
13370: l_line_val_rec.tax_point := OE_Id_To_Value.Tax_Point
13371: ( p_tax_point_code => p_line_rec.tax_point_code

Line 13377: NOT OE_GLOBALS.Equal(p_line_rec.tax_code,

13373: END IF;
13374:
13375: /*IF (p_line_rec.tax_code IS NULL OR
13376: p_line_rec.tax_code <> FND_API.G_MISS_CHAR) AND
13377: NOT OE_GLOBALS.Equal(p_line_rec.tax_code,
13378: p_old_line_rec.tax_code)
13379: THEN
13380: l_line_val_rec.tax_group := OE_Id_To_Value.Tax_Group
13381: ( p_tax_code => p_line_rec.tax_code

Line 13387: NOT OE_GLOBALS.Equal(p_line_rec.veh_cus_item_cum_key_id,

13383: END IF;*/
13384:
13385: IF (p_line_rec.veh_cus_item_cum_key_id IS NULL OR
13386: p_line_rec.veh_cus_item_cum_key_id <> FND_API.G_MISS_NUM) AND
13387: NOT OE_GLOBALS.Equal(p_line_rec.veh_cus_item_cum_key_id,
13388: p_old_line_rec.veh_cus_item_cum_key_id)
13389: THEN
13390: l_line_val_rec.veh_cus_item_cum_key := OE_Id_To_Value.veh_cus_item_cum_key
13391: ( p_veh_cus_item_cum_key_id => p_line_rec.veh_cus_item_cum_key_id

Line 14485: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

14481:
14482: IF p_x_line_rec.sold_to_org_id = FND_API.G_MISS_NUM
14483: THEN
14484:
14485: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
14486:
14487: -- bug 2411783
14488: -- for a newly created order, since the line is not posted,
14489: -- in Order import, there will be no Header record.

Line 14494: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

14490: --OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
14491: --l_sold_to_org_id := OE_Order_Cache.g_header_rec.sold_to_org_id;
14492: null;
14493:
14494: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
14495:
14496: SELECT SOLD_TO_ORG_ID
14497: INTO l_sold_to_org_id
14498: FROM OE_ORDER_LINES

Line 14654: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

14650: -- For e.g. oe_value_to_id.ship_to_contact_id requires ship_to_org_id
14651:
14652: -- bug 3487597, added clause for line_id
14653:
14654: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
14655: AND ( p_x_line_rec.ship_to_org_id = FND_API.G_MISS_NUM
14656: OR p_x_line_rec.invoice_to_org_id = FND_API.G_MISS_NUM
14657: OR p_x_line_rec.deliver_to_org_id = FND_API.G_MISS_NUM )
14658: AND p_x_line_rec.line_id <> FND_API.G_MISS_NUM

Line 15631: l_control_rec OE_GLOBALS.Control_Rec_Type;

15627: IS
15628: /* Variables to call process order */
15629: l_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
15630: l_old_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
15631: l_control_rec OE_GLOBALS.Control_Rec_Type;
15632:
15633: l_attribute_value VARCHAR2(2000);
15634: l_address_id VARCHAR2(2000):= NULL;
15635: l_cust_id NUMBER:= NULL;

Line 15765: l_control_rec OE_GLOBALS.Control_Rec_Type;

15761: (p_x_line_rec IN OUT NOCOPY OE_Order_PUB.Line_Rec_Type)
15762: IS
15763: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
15764: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
15765: l_control_rec OE_GLOBALS.Control_Rec_Type;
15766: l_return_status VARCHAR2(30);
15767: BEGIN
15768:
15769: l_control_rec.controlled_operation := TRUE;

Line 15812: l_control_rec OE_GLOBALS.Control_Rec_Type;

15808: (p_x_line_rec IN OUT NOCOPY OE_Order_PUB.Line_Rec_Type)
15809: IS
15810: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
15811: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
15812: l_control_rec OE_GLOBALS.Control_Rec_Type;
15813: l_return_status VARCHAR2(30);
15814: BEGIN
15815:
15816: l_control_rec.controlled_operation := TRUE;

Line 15924: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,

15920: ------------------------------------------------------------------------
15921: -- Copy corresponding inventory item to the line if it is a CUST item
15922: ------------------------------------------------------------------------
15923:
15924: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,
15925: p_old_line_rec.ship_from_org_id) OR
15926: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,
15927: p_old_line_rec.ship_to_org_id) THEN
15928: if l_debug_level > 0 then

Line 15926: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,

15922: ------------------------------------------------------------------------
15923:
15924: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,
15925: p_old_line_rec.ship_from_org_id) OR
15926: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,
15927: p_old_line_rec.ship_to_org_id) THEN
15928: if l_debug_level > 0 then
15929: oe_debug_pub.Add('RR:I1', 1);
15930: end if;

Line 15972: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,

15968: -- Populate ordered item field if item identifier type is INT or CUST
15969: /*Bug 2411113*/
15970: ------------------------------------------------------------------------
15971:
15972: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
15973: p_old_line_rec.inventory_item_id)
15974: AND p_x_line_rec.item_identifier_type in ('INT', 'CUST'))
15975: OR
15976: (p_x_line_rec.ordered_item = FND_API.G_MISS_CHAR

Line 16023: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

16019: -- rlanka: changes made to fix bug 1730452
16020: -- rlanka: changes made to fix bug 1857538
16021: -------------------------------------------------------------------------
16022:
16023: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
16024: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
16025: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
16026: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
16027: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

Line 16024: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

16020: -- rlanka: changes made to fix bug 1857538
16021: -------------------------------------------------------------------------
16022:
16023: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
16024: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
16025: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
16026: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
16027: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
16028: p_x_line_rec.split_from_line_id IS NULL THEN

Line 16025: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and

16021: -------------------------------------------------------------------------
16022:
16023: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
16024: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
16025: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
16026: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
16027: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
16028: p_x_line_rec.split_from_line_id IS NULL THEN
16029:

Line 16027: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

16023: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
16024: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
16025: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
16026: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
16027: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
16028: p_x_line_rec.split_from_line_id IS NULL THEN
16029:
16030:
16031: /* Fix for bug 1730452 (May 1, 2001)

Line 16088: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16084: OEXULPAB.pls
16085: - Idea is, copy_model_pattr for each option line.
16086: */
16087: OE_delayed_requests_Pvt.log_request(
16088: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16089: p_entity_id => p_x_line_rec.line_id,
16090: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16091: p_requesting_entity_id => p_x_line_rec.line_id,
16092: p_param1 => p_x_line_rec.line_id,

Line 16090: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16086: */
16087: OE_delayed_requests_Pvt.log_request(
16088: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16089: p_entity_id => p_x_line_rec.line_id,
16090: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16091: p_requesting_entity_id => p_x_line_rec.line_id,
16092: p_param1 => p_x_line_rec.line_id,
16093: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,
16094: x_return_status => l_return_status);

Line 16093: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,

16089: p_entity_id => p_x_line_rec.line_id,
16090: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16091: p_requesting_entity_id => p_x_line_rec.line_id,
16092: p_param1 => p_x_line_rec.line_id,
16093: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,
16094: x_return_status => l_return_status);
16095: end if;
16096:
16097: END IF;

Line 16108: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR

16104:
16105: OE_SALES_CAN_UTIL.G_REQUIRE_REASON := l_require_reason;
16106:
16107: /*sdatti*/
16108: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
16109: p_x_line_rec.ordered_quantity = 0)
16110: and OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
16111:
16112: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN

Line 16112: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN

16108: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
16109: p_x_line_rec.ordered_quantity = 0)
16110: and OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
16111:
16112: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
16113: update_adjustment_flags(p_old_line_rec,p_x_line_rec);
16114: END IF;
16115: END IF;
16116: /*sdatti*/

Line 16131: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

16127: -- log a split payment request to cascade payment information from
16128: -- the parent line if the line is split
16129: ------------------------------------------------------------------------
16130:
16131: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
16132: AND p_x_line_rec.split_from_line_id is not null
16133: AND OE_PREPAYMENT_UTIL.IS_MULTIPLE_PAYMENTS_ENABLED
16134: THEN
16135:

Line 16151: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16147:
16148: IF l_line_payment_type_code IS NOT NULL THEN
16149: oe_debug_pub.add('Log delayed request to cascade payment information for line: '||p_x_line_rec.line_id, 1);
16150: OE_Delayed_Requests_Pvt.Log_Request(
16151: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16152: p_entity_id => p_x_line_rec.line_id,
16153: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16154: p_requesting_entity_id => p_x_line_rec.line_id,
16155: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,

Line 16153: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16149: oe_debug_pub.add('Log delayed request to cascade payment information for line: '||p_x_line_rec.line_id, 1);
16150: OE_Delayed_Requests_Pvt.Log_Request(
16151: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16152: p_entity_id => p_x_line_rec.line_id,
16153: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16154: p_requesting_entity_id => p_x_line_rec.line_id,
16155: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,
16156: p_param1 => p_x_line_rec.split_from_line_id,
16157: p_param2 => p_x_line_rec.header_id,

Line 16155: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,

16151: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16152: p_entity_id => p_x_line_rec.line_id,
16153: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16154: p_requesting_entity_id => p_x_line_rec.line_id,
16155: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,
16156: p_param1 => p_x_line_rec.split_from_line_id,
16157: p_param2 => p_x_line_rec.header_id,
16158: x_return_status => l_return_status);
16159: END IF;

Line 16168: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

16164: ------------------------------------------------------------------------
16165: -- log a split hold request if the line is split
16166: ------------------------------------------------------------------------
16167:
16168: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
16169: p_x_line_rec.split_from_line_id is not null
16170: THEN
16171: if l_debug_level > 0 then
16172: oe_debug_pub.add('This is a new line after split', 1);

Line 16175: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16171: if l_debug_level > 0 then
16172: oe_debug_pub.add('This is a new line after split', 1);
16173: end if;
16174: OE_Delayed_Requests_Pvt.Log_Request(
16175: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16176: p_entity_id => p_x_line_rec.line_id,
16177: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16178: p_requesting_entity_id => p_x_line_rec.line_id,
16179: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,

Line 16177: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16173: end if;
16174: OE_Delayed_Requests_Pvt.Log_Request(
16175: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16176: p_entity_id => p_x_line_rec.line_id,
16177: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16178: p_requesting_entity_id => p_x_line_rec.line_id,
16179: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,
16180: p_param1 => p_x_line_rec.split_from_line_id,
16181: x_return_status => l_return_status);

Line 16179: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,

16175: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16176: p_entity_id => p_x_line_rec.line_id,
16177: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16178: p_requesting_entity_id => p_x_line_rec.line_id,
16179: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,
16180: p_param1 => p_x_line_rec.split_from_line_id,
16181: x_return_status => l_return_status);
16182: END IF;
16183:

Line 16201: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR

16197: oe_debug_pub.add('Split Action:'||p_x_line_rec.split_Action_code,2);
16198: END IF;
16199:
16200: IF p_x_line_rec.shipping_interfaced_flag = 'Y' AND
16201: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR
16202: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16203: p_x_line_rec.ship_set_id IS NULL AND
16204: p_old_line_rec.ship_set_id IS NOT NULL AND
16205: p_x_line_rec.split_action_code = 'SPLIT'

Line 16202: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

16198: END IF;
16199:
16200: IF p_x_line_rec.shipping_interfaced_flag = 'Y' AND
16201: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR
16202: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16203: p_x_line_rec.ship_set_id IS NULL AND
16204: p_old_line_rec.ship_set_id IS NOT NULL AND
16205: p_x_line_rec.split_action_code = 'SPLIT'
16206: )

Line 16215: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16211: if l_debug_level > 0 then
16212: oe_debug_pub.ADD('Update Shipping : '|| p_x_line_rec.line_id ,1);
16213: end if;
16214: OE_Delayed_Requests_Pvt.Log_Request(
16215: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16216: p_entity_id => p_x_line_rec.line_id,
16217: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16218: p_requesting_entity_id => p_x_line_rec.line_id,
16219: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 16217: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16213: end if;
16214: OE_Delayed_Requests_Pvt.Log_Request(
16215: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16216: p_entity_id => p_x_line_rec.line_id,
16217: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16218: p_requesting_entity_id => p_x_line_rec.line_id,
16219: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
16220: p_request_unique_key1 => p_x_line_rec.operation,
16221: p_param1 => FND_API.G_TRUE,

Line 16219: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

16215: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16216: p_entity_id => p_x_line_rec.line_id,
16217: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16218: p_requesting_entity_id => p_x_line_rec.line_id,
16219: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
16220: p_request_unique_key1 => p_x_line_rec.operation,
16221: p_param1 => FND_API.G_TRUE,
16222: p_param2 => FND_API.G_FALSE,
16223: x_return_status => l_return_status);

Line 16228: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

16224:
16225: END IF;
16226: --bsadri call pricing for deleted lines
16227:
16228: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
16229: p_x_line_rec.order_quantity_uom IS NOT NULL AND
16230: p_x_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR AND
16231: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
16232: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN

Line 16234: IF (OE_GLOBALS.G_UI_FLAG) and

16230: p_x_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR AND
16231: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
16232: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN
16233:
16234: IF (OE_GLOBALS.G_UI_FLAG) and
16235: OE_GLOBALS.G_DEFER_PRICING='N' and
16236: (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N') THEN
16237: if l_debug_level > 0 then
16238: oe_debug_pub.add('ui mode - delete');

Line 16235: OE_GLOBALS.G_DEFER_PRICING='N' and

16231: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
16232: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN
16233:
16234: IF (OE_GLOBALS.G_UI_FLAG) and
16235: OE_GLOBALS.G_DEFER_PRICING='N' and
16236: (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N') THEN
16237: if l_debug_level > 0 then
16238: oe_debug_pub.add('ui mode - delete');
16239: end if;

Line 16246: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16242: ELSE
16243: l_pricing_event := 'ORDER';
16244: END IF;
16245: OE_delayed_requests_Pvt.log_request(
16246: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16247: p_entity_id => p_x_line_rec.Header_Id,
16248: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16249: p_requesting_entity_id => p_x_line_rec.Header_Id,
16250: p_request_unique_key1 => l_pricing_event,

Line 16248: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16244: END IF;
16245: OE_delayed_requests_Pvt.log_request(
16246: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16247: p_entity_id => p_x_line_rec.Header_Id,
16248: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16249: p_requesting_entity_id => p_x_line_rec.Header_Id,
16250: p_request_unique_key1 => l_pricing_event,
16251: p_param1 => p_x_line_rec.header_id,
16252: p_param2 => l_pricing_event,

Line 16253: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

16249: p_requesting_entity_id => p_x_line_rec.Header_Id,
16250: p_request_unique_key1 => l_pricing_event,
16251: p_param1 => p_x_line_rec.header_id,
16252: p_param2 => l_pricing_event,
16253: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
16254: x_return_status => l_return_status);
16255: ELSE
16256: if l_debug_level > 0 then
16257: oe_debug_pub.add('batch mode - delete');

Line 16276: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16272: if l_debug_level > 0 then
16273: oe_debug_pub.add('logging price order - delete operation');
16274: end if;
16275: OE_delayed_requests_Pvt.log_request(
16276: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16277: p_entity_id => p_x_line_rec.Header_Id,
16278: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16279: p_requesting_entity_id => p_x_line_rec.Header_Id,
16280: p_request_unique_key1 => l_pricing_event,

Line 16278: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16274: end if;
16275: OE_delayed_requests_Pvt.log_request(
16276: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16277: p_entity_id => p_x_line_rec.Header_Id,
16278: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16279: p_requesting_entity_id => p_x_line_rec.Header_Id,
16280: p_request_unique_key1 => l_pricing_event,
16281: p_param1 => p_x_line_rec.header_id,
16282: p_param2 => l_pricing_event,

Line 16283: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

16279: p_requesting_entity_id => p_x_line_rec.Header_Id,
16280: p_request_unique_key1 => l_pricing_event,
16281: p_param1 => p_x_line_rec.header_id,
16282: p_param2 => l_pricing_event,
16283: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
16284: x_return_status => l_return_status);
16285: end if;
16286: END IF;
16287: --

Line 16293: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16289: if l_debug_level > 0 then
16290: oe_debug_pub.add('bokked - delete');
16291: end if;
16292: OE_delayed_requests_Pvt.log_request(
16293: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16294: p_entity_id => p_x_line_rec.Header_Id,
16295: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16296: p_requesting_entity_id => p_x_line_rec.Header_Id,
16297: p_request_unique_key1 => 'BOOK',

Line 16295: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

16291: end if;
16292: OE_delayed_requests_Pvt.log_request(
16293: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16294: p_entity_id => p_x_line_rec.Header_Id,
16295: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
16296: p_requesting_entity_id => p_x_line_rec.Header_Id,
16297: p_request_unique_key1 => 'BOOK',
16298: p_param1 => p_x_line_rec.header_id,
16299: p_param2 => 'BOOK',

Line 16300: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

16296: p_requesting_entity_id => p_x_line_rec.Header_Id,
16297: p_request_unique_key1 => 'BOOK',
16298: p_param1 => p_x_line_rec.header_id,
16299: p_param2 => 'BOOK',
16300: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
16301: x_return_status => l_return_status);
16302: END IF; --2442012
16303: */
16304: END IF;

Line 16309: IF (p_x_line_rec.operation = oe_globals.g_opr_update) and

16305:
16306: if l_debug_level > 0 then
16307: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
16308: end if;
16309: IF (p_x_line_rec.operation = oe_globals.g_opr_update) and
16310: NOT (p_x_line_rec.split_action_code IS NOT NULL AND
16311: p_x_line_rec.split_action_code <> FND_API.G_MISS_CHAR) AND
16312: (p_x_line_rec.line_set_id IS NOT NULL AND
16313: p_x_line_rec.line_set_id <> FND_API.G_MISS_NUM) THEN

Line 16319: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,

16315: -- Addded project and task to fix bug #1229811
16316: if l_debug_level > 0 then
16317: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
16318: end if;
16319: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
16320: p_old_line_rec.inventory_item_id) OR
16321: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
16322: p_old_line_rec.order_quantity_uom) OR
16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,

Line 16321: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,

16317: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
16318: end if;
16319: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
16320: p_old_line_rec.inventory_item_id) OR
16321: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
16322: p_old_line_rec.order_quantity_uom) OR
16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
16324: p_old_line_rec.ship_tolerance_above) OR
16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,

Line 16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,

16319: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
16320: p_old_line_rec.inventory_item_id) OR
16321: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
16322: p_old_line_rec.order_quantity_uom) OR
16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
16324: p_old_line_rec.ship_tolerance_above) OR
16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
16326: p_old_line_rec.ship_tolerance_below) OR
16327: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,

Line 16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,

16321: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
16322: p_old_line_rec.order_quantity_uom) OR
16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
16324: p_old_line_rec.ship_tolerance_above) OR
16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
16326: p_old_line_rec.ship_tolerance_below) OR
16327: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
16328: p_old_line_rec.project_id) OR
16329: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,

Line 16327: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,

16323: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
16324: p_old_line_rec.ship_tolerance_above) OR
16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
16326: p_old_line_rec.ship_tolerance_below) OR
16327: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
16328: p_old_line_rec.project_id) OR
16329: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
16330: p_old_line_rec.task_id) THEN
16331: OE_Delayed_Requests_Pvt.Log_Request(

Line 16329: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,

16325: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
16326: p_old_line_rec.ship_tolerance_below) OR
16327: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
16328: p_old_line_rec.project_id) OR
16329: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
16330: p_old_line_rec.task_id) THEN
16331: OE_Delayed_Requests_Pvt.Log_Request(
16332: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16333: p_entity_id => p_x_line_rec.line_set_id,

Line 16332: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16328: p_old_line_rec.project_id) OR
16329: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
16330: p_old_line_rec.task_id) THEN
16331: OE_Delayed_Requests_Pvt.Log_Request(
16332: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16333: p_entity_id => p_x_line_rec.line_set_id,
16334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16335: p_requesting_entity_id => p_x_line_rec.line_id,
16336: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,

Line 16334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16330: p_old_line_rec.task_id) THEN
16331: OE_Delayed_Requests_Pvt.Log_Request(
16332: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16333: p_entity_id => p_x_line_rec.line_set_id,
16334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16335: p_requesting_entity_id => p_x_line_rec.line_id,
16336: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,
16337: x_return_status => l_return_status);
16338: END IF;

Line 16336: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,

16332: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16333: p_entity_id => p_x_line_rec.line_set_id,
16334: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16335: p_requesting_entity_id => p_x_line_rec.line_id,
16336: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,
16337: x_return_status => l_return_status);
16338: END IF;
16339:
16340: END IF;

Line 16348: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)

16344: -- Perform Cancellation if necessary
16345: ------------------------------------------------------------------------
16346:
16347: -- QUOTING change
16348: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
16349: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
16350: THEN
16351: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND
16352: (p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM OR

Line 16351: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND

16347: -- QUOTING change
16348: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
16349: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
16350: THEN
16351: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND
16352: (p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM OR
16353: p_old_line_rec.ordered_quantity IS NOT NULL)) then
16354:
16355: OE_SALES_CAN_UTIL.Perform_Line_change(p_x_line_rec,

Line 16399: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id

16395: ------------------------------------------------------------------------
16396:
16397: IF (p_x_line_rec.line_category_code <> 'RETURN') THEN
16398:
16399: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id
16400: ,p_old_line_rec.ship_from_org_id) OR
16401: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,
16402: p_old_line_rec.shipping_method_code)) THEN
16403: IF (p_x_line_rec.shipping_method_code IS NOT NULL AND

Line 16401: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,

16397: IF (p_x_line_rec.line_category_code <> 'RETURN') THEN
16398:
16399: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id
16400: ,p_old_line_rec.ship_from_org_id) OR
16401: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,
16402: p_old_line_rec.shipping_method_code)) THEN
16403: IF (p_x_line_rec.shipping_method_code IS NOT NULL AND
16404: p_x_line_rec.ship_from_org_id IS NOT NULL) THEN
16405:

Line 16501: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

16497: IF
16498: ((
16499: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
16500: AND
16501: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
16502: ,p_old_line_rec.transaction_phase_code)
16503: ) OR
16504: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
16505: p_old_line_rec.inventory_item_id) OR

Line 16504: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,

16500: AND
16501: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
16502: ,p_old_line_rec.transaction_phase_code)
16503: ) OR
16504: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
16505: p_old_line_rec.inventory_item_id) OR
16506: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
16507: p_old_line_rec.sold_to_org_id) OR
16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,

Line 16506: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,

16502: ,p_old_line_rec.transaction_phase_code)
16503: ) OR
16504: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
16505: p_old_line_rec.inventory_item_id) OR
16506: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
16507: p_old_line_rec.sold_to_org_id) OR
16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
16509: p_old_line_rec.unit_selling_price) OR
16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

Line 16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,

16504: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
16505: p_old_line_rec.inventory_item_id) OR
16506: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
16507: p_old_line_rec.sold_to_org_id) OR
16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
16509: p_old_line_rec.unit_selling_price) OR
16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16511: p_old_line_rec.commitment_id) OR
16512: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And

Line 16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

16506: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
16507: p_old_line_rec.sold_to_org_id) OR
16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
16509: p_old_line_rec.unit_selling_price) OR
16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16511: p_old_line_rec.commitment_id) OR
16512: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
16513: --fix bug 1669076
16514: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

Line 16512: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And

16508: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
16509: p_old_line_rec.unit_selling_price) OR
16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16511: p_old_line_rec.commitment_id) OR
16512: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
16513: --fix bug 1669076
16514: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16515: p_old_line_rec.commitment_id)
16516: THEN

Line 16514: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

16510: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16511: p_old_line_rec.commitment_id) OR
16512: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
16513: --fix bug 1669076
16514: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16515: p_old_line_rec.commitment_id)
16516: THEN
16517:
16518: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)

Line 16518: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)

16514: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16515: p_old_line_rec.commitment_id)
16516: THEN
16517:
16518: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
16519: OR NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price) --OR NOT OE_GLOBALS.Equal(p_x_
16520: Then
16521:
16522: If p_x_line_rec.ordered_quantity IS NULL OR

Line 16519: OR NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price) --OR NOT OE_GLOBALS.Equal(p_x_

16515: p_old_line_rec.commitment_id)
16516: THEN
16517:
16518: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
16519: OR NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price) --OR NOT OE_GLOBALS.Equal(p_x_
16520: Then
16521:
16522: If p_x_line_rec.ordered_quantity IS NULL OR
16523: p_x_line_rec.ordered_quantity = FND_API.G_MISS_NUM Then

Line 16552: If NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

16548: l_old_unit_selling_price :=p_old_line_rec.unit_selling_price;
16549: End If;
16550:
16551:
16552: If NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
16553: p_old_line_rec.commitment_id) Then
16554: /* commtiment can change event quantity can change
16555: We always pass in the new, not the delta when commitment changes */
16556:

Line 16579: -- IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

16575: End If;
16576:
16577:
16578: -- commented out the IF condition for bug 1905467.
16579: -- IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
16580:
16581: -- retain the original commitment functionality
16582: IF Not Oe_Commitment_pvt.do_commitment_sequencing THEN
16583: if l_debug_level > 0 then

Line 16623: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

16619: -- QUOTING change - log request only for fulfillment phase
16620: --4504362 : Branch scheduling checks removed
16621: -- If this is a split line then put this in fulfilment set if any.
16622:
16623: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
16624: p_x_line_rec.split_from_line_id IS NOT NULL ) THEN
16625: oe_split_util.Add_To_Fulfillment_Set(p_line_rec => p_x_line_rec);
16626: END IF;
16627:

Line 16633: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

16629: -- If line is being created by a split operation, then log request
16630: -- to copy attachments else log request to apply automatic attachments
16631: ------------------------------------------------------------------------
16632:
16633: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
16634:
16635: IF NVL(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
16636: = FND_API.G_MISS_NUM
16637: THEN

Line 16646: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16642: if l_debug_level > 0 then
16643: oe_debug_pub.add('log request to apply atchmt',1);
16644: end if;
16645: OE_delayed_requests_Pvt.Log_Request
16646: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16647: p_entity_id => p_x_line_rec.line_id,
16648: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16650: p_requesting_entity_id => p_x_line_rec.line_id,

Line 16648: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,

16644: end if;
16645: OE_delayed_requests_Pvt.Log_Request
16646: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16647: p_entity_id => p_x_line_rec.line_id,
16648: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16650: p_requesting_entity_id => p_x_line_rec.line_id,
16651: x_return_status => l_return_status
16652: );

Line 16649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16645: OE_delayed_requests_Pvt.Log_Request
16646: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16647: p_entity_id => p_x_line_rec.line_id,
16648: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16650: p_requesting_entity_id => p_x_line_rec.line_id,
16651: x_return_status => l_return_status
16652: );
16653: END IF;

Line 16662: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16658: if l_debug_level > 0 then
16659: oe_debug_pub.add('log request to copy all atchmt',1);
16660: end if;
16661: OE_delayed_requests_Pvt.Log_Request
16662: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16663: p_entity_id => p_x_line_rec.line_id,
16664: p_param1 => p_x_line_rec.split_from_line_id,
16665: p_param2 => 'N', -- copy ALL attachments
16666: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 16666: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

16662: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16663: p_entity_id => p_x_line_rec.line_id,
16664: p_param1 => p_x_line_rec.split_from_line_id,
16665: p_param2 => 'N', -- copy ALL attachments
16666: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
16667: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16668: p_requesting_entity_id => p_x_line_rec.line_id,
16669: x_return_status => l_return_status
16670: );

Line 16667: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16663: p_entity_id => p_x_line_rec.line_id,
16664: p_param1 => p_x_line_rec.split_from_line_id,
16665: p_param2 => 'N', -- copy ALL attachments
16666: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
16667: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16668: p_requesting_entity_id => p_x_line_rec.line_id,
16669: x_return_status => l_return_status
16670: );
16671:

Line 16678: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16674: if l_debug_level > 0 then
16675: oe_debug_pub.add('log request to copy manual atchmt',1);
16676: end if;
16677: OE_delayed_requests_Pvt.Log_Request
16678: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16679: p_entity_id => p_x_line_rec.line_id,
16680: p_param1 => p_x_line_rec.split_from_line_id,
16681: p_param2 => 'Y', -- copy only manual attachments
16682: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 16682: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

16678: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16679: p_entity_id => p_x_line_rec.line_id,
16680: p_param1 => p_x_line_rec.split_from_line_id,
16681: p_param2 => 'Y', -- copy only manual attachments
16682: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
16683: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16684: p_requesting_entity_id => p_x_line_rec.line_id,
16685: x_return_status => l_return_status
16686: );

Line 16683: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16679: p_entity_id => p_x_line_rec.line_id,
16680: p_param1 => p_x_line_rec.split_from_line_id,
16681: p_param2 => 'Y', -- copy only manual attachments
16682: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
16683: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16684: p_requesting_entity_id => p_x_line_rec.line_id,
16685: x_return_status => l_return_status
16686: );
16687:

Line 16692: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

16688: END IF; -- if SYSTEM split else
16689:
16690: END IF; -- if split else
16691: ELSE -- 5893276
16692: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16693: G_APPLY_AUTOMATIC_ATCHMT = 'Y' THEN
16694: if l_debug_level > 0 then
16695: oe_debug_pub.add('log request to apply atchmt for UPDATE ',1);
16696: end if;

Line 16699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID

16695: oe_debug_pub.add('log request to apply atchmt for UPDATE ',1);
16696: end if;
16697:
16698: --6896311
16699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
16700: ,p_old_line_rec.INVOICE_TO_ORG_ID)
16701: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
16702: ,p_old_line_rec.SOLD_TO_ORG_ID)
16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER

Line 16701: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID

16697:
16698: --6896311
16699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
16700: ,p_old_line_rec.INVOICE_TO_ORG_ID)
16701: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
16702: ,p_old_line_rec.SOLD_TO_ORG_ID)
16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
16704: ,p_old_line_rec.CUST_PO_NUMBER)
16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID

Line 16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER

16699: IF NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
16700: ,p_old_line_rec.INVOICE_TO_ORG_ID)
16701: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
16702: ,p_old_line_rec.SOLD_TO_ORG_ID)
16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
16704: ,p_old_line_rec.CUST_PO_NUMBER)
16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
16706: ,p_old_line_rec.INVENTORY_ITEM_ID)
16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE

Line 16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID

16701: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
16702: ,p_old_line_rec.SOLD_TO_ORG_ID)
16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
16704: ,p_old_line_rec.CUST_PO_NUMBER)
16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
16706: ,p_old_line_rec.INVENTORY_ITEM_ID)
16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
16708: ,p_old_line_rec.LINE_CATEGORY_CODE)
16709: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID

Line 16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE

16703: OR NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
16704: ,p_old_line_rec.CUST_PO_NUMBER)
16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
16706: ,p_old_line_rec.INVENTORY_ITEM_ID)
16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
16708: ,p_old_line_rec.LINE_CATEGORY_CODE)
16709: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
16710: ,p_old_line_rec.LINE_TYPE_ID)
16711: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID

Line 16709: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID

16705: OR NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
16706: ,p_old_line_rec.INVENTORY_ITEM_ID)
16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
16708: ,p_old_line_rec.LINE_CATEGORY_CODE)
16709: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
16710: ,p_old_line_rec.LINE_TYPE_ID)
16711: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID
16712: ,p_old_line_rec.SHIP_TO_ORG_ID)
16713: THEN

Line 16711: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID

16707: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
16708: ,p_old_line_rec.LINE_CATEGORY_CODE)
16709: OR NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
16710: ,p_old_line_rec.LINE_TYPE_ID)
16711: OR NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID
16712: ,p_old_line_rec.SHIP_TO_ORG_ID)
16713: THEN
16714:
16715: l_attr_attach_change := TRUE;

Line 16721: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16717: END IF;
16718: --6896311
16719: IF l_attr_attach_change THEN --6896311
16720: OE_delayed_requests_Pvt.Log_Request
16721: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16722: p_entity_id => p_x_line_rec.line_id,
16723: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16724: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16725: p_requesting_entity_id => p_x_line_rec.line_id,

Line 16723: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,

16719: IF l_attr_attach_change THEN --6896311
16720: OE_delayed_requests_Pvt.Log_Request
16721: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16722: p_entity_id => p_x_line_rec.line_id,
16723: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16724: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16725: p_requesting_entity_id => p_x_line_rec.line_id,
16726: x_return_status => l_return_status
16727: );

Line 16724: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

16720: OE_delayed_requests_Pvt.Log_Request
16721: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16722: p_entity_id => p_x_line_rec.line_id,
16723: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
16724: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
16725: p_requesting_entity_id => p_x_line_rec.line_id,
16726: x_return_status => l_return_status
16727: );
16728: END IF; --6896311

Line 16742: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

16738: -- default values on the child entities of line record are
16739: -- obtained from the updated line record
16740: ------------------------------------------------------------------------
16741:
16742: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
16743: ONT_LINE_Def_Util.Clear_LINE_Cache;
16744: END IF;
16745:
16746:

Line 16752: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

16748: -- if there is an update operation on model line,
16749: -- clear the cached model line record if any.
16750: ------------------------------------------------------------------------
16751:
16752: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16753: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
16754: if l_debug_level > 0 then
16755: oe_debug_pub.add('clear the cached top model record', 1);
16756: oe_debug_pub.add('model line: '|| p_x_line_rec.line_id, 1);

Line 16753: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

16749: -- clear the cached model line record if any.
16750: ------------------------------------------------------------------------
16751:
16752: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16753: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
16754: if l_debug_level > 0 then
16755: oe_debug_pub.add('clear the cached top model record', 1);
16756: oe_debug_pub.add('model line: '|| p_x_line_rec.line_id, 1);
16757: end if;

Line 16787: IF NOT OE_GLOBALS.Equal(p_old_line_rec.ship_from_org_id,

16783:
16784: if l_debug_level > 0 then
16785: oe_debug_pub.add('Setting the resource ',1);
16786: end if;
16787: IF NOT OE_GLOBALS.Equal(p_old_line_rec.ship_from_org_id,
16788: p_x_line_rec.ship_from_org_id)
16789: THEN
16790: IF p_x_line_rec.ship_from_org_id is not null
16791: THEN

Line 16818: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,

16814: -- place the clearing logic here for a scheduled line, some
16815: -- of the delayed request may clear the original item information
16816: -- after substitution.
16817:
16818: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,
16819: p_old_line_rec.Inventory_Item_Id)
16820: AND p_x_line_rec.schedule_status_code is null
16821: AND p_x_line_rec.Original_Inventory_Item_Id IS NOT NULL
16822: AND p_x_line_rec.item_relationship_type IS NULL

Line 16862: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) AND

16858:
16859: if l_debug_level > 0 then
16860: oe_debug_pub.add('Before checking for system split on int ord');
16861: end if;
16862: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) AND
16863: (p_x_line_rec.split_by = 'SYSTEM') AND
16864: (p_x_line_rec.order_source_id = 10) THEN
16865: FND_MESSAGE.SET_NAME('ONT','OE_CHG_CORR_REQ');
16866: -- { start fix for 2648277

Line 16886: NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

16882: -- lines. Do not log for System Split Lines.
16883:
16884: IF p_x_line_rec.source_type_code = 'EXTERNAL' AND
16885: p_x_line_rec.booked_flag = 'Y' AND
16886: NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
16887: p_x_line_rec.split_by = 'SYSTEM' AND
16888: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT') AND
16889: (PO_CODE_RELEASE_GRP.Current_Release >=
16890: PO_CODE_RELEASE_GRP.PRC_11i_Family_Pack_J) AND

Line 16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then

16969:
16970: /* Start AuditTrail */
16971:
16972: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND

Line 16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN

16970: /* Start AuditTrail */
16971:
16972: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason

Line 16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP

16971:
16972: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
16979: if l_debug_level > 0 then

Line 16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN

16972: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
16979: if l_debug_level > 0 then
16980: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);

Line 16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND

16973: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
16979: if l_debug_level > 0 then
16980: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);
16981: end if;

Line 16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason

16974: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
16975: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
16976: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
16977: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
16978: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
16979: if l_debug_level > 0 then
16980: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);
16981: end if;
16982: IF (p_x_line_rec.change_reason IS NULL OR

Line 16991: IF OE_GLOBALS.G_DEFAULT_REASON THEN

16987: IF OE_Versioning_Util.Captured_Reason IS NULL THEN
16988: OE_Versioning_Util.Get_Reason_Info(l_reason_code, l_reason_comments);
16989: IF l_reason_code IS NULL THEN
16990: -- bug 3636884, defaulting reason from group API
16991: IF OE_GLOBALS.G_DEFAULT_REASON THEN
16992: if l_debug_level > 0 then
16993: oe_debug_pub.add('Defaulting Audit Reason for Order Line', 1);
16994: end if;
16995: p_x_line_rec.change_reason := 'SYSTEM';

Line 17028: IF (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE) AND

17024: END IF;
17025:
17026: IF p_process_step IN (2,3) THEN
17027:
17028: IF (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE) AND
17029: (p_x_line_rec.split_action_code = 'SPLIT') THEN
17030:
17031: --11.5.10 Versioning/Audit Trail updates
17032: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN

Line 17033: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17029: (p_x_line_rec.split_action_code = 'SPLIT') THEN
17030:
17031: --11.5.10 Versioning/Audit Trail updates
17032: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN
17033: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17034: p_entity_id => p_x_line_rec.line_id,
17035: p_hist_type_code => 'SPLIT');
17036: --log delayed request
17037: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

Line 17037: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17033: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17034: p_entity_id => p_x_line_rec.line_id,
17035: p_hist_type_code => 'SPLIT');
17036: --log delayed request
17037: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17038: p_entity_id => p_x_line_rec.header_id,
17039: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17040: p_requesting_entity_id => p_x_line_rec.line_id,
17041: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 17039: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17035: p_hist_type_code => 'SPLIT');
17036: --log delayed request
17037: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17038: p_entity_id => p_x_line_rec.header_id,
17039: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17040: p_requesting_entity_id => p_x_line_rec.line_id,
17041: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17042: x_return_status => l_return_status);
17043: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

Line 17041: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

17037: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17038: p_entity_id => p_x_line_rec.header_id,
17039: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17040: p_requesting_entity_id => p_x_line_rec.line_id,
17041: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17042: x_return_status => l_return_status);
17043: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
17044: ELSE
17045: OE_CHG_ORDER_PVT.RecordLineHist

Line 17043: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

17039: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17040: p_requesting_entity_id => p_x_line_rec.line_id,
17041: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17042: x_return_status => l_return_status);
17043: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
17044: ELSE
17045: OE_CHG_ORDER_PVT.RecordLineHist
17046: (p_line_id => p_x_line_rec.line_id,
17047: p_line_rec => null,

Line 17075: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN

17071: END IF;
17072:
17073: --11.5.10 Versioning/Audit Trail updates
17074: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
17075: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;

Line 17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND

17072:
17073: --11.5.10 Versioning/Audit Trail updates
17074: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
17075: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;

Line 17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN

17073: --11.5.10 Versioning/Audit Trail updates
17074: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
17075: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
17081: OE_GLOBALS.G_CAPTURED_REASON := 'Y';

Line 17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;

17075: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
17081: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
17082: ELSE
17083: if l_debug_level > 0 then

Line 17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;

17076: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
17081: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
17082: ELSE
17083: if l_debug_level > 0 then
17084: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);

Line 17081: OE_GLOBALS.G_CAPTURED_REASON := 'Y';

17077: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
17078: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
17079: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
17080: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
17081: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
17082: ELSE
17083: if l_debug_level > 0 then
17084: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
17085: end if;

Line 17086: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140

17082: ELSE
17083: if l_debug_level > 0 then
17084: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
17085: end if;
17086: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140
17087: IF OE_GLOBALS.G_UI_FLAG
17088: OR ( p_x_line_rec.split_action_code = 'SPLIT'
17089: AND nvl(p_x_line_rec.split_by,'SYSTEM') = 'USER' ) THEN --bug5716140
17090: raise FND_API.G_EXC_ERROR;

Line 17087: IF OE_GLOBALS.G_UI_FLAG

17083: if l_debug_level > 0 then
17084: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
17085: end if;
17086: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140
17087: IF OE_GLOBALS.G_UI_FLAG
17088: OR ( p_x_line_rec.split_action_code = 'SPLIT'
17089: AND nvl(p_x_line_rec.split_by,'SYSTEM') = 'USER' ) THEN --bug5716140
17090: raise FND_API.G_EXC_ERROR;
17091: end if;

Line 17099: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17095: --log delayed request
17096: if l_debug_level > 0 then
17097: oe_debug_pub.add('log versioning request',1);
17098: end if;
17099: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17100: p_entity_id => p_x_line_rec.header_id,
17101: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17102: p_requesting_entity_id => p_x_line_rec.line_id,
17103: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 17101: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17097: oe_debug_pub.add('log versioning request',1);
17098: end if;
17099: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17100: p_entity_id => p_x_line_rec.header_id,
17101: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17102: p_requesting_entity_id => p_x_line_rec.line_id,
17103: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17104: x_return_status => l_return_status);
17105: END IF;

Line 17103: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

17099: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17100: p_entity_id => p_x_line_rec.header_id,
17101: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17102: p_requesting_entity_id => p_x_line_rec.line_id,
17103: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17104: x_return_status => l_return_status);
17105: END IF;
17106:
17107: /* Start Audit Trail - Insert Lines history */

Line 17110: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN

17106:
17107: /* Start Audit Trail - Insert Lines history */
17108:
17109: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
17110: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
17111: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
17112: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
17113: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
17114: if l_debug_level > 0 then

Line 17111: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP

17107: /* Start Audit Trail - Insert Lines history */
17108:
17109: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
17110: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
17111: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
17112: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
17113: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
17114: if l_debug_level > 0 then
17115: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);

Line 17112: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN

17108:
17109: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
17110: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
17111: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
17112: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
17113: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
17114: if l_debug_level > 0 then
17115: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);
17116: end if;

Line 17113: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN

17109: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
17110: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
17111: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
17112: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
17113: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
17114: if l_debug_level > 0 then
17115: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);
17116: end if;
17117:

Line 17120: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17116: end if;
17117:
17118: --11.5.10 Versioning/Audit Trail updates
17119: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN
17120: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17121: p_entity_id => p_x_line_rec.line_id,
17122: p_hist_type_code => 'UPDATE');
17123: --log delayed request
17124: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

Line 17124: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17120: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17121: p_entity_id => p_x_line_rec.line_id,
17122: p_hist_type_code => 'UPDATE');
17123: --log delayed request
17124: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17125: p_entity_id => p_x_line_rec.header_id,
17126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17127: p_requesting_entity_id => p_x_line_rec.line_id,
17128: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 17126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17122: p_hist_type_code => 'UPDATE');
17123: --log delayed request
17124: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17125: p_entity_id => p_x_line_rec.header_id,
17126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17127: p_requesting_entity_id => p_x_line_rec.line_id,
17128: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17129: x_return_status => l_return_status);
17130: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

Line 17128: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

17124: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17125: p_entity_id => p_x_line_rec.header_id,
17126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17127: p_requesting_entity_id => p_x_line_rec.line_id,
17128: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17129: x_return_status => l_return_status);
17130: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
17131: ELSE
17132: OE_CHG_ORDER_PVT.RecordLineHist

Line 17130: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

17126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17127: p_requesting_entity_id => p_x_line_rec.line_id,
17128: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
17129: x_return_status => l_return_status);
17130: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
17131: ELSE
17132: OE_CHG_ORDER_PVT.RecordLineHist
17133: (p_line_id => p_x_line_rec.line_id,
17134: p_line_rec => null,

Line 17159: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);

17155:
17156: END IF;
17157: -- now the history is inserted successfully, remove the entry from pl/sql table
17158: if l_debug_level > 0 then
17159: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);
17160: end if;
17161: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);
17162: END IF;
17163: END IF;

Line 17161: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);

17157: -- now the history is inserted successfully, remove the entry from pl/sql table
17158: if l_debug_level > 0 then
17159: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);
17160: end if;
17161: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);
17162: END IF;
17163: END IF;
17164:
17165: END LOOP;

Line 17275: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN

17271: oe_debug_pub.add('AK line_iset_d ' || p_line_set_id);
17272: oe_debug_pub.add('AK line_number' || p_line_number);
17273: oe_debug_pub.add('AK item_type_code' || p_item_type_code);
17274:
17275: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN
17276:
17277: OPEN Standard_line_number;
17278: l_cursor_flag := 'S';
17279:

Line 17318: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

17314: CLOSE Standard_line_number;
17315:
17316: OPEN Standard_line_number;
17317: IF SQL%FOUND THEN
17318: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
17319:
17320: LOOP
17321: FETCH Standard_line_number
17322: INTO l_line_rec.line_id,

Line 17340: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL

17336:
17337: END IF;
17338: CLOSE Standard_line_number;
17339:
17340: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL
17341: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT
17342: THEN
17343:
17344:

Line 17341: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT

17337: END IF;
17338: CLOSE Standard_line_number;
17339:
17340: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL
17341: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT
17342: THEN
17343:
17344:
17345: OPEN Model_line_number;

Line 17364: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

17360: AND line_id <> p_line_id
17361: AND header_id = p_header_id; -- 2508099
17362:
17363: IF SQL%FOUND THEN
17364: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
17365:
17366: LOOP
17367: FETCH Model_line_number
17368: INTO l_line_rec.line_id,

Line 17429: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

17425: CLOSE service_line_number;
17426:
17427: OPEN service_line_number;
17428: IF SQL%FOUND THEN
17429: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
17430:
17431: LOOP
17432: FETCH service_line_number
17433: INTO l_line_rec.line_id,

Line 17466: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN

17462: END IF;
17463:
17464: WHEN APP_EXCEPTIONS.RECORD_LOCK_EXCEPTION THEN
17465:
17466: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN
17467: CLOSE Standard_line_number;
17468: ELSE
17469: CLOSE Model_Line_Number;
17470: END IF;

Line 17565: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

17561: oe_debug_pub.add('Entering Post_Write_Process',1);
17562: end if;
17563:
17564: -- QUOTING change
17565: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
17566: AND p_x_line_rec.split_from_line_id IS NULL
17567: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
17568: )
17569: OR (

Line 17571: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

17567: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
17568: )
17569: OR (
17570: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
17571: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
17572: ,p_old_line_rec.transaction_phase_code)
17573: )
17574: THEN
17575: if l_debug_level > 0 then

Line 17579: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE

17575: if l_debug_level > 0 then
17576: oe_debug_pub.add('Call evaluate_holds_post_write for CREATE');
17577: end if;
17578: OE_Holds_PUB.evaluate_holds_post_write
17579: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE
17580: ,p_entity_id => p_x_line_rec.line_id
17581: ,x_msg_count => l_msg_count
17582: ,x_msg_data => l_msg_data
17583: ,x_return_status => l_return_status

Line 17599: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

17595: END IF;
17596:
17597: --Call the delayed request for holds evaluation. This is needed for a
17598: --scheduling fix.
17599: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
17600:
17601: if l_debug_level > 0 then
17602: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
17603: end if;

Line 17606: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE

17602: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
17603: end if;
17604:
17605: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
17606: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE
17607: ,p_delete => FND_API.G_TRUE
17608: ,x_return_status => l_return_status
17609: );
17610: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 17624: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

17620: -- Start the Line Workflow
17621: --------------------------------------------------------------------
17622:
17623: -- QUOTING change
17624: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
17625: OR (OE_Quote_Util.G_COMPLETE_NEG = 'Y'
17626: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
17627: ,p_old_line_rec.transaction_phase_code)
17628: )

Line 17626: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

17622:
17623: -- QUOTING change
17624: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
17625: OR (OE_Quote_Util.G_COMPLETE_NEG = 'Y'
17626: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
17627: ,p_old_line_rec.transaction_phase_code)
17628: )
17629: )
17630: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'

Line 17644: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;

17640: -- Since process included items cannot set recursion mode, caler needs to set
17641: -- the recursion mode.
17642: --------------------------------------------------------------------
17643:
17644: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;
17645: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
17646:
17647: I := OE_Config_Pvt.OE_FREEZE_INC_ITEMS_TBL.FIRST;
17648: WHILE I is not null

Line 17645: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';

17641: -- the recursion mode.
17642: --------------------------------------------------------------------
17643:
17644: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;
17645: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
17646:
17647: I := OE_Config_Pvt.OE_FREEZE_INC_ITEMS_TBL.FIRST;
17648: WHILE I is not null
17649: LOOP

Line 17717: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity, p_old_line_rec.ordered_quantity) THEN

17713: -- when changes been done by Planning user
17714: --
17715:
17716: IF OE_Schedule_GRP.G_ISO_Planning_Update AND
17717: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity, p_old_line_rec.ordered_quantity) THEN
17718: -- nvl(p_x_line_rec.ordered_quantity,0) = 0 THEN -- Commented for bug 7611039
17719: OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING := 'Y';
17720:
17721: IF l_debug_level > 0 THEN

Line 17732: AND p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE

17728:
17729:
17730: IF OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING = 'Y'
17731: AND p_x_line_rec.line_category_code <> 'RETURN'
17732: AND p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE
17733: THEN
17734:
17735: if l_debug_level > 0 then
17736: oe_debug_pub.add('PO: Calling new Schedule_line from post write',1);

Line 17774: NOT p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG

17770: -- do not move Log_CTO_Requests above scheduling
17771:
17772: IF (p_x_line_rec.top_model_line_id is NOT NULL OR
17773: p_x_line_rec.ato_line_id is NOT NULL) AND
17774: NOT p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG
17775: THEN
17776:
17777: Log_CTO_Requests( p_x_line_rec => p_x_line_rec
17778: ,p_old_line_rec => p_old_line_rec

Line 17785: -- OE_GLOBALS.G_RECURSION_MODE := l_old_recursion_mode;

17781:
17782:
17783:
17784: -- re-set the old recursion mode after process included items call.
17785: -- OE_GLOBALS.G_RECURSION_MODE := l_old_recursion_mode;
17786:
17787: -- 4504362 :Branch scheduling check removed.
17788: -- This is moved from cancellations logic since closing the line is
17789: -- based on the cancellation flag and ordered quantity

Line 17796: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then

17792:
17793: IF Nvl(p_x_line_rec.split_action_code,'X') <> 'SPLIT' THEN
17794:
17795: If (p_x_line_rec.ordered_quantity = 0 AND
17796: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then
17797:
17798: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
17799: /*
17800: -- Log a request to cancel the workflow.

Line 17798: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';

17794:
17795: If (p_x_line_rec.ordered_quantity = 0 AND
17796: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then
17797:
17798: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
17799: /*
17800: -- Log a request to cancel the workflow.
17801:
17802:

Line 17804: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17800: -- Log a request to cancel the workflow.
17801:
17802:
17803: OE_delayed_requests_Pvt.log_request
17804: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17805: p_entity_id => p_x_line_rec.line_id,
17806: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17807: p_requesting_entity_id => p_x_line_rec.line_id,
17808: p_request_type => OE_GLOBALS.G_CANCEL_WF,

Line 17806: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17802:
17803: OE_delayed_requests_Pvt.log_request
17804: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17805: p_entity_id => p_x_line_rec.line_id,
17806: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17807: p_requesting_entity_id => p_x_line_rec.line_id,
17808: p_request_type => OE_GLOBALS.G_CANCEL_WF,
17809: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
17810: x_return_status => l_return_status);

Line 17808: p_request_type => OE_GLOBALS.G_CANCEL_WF,

17804: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17805: p_entity_id => p_x_line_rec.line_id,
17806: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17807: p_requesting_entity_id => p_x_line_rec.line_id,
17808: p_request_type => OE_GLOBALS.G_CANCEL_WF,
17809: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
17810: x_return_status => l_return_status);
17811: */
17812:

Line 17809: p_param1 => OE_GLOBALS.G_ENTITY_LINE,

17805: p_entity_id => p_x_line_rec.line_id,
17806: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17807: p_requesting_entity_id => p_x_line_rec.line_id,
17808: p_request_type => OE_GLOBALS.G_CANCEL_WF,
17809: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
17810: x_return_status => l_return_status);
17811: */
17812:
17813: -- commented the code to move the logic to delayed request

Line 17815: wf_engine.handleerror(OE_Globals.G_WFI_LIN

17811: */
17812:
17813: -- commented the code to move the logic to delayed request
17814: -- reopened to revert the changes
17815: wf_engine.handleerror(OE_Globals.G_WFI_LIN
17816: ,to_char(p_x_line_rec.line_id)
17817: ,'CLOSE_LINE',
17818: 'RETRY','CANCEL');
17819: if l_debug_level > 0 then

Line 17845: -- OE_GLOBALS.G_RECURSION_MODE := 'N';

17841: RAISE FND_API.G_EXC_ERROR;
17842: END IF;
17843: END IF;
17844:
17845: -- OE_GLOBALS.G_RECURSION_MODE := 'N';
17846:
17847:
17848: /*
17849: ** Fix Bug # 3184597 Start

Line 17853: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN

17849: ** Fix Bug # 3184597 Start
17850: ** Check if the cancelled line is waiting on the flow to be
17851: ** started. If so, delete entry from G_START_LINE_FLOWS_TBL
17852: */
17853: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
17854: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
17855: WHILE (l_ctr IS NOT NULL) LOOP
17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
17857: p_x_line_rec.line_id) THEN

Line 17854: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;

17850: ** Check if the cancelled line is waiting on the flow to be
17851: ** started. If so, delete entry from G_START_LINE_FLOWS_TBL
17852: */
17853: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
17854: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
17855: WHILE (l_ctr IS NOT NULL) LOOP
17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
17857: p_x_line_rec.line_id) THEN
17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);

Line 17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =

17852: */
17853: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
17854: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
17855: WHILE (l_ctr IS NOT NULL) LOOP
17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
17857: p_x_line_rec.line_id) THEN
17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
17859: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
17860: EXIT;

Line 17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);

17854: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
17855: WHILE (l_ctr IS NOT NULL) LOOP
17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
17857: p_x_line_rec.line_id) THEN
17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
17859: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
17860: EXIT;
17861: END IF;
17862: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);

Line 17859: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);

17855: WHILE (l_ctr IS NOT NULL) LOOP
17856: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
17857: p_x_line_rec.line_id) THEN
17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
17859: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
17860: EXIT;
17861: END IF;
17862: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);
17863: END LOOP;

Line 17862: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);

17858: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
17859: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
17860: EXIT;
17861: END IF;
17862: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);
17863: END LOOP;
17864: END IF;
17865: /* Fix Bug # 3184597 End */
17866: -- Added below IF condition for FP bug 6628653 base bug 6513023

Line 17901: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

17897: -- the value of the authorized_to_ship_flag in the lines table
17898: -- Check if the ship authorization activity is in a NOTIFIED state
17899: --------------------------------------------------------------------
17900:
17901: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
17902: if l_debug_level > 0 then
17903: oe_debug_pub.add('Authorization flag is: ' ||
17904: p_x_line_rec.authorized_to_ship_flag);
17905: end if;

Line 17907: NOT OE_GLOBALS.Equal(p_x_line_rec.authorized_to_ship_flag,

17903: oe_debug_pub.add('Authorization flag is: ' ||
17904: p_x_line_rec.authorized_to_ship_flag);
17905: end if;
17906: IF p_x_line_rec.authorized_to_ship_flag = 'Y' AND
17907: NOT OE_GLOBALS.Equal(p_x_line_rec.authorized_to_ship_flag,
17908: p_old_line_rec.authorized_to_ship_flag)
17909: THEN
17910: OPEN ship_authorize;
17911: FETCH ship_authorize INTO l_ship_authorize;

Line 17931: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

17927: -- children and sub children(like options,classes,services,service
17928: -- attached to children).
17929: --------------------------------------------------------------------
17930:
17931: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
17932:
17933: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,
17934: p_old_line_rec.line_number)
17935: THEN

Line 17933: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,

17929: --------------------------------------------------------------------
17930:
17931: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
17932:
17933: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,
17934: p_old_line_rec.line_number)
17935: THEN
17936: Cascade_Line_Number
17937: ( p_x_line_rec.header_id,

Line 17955: p_x_line_rec.operation = oe_globals.g_opr_update)

17951: -- other cases.
17952: --------------------------------------------------------------------
17953:
17954: IF NOT (nvl(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
17955: p_x_line_rec.operation = oe_globals.g_opr_update)
17956: THEN
17957:
17958: IF NOT( (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
17959: <> FND_API.G_MISS_NUM)

Line 17960: AND p_x_line_rec.operation = oe_globals.g_opr_create

17956: THEN
17957:
17958: IF NOT( (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
17959: <> FND_API.G_MISS_NUM)
17960: AND p_x_line_rec.operation = oe_globals.g_opr_create
17961: )
17962: THEN
17963:
17964: if l_debug_level > 0 then

Line 17970: p_x_line_rec.operation = oe_globals.g_opr_create) THEN

17966: end if;
17967:
17968: -- Bug# 5726848 IF condition modified for allowing update of sales credit for copied orders.
17969: IF NOT (nvl(p_x_line_rec.source_document_type_id,-99) = 2 AND
17970: p_x_line_rec.operation = oe_globals.g_opr_create) THEN
17971: -- End of change Bug# 5726848
17972: OE_Line_Scredit_Util.Create_Credit
17973: (p_line_rec => p_x_line_rec,p_old_line_rec => p_old_line_rec);
17974: END IF;

Line 17985: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND

17981: -- child RMA lines are in sequence with the parent line. FOR ER:1480867
17982:
17983: IF p_x_line_rec.line_category_code = 'RETURN' AND
17984: p_x_line_rec.reference_line_id IS NOT NULL AND
17985: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND
17986: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,
17987: p_old_line_rec.reference_line_id)
17988:
17989: THEN

Line 17986: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,

17982:
17983: IF p_x_line_rec.line_category_code = 'RETURN' AND
17984: p_x_line_rec.reference_line_id IS NOT NULL AND
17985: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND
17986: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,
17987: p_old_line_rec.reference_line_id)
17988:
17989: THEN
17990: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype

Line 17991: (p_request_type =>OE_GLOBALS.G_INSERT_RMA

17987: p_old_line_rec.reference_line_id)
17988:
17989: THEN
17990: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
17991: (p_request_type =>OE_GLOBALS.G_INSERT_RMA
17992: ,p_delete => FND_API.G_TRUE
17993: ,x_return_status => l_return_status
17994: );
17995: END IF;

Line 18016: AND p_x_line_rec.operation = oe_globals.g_opr_update

18012: THEN
18013:
18014: -- Blanket Request should not be logged for system splits.
18015: IF (nvl(p_x_line_rec.split_action_code,'X') = 'SPLIT'
18016: AND p_x_line_rec.operation = oe_globals.g_opr_update
18017: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
18018: )
18019: OR (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
18020: <> FND_API.G_MISS_NUM

Line 18021: AND p_x_line_rec.operation = oe_globals.g_opr_create

18017: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
18018: )
18019: OR (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
18020: <> FND_API.G_MISS_NUM
18021: AND p_x_line_rec.operation = oe_globals.g_opr_create
18022: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
18023: )
18024: THEN
18025: NULL;

Line 18068: ( p_control_rec IN OE_GLOBALS.Control_Rec_Type

18064: PROCEDURE Post_Line_Process
18065: -----------------------------------------------------------*/
18066:
18067: PROCEDURE Post_Line_Process
18068: ( p_control_rec IN OE_GLOBALS.Control_Rec_Type
18069: , p_x_line_tbl IN OUT NOCOPY OE_Order_PUB.Line_Tbl_Type
18070: )
18071: IS
18072: l_return_status VARCHAR2(1);

Line 18086: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN

18082:
18083: -- Create Sets for lines and call group scheduling if any
18084: /*
18085: IF (p_control_rec.process AND
18086: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN
18087: OE_Set_Util.Process_Sets
18088: (p_x_line_tbl => p_x_line_tbl);
18089: END IF;
18090: */

Line 18093: OE_GLOBALS.G_RECURSION_MODE <> 'Y') THEN

18089: END IF;
18090: */
18091:
18092: IF (p_control_rec.process AND
18093: OE_GLOBALS.G_RECURSION_MODE <> 'Y') THEN
18094:
18095: -- batch validation request is executed in post_lines
18096: -- so that it gets executed before any other delayed requests
18097: -- like pricing, scheduling for models.

Line 18100: (p_request_type =>OE_GLOBALS.G_VALIDATE_CONFIGURATION

18096: -- so that it gets executed before any other delayed requests
18097: -- like pricing, scheduling for models.
18098:
18099: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
18100: (p_request_type =>OE_GLOBALS.G_VALIDATE_CONFIGURATION
18101: ,p_delete => FND_API.G_TRUE
18102: ,x_return_status => l_return_status
18103: );
18104:

Line 18119: (p_request_type =>OE_GLOBALS.G_CASCADE_CHANGES

18115: -- cascading of changes from model to options
18116: -- is done before executing other requests.
18117:
18118: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
18119: (p_request_type =>OE_GLOBALS.G_CASCADE_CHANGES
18120: ,p_delete => FND_API.G_TRUE
18121: ,x_return_status => l_return_status
18122: );
18123:

Line 18134: (p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION

18130: -- Making change to whole configuration is done before all
18131: -- other delayed requests are fired.
18132:
18133: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
18134: (p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION
18135: ,p_delete => FND_API.G_TRUE
18136: ,x_return_status => l_return_status
18137: );
18138: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 18147: (p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION

18143:
18144: -- handling split of models
18145:
18146: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
18147: (p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION
18148: ,p_delete => FND_API.G_TRUE
18149: ,x_return_status => l_return_status
18150: );
18151:

Line 18294: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN

18290:
18291: -- Create Sets for lines and call group scheduling if any
18292:
18293: IF (p_control_rec.process AND
18294: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN
18295:
18296: OE_Set_Util.Process_Sets
18297: (p_x_line_tbl => p_x_line_tbl);
18298:

Line 18349: p_x_line_tbl(I).operation = OE_GLOBALS.G_OPR_CREATE) THEN

18345: p_x_line_tbl(I).schedule_status_code IS NOT NULL)
18346: OR (NVL(p_x_line_tbl(I).split_by ,'USER') = 'SYSTEM' AND
18347: p_x_line_tbl(I).split_from_line_id is not null AND
18348: p_x_line_tbl(I).split_from_line_id <> FND_API.G_MISS_NUM AND
18349: p_x_line_tbl(I).operation = OE_GLOBALS.G_OPR_CREATE) THEN
18350:
18351: if l_debug_level > 0 then
18352: oe_debug_pub.add('Logging G_SPLIT_SCHEDULE' ||
18353: p_x_line_tbl(I).line_id, 2);

Line 18357: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18353: p_x_line_tbl(I).line_id, 2);
18354: end if;
18355:
18356: OE_delayed_requests_Pvt.log_request(
18357: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18358: p_entity_id => p_x_line_tbl(I).line_id,
18359: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18360: p_requesting_entity_id => p_x_line_tbl(I).line_id,
18361: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,

Line 18359: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18355:
18356: OE_delayed_requests_Pvt.log_request(
18357: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18358: p_entity_id => p_x_line_tbl(I).line_id,
18359: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18360: p_requesting_entity_id => p_x_line_tbl(I).line_id,
18361: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,
18362: p_param1 => p_x_line_tbl(I).schedule_status_code,
18363: p_param2 => p_x_line_tbl(I).arrival_set_id,

Line 18361: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,

18357: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18358: p_entity_id => p_x_line_tbl(I).line_id,
18359: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18360: p_requesting_entity_id => p_x_line_tbl(I).line_id,
18361: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,
18362: p_param1 => p_x_line_tbl(I).schedule_status_code,
18363: p_param2 => p_x_line_tbl(I).arrival_set_id,
18364: p_param3 => p_x_line_tbl(I).ship_set_id,
18365: p_param4 => p_x_line_tbl(I).ship_model_complete_flag,

Line 18620: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item

18616: BEGIN
18617:
18618: IF oe_line_util.Process_Characteristics
18619: (p_line_rec.inventory_item_id,p_line_rec.ship_from_org_id,l_item_rec) AND
18620: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item
18621: ,p_old_line_rec.ordered_item)) OR
18622: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id
18623: ,p_old_line_rec.ship_from_org_id))) AND
18624: (p_line_rec.preferred_grade IS NULL OR

Line 18622: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id

18618: IF oe_line_util.Process_Characteristics
18619: (p_line_rec.inventory_item_id,p_line_rec.ship_from_org_id,l_item_rec) AND
18620: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item
18621: ,p_old_line_rec.ordered_item)) OR
18622: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id
18623: ,p_old_line_rec.ship_from_org_id))) AND
18624: (p_line_rec.preferred_grade IS NULL OR
18625: p_line_rec.preferred_grade = FND_API.G_MISS_CHAR) THEN
18626: NULL;

Line 18796: IF OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)

18792: -- secondary_default_ind value of D = type 2
18793: -- secondary_default_ind value of N = type 3
18794:
18795: -- bug 4053117 start pal
18796: IF OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)
18797: and l_item_rec.secondary_default_ind <> 'F'
18798: and (
18799: (p_x_line_rec.ordered_quantity IS NOT NULL and
18800: p_x_line_rec.ordered_quantity <> FND_API.G_MISS_NUM ) AND

Line 18805: oe_debug_pub.add('Sync_dual_qty IF (OE_GLOBALS.G_UI_FLAG) and ship froms = - early exit ');

18801: (p_x_line_rec.ordered_quantity2 IS NOT NULL and
18802: p_x_line_rec.ordered_quantity2 <> FND_API.G_MISS_NUM )
18803: ) THEN
18804: IF l_debug_level > 0 THEN
18805: oe_debug_pub.add('Sync_dual_qty IF (OE_GLOBALS.G_UI_FLAG) and ship froms = - early exit ');
18806: END IF;
18807: RETURN;
18808: END IF;
18809: -- bug 4053117 end

Line 18812: IF NOT ( OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) )

18808: END IF;
18809: -- bug 4053117 end
18810:
18811: -- 5172701 pal
18812: IF NOT ( OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) )
18813: and l_item_rec.secondary_uom_code is NOT NULL
18814: THEN
18815: p_x_line_rec.ordered_quantity_uom2 := l_item_rec.secondary_uom_code;
18816: END IF;

Line 18904: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

18900: /* If the ordered_quantity_um has changed, force recalculation of quantity2
18901: unless we have a no default process item where there is no
18902: automatic calculation
18903: ==========================================================================*/
18904: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
18905: ,p_old_line_rec.order_quantity_uom ))
18906: AND p_old_line_rec.order_quantity_uom is not NULL -- OPM 24/OCT/00 B1458751
18907: -- AND l_item_rec.dualum_ind <> 3 -- INVCONV
18908: AND l_item_rec.secondary_default_ind <> 'N' -- INVCONV

Line 18915: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

18911: END IF;
18912:
18913: /* Has one of the two quantities changed */
18914:
18915: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
18916: ,p_old_line_rec.ordered_quantity )) OR
18917: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
18918: ,p_old_line_rec.ordered_quantity2)) OR
18919: (p_x_line_rec.ordered_quantity IS NULL) OR

Line 18917: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

18913: /* Has one of the two quantities changed */
18914:
18915: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
18916: ,p_old_line_rec.ordered_quantity )) OR
18917: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
18918: ,p_old_line_rec.ordered_quantity2)) OR
18919: (p_x_line_rec.ordered_quantity IS NULL) OR
18920: (p_x_line_rec.ordered_quantity2 IS NULL) THEN
18921:

Line 18950: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

18946: oe_debug_pub.add('Sync_dual_qty - no change detected so no sync',1);
18947: END IF;
18948:
18949: RETURN;
18950: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
18951:
18952: oe_debug_pub.add('Sync_dual_qty - here 1 ',1);
18953:
18954: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

Line 18954: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

18950: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
18951:
18952: oe_debug_pub.add('Sync_dual_qty - here 1 ',1);
18953:
18954: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
18955: ,p_old_line_rec.ordered_quantity )) OR
18956: p_x_line_rec.ordered_quantity2 IS NULL THEN
18957: /* Primary quantity has changed so recalculate secondary */
18958:

Line 19088: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

19084:
19085:
19086:
19087:
19088: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
19089: ,p_old_line_rec.ordered_quantity2 )) THEN
19090: /* Secondary quantity has changed so recalculate primary
19091: =======================================================*/
19092:

Line 19192: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

19188: END IF;
19189:
19190: p_x_line_rec.ordered_quantity := l_converted_qty;
19191:
19192: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
19193:
19194:
19195: EXCEPTION
19196:

Line 19342: AND p_x_line_rec.operation = oe_globals.g_opr_update

19338: -- Operations is Create and Split_From_Line_Id is not null or
19339: -- Operation is Update and action is split
19340: -- Bug #3705273
19341: IF (p_x_line_rec.split_action_code = 'SPLIT'
19342: AND p_x_line_rec.operation = oe_globals.g_opr_update
19343: )
19344: OR (p_x_line_rec.split_from_line_id is not null
19345: AND p_x_line_rec.split_from_line_id <> fnd_api.g_miss_num
19346: AND p_x_line_rec.operation = oe_globals.g_opr_create

Line 19346: AND p_x_line_rec.operation = oe_globals.g_opr_create

19342: AND p_x_line_rec.operation = oe_globals.g_opr_update
19343: )
19344: OR (p_x_line_rec.split_from_line_id is not null
19345: AND p_x_line_rec.split_from_line_id <> fnd_api.g_miss_num
19346: AND p_x_line_rec.operation = oe_globals.g_opr_create
19347: )
19348: THEN
19349: --Then you need to call the Quantity rounding API to round off the qty on the line
19350: l_ordered_qty := p_x_line_rec.ordered_quantity; --nocopy impact changes

Line 19387: IF NOT(OE_GLOBALS.G_UI_FLAG) and -- 4958890

19383: -- check this - why call here ?? need to know where to call in proper place - ask OM team
19384:
19385: --oe_debug_pub.add('reserved_quantity = ' || p_x_line_rec.reserved_quantity );
19386: -- oe_debug_pub.add('reserved_quantity2 = ' || p_x_line_rec.reserved_quantity2 );
19387: IF NOT(OE_GLOBALS.G_UI_FLAG) and -- 4958890
19388: p_x_line_rec.ordered_quantity <> FND_API.G_MISS_NUM And
19389: p_x_line_rec.ordered_quantity IS NOT NULL and
19390: p_x_line_rec.ordered_quantity2 <> FND_API.G_MISS_NUM And
19391: p_x_line_rec.ordered_quantity2 IS NOT NULL and

Line 19521: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;

19517: INTO l_num
19518: FROM oe_order_lines
19519: WHERE ato_line_id = p_x_line_rec.ato_line_id
19520: AND top_model_line_id = p_x_line_rec.top_model_line_id
19521: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;
19522:
19523: l_flag := TRUE;
19524: EXCEPTION
19525: WHEN NO_DATA_FOUND THEN

Line 19542: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR

19538:
19539: l_ato_item_qty_change := FALSE;
19540:
19541: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19542: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19543: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION) AND --##1820608
19544: p_old_line_rec.schedule_status_code is NOT NULL AND
19545: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
19546: THEN

Line 19543: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION) AND --##1820608

19539: l_ato_item_qty_change := FALSE;
19540:
19541: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19542: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19543: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION) AND --##1820608
19544: p_old_line_rec.schedule_status_code is NOT NULL AND
19545: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
19546: THEN
19547: if l_debug_level > 0 then

Line 19545: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE

19541: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19542: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19543: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION) AND --##1820608
19544: p_old_line_rec.schedule_status_code is NOT NULL AND
19545: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
19546: THEN
19547: if l_debug_level > 0 then
19548: oe_debug_pub.add('ato item, may need to notify cto', 4);
19549: end if;

Line 19553: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

19549: end if;
19550: l_flag := TRUE;
19551:
19552: IF p_x_line_rec.ordered_quantity = 0 AND
19553: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19554:
19555: if l_debug_level > 0 then
19556: oe_debug_pub.add('ato item qty made to 0'|| p_x_line_rec.open_flag, 4);
19557: end if;

Line 19616: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,

19612: if l_debug_level > 0 then
19613: oe_debug_pub.add('compare for ato model now', 3);
19614: end if;
19615:
19616: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
19617: p_old_line_rec.ship_from_org_id) THEN
19618:
19619: if l_debug_level > 0 then
19620: oe_debug_pub.add('cto_change logged for warehouse change', 3);

Line 19625: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19621: end if;
19622: l_notify_cto := TRUE;
19623:
19624: OE_delayed_requests_Pvt.log_request
19625: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19626: p_entity_id => p_x_line_rec.line_id,
19627: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19628: p_requesting_entity_id => p_x_line_rec.line_id,
19629: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19627: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19623:
19624: OE_delayed_requests_Pvt.log_request
19625: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19626: p_entity_id => p_x_line_rec.line_id,
19627: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19628: p_requesting_entity_id => p_x_line_rec.line_id,
19629: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19630: p_request_unique_key1 => 'Warehouse',
19631: p_param1 => p_old_line_rec.ship_from_org_id,

Line 19629: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19625: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19626: p_entity_id => p_x_line_rec.line_id,
19627: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19628: p_requesting_entity_id => p_x_line_rec.line_id,
19629: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19630: p_request_unique_key1 => 'Warehouse',
19631: p_param1 => p_old_line_rec.ship_from_org_id,
19632: p_param2 => p_x_line_rec.ship_from_org_id,
19633: p_param3 => p_x_line_rec.ato_line_id,

Line 19638: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

19634: x_return_status => x_return_status);
19635:
19636: END IF;
19637:
19638: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
19639: p_old_line_rec.ordered_quantity) THEN
19640:
19641: if l_debug_level > 0 then
19642: oe_debug_pub.add('cto_change logged for qty change', 3);

Line 19648: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19644:
19645: l_notify_cto := TRUE;
19646:
19647: OE_delayed_requests_Pvt.log_request
19648: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19649: p_entity_id => p_x_line_rec.line_id,
19650: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19651: p_requesting_entity_id => p_x_line_rec.line_id,
19652: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19650: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19646:
19647: OE_delayed_requests_Pvt.log_request
19648: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19649: p_entity_id => p_x_line_rec.line_id,
19650: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19651: p_requesting_entity_id => p_x_line_rec.line_id,
19652: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19653: p_request_unique_key1 => 'Quantity',
19654: p_param1 => p_old_line_rec.ordered_quantity,

Line 19652: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19648: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19649: p_entity_id => p_x_line_rec.line_id,
19650: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19651: p_requesting_entity_id => p_x_line_rec.line_id,
19652: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19653: p_request_unique_key1 => 'Quantity',
19654: p_param1 => p_old_line_rec.ordered_quantity,
19655: p_param2 => p_x_line_rec.ordered_quantity,
19656: p_param3 => p_x_line_rec.ato_line_id,

Line 19661: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

19657: x_return_status => x_return_status);
19658:
19659: END IF;
19660:
19661: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
19662: p_old_line_rec.request_date) THEN
19663:
19664: if l_debug_level > 0 then
19665: oe_debug_pub.add('cto_change logged for req date change', 3);

Line 19670: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19666: end if;
19667: l_notify_cto := TRUE;
19668:
19669: OE_delayed_requests_Pvt.log_request
19670: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19671: p_entity_id => p_x_line_rec.line_id,
19672: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19673: p_requesting_entity_id => p_x_line_rec.line_id,
19674: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19672: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19668:
19669: OE_delayed_requests_Pvt.log_request
19670: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19671: p_entity_id => p_x_line_rec.line_id,
19672: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19673: p_requesting_entity_id => p_x_line_rec.line_id,
19674: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19675: p_request_unique_key1 => 'Req Date',
19676: p_param1 => p_old_line_rec.request_date,

Line 19674: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19670: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19671: p_entity_id => p_x_line_rec.line_id,
19672: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19673: p_requesting_entity_id => p_x_line_rec.line_id,
19674: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19675: p_request_unique_key1 => 'Req Date',
19676: p_param1 => p_old_line_rec.request_date,
19677: p_param2 => p_x_line_rec.request_date,
19678: p_param3 => p_x_line_rec.ato_line_id,

Line 19683: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,

19679: x_return_status => x_return_status);
19680:
19681: END IF;
19682:
19683: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,
19684: p_old_line_rec.schedule_ship_date) AND
19685: NOT l_ato_item_qty_change
19686: THEN
19687:

Line 19694: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19690: end if;
19691: l_notify_cto := TRUE;
19692:
19693: OE_delayed_requests_Pvt.log_request
19694: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19695: p_entity_id => p_x_line_rec.line_id,
19696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19697: p_requesting_entity_id => p_x_line_rec.line_id,
19698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19692:
19693: OE_delayed_requests_Pvt.log_request
19694: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19695: p_entity_id => p_x_line_rec.line_id,
19696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19697: p_requesting_entity_id => p_x_line_rec.line_id,
19698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19699: p_request_unique_key1 => 'Ship Date',
19700: p_param1 => p_old_line_rec.schedule_ship_date,

Line 19698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19694: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19695: p_entity_id => p_x_line_rec.line_id,
19696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19697: p_requesting_entity_id => p_x_line_rec.line_id,
19698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19699: p_request_unique_key1 => 'Ship Date',
19700: p_param1 => p_old_line_rec.schedule_ship_date,
19701: p_param2 => p_x_line_rec.schedule_ship_date,
19702: p_param3 => p_x_line_rec.ato_line_id,

Line 19707: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,

19703: x_return_status => x_return_status);
19704:
19705: END IF;
19706:
19707: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,
19708: p_old_line_rec.schedule_arrival_date) AND
19709: NOT l_ato_item_qty_change THEN
19710:
19711: if l_debug_level > 0 then

Line 19717: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19713: end if;
19714: l_notify_cto := TRUE;
19715:
19716: OE_delayed_requests_Pvt.log_request
19717: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19718: p_entity_id => p_x_line_rec.line_id,
19719: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19720: p_requesting_entity_id => p_x_line_rec.line_id,
19721: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19719: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19715:
19716: OE_delayed_requests_Pvt.log_request
19717: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19718: p_entity_id => p_x_line_rec.line_id,
19719: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19720: p_requesting_entity_id => p_x_line_rec.line_id,
19721: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19722: p_request_unique_key1 => 'Arr Date',
19723: p_param1 => p_old_line_rec.schedule_arrival_date,

Line 19721: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19717: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19718: p_entity_id => p_x_line_rec.line_id,
19719: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19720: p_requesting_entity_id => p_x_line_rec.line_id,
19721: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19722: p_request_unique_key1 => 'Arr Date',
19723: p_param1 => p_old_line_rec.schedule_arrival_date,
19724: p_param2 => p_x_line_rec.schedule_arrival_date,
19725: p_param3 => p_x_line_rec.ato_line_id,

Line 19732: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,

19728: END IF;
19729:
19730: -- INVCONV
19731:
19732: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,
19733: p_old_line_rec.ordered_quantity2) THEN
19734:
19735: if l_debug_level > 0 then
19736: oe_debug_pub.add('cto_change logged for qty2 change', 3);

Line 19742: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19738:
19739: l_notify_cto := TRUE;
19740:
19741: OE_delayed_requests_Pvt.log_request
19742: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19743: p_entity_id => p_x_line_rec.line_id,
19744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19745: p_requesting_entity_id => p_x_line_rec.line_id,
19746: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19740:
19741: OE_delayed_requests_Pvt.log_request
19742: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19743: p_entity_id => p_x_line_rec.line_id,
19744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19745: p_requesting_entity_id => p_x_line_rec.line_id,
19746: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19747: p_request_unique_key1 => 'Quantity2',
19748: p_param1 => p_old_line_rec.ordered_quantity2,

Line 19746: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19742: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19743: p_entity_id => p_x_line_rec.line_id,
19744: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19745: p_requesting_entity_id => p_x_line_rec.line_id,
19746: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19747: p_request_unique_key1 => 'Quantity2',
19748: p_param1 => p_old_line_rec.ordered_quantity2,
19749: p_param2 => p_x_line_rec.ordered_quantity2,
19750: p_param3 => p_x_line_rec.ato_line_id,

Line 19755: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity_uom2,

19751: x_return_status => x_return_status);
19752:
19753: END IF;
19754:
19755: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity_uom2,
19756: p_old_line_rec.ordered_quantity_uom2) THEN
19757:
19758: if l_debug_level > 0 then
19759: oe_debug_pub.add('cto_change logged for Uom2 change', 3);

Line 19765: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19761:
19762: l_notify_cto := TRUE;
19763:
19764: OE_delayed_requests_Pvt.log_request
19765: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19766: p_entity_id => p_x_line_rec.line_id,
19767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19768: p_requesting_entity_id => p_x_line_rec.line_id,
19769: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19763:
19764: OE_delayed_requests_Pvt.log_request
19765: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19766: p_entity_id => p_x_line_rec.line_id,
19767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19768: p_requesting_entity_id => p_x_line_rec.line_id,
19769: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19770: p_request_unique_key1 => 'Uom2',
19771: p_param1 => p_old_line_rec.ordered_quantity_uom2,

Line 19769: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19765: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19766: p_entity_id => p_x_line_rec.line_id,
19767: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19768: p_requesting_entity_id => p_x_line_rec.line_id,
19769: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19770: p_request_unique_key1 => 'Uom2',
19771: p_param1 => p_old_line_rec.ordered_quantity_uom2,
19772: p_param2 => p_x_line_rec.ordered_quantity_uom2,
19773: p_param3 => p_x_line_rec.ato_line_id,

Line 19778: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,

19774: x_return_status => x_return_status);
19775:
19776: END IF;
19777:
19778: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
19779: p_old_line_rec.order_quantity_uom) THEN
19780:
19781: if l_debug_level > 0 then
19782: oe_debug_pub.add('cto_change logged for Uom change', 3);

Line 19788: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19784:
19785: l_notify_cto := TRUE;
19786:
19787: OE_delayed_requests_Pvt.log_request
19788: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19789: p_entity_id => p_x_line_rec.line_id,
19790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19791: p_requesting_entity_id => p_x_line_rec.line_id,
19792: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19786:
19787: OE_delayed_requests_Pvt.log_request
19788: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19789: p_entity_id => p_x_line_rec.line_id,
19790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19791: p_requesting_entity_id => p_x_line_rec.line_id,
19792: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19793: p_request_unique_key1 => 'Uom',
19794: p_param1 => p_old_line_rec.order_quantity_uom,

Line 19792: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19788: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19789: p_entity_id => p_x_line_rec.line_id,
19790: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19791: p_requesting_entity_id => p_x_line_rec.line_id,
19792: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19793: p_request_unique_key1 => 'Uom',
19794: p_param1 => p_old_line_rec.order_quantity_uom,
19795: p_param2 => p_x_line_rec.order_quantity_uom,
19796: p_param3 => p_x_line_rec.ato_line_id,

Line 19816: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19812:
19813: l_notify_cto := TRUE;
19814:
19815: OE_delayed_requests_Pvt.log_request
19816: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19817: p_entity_id => p_x_line_rec.line_id,
19818: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19819: p_requesting_entity_id => p_x_line_rec.line_id,
19820: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19818: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19814:
19815: OE_delayed_requests_Pvt.log_request
19816: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19817: p_entity_id => p_x_line_rec.line_id,
19818: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19819: p_requesting_entity_id => p_x_line_rec.line_id,
19820: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19821: p_request_unique_key1 => 'Ship Date',
19822: p_param1 => p_old_line_rec.schedule_ship_date,

Line 19820: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19816: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19817: p_entity_id => p_x_line_rec.line_id,
19818: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19819: p_requesting_entity_id => p_x_line_rec.line_id,
19820: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19821: p_request_unique_key1 => 'Ship Date',
19822: p_param1 => p_old_line_rec.schedule_ship_date,
19823: p_param2 => p_x_line_rec.schedule_ship_date,
19824: p_param3 => p_x_line_rec.ato_line_id,

Line 19831: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND

19827: END IF; -- update on model line logged
19828:
19829: IF p_x_line_rec.ato_line_id is NOT NULL AND
19830: p_x_line_rec.ato_line_id <> p_x_line_rec.line_id AND
19831: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
19832: ((oe_config_util.CASCADE_CHANGES_FLAG = 'N' AND
19833: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y') OR
19834: OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'Y') AND
19835: l_flag AND

Line 19838: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) -- split create

19834: OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'Y') AND
19835: l_flag AND
19836: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND -- split update
19837: NOT (p_x_line_rec.split_from_line_id is NOT NULL AND
19838: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) -- split create
19839: THEN
19840: if l_debug_level > 0 then
19841: oe_debug_pub.add('part of ato', 3);
19842: end if;

Line 19856: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

19852:
19853: EXCEPTION
19854: WHEN NO_DATA_FOUND THEN
19855:
19856: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
19857: if l_debug_level > 0 then
19858: oe_debug_pub.add('pto top model and opr create', 1);
19859: end if;
19860: l_pto_ato_create := TRUE;

Line 19865: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

19861: END IF;
19862: END;
19863:
19864:
19865: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
19866: NOT l_pto_ato_create) OR
19867: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
19868: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
19869: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

Line 19867: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR

19863:
19864:
19865: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
19866: NOT l_pto_ato_create) OR
19867: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
19868: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
19869: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
19870: p_old_line_rec.ordered_quantity))
19871:

Line 19868: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

19864:
19865: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
19866: NOT l_pto_ato_create) OR
19867: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
19868: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
19869: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
19870: p_old_line_rec.ordered_quantity))
19871:
19872: THEN

Line 19869: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

19865: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
19866: NOT l_pto_ato_create) OR
19867: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
19868: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
19869: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
19870: p_old_line_rec.ordered_quantity))
19871:
19872: THEN
19873:

Line 19881: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19877:
19878: l_notify_cto := TRUE;
19879:
19880: OE_delayed_requests_Pvt.log_request
19881: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19882: p_entity_id => p_x_line_rec.ato_line_id,
19883: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19884: p_requesting_entity_id => p_x_line_rec.line_id,
19885: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19883: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19879:
19880: OE_delayed_requests_Pvt.log_request
19881: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19882: p_entity_id => p_x_line_rec.ato_line_id,
19883: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19884: p_requesting_entity_id => p_x_line_rec.line_id,
19885: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19886: p_request_unique_key1 => 'Config Chg',
19887: p_param3 => p_x_line_rec.ato_line_id,

Line 19885: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19881: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19882: p_entity_id => p_x_line_rec.ato_line_id,
19883: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19884: p_requesting_entity_id => p_x_line_rec.line_id,
19885: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19886: p_request_unique_key1 => 'Config Chg',
19887: p_param3 => p_x_line_rec.ato_line_id,
19888: x_return_status => x_return_status);
19889:

Line 19890: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE AND

19886: p_request_unique_key1 => 'Config Chg',
19887: p_param3 => p_x_line_rec.ato_line_id,
19888: x_return_status => x_return_status);
19889:
19890: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE AND
19891: OE_Code_Control.Code_Release_Level >= '110510' THEN
19892:
19893: if l_debug_level > 0 then
19894: oe_debug_pub.add('cto_change logged for decimal change', 3);

Line 19898: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19894: oe_debug_pub.add('cto_change logged for decimal change', 3);
19895: end if;
19896:
19897: OE_delayed_requests_Pvt.log_request
19898: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19899: p_entity_id => p_x_line_rec.line_id,
19900: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19901: p_requesting_entity_id => p_x_line_rec.line_id,
19902: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19900: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19896:
19897: OE_delayed_requests_Pvt.log_request
19898: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19899: p_entity_id => p_x_line_rec.line_id,
19900: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19901: p_requesting_entity_id => p_x_line_rec.line_id,
19902: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19903: p_request_unique_key1 => 'Decimal Chg',
19904: p_param1 => p_x_line_rec.operation,

Line 19902: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19898: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19899: p_entity_id => p_x_line_rec.line_id,
19900: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19901: p_requesting_entity_id => p_x_line_rec.line_id,
19902: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19903: p_request_unique_key1 => 'Decimal Chg',
19904: p_param1 => p_x_line_rec.operation,
19905: p_param3 => p_x_line_rec.ato_line_id,
19906: p_param4 => p_x_line_rec.ordered_quantity,

Line 19926: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

19922: p_x_line_rec.operation = 'CREATE' AND
19923: OE_Code_Control.Code_Release_Level >= '110510' THEN
19924:
19925: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19926: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
19927: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19928: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
19929: l_num := 1;
19930: END IF;

Line 19927: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR

19923: OE_Code_Control.Code_Release_Level >= '110510' THEN
19924:
19925: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19926: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
19927: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19928: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
19929: l_num := 1;
19930: END IF;
19931:

Line 19928: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN

19924:
19925: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
19926: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
19927: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
19928: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
19929: l_num := 1;
19930: END IF;
19931:
19932: IF p_x_line_rec.ato_line_id is NOT NULL AND

Line 19957: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19953: oe_debug_pub.add('new split ato model '|| p_x_line_rec.line_id, 3);
19954: end if;
19955:
19956: OE_delayed_requests_Pvt.log_request
19957: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19958: p_entity_id => p_x_line_rec.ato_line_id,
19959: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19960: p_requesting_entity_id => p_x_line_rec.line_id,
19961: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 19959: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19955:
19956: OE_delayed_requests_Pvt.log_request
19957: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19958: p_entity_id => p_x_line_rec.ato_line_id,
19959: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19960: p_requesting_entity_id => p_x_line_rec.line_id,
19961: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19962: p_request_unique_key1 => 'Split Create',
19963: p_param3 => p_x_line_rec.split_from_line_id,

Line 19961: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

19957: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19958: p_entity_id => p_x_line_rec.ato_line_id,
19959: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19960: p_requesting_entity_id => p_x_line_rec.line_id,
19961: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
19962: p_request_unique_key1 => 'Split Create',
19963: p_param3 => p_x_line_rec.split_from_line_id,
19964: p_param4 => p_x_line_rec.line_id,
19965: x_return_status => x_return_status);

Line 19977: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19973: oe_debug_pub.add('notify_cto logged', 3);
19974: end if;
19975:
19976: OE_delayed_requests_Pvt.log_request
19977: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19978: p_entity_id => p_x_line_rec.ato_line_id,
19979: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19980: p_requesting_entity_id => p_x_line_rec.ato_line_id,
19981: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

Line 19979: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19975:
19976: OE_delayed_requests_Pvt.log_request
19977: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19978: p_entity_id => p_x_line_rec.ato_line_id,
19979: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19980: p_requesting_entity_id => p_x_line_rec.ato_line_id,
19981: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
19982: x_return_status => x_return_status);
19983: END IF;

Line 19981: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

19977: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19978: p_entity_id => p_x_line_rec.ato_line_id,
19979: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19980: p_requesting_entity_id => p_x_line_rec.ato_line_id,
19981: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
19982: x_return_status => x_return_status);
19983: END IF;
19984:
19985:

Line 20003: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;

19999: SELECT line_id
20000: INTO l_num
20001: FROM oe_order_lines
20002: WHERE top_model_line_id = p_x_line_rec.top_model_line_id
20003: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;
20004:
20005: l_flag := TRUE;
20006: EXCEPTION
20007: WHEN NO_DATA_FOUND THEN

Line 20033: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

20029: oe_debug_pub.add('pto ato and config exist'|| p_x_line_rec.line_id, 2);
20030: end if;
20031:
20032: OE_delayed_requests_Pvt.log_request
20033: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20034: p_entity_id => p_x_line_rec.line_id,
20035: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20036: p_requesting_entity_id => p_x_line_rec.line_id,
20037: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 20035: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20031:
20032: OE_delayed_requests_Pvt.log_request
20033: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20034: p_entity_id => p_x_line_rec.line_id,
20035: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20036: p_requesting_entity_id => p_x_line_rec.line_id,
20037: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
20038: p_request_unique_key1 => 'Config Chg pto_ato',
20039: p_param3 => p_x_line_rec.top_model_line_id,

Line 20037: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

20033: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20034: p_entity_id => p_x_line_rec.line_id,
20035: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20036: p_requesting_entity_id => p_x_line_rec.line_id,
20037: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
20038: p_request_unique_key1 => 'Config Chg pto_ato',
20039: p_param3 => p_x_line_rec.top_model_line_id,
20040: p_param2 => 'Y',
20041: p_param4 => p_x_line_rec.line_id,

Line 20046: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

20042: p_param5 => p_x_line_rec.ato_line_id,
20043: x_return_status => x_return_status);
20044:
20045: OE_delayed_requests_Pvt.log_request
20046: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20047: p_entity_id => p_x_line_rec.top_model_line_id,
20048: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20049: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
20050: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

Line 20048: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20044:
20045: OE_delayed_requests_Pvt.log_request
20046: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20047: p_entity_id => p_x_line_rec.top_model_line_id,
20048: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20049: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
20050: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
20051: x_return_status => x_return_status);
20052:

Line 20050: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

20046: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
20047: p_entity_id => p_x_line_rec.top_model_line_id,
20048: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20049: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
20050: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
20051: x_return_status => x_return_status);
20052:
20053: END IF;
20054:

Line 20118: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

20114:
20115: ------------------------ copy for model split -------------
20116:
20117: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id AND
20118: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
20119: p_x_line_rec.split_from_line_id is not null -- split
20120: THEN
20121:
20122: if l_debug_level > 0 then

Line 20146: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20142: oe_debug_pub.add('Logging a request after spllit
20143: to copy the configuration in SPC', 1);
20144: end if;
20145: OE_Delayed_Requests_Pvt.Log_Request(
20146: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20147: p_entity_id => p_x_line_rec.line_id,
20148: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20149: p_requesting_entity_id => p_x_line_rec.line_id,
20150: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,

Line 20148: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20144: end if;
20145: OE_Delayed_Requests_Pvt.Log_Request(
20146: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20147: p_entity_id => p_x_line_rec.line_id,
20148: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20149: p_requesting_entity_id => p_x_line_rec.line_id,
20150: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,
20151: p_param1 => l_config_header_id,
20152: p_param2 => l_config_rev_nbr,

Line 20150: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,

20146: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20147: p_entity_id => p_x_line_rec.line_id,
20148: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20149: p_requesting_entity_id => p_x_line_rec.line_id,
20150: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,
20151: p_param1 => l_config_header_id,
20152: p_param2 => l_config_rev_nbr,
20153: p_param3 => p_x_line_rec.model_remnant_flag,
20154: p_param4 => l_configuration_id,

Line 20182: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

20178: END IF;
20179:
20180: ---------------------- deletes ----------------------------------
20181:
20182: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20183: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20184: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20185: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20186: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

Line 20183: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

20179:
20180: ---------------------- deletes ----------------------------------
20181:
20182: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20183: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20184: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20185: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20186: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
20187: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN

Line 20184: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

20180: ---------------------- deletes ----------------------------------
20181:
20182: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20183: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20184: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20185: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20186: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
20187: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN
20188:

Line 20186: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

20182: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20183: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20184: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20185: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20186: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
20187: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN
20188:
20189: IF l_model_open_flag = 'N' THEN
20190: FND_MESSAGE.Set_Name('ONT', 'OE_CONFIG_MODEL_CLOSED');

Line 20214: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20210: oe_debug_pub.add('Logging a request to validate configuration ', 1);
20211: end if;
20212:
20213: OE_delayed_requests_Pvt.log_request(
20214: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20215: p_entity_id => p_x_line_rec.top_model_line_id,
20216: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20217: p_requesting_entity_id => p_x_line_rec.line_id,
20218: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

Line 20216: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20212:
20213: OE_delayed_requests_Pvt.log_request(
20214: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20215: p_entity_id => p_x_line_rec.top_model_line_id,
20216: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20217: p_requesting_entity_id => p_x_line_rec.line_id,
20218: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
20219: x_return_status => x_return_status);
20220:

Line 20218: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

20214: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20215: p_entity_id => p_x_line_rec.top_model_line_id,
20216: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20217: p_requesting_entity_id => p_x_line_rec.line_id,
20218: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
20219: x_return_status => x_return_status);
20220:
20221: if l_debug_level > 0 then
20222: oe_debug_pub.add('Logging a request to delete option from oe/spc', 1);

Line 20226: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20222: oe_debug_pub.add('Logging a request to delete option from oe/spc', 1);
20223: end if;
20224:
20225: OE_Delayed_Requests_Pvt.Log_Request(
20226: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20227: p_entity_id => p_x_line_rec.top_model_line_id,
20228: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20229: p_requesting_entity_id => p_x_line_rec.line_id,
20230: p_request_unique_key1 => p_x_line_rec.line_id,

Line 20228: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20224:
20225: OE_Delayed_Requests_Pvt.Log_Request(
20226: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20227: p_entity_id => p_x_line_rec.top_model_line_id,
20228: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20229: p_requesting_entity_id => p_x_line_rec.line_id,
20230: p_request_unique_key1 => p_x_line_rec.line_id,
20231: p_request_type => OE_GLOBALS.G_DELETE_OPTION,
20232: p_param1 => p_x_line_rec.top_model_line_id,

Line 20231: p_request_type => OE_GLOBALS.G_DELETE_OPTION,

20227: p_entity_id => p_x_line_rec.top_model_line_id,
20228: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20229: p_requesting_entity_id => p_x_line_rec.line_id,
20230: p_request_unique_key1 => p_x_line_rec.line_id,
20231: p_request_type => OE_GLOBALS.G_DELETE_OPTION,
20232: p_param1 => p_x_line_rec.top_model_line_id,
20233: p_param2 => p_x_line_rec.component_code,
20234: p_param3 => p_x_line_rec.item_type_code,
20235: p_param9 => p_x_line_rec.configuration_id,

Line 20252: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND

20248: end if;
20249:
20250: l_flag := FALSE;
20251:
20252: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
20253: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
20254: p_x_line_rec.booked_flag = 'Y' THEN
20255: if l_debug_level > 0 then
20256: oe_debug_pub.add('setting flag to true for model', 1);

Line 20253: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

20249:
20250: l_flag := FALSE;
20251:
20252: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
20253: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
20254: p_x_line_rec.booked_flag = 'Y' THEN
20255: if l_debug_level > 0 then
20256: oe_debug_pub.add('setting flag to true for model', 1);
20257: end if;

Line 20261: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

20257: end if;
20258: l_flag := TRUE;
20259: END IF;
20260:
20261: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20262: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20263: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20264: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20265: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

Line 20262: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

20258: l_flag := TRUE;
20259: END IF;
20260:
20261: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20262: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20263: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20264: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20265: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
20266: p_old_line_rec.ordered_quantity )

Line 20263: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

20259: END IF;
20260:
20261: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20262: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20263: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20264: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20265: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
20266: p_old_line_rec.ordered_quantity )
20267: THEN

Line 20265: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

20261: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
20262: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20263: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
20264: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
20265: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
20266: p_old_line_rec.ordered_quantity )
20267: THEN
20268: if l_debug_level > 0 then
20269: oe_debug_pub.add('set flag to true'|| p_old_line_rec.ordered_quantity, 1);

Line 20276: NOT OE_GLOBALS.Equal(p_x_line_rec.config_rev_nbr,

20272: l_flag := TRUE;
20273: END IF;
20274:
20275: IF p_x_line_rec.line_id = p_x_line_rec.top_model_line_id AND
20276: NOT OE_GLOBALS.Equal(p_x_line_rec.config_rev_nbr,
20277: p_old_line_rec.config_rev_nbr)
20278: THEN
20279: if l_debug_level > 0 then
20280: oe_debug_pub.add('set flag to true, old rev '|| p_old_line_rec.config_rev_nbr, 1);

Line 20300: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

20296:
20297:
20298: -- in case of splits, we dont want to batch validate
20299:
20300: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
20301: p_x_line_rec.split_from_line_id is not null
20302: THEN
20303: if l_debug_level > 0 then
20304: oe_debug_pub.add('This is a new model after split', 1);

Line 20307: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

20303: if l_debug_level > 0 then
20304: oe_debug_pub.add('This is a new model after split', 1);
20305: end if;
20306:
20307: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
20308: nvl(p_x_line_rec.split_action_code, 'X') = 'SPLIT'
20309: THEN
20310: if l_debug_level > 0 then
20311: oe_debug_pub.add('This is a parent split model', 1);

Line 20341: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

20337: RAISE FND_API.G_EXC_ERROR;
20338: END IF;
20339:
20340: -- 2917547 starts
20341: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
20342: p_x_line_rec.ordered_quantity = 0 THEN
20343:
20344: IF p_x_line_rec.ordered_item IS NULL OR
20345: p_x_line_rec.ordered_item = fnd_api.g_miss_char THEN

Line 20363: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20359: RAISE FND_API.G_EXC_ERROR;
20360: END IF;
20361:
20362: OE_delayed_requests_Pvt.log_request(
20363: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20364: p_entity_id => p_x_line_rec.top_model_line_id,
20365: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20366: p_requesting_entity_id => p_x_line_rec.line_id,
20367: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

Line 20365: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20361:
20362: OE_delayed_requests_Pvt.log_request(
20363: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20364: p_entity_id => p_x_line_rec.top_model_line_id,
20365: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20366: p_requesting_entity_id => p_x_line_rec.line_id,
20367: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
20368: x_return_status => x_return_status);
20369:

Line 20367: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

20363: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20364: p_entity_id => p_x_line_rec.top_model_line_id,
20365: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20366: p_requesting_entity_id => p_x_line_rec.line_id,
20367: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
20368: x_return_status => x_return_status);
20369:
20370: -- log only if operation is update and not for create
20371: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

Line 20371: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

20367: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
20368: x_return_status => x_return_status);
20369:
20370: -- log only if operation is update and not for create
20371: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
20372: l_config_rev_change = 'N' THEN
20373:
20374: if l_debug_level > 0 then
20375: oe_debug_pub.add('Logging a request to update configuration', 1);

Line 20397: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20393: (p_x_line_rec.item_type_code || p_x_line_rec.ordered_quantity, 1);
20394: end if;
20395:
20396: OE_Delayed_Requests_Pvt.Log_Request(
20397: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20398: p_entity_id => p_x_line_rec.line_id,
20399: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20400: p_requesting_entity_id => p_x_line_rec.line_id,
20401: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,

Line 20399: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20395:
20396: OE_Delayed_Requests_Pvt.Log_Request(
20397: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20398: p_entity_id => p_x_line_rec.line_id,
20399: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20400: p_requesting_entity_id => p_x_line_rec.line_id,
20401: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,
20402: p_param1 => p_x_line_rec.top_model_line_id,
20403: p_param2 => p_x_line_rec.component_code,

Line 20401: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,

20397: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20398: p_entity_id => p_x_line_rec.line_id,
20399: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20400: p_requesting_entity_id => p_x_line_rec.line_id,
20401: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,
20402: p_param1 => p_x_line_rec.top_model_line_id,
20403: p_param2 => p_x_line_rec.component_code,
20404: p_param3 => p_x_line_rec.item_type_code,
20405: p_param4 => p_old_line_rec.ordered_quantity,

Line 20520: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

20516:
20517:
20518: IF OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'N' AND
20519: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' AND
20520: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
20521: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT'
20522: THEN
20523: -- 1. change in ordered qty of model/kit
20524: -- at subconfig cascade qty is actually in validate_config

Line 20529: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

20525:
20526: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id
20527: THEN
20528:
20529: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
20530: p_old_line_rec.ordered_quantity) AND
20531: OE_Config_Util.G_Config_UI_Used = 'N'
20532: THEN
20533: l_param1 := p_old_line_rec.ordered_quantity;

Line 20552: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND

20548:
20549: -- 2. change in project and task of model/ ato subconfig
20550:
20551: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id OR -- model/kit
20552: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND
20553: p_x_line_rec.line_id = p_x_line_rec.ato_line_id) -- ato subconfig
20554: THEN
20555:
20556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,

Line 20556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,

20552: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND
20553: p_x_line_rec.line_id = p_x_line_rec.ato_line_id) -- ato subconfig
20554: THEN
20555:
20556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,
20557: p_old_line_rec.project_id)
20558: THEN
20559: l_param5 := p_x_line_rec.project_id;
20560: if l_debug_level > 0 then

Line 20566: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)

20562: end if;
20563: l_cascade_changes := TRUE;
20564: END IF;
20565:
20566: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
20567: THEN
20568: l_param6 := p_x_line_rec.task_id;
20569: if l_debug_level > 0 then
20570: oe_debug_pub.add('model /ATO sub,task_id changed: '||l_param6,1);

Line 20579: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,

20575:
20576: -- 3. cascade change in ship_tolerance_above and ship_tolerance_above
20577: -- at the model level to all the options.
20578:
20579: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,
20580: p_old_line_rec.ship_tolerance_above)
20581: THEN
20582: l_param11 := p_x_line_rec.ship_tolerance_above;
20583: l_cascade_changes := TRUE;

Line 20586: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,

20582: l_param11 := p_x_line_rec.ship_tolerance_above;
20583: l_cascade_changes := TRUE;
20584: END IF;
20585:
20586: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,
20587: p_old_line_rec.ship_tolerance_below)
20588: THEN
20589: l_param12 := p_x_line_rec.ship_tolerance_below;
20590: l_cascade_changes := TRUE;

Line 20603: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

20599: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id AND
20600: nvl(p_x_line_rec.ship_model_complete_flag, 'N') = 'N' AND
20601: p_x_line_rec.ato_line_id IS NULL
20602: THEN
20603: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
20604: p_old_line_rec.ship_to_org_id)
20605: THEN
20606: l_param14 := p_x_line_rec.ship_to_org_id;
20607: l_cascade_changes := TRUE;

Line 20610: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

20606: l_param14 := p_x_line_rec.ship_to_org_id;
20607: l_cascade_changes := TRUE;
20608: END IF;
20609:
20610: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
20611: p_old_line_rec.request_date)
20612: THEN
20613: l_date_param1 := p_x_line_rec.request_date;
20614: l_cascade_changes := TRUE;

Line 20622: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND

20618:
20619:
20620: -- 5. change in shipped qty of ato model, specifically for top most ato.
20621:
20622: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
20623: p_x_line_rec.ato_line_id IS NOT NULL
20624: THEN
20625:
20626: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,

Line 20626: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,

20622: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
20623: p_x_line_rec.ato_line_id IS NOT NULL
20624: THEN
20625:
20626: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,
20627: p_old_line_rec.shipped_quantity)
20628: THEN
20629: l_param9 := to_char(p_x_line_rec.shipped_quantity);
20630: if l_debug_level > 0 then

Line 20644: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

20640:
20641: -- 6. cascade source_type for ATO configurations.
20642:
20643: IF p_x_line_rec.line_id = p_x_line_rec.ato_line_id AND
20644: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20645: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
20646: THEN
20647:
20648: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,

Line 20645: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )

20641: -- 6. cascade source_type for ATO configurations.
20642:
20643: IF p_x_line_rec.line_id = p_x_line_rec.ato_line_id AND
20644: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20645: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
20646: THEN
20647:
20648: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,
20649: p_old_line_rec.source_type_code)

Line 20648: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,

20644: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20645: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
20646: THEN
20647:
20648: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,
20649: p_old_line_rec.source_type_code)
20650: THEN
20651: l_param7 := p_x_line_rec.source_type_code;
20652: if l_debug_level > 0 then

Line 20664: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

20660:
20661: -- 7. Cascade change in freight_term_code
20662: -- added this code to fix the bug 2217336
20663:
20664: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20665: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20666: THEN
20667:
20668: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,

Line 20665: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

20661: -- 7. Cascade change in freight_term_code
20662: -- added this code to fix the bug 2217336
20663:
20664: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20665: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20666: THEN
20667:
20668: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,
20669: p_old_line_rec.freight_terms_code)

Line 20668: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,

20664: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20665: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20666: THEN
20667:
20668: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,
20669: p_old_line_rec.freight_terms_code)
20670: THEN
20671: l_param16 := p_x_line_rec.freight_terms_code;
20672:

Line 20685: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

20681: END IF;
20682:
20683: -- 8. Cascade change in promise date
20684:
20685: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20686: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20687: THEN
20688:
20689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,

Line 20686: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

20682:
20683: -- 8. Cascade change in promise date
20684:
20685: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20686: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20687: THEN
20688:
20689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,
20690: p_old_line_rec.promise_date)

Line 20689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,

20685: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
20686: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
20687: THEN
20688:
20689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,
20690: p_old_line_rec.promise_date)
20691: THEN
20692: l_date_param2 := p_x_line_rec.promise_date;
20693:

Line 20729: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20725: l_cancellation := 'Y';
20726: END IF;
20727:
20728: OE_delayed_requests_Pvt.log_request(
20729: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20730: p_entity_id => p_x_line_rec.line_id,
20731: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20732: p_requesting_entity_id => p_x_line_rec.line_id,
20733: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,

Line 20731: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20727:
20728: OE_delayed_requests_Pvt.log_request(
20729: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20730: p_entity_id => p_x_line_rec.line_id,
20731: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20732: p_requesting_entity_id => p_x_line_rec.line_id,
20733: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,
20734: p_param1 => l_param1, -- old old qty
20735: p_param2 => l_param2, -- new ord qty

Line 20733: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,

20729: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20730: p_entity_id => p_x_line_rec.line_id,
20731: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20732: p_requesting_entity_id => p_x_line_rec.line_id,
20733: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,
20734: p_param1 => l_param1, -- old old qty
20735: p_param2 => l_param2, -- new ord qty
20736: p_param3 => l_param3, -- chg reason
20737: p_param4 => l_param4, -- chg comment

Line 20773: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND

20769: -- if not done so, following if condition will always fail and cascading
20770: -- changed field values to child item lines will fail.
20771: -- (warehous field for 6678897)
20772:
20773: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
20774: ((p_x_line_rec.ato_line_id is not null AND
20775: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
20776: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
20777: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

Line 20775: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR

20771: -- (warehous field for 6678897)
20772:
20773: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
20774: ((p_x_line_rec.ato_line_id is not null AND
20775: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
20776: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
20777: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
20778: AND nvl(p_x_line_rec.split_action_code,'N') <> 'SPLIT' --6717302
20779: AND nvl(p_x_line_rec.split_by,'N') <> 'SYSTEM' --6717302

Line 20777: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

20773: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
20774: ((p_x_line_rec.ato_line_id is not null AND
20775: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
20776: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
20777: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
20778: AND nvl(p_x_line_rec.split_action_code,'N') <> 'SPLIT' --6717302
20779: AND nvl(p_x_line_rec.split_by,'N') <> 'SYSTEM' --6717302
20780: THEN
20781:

Line 20785: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_FROM_ORG_ID,

20781:
20782: IF p_x_line_rec.schedule_status_code is null THEN
20783:
20784: -- 1.
20785: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_FROM_ORG_ID,
20786: p_old_line_rec.SHIP_FROM_ORG_ID)
20787: THEN
20788: l_change_configuration := TRUE;
20789: END IF;

Line 20792: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID,

20788: l_change_configuration := TRUE;
20789: END IF;
20790:
20791: -- 2.
20792: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID,
20793: p_old_line_rec.SHIP_TO_ORG_ID)
20794: THEN
20795: l_change_configuration := TRUE;
20796: END IF;

Line 20802: IF NOT OE_GLOBALS.Equal(p_x_line_rec.REQUEST_DATE,

20798: END IF;
20799:
20800: -- 3. note that this is logged even if scheduled.
20801:
20802: IF NOT OE_GLOBALS.Equal(p_x_line_rec.REQUEST_DATE,
20803: p_old_line_rec.REQUEST_DATE) AND
20804: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N'
20805: THEN
20806: l_change_configuration := TRUE;

Line 20809: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPPING_METHOD_CODE,

20805: THEN
20806: l_change_configuration := TRUE;
20807: END IF;
20808:
20809: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPPING_METHOD_CODE,
20810: p_old_line_rec.SHIPPING_METHOD_CODE)
20811: THEN
20812: l_change_configuration := TRUE;
20813: END IF;

Line 20815: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPMENT_PRIORITY_CODE,

20811: THEN
20812: l_change_configuration := TRUE;
20813: END IF;
20814:
20815: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPMENT_PRIORITY_CODE,
20816: p_old_line_rec.SHIPMENT_PRIORITY_CODE)
20817: THEN
20818: l_change_configuration := TRUE;
20819: END IF;

Line 20821: IF NOT OE_GLOBALS.Equal(p_x_line_rec.DEMAND_CLASS_CODE,

20817: THEN
20818: l_change_configuration := TRUE;
20819: END IF;
20820:
20821: IF NOT OE_GLOBALS.Equal(p_x_line_rec.DEMAND_CLASS_CODE,
20822: p_old_line_rec.DEMAND_CLASS_CODE)
20823: THEN
20824: l_change_configuration := TRUE;
20825: END IF;

Line 20843: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20839: oe_debug_pub.add('logging a req. to chg config', 1);
20840: end if;
20841:
20842: OE_Delayed_Requests_Pvt.Log_Request(
20843: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20844: p_entity_id => l_entity_id,
20845: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20846: p_requesting_entity_id => p_x_line_rec.line_id,
20847: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,

Line 20845: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20841:
20842: OE_Delayed_Requests_Pvt.Log_Request(
20843: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20844: p_entity_id => l_entity_id,
20845: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20846: p_requesting_entity_id => p_x_line_rec.line_id,
20847: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,
20848: p_param1 => p_x_line_rec.line_id,
20849: x_return_status => l_return_status);

Line 20847: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,

20843: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20844: p_entity_id => l_entity_id,
20845: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20846: p_requesting_entity_id => p_x_line_rec.line_id,
20847: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,
20848: p_param1 => p_x_line_rec.line_id,
20849: x_return_status => l_return_status);
20850:
20851: END IF;

Line 20865: AND item_type_code = OE_GLOBALS.G_ITEM_INCLUDED

20861: INTO l_num
20862: FROM oe_order_lines
20863: WHERE top_model_line_id = p_x_line_rec.top_model_line_id
20864: AND link_to_line_id = p_x_line_rec.line_id
20865: AND item_type_code = OE_GLOBALS.G_ITEM_INCLUDED
20866: AND rownum = 1;
20867:
20868: EXCEPTION
20869: WHEN NO_DATA_FOUND THEN

Line 20903: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND

20899: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).date_param1
20900: := FND_API.G_MISS_DATE;
20901: END IF;
20902:
20903: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
20904: p_x_line_rec.ato_line_id is null AND
20905: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
20906: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20907: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND

Line 20906: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

20902:
20903: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
20904: p_x_line_rec.ato_line_id is null AND
20905: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
20906: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20907: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND
20908: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND
20909: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' -- not for model change
20910: THEN

Line 20907: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND

20903: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
20904: p_x_line_rec.ato_line_id is null AND
20905: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
20906: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
20907: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND
20908: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND
20909: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' -- not for model change
20910: THEN
20911: if l_debug_level > 0 then

Line 20915: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

20911: if l_debug_level > 0 then
20912: oe_debug_pub.add('cascade class changes to included items', 1);
20913: end if;
20914:
20915: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
20916: p_old_line_rec.ordered_quantity) THEN
20917:
20918: IF OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param1 =
20919: FND_API.G_MISS_NUM THEN

Line 20948: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id) THEN

20944: l_modify_included_items := TRUE;
20945:
20946: END IF;
20947:
20948: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id) THEN
20949: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param5
20950: := p_x_line_rec.project_id;
20951: if l_debug_level > 0 then
20952: oe_debug_pub.add('model/ATO subconfig,project changed: '||l_param5,1);

Line 20958: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)

20954: l_modify_included_items := TRUE;
20955: END IF;
20956:
20957:
20958: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
20959: THEN
20960: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param6
20961: := p_x_line_rec.task_id;
20962: if l_debug_level > 0 then

Line 20969: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,

20965: l_modify_included_items := TRUE;
20966: END IF;
20967:
20968:
20969: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,
20970: p_old_line_rec.ship_tolerance_above)
20971: THEN
20972: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param7
20973: := p_x_line_rec.ship_tolerance_above;

Line 20977: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,

20973: := p_x_line_rec.ship_tolerance_above;
20974: l_modify_included_items := TRUE;
20975: END IF;
20976:
20977: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,
20978: p_old_line_rec.ship_tolerance_below)
20979: THEN
20980: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param8
20981: := p_x_line_rec.ship_tolerance_below;

Line 20985: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN

20981: := p_x_line_rec.ship_tolerance_below;
20982: l_modify_included_items := TRUE;
20983: END IF;
20984:
20985: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN
20986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
20987: p_old_line_rec.ship_to_org_id)
20988: THEN
20989: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param9

Line 20986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

20982: l_modify_included_items := TRUE;
20983: END IF;
20984:
20985: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN
20986: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
20987: p_old_line_rec.ship_to_org_id)
20988: THEN
20989: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param9
20990: := p_x_line_rec.ship_to_org_id;

Line 20994: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

20990: := p_x_line_rec.ship_to_org_id;
20991: l_modify_included_items := TRUE;
20992: END IF;
20993:
20994: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
20995: p_old_line_rec.request_date)
20996: THEN
20997: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).date_param1
20998: := p_x_line_rec.request_date;

Line 21003: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN

20999: l_modify_included_items := TRUE;
21000: END IF;
21001: END IF;
21002:
21003: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN
21004: l_modify_included_items := TRUE;
21005: END IF;
21006:
21007: END IF;

Line 21176: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,

21172: oe_debug_pub.add('Entering Log_Scheduling_Requests',1);
21173: oe_debug_pub.add('p_caller' || p_caller,1);
21174: end if;
21175:
21176: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,
21177: p_old_line_rec.schedule_ship_date)
21178: THEN
21179: if l_debug_level > 0 then
21180: oe_debug_pub.add('Schedule shipdate is changed',1);

Line 21210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21206: || to_char(p_x_line_rec.line_id) ,1);
21207: end if;
21208:
21209: OE_Delayed_Requests_Pvt.Log_Request(
21210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21211: p_entity_id => p_x_line_rec.line_id,
21212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21213: p_requesting_entity_id => p_x_line_rec.line_id,
21214: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 21212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21208:
21209: OE_Delayed_Requests_Pvt.Log_Request(
21210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21211: p_entity_id => p_x_line_rec.line_id,
21212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21213: p_requesting_entity_id => p_x_line_rec.line_id,
21214: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
21215: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
21216: p_param1 => FND_API.G_TRUE,

Line 21214: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

21210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21211: p_entity_id => p_x_line_rec.line_id,
21212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21213: p_requesting_entity_id => p_x_line_rec.line_id,
21214: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
21215: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
21216: p_param1 => FND_API.G_TRUE,
21217: x_return_status => x_return_status);
21218:

Line 21215: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,

21211: p_entity_id => p_x_line_rec.line_id,
21212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21213: p_requesting_entity_id => p_x_line_rec.line_id,
21214: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
21215: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
21216: p_param1 => FND_API.G_TRUE,
21217: x_return_status => x_return_status);
21218:
21219: END IF;

Line 21227: IF OE_GLOBALS.G_AUDIT_REASON_RQD_FLAG = 'Y'

21223: -- Begin Pre write.
21224:
21225: -- Start AuditTrail
21226:
21227: IF OE_GLOBALS.G_AUDIT_REASON_RQD_FLAG = 'Y'
21228: AND ( p_x_line_rec.change_reason IS NULL OR
21229: p_x_line_rec.change_reason = FND_API.G_MISS_CHAR)
21230: THEN
21231:

Line 21233: IF OE_GLOBALS.G_DEFAULT_REASON THEN

21229: p_x_line_rec.change_reason = FND_API.G_MISS_CHAR)
21230: THEN
21231:
21232: -- bug 3636884, defaulting reason from group API
21233: IF OE_GLOBALS.G_DEFAULT_REASON THEN
21234: if l_debug_level > 0 then
21235: oe_debug_pub.add('Defaulting Audit Reason for Order Line', 1);
21236: end if;
21237: p_x_line_rec.change_reason := 'SYSTEM';

Line 21256: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG

21252: IF p_caller = 'EXTERNAL' THEN
21253:
21254: IF ((p_x_line_rec.top_model_line_id is NOT NULL OR
21255: p_x_line_rec.ato_line_id is NOT NULL)) AND
21256: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG
21257: THEN
21258: if l_debug_level > 0 then
21259: oe_debug_pub.add('Before logging Log_CTO_Requests', 1);
21260: end if;

Line 21498: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

21494: END IF;
21495:
21496: /* Has one of the two quantities changed
21497: =======================================*/
21498: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
21499: ,p_old_ordered_quantity )) OR
21500: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
21501: ,p_old_ordered_quantity2)) OR
21502: (p_ordered_quantity IS NULL) OR

Line 21500: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2

21496: /* Has one of the two quantities changed
21497: =======================================*/
21498: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
21499: ,p_old_ordered_quantity )) OR
21500: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
21501: ,p_old_ordered_quantity2)) OR
21502: (p_ordered_quantity IS NULL) OR
21503: (p_ordered_quantity2 IS NULL) THEN
21504:

Line 21518: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

21514: ELSE
21515: /* No calculation required
21516: ==================*/
21517: RETURN;
21518: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
21519:
21520:
21521:
21522:

Line 21542: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

21538: oe_debug_pub.add('OPM After Get_OPMUOM_from_appsUOM : apps_uom = ' || p_ordered_quantity_uom || 'opm_uom = ' || l_opm_uom );
21539: END IF; */
21540:
21541:
21542: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
21543: ,p_old_ordered_quantity )) OR
21544: p_ordered_quantity2 IS NULL THEN
21545:
21546: /* Primary quantity has changed so recalculate secondary */

Line 21662: ELSIF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2

21658:
21659:
21660: END IF; -- IF (l_item_rec.secondary_default_ind in ('F','D')THEN
21661:
21662: ELSIF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
21663: ,p_old_ordered_quantity2 )) THEN
21664: /* Secondary quantity has changed so recalculate primary */
21665:
21666:

Line 21833: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE

21829: -- BUG 2746595, send currency code as request_unique_key1 parameter to
21830: -- process release request. This is required as 2 distinct requests need to
21831: -- be logged for currency updates.
21832:
21833: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE
21834: THEN
21835:
21836: OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
21837:

Line 21842: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

21838: -- For DELETES, log process releases request with new values as
21839: -- null or 0 so that quantity/amount cumulations see negative
21840: -- changes thus resulting in decrementing final released qty/amount
21841: OE_Delayed_Requests_Pvt.Log_Request
21842: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21843: ,p_entity_id => p_x_line_rec.line_id
21844: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21845: ,p_requesting_entity_id => p_x_line_rec.line_id
21846: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 21844: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

21840: -- changes thus resulting in decrementing final released qty/amount
21841: OE_Delayed_Requests_Pvt.Log_Request
21842: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21843: ,p_entity_id => p_x_line_rec.line_id
21844: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21845: ,p_requesting_entity_id => p_x_line_rec.line_id
21846: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21847: -- Old values
21848: ,p_param1 => p_x_line_rec.blanket_number

Line 21846: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

21842: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21843: ,p_entity_id => p_x_line_rec.line_id
21844: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21845: ,p_requesting_entity_id => p_x_line_rec.line_id
21846: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21847: -- Old values
21848: ,p_param1 => p_x_line_rec.blanket_number
21849: ,p_param2 => p_x_line_rec.blanket_line_number
21850: ,p_param3 => p_x_line_rec.ordered_quantity

Line 21875: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

21871: -- to validate that sum of quantities/amounts across all shipments
21872: -- in this line set are within the release min/max limits on blanket
21873: IF p_x_line_rec.line_set_id IS NOT NULL THEN
21874: OE_Delayed_Requests_Pvt.Log_Request
21875: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21876: ,p_entity_id => p_x_line_rec.line_set_id
21877: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21878: ,p_requesting_entity_id => p_x_line_rec.line_id
21879: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 21877: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

21873: IF p_x_line_rec.line_set_id IS NOT NULL THEN
21874: OE_Delayed_Requests_Pvt.Log_Request
21875: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21876: ,p_entity_id => p_x_line_rec.line_set_id
21877: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21878: ,p_requesting_entity_id => p_x_line_rec.line_id
21879: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
21880: ,p_request_unique_key1 => p_x_line_rec.blanket_number
21881: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 21879: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

21875: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21876: ,p_entity_id => p_x_line_rec.line_set_id
21877: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21878: ,p_requesting_entity_id => p_x_line_rec.line_id
21879: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
21880: ,p_request_unique_key1 => p_x_line_rec.blanket_number
21881: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
21882: ,p_param1 =>
21883: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 21891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

21887:
21888: ELSIF (
21889: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
21890: AND
21891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
21892: ,p_old_line_rec.transaction_phase_code)
21893: )
21894: THEN
21895:

Line 21907: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

21903: -- total qty/amount of this line, as complete negotiation is
21904: -- running consumption logic for this order first time.
21905: -- Hence, send old parameter (param1-6) values as null.
21906: OE_Delayed_Requests_Pvt.Log_Request
21907: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21908: ,p_entity_id => p_x_line_rec.line_id
21909: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21910: ,p_requesting_entity_id => p_x_line_rec.line_id
21911: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 21909: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

21905: -- Hence, send old parameter (param1-6) values as null.
21906: OE_Delayed_Requests_Pvt.Log_Request
21907: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21908: ,p_entity_id => p_x_line_rec.line_id
21909: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21910: ,p_requesting_entity_id => p_x_line_rec.line_id
21911: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21912: -- Old values
21913: ,p_param1 => null

Line 21911: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

21907: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21908: ,p_entity_id => p_x_line_rec.line_id
21909: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21910: ,p_requesting_entity_id => p_x_line_rec.line_id
21911: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21912: -- Old values
21913: ,p_param1 => null
21914: ,p_param2 => null
21915: ,p_param3 => null

Line 21941: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

21937: IF p_x_line_rec.line_set_id IS NOT NULL THEN
21938:
21939: IF p_x_line_rec.blanket_number IS NOT NULL THEN
21940: OE_Delayed_Requests_Pvt.Log_Request
21941: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21942: ,p_entity_id => p_x_line_rec.line_set_id
21943: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21944: ,p_requesting_entity_id => p_x_line_rec.line_id
21945: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 21943: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

21939: IF p_x_line_rec.blanket_number IS NOT NULL THEN
21940: OE_Delayed_Requests_Pvt.Log_Request
21941: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21942: ,p_entity_id => p_x_line_rec.line_set_id
21943: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21944: ,p_requesting_entity_id => p_x_line_rec.line_id
21945: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
21946: ,p_request_unique_key1 => p_x_line_rec.blanket_number
21947: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 21945: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

21941: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21942: ,p_entity_id => p_x_line_rec.line_set_id
21943: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21944: ,p_requesting_entity_id => p_x_line_rec.line_id
21945: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
21946: ,p_request_unique_key1 => p_x_line_rec.blanket_number
21947: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
21948: ,p_param1 =>
21949: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 21956: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number

21952: END IF;
21953:
21954: END IF; -- if line_set_id is not null
21955:
21956: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
21957: ,p_old_line_rec.blanket_number)
21958: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
21959: ,p_old_line_rec.blanket_line_number)
21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

Line 21958: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number

21954: END IF; -- if line_set_id is not null
21955:
21956: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
21957: ,p_old_line_rec.blanket_number)
21958: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
21959: ,p_old_line_rec.blanket_line_number)
21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
21961: ,p_old_line_rec.ordered_quantity)
21962: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price

Line 21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

21956: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
21957: ,p_old_line_rec.blanket_number)
21958: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
21959: ,p_old_line_rec.blanket_line_number)
21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
21961: ,p_old_line_rec.ordered_quantity)
21962: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
21963: ,p_old_line_rec.unit_selling_price)
21964: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

Line 21962: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price

21958: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
21959: ,p_old_line_rec.blanket_line_number)
21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
21961: ,p_old_line_rec.ordered_quantity)
21962: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
21963: ,p_old_line_rec.unit_selling_price)
21964: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
21965: ,p_old_line_rec.order_quantity_uom)
21966: )

Line 21964: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

21960: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
21961: ,p_old_line_rec.ordered_quantity)
21962: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
21963: ,p_old_line_rec.unit_selling_price)
21964: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
21965: ,p_old_line_rec.order_quantity_uom)
21966: )
21967: THEN
21968:

Line 21975: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

21971:
21972: OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
21973:
21974: OE_Delayed_Requests_Pvt.Log_Request
21975: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21976: ,p_entity_id => p_x_line_rec.line_id
21977: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21978: ,p_requesting_entity_id => p_x_line_rec.line_id
21979: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 21977: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

21973:
21974: OE_Delayed_Requests_Pvt.Log_Request
21975: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21976: ,p_entity_id => p_x_line_rec.line_id
21977: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21978: ,p_requesting_entity_id => p_x_line_rec.line_id
21979: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21980: -- Old values
21981: ,p_param1 => p_old_line_rec.blanket_number

Line 21979: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

21975: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
21976: ,p_entity_id => p_x_line_rec.line_id
21977: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
21978: ,p_requesting_entity_id => p_x_line_rec.line_id
21979: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
21980: -- Old values
21981: ,p_param1 => p_old_line_rec.blanket_number
21982: ,p_param2 => p_old_line_rec.blanket_line_number
21983: ,p_param3 => p_old_line_rec.ordered_quantity

Line 22009: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

22005: IF p_x_line_rec.line_set_id IS NOT NULL THEN
22006:
22007: IF p_x_line_rec.blanket_number IS NOT NULL THEN
22008: OE_Delayed_Requests_Pvt.Log_Request
22009: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22010: ,p_entity_id => p_x_line_rec.line_set_id
22011: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22012: ,p_requesting_entity_id => p_x_line_rec.line_id
22013: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 22011: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

22007: IF p_x_line_rec.blanket_number IS NOT NULL THEN
22008: OE_Delayed_Requests_Pvt.Log_Request
22009: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22010: ,p_entity_id => p_x_line_rec.line_set_id
22011: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22012: ,p_requesting_entity_id => p_x_line_rec.line_id
22013: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
22014: ,p_request_unique_key1 => p_x_line_rec.blanket_number
22015: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 22013: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

22009: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22010: ,p_entity_id => p_x_line_rec.line_set_id
22011: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22012: ,p_requesting_entity_id => p_x_line_rec.line_id
22013: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
22014: ,p_request_unique_key1 => p_x_line_rec.blanket_number
22015: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
22016: ,p_param1 =>
22017: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 22025: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number

22021:
22022: -- If blanket number is being updated on the shipment, also
22023: -- need to run shipment validation for the old blanket reference
22024: IF p_old_line_rec.blanket_number IS NOT NULL
22025: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
22026: ,p_old_line_rec.blanket_number)
22027: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
22028: ,p_old_line_rec.blanket_line_number)
22029: )

Line 22027: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number

22023: -- need to run shipment validation for the old blanket reference
22024: IF p_old_line_rec.blanket_number IS NOT NULL
22025: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
22026: ,p_old_line_rec.blanket_number)
22027: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
22028: ,p_old_line_rec.blanket_line_number)
22029: )
22030: THEN
22031: OE_Delayed_Requests_Pvt.Log_Request

Line 22032: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

22028: ,p_old_line_rec.blanket_line_number)
22029: )
22030: THEN
22031: OE_Delayed_Requests_Pvt.Log_Request
22032: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22033: ,p_entity_id => p_x_line_rec.line_set_id
22034: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22035: ,p_requesting_entity_id => p_x_line_rec.line_id
22036: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 22034: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

22030: THEN
22031: OE_Delayed_Requests_Pvt.Log_Request
22032: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22033: ,p_entity_id => p_x_line_rec.line_set_id
22034: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22035: ,p_requesting_entity_id => p_x_line_rec.line_id
22036: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
22037: ,p_request_unique_key1 => p_old_line_rec.blanket_number
22038: ,p_request_unique_key2 => p_old_line_rec.blanket_line_number

Line 22036: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

22032: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22033: ,p_entity_id => p_x_line_rec.line_set_id
22034: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22035: ,p_requesting_entity_id => p_x_line_rec.line_id
22036: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
22037: ,p_request_unique_key1 => p_old_line_rec.blanket_number
22038: ,p_request_unique_key2 => p_old_line_rec.blanket_line_number
22039: ,p_param1 =>
22040: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 22301: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions

22297: RAISE FND_API.G_EXC_ERROR;
22298: END IF;
22299:
22300:
22301: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
22302: ,p_old_line_rec.shipping_instructions)
22303: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
22304: ,p_old_line_rec.packing_instructions)
22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id

Line 22303: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions

22299:
22300:
22301: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
22302: ,p_old_line_rec.shipping_instructions)
22303: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
22304: ,p_old_line_rec.packing_instructions)
22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
22306: ,p_old_line_rec.ship_to_contact_id)
22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id

Line 22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id

22301: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
22302: ,p_old_line_rec.shipping_instructions)
22303: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
22304: ,p_old_line_rec.packing_instructions)
22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
22306: ,p_old_line_rec.ship_to_contact_id)
22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
22308: ,p_old_line_rec.deliver_to_org_id)
22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id

Line 22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id

22303: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
22304: ,p_old_line_rec.packing_instructions)
22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
22306: ,p_old_line_rec.ship_to_contact_id)
22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
22308: ,p_old_line_rec.deliver_to_org_id)
22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
22310: ,p_old_line_rec.deliver_to_contact_id)
22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description

Line 22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id

22305: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
22306: ,p_old_line_rec.ship_to_contact_id)
22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
22308: ,p_old_line_rec.deliver_to_org_id)
22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
22310: ,p_old_line_rec.deliver_to_contact_id)
22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
22312: ,p_old_line_rec.user_item_description)
22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

Line 22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description

22307: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
22308: ,p_old_line_rec.deliver_to_org_id)
22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
22310: ,p_old_line_rec.deliver_to_contact_id)
22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
22312: ,p_old_line_rec.user_item_description)
22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22314: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

Line 22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

22309: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
22310: ,p_old_line_rec.deliver_to_contact_id)
22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
22312: ,p_old_line_rec.user_item_description)
22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22314: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22316: ,p_old_line_rec.customer_line_number)
22317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

Line 22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

22311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
22312: ,p_old_line_rec.user_item_description)
22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22314: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22316: ,p_old_line_rec.customer_line_number)
22317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
22318: ,p_old_line_rec.customer_shipment_number) */
22319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code

Line 22317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

22313: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22314: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22316: ,p_old_line_rec.customer_line_number)
22317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
22318: ,p_old_line_rec.customer_shipment_number) */
22319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code
22320: ,p_old_line_rec.shipping_method_code) THEN
22321:

Line 22319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code

22315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22316: ,p_old_line_rec.customer_line_number)
22317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
22318: ,p_old_line_rec.customer_shipment_number) */
22319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code
22320: ,p_old_line_rec.shipping_method_code) THEN
22321:
22322: IF l_debug_level > 0 THEN
22323: OE_DEBUG_PUB.Add('Change in Reference Data Elements...', 2);

Line 22332: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

22328:
22329: END IF;
22330: /* Added for ER 6072870*/
22331:
22332: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22333: ,p_old_line_rec.cust_po_number)
22334: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22335: ,p_old_line_rec.customer_line_number)
22336: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

Line 22334: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

22330: /* Added for ER 6072870*/
22331:
22332: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22333: ,p_old_line_rec.cust_po_number)
22334: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22335: ,p_old_line_rec.customer_line_number)
22336: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
22337: ,p_old_line_rec.customer_shipment_number) THEN
22338: --{

Line 22336: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

22332: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
22333: ,p_old_line_rec.cust_po_number)
22334: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
22335: ,p_old_line_rec.customer_line_number)
22336: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
22337: ,p_old_line_rec.customer_shipment_number) THEN
22338: --{
22339: IF l_debug_level > 0 THEN
22340: OE_DEBUG_PUB.Add('Change in customer PO Reference Data Elements...', 2);

Line 22390: /* IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 - remove this as valid now for INVCONV

22386: END IF;
22387: --}
22388: END IF;
22389:
22390: /* IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 - remove this as valid now for INVCONV
22391: ,p_old_line_rec.ordered_quantity2) THEN
22392:
22393: FND_MESSAGE.Set_Name('ONT','ONT_DS_OPM_QTY_CHANGED');
22394: OE_MSG_PUB.Add;

Line 22401: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

22397: OE_DEBUG_PUB.Add('Warning!! Secondary Qty Changed...', 2);
22398: END IF;
22399: END IF;
22400:
22401: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
22402: ,p_old_line_rec.ordered_quantity_uom2) THEN
22403:
22404: FND_MESSAGE.Set_Name('ONT','ONT_DS_OPM_UOM_CHANGED');
22405: OE_MSG_PUB.Add;

Line 22412: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

22408: OE_DEBUG_PUB.Add('Warning!! Secondary Qty UOM Changed...', 2);
22409: END IF;
22410: END IF;
22411:
22412: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
22413: ,p_old_line_rec.preferred_grade) THEN
22414:
22415: FND_MESSAGE.Set_Name('ONT', 'ONT_DS_OPM_GRADE_CHANGED');
22416: OE_MSG_PUB.Add;

Line 22425: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

22421:
22422: END IF; */
22423:
22424:
22425: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
22426: ,p_old_line_rec.ordered_quantity)
22427: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
22428: ,p_old_line_rec.order_quantity_uom)
22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

Line 22427: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

22423:
22424:
22425: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
22426: ,p_old_line_rec.ordered_quantity)
22427: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
22428: ,p_old_line_rec.order_quantity_uom)
22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
22430: ,p_old_line_rec.ordered_quantity2)
22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

Line 22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

22425: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
22426: ,p_old_line_rec.ordered_quantity)
22427: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
22428: ,p_old_line_rec.order_quantity_uom)
22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
22430: ,p_old_line_rec.ordered_quantity2)
22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
22432: ,p_old_line_rec.ordered_quantity_uom2)
22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

Line 22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

22427: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
22428: ,p_old_line_rec.order_quantity_uom)
22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
22430: ,p_old_line_rec.ordered_quantity2)
22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
22432: ,p_old_line_rec.ordered_quantity_uom2)
22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
22434: ,p_old_line_rec.preferred_grade)
22435: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

Line 22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

22429: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
22430: ,p_old_line_rec.ordered_quantity2)
22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
22432: ,p_old_line_rec.ordered_quantity_uom2)
22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
22434: ,p_old_line_rec.preferred_grade)
22435: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
22436: ,p_old_line_rec.schedule_ship_date)
22437: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

Line 22435: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

22431: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
22432: ,p_old_line_rec.ordered_quantity_uom2)
22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
22434: ,p_old_line_rec.preferred_grade)
22435: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
22436: ,p_old_line_rec.schedule_ship_date)
22437: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
22438: ,p_old_line_rec.ship_to_org_id)
22439: OR (l_ref_data_only ) -- Added for ER 6072870

Line 22437: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

22433: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
22434: ,p_old_line_rec.preferred_grade)
22435: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
22436: ,p_old_line_rec.schedule_ship_date)
22437: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
22438: ,p_old_line_rec.ship_to_org_id)
22439: OR (l_ref_data_only ) -- Added for ER 6072870
22440: OR (l_cust_po_attr_change and not l_ref_data_only and l_log_cust_po_change )
22441: OR p_x_line_rec.operation ='DELETE'

Line 22459: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

22455: p_x_line_rec.line_id, 2);
22456: END IF;
22457:
22458: OE_Delayed_Requests_Pvt.Log_Request
22459: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22460: ,p_entity_id => p_x_line_rec.line_id
22461: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22462: ,p_requesting_entity_id => p_x_line_rec.line_id
22463: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS

Line 22461: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

22457:
22458: OE_Delayed_Requests_Pvt.Log_Request
22459: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22460: ,p_entity_id => p_x_line_rec.line_id
22461: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22462: ,p_requesting_entity_id => p_x_line_rec.line_id
22463: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS
22464: ,p_param1 => p_old_line_rec.ordered_quantity
22465: ,p_param2 => p_old_line_rec.order_quantity_uom

Line 22463: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS

22459: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
22460: ,p_entity_id => p_x_line_rec.line_id
22461: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
22462: ,p_requesting_entity_id => p_x_line_rec.line_id
22463: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS
22464: ,p_param1 => p_old_line_rec.ordered_quantity
22465: ,p_param2 => p_old_line_rec.order_quantity_uom
22466: ,p_param3 => p_old_line_rec.ship_to_org_id
22467: ,p_param4 => p_old_line_rec.ordered_quantity2

Line 22608: ,OE_GLOBALS.G_WFI_LIN

22604: oe_debug_pub.add('Parent Line waiting to be invoiced, calling API to Invoice Parent ', 5);
22605: END IF;
22606:
22607: OE_Invoice_PUB.Interface_Line( p_link_to_line_id
22608: ,OE_GLOBALS.G_WFI_LIN
22609: ,l_result_out
22610: ,l_return_status);
22611:
22612: IF l_debug_level > 0 THEN

Line 22629: WF_ENGINE.CompleteActivityInternalName(OE_GLOBALS.G_WFI_LIN, p_link_to_line_id, 'INVOICING_WAIT_FOR_RFR', null);

22625: Set flow_status_code = 'INVOICED'
22626: Where line_id = p_link_to_line_id;
22627:
22628: BEGIN
22629: WF_ENGINE.CompleteActivityInternalName(OE_GLOBALS.G_WFI_LIN, p_link_to_line_id, 'INVOICING_WAIT_FOR_RFR', null);
22630: EXCEPTION
22631: WHEN OTHERS THEN
22632: oe_debug_pub.add(' Error in completing activity; SQL Message - '||SQLERRM, 5);
22633: END;