DBA Data[Home] [Help]

APPS.OE_LINE_UTIL dependencies on OE_GLOBALS

Line 10: G_BINARY_LIMIT CONSTANT NUMBER := OE_GLOBALS.G_BINARY_LIMIT; -- Added for bug 8636027

6: G_PKG_NAME CONSTANT VARCHAR2(30) := 'oe_line_util';
7: --bug4080363 commenting out the following
8: -- bug 3491752
9: --G_LIST_PRICE_OVERRIDE Varchar2(30) := nvl(fnd_profile.value('ONT_LIST_PRICE_OVERRIDE_PRIV'), 'NONE');
10: G_BINARY_LIMIT CONSTANT NUMBER := OE_GLOBALS.G_BINARY_LIMIT; -- Added for bug 8636027
11:
12: -- Added new API for 12355310
13: FUNCTION Shipping_Interfaced_Status
14: (

Line 312: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

308:
309: END IF;
310:
311: OE_Atchmt_Util.Delete_Attachments
312: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
313: , p_entity_id => p_line_id
314: , x_return_status => l_return_status
315: );
316: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 343: AND p_item_type_code <> OE_GLOBALS.G_ITEM_CONFIG THEN

339: -- BUG 2670775 Reverse Limits End
340:
341: -- Scheduling restructure.
342: IF p_schedule_status_code IS NOT NULL
343: AND p_item_type_code <> OE_GLOBALS.G_ITEM_CONFIG THEN
344:
345: --4504362: Branch scheduling checs removed
346: OE_SCHEDULE_UTIL.Delete_row(p_line_id => p_line_id);
347:

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

416: the call to be made at actually databse delete in delete_row api.
417: */
418: -- Preparing the table for calling Update_Shipping_From_OE for the deleted line
419:
420: l_delete_lines_tbl(1).entity_code := OE_GLOBALS.G_ENTITY_LINE;
421: l_delete_lines_tbl(1).entity_id := p_line_id;
422: l_delete_lines_tbl(1).param1 := FND_API.G_TRUE;
423: l_delete_lines_tbl(1).param2 := FND_API.G_FALSE;
424: l_delete_lines_tbl(1).request_unique_key1 := OE_GLOBALS.G_OPR_DELETE;

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

420: l_delete_lines_tbl(1).entity_code := OE_GLOBALS.G_ENTITY_LINE;
421: l_delete_lines_tbl(1).entity_id := p_line_id;
422: l_delete_lines_tbl(1).param1 := FND_API.G_TRUE;
423: l_delete_lines_tbl(1).param2 := FND_API.G_FALSE;
424: l_delete_lines_tbl(1).request_unique_key1 := OE_GLOBALS.G_OPR_DELETE;
425:
426: OE_Shipping_Integration_PVT.Update_Shipping_From_OE
427: (p_update_lines_tbl => l_delete_lines_tbl,
428: x_return_status => l_return_status

Line 446: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

442: RAISE FND_API.G_EXC_ERROR;
443: END IF;
444:
445: OE_Delayed_Requests_Pvt.Delete_Reqs_for_deleted_entity(
446: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
447: p_delete_against => FALSE, -- bug 5114189
448: p_entity_id => p_line_id,
449: x_return_status => l_return_status
450: );

Line 597: l_control_rec OE_GLOBALS.Control_Rec_Type;

593: l_ordered_quantity NUMBER := p_x_line_rec.ordered_quantity;
594: l_ordered_quantity2 NUMBER := p_x_line_rec.ordered_quantity2;
595: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
596: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
597: l_control_rec OE_GLOBALS.Control_Rec_Type;
598: --OPM BUG 1491504 END
599: /* csheu -- bug #1533658 start*/
600: l_copy_service_fields boolean := FALSE;
601: /* csheu -- bug #1533658 end*/

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

702: --CC Reversal ER#16014135 Start
703: l_cc_rev_reauth_code:= OE_VERIFY_PAYMENT_PUB.Get_CC_Rev_Reauth_Code(p_x_line_rec.header_id);
704: --CC Reversal ER#16014135 End
705:
706: IF NOT OE_GLOBALS.Equal(p_x_line_rec.accounting_rule_id,p_old_line_rec.accounting_rule_id)
707: THEN
708: --Customer Acceptance
709: l_def_contingency_attributes := FND_API.G_TRUE;
710: END IF;

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

708: --Customer Acceptance
709: l_def_contingency_attributes := FND_API.G_TRUE;
710: END IF;
711:
712: IF NOT OE_GLOBALS.Equal(p_x_line_rec.agreement_id,p_old_line_rec.agreement_id)
713: THEN
714: OE_GLOBALS.G_PRICE_FLAG := 'Y';
715:
716: -- bug 1829201, need to recalculate commitment.

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

710: END IF;
711:
712: IF NOT OE_GLOBALS.Equal(p_x_line_rec.agreement_id,p_old_line_rec.agreement_id)
713: THEN
714: OE_GLOBALS.G_PRICE_FLAG := 'Y';
715:
716: -- bug 1829201, need to recalculate commitment.
717: IF p_x_line_rec.commitment_id is not null then
718: l_calculate_commitment_flag := 'Y';

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

722: --bug3280378
723: --changes in the customer job field should be reflected in the
724: --shipping tables also
725: IF NOT
726: OE_GLOBALS.Equal(p_x_line_rec.customer_job,p_old_line_rec.customer_job) THEN
727:
728: l_update_shipping := FND_API.G_TRUE;
729:
730: END IF;

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

729:
730: END IF;
731: --bug3280378
732:
733: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set_id,p_old_line_rec.arrival_set_id)
734: THEN
735: -- Need to Call Shipping Update
736: l_update_shipping := FND_API.G_TRUE;
737:

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

736: l_update_shipping := FND_API.G_TRUE;
737:
738: END IF;
739:
740: IF NOT OE_GLOBALS.Equal(p_x_line_rec.arrival_set,p_old_line_rec.arrival_set) THEN
741:
742: NULL;
743:
744: END IF;

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

744: END IF;
745:
746: -- CMS Date Changes
747:
748: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)
749: THEN
750: -- Need to Call Shipping Update
751: l_update_shipping := FND_API.G_TRUE;
752:

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

751: l_update_shipping := FND_API.G_TRUE;
752:
753: END IF;
754:
755: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,p_old_line_rec.promise_date)
756: THEN
757: -- Need to Call Shipping Update
758: l_update_shipping := FND_API.G_TRUE;
759:

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

758: l_update_shipping := FND_API.G_TRUE;
759:
760: END IF;
761:
762: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_acceptable_date,p_old_line_rec.earliest_acceptable_date)
763: THEN
764: -- Need to Call Shipping Update
765: l_update_shipping := FND_API.G_TRUE;
766:

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

765: l_update_shipping := FND_API.G_TRUE;
766:
767: END IF;
768:
769: IF NOT OE_GLOBALS.Equal(p_x_line_rec.latest_acceptable_date,p_old_line_rec.latest_acceptable_date)
770: THEN
771: -- Need to Call Shipping Update
772: l_update_shipping := FND_API.G_TRUE;
773:

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

772: l_update_shipping := FND_API.G_TRUE;
773:
774: END IF;
775:
776: IF NOT OE_GLOBALS.Equal(p_x_line_rec.earliest_ship_date,p_old_line_rec.earliest_ship_date)
777: THEN
778: -- Need to Call Shipping Update
779: l_update_shipping := FND_API.G_TRUE;
780:

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

780:
781: END IF;
782:
783:
784: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ato_line_id,p_old_line_rec.ato_line_id)
785: THEN
786:
787: -- Need to Call Shipping Update
788: l_update_shipping := FND_API.G_TRUE;

Line 793: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_number,p_old_line_rec.line_number)

789:
790: END IF;
791:
792: -- Bug 10264299
793: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_number,p_old_line_rec.line_number)
794: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_number,p_old_line_rec.shipment_number)
795: THEN
796: --Need to Call Shipping Update
797: l_update_shipping := FND_API.G_TRUE;

Line 794: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_number,p_old_line_rec.shipment_number)

790: END IF;
791:
792: -- Bug 10264299
793: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_number,p_old_line_rec.line_number)
794: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_number,p_old_line_rec.shipment_number)
795: THEN
796: --Need to Call Shipping Update
797: l_update_shipping := FND_API.G_TRUE;
798: END IF;

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

797: l_update_shipping := FND_API.G_TRUE;
798: END IF;
799:
800:
801: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_quantity,p_old_line_rec.cancelled_quantity)
802: THEN
803:
804: -- Call Pricing
805: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

801: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_quantity,p_old_line_rec.cancelled_quantity)
802: THEN
803:
804: -- Call Pricing
805: OE_GLOBALS.G_PRICE_FLAG := 'Y';
806:
807: -- bug 1829201, need to recalculate commitment.
808: IF p_x_line_rec.commitment_id is not null then
809: l_calculate_commitment_flag := 'Y';

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

812: /* Additional task:
813: Log delayed request for Verify Payment if the payment type
814: is not CREDIT CARD and the Order line is Booked */
815:
816: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
817: --IF NVL(OE_Order_Cache.g_header_rec.payment_type_code,'NULL') <> 'CREDIT_CARD' --CC Reversal ER#16014135 Commented
818: IF (NVL(OE_Order_Cache.g_header_rec.payment_type_code,'NULL') <> 'CREDIT_CARD' OR l_cc_rev_reauth_code IS NOT NULL) --CC Reversal ER#16014135
819: AND p_x_line_rec.booked_flag ='Y'
820: THEN

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

828:
829: --Should not include any code here for cancellation specific
830: END IF;
831:
832: IF NOT OE_GLOBALS.Equal(p_x_line_rec.customer_dock_code,p_old_line_rec.customer_dock_code)
833: THEN
834:
835: -- Need to Call Shipping Update
836: l_update_shipping := FND_API.G_TRUE;

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

836: l_update_shipping := FND_API.G_TRUE;
837:
838: END IF;
839:
840: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_production_seq_num,p_old_line_rec.cust_production_seq_num)
841: THEN
842: -- Need to Call Shipping Update
843: l_update_shipping := FND_API.G_TRUE;
844: END IF;

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

842: -- Need to Call Shipping Update
843: l_update_shipping := FND_API.G_TRUE;
844: END IF;
845:
846: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cust_po_number,p_old_line_rec.cust_po_number)
847: THEN
848: /*Changes for ER 6072870 begin*/
849:
850: IF (Nvl(p_x_line_rec.shipped_quantity,0)>0 AND --suneela

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

901: END IF ;
902:
903: /*Changes for ER 6072870 end */
904: -- Call Pricing
905: OE_GLOBALS.G_PRICE_FLAG := 'Y';
906:
907: IF p_x_line_rec.commitment_id IS NOT NULL THEN
908: l_get_commitment_bal := 'Y';
909: END IF;

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

908: l_get_commitment_bal := 'Y';
909: END IF;
910: END IF;
911:
912: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_contact_id,p_old_line_rec.deliver_to_contact_id)
913: THEN
914: -- Need to Call Shipping Update
915: l_update_shipping := FND_API.G_TRUE;
916: -- Call Pricing

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

913: THEN
914: -- Need to Call Shipping Update
915: l_update_shipping := FND_API.G_TRUE;
916: -- Call Pricing
917: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
918: END IF;
919:
920: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
921: THEN

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

916: -- Call Pricing
917: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
918: END IF;
919:
920: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
921: THEN
922: -- Need to Call Shipping Update
923: l_update_shipping := FND_API.G_TRUE;
924: -- Call Pricing

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

921: THEN
922: -- Need to Call Shipping Update
923: l_update_shipping := FND_API.G_TRUE;
924: -- Call Pricing
925: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
926:
927:
928: END IF;
929:

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

926:
927:
928: END IF;
929:
930: IF NOT OE_GLOBALS.Equal(p_x_line_rec.explosion_date,p_old_line_rec.explosion_date)
931: THEN
932: IF OE_GLOBALS.EQUAL(p_x_line_rec.ship_model_complete_flag,'Y') THEN
933: l_explosion_date_changed := FND_API.G_TRUE;
934: END IF;

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

928: END IF;
929:
930: IF NOT OE_GLOBALS.Equal(p_x_line_rec.explosion_date,p_old_line_rec.explosion_date)
931: THEN
932: IF OE_GLOBALS.EQUAL(p_x_line_rec.ship_model_complete_flag,'Y') THEN
933: l_explosion_date_changed := FND_API.G_TRUE;
934: END IF;
935: END IF;
936:

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

933: l_explosion_date_changed := FND_API.G_TRUE;
934: END IF;
935: END IF;
936:
937: IF NOT OE_GLOBALS.Equal(p_x_line_rec.fob_point_code,p_old_line_rec.fob_point_code)
938: THEN
939: -- Need to Call Shipping Update
940: l_update_shipping := FND_API.G_TRUE;
941: END IF;

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

939: -- Need to Call Shipping Update
940: l_update_shipping := FND_API.G_TRUE;
941: END IF;
942:
943: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,p_old_line_rec.freight_terms_code)
944: THEN
945: -- Need to Call Shipping Update
946: l_update_shipping := FND_API.G_TRUE;
947: END IF;

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

945: -- Need to Call Shipping Update
946: l_update_shipping := FND_API.G_TRUE;
947: END IF;
948:
949: IF NOT OE_GLOBALS.Equal(p_x_line_rec.calculate_price_flag,p_old_line_rec.calculate_price_flag)
950: THEN
951:
952: If p_x_line_rec.calculate_price_flag = 'Y' then
953: Begin

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

977: if l_debug_level > 0 then
978: oe_debug_pub.add('old calculate price flag'||p_old_line_rec.calculate_price_flag, 3);
979: oe_debug_pub.add('new calculate price flag'||p_x_line_rec.calculate_price_flag, 3);
980: end if;
981: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N'
982: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
983: AND ((p_old_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.calculate_price_flag = 'Y')
984: OR (p_old_line_rec.calculate_price_flag = 'N' and p_x_line_rec.calculate_price_flag = 'P'))
985: THEN

Line 982: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

978: oe_debug_pub.add('old calculate price flag'||p_old_line_rec.calculate_price_flag, 3);
979: oe_debug_pub.add('new calculate price flag'||p_x_line_rec.calculate_price_flag, 3);
980: end if;
981: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N'
982: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
983: AND ((p_old_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.calculate_price_flag = 'Y')
984: OR (p_old_line_rec.calculate_price_flag = 'N' and p_x_line_rec.calculate_price_flag = 'P'))
985: THEN
986: if l_debug_level > 0 then

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

985: THEN
986: if l_debug_level > 0 then
987: oe_debug_pub.add('setting price flag because of calculate price flag change', 3);
988: end if;
989: IF nvl(OE_GLOBALS.G_PRICE_FLAG, 'N') <> 'Y' THEN
990: OE_GLOBALS.G_PRICE_FLAG := 'Y';
991: OE_LINE_ADJ_UTIL.Register_Changed_Lines
992: (p_line_id => p_x_line_rec.line_id,
993: p_header_id => p_x_line_rec.header_id,

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

986: if l_debug_level > 0 then
987: oe_debug_pub.add('setting price flag because of calculate price flag change', 3);
988: end if;
989: IF nvl(OE_GLOBALS.G_PRICE_FLAG, 'N') <> 'Y' THEN
990: OE_GLOBALS.G_PRICE_FLAG := 'Y';
991: OE_LINE_ADJ_UTIL.Register_Changed_Lines
992: (p_line_id => p_x_line_rec.line_id,
993: p_header_id => p_x_line_rec.header_id,
994: p_operation => p_x_line_rec.operation );

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

996: END IF;
997: -- end bug 3585862
998: END IF;
999:
1000: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_org_id,p_old_line_rec.intermed_ship_to_org_id)
1001: THEN
1002: -- Need to Call Shipping Update
1003: l_update_shipping := FND_API.G_TRUE;
1004: /* may need to call pricing */

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

1002: -- Need to Call Shipping Update
1003: l_update_shipping := FND_API.G_TRUE;
1004: /* may need to call pricing */
1005: /*
1006: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1007: */
1008:
1009: END IF;
1010:

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

1007: */
1008:
1009: END IF;
1010:
1011: IF NOT OE_GLOBALS.Equal(p_x_line_rec.intermed_ship_to_contact_id,p_old_line_rec.intermed_ship_to_contact_id)
1012: THEN
1013: -- Need to Call Shipping Update
1014: l_update_shipping := FND_API.G_TRUE;
1015: /* may need to call pricing */

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

1013: -- Need to Call Shipping Update
1014: l_update_shipping := FND_API.G_TRUE;
1015: /* may need to call pricing */
1016: /*
1017: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1018: */
1019: END IF;
1020:
1021:

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

1018: */
1019: END IF;
1020:
1021:
1022: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
1023: THEN
1024:
1025: -- QUOTING changes - log explosion request only for lines in
1026: -- fulfillment phase

Line 1036: IF (l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

1032: if l_debug_level > 0 then
1033: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1034: end if;
1035: --3286378 : Added check for operation= create
1036: IF (l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1037: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
1038: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1039: p_x_line_rec.split_from_line_id IS NULL)) AND
1040: p_x_line_rec.ato_line_id is NULL AND

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

1033: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1034: end if;
1035: --3286378 : Added check for operation= create
1036: IF (l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1037: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
1038: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1039: p_x_line_rec.split_from_line_id IS NULL)) AND
1040: p_x_line_rec.ato_line_id is NULL AND
1041: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

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

1034: end if;
1035: --3286378 : Added check for operation= create
1036: IF (l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1037: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
1038: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1039: p_x_line_rec.split_from_line_id IS NULL)) AND
1040: p_x_line_rec.ato_line_id is NULL AND
1041: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1042: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

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

1037: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
1038: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1039: p_x_line_rec.split_from_line_id IS NULL)) AND
1040: p_x_line_rec.ato_line_id is NULL AND
1041: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1042: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
1043: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
1044: /* Start DOO Pre Exploded Kit ER 9339742 */
1045: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))

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

1038: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1039: p_x_line_rec.split_from_line_id IS NULL)) AND
1040: p_x_line_rec.ato_line_id is NULL AND
1041: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1042: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
1043: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
1044: /* Start DOO Pre Exploded Kit ER 9339742 */
1045: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
1046: OR

Line 1047: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO)) OR

1043: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
1044: /* Start DOO Pre Exploded Kit ER 9339742 */
1045: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
1046: OR
1047: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO)) OR
1048: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1049: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
1050: AND p_x_line_rec.ato_line_id is NULL
1051: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)

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

1044: /* Start DOO Pre Exploded Kit ER 9339742 */
1045: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
1046: OR
1047: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO)) OR
1048: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1049: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
1050: AND p_x_line_rec.ato_line_id is NULL
1051: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
1052: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)

Line 1051: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)

1047: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO)) OR
1048: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1049: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
1050: AND p_x_line_rec.ato_line_id is NULL
1051: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
1052: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
1053: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))
1054: THEN
1055: IF OE_GENESIS_UTIL.G_INCOMING_FROM_DOO THEN

Line 1053: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))

1049: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
1050: AND p_x_line_rec.ato_line_id is NULL
1051: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
1052: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
1053: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))
1054: THEN
1055: IF OE_GENESIS_UTIL.G_INCOMING_FROM_DOO THEN
1056: if l_debug_level > 0 then
1057: oe_debug_pub.ADD(' The update is from DOO Pre Exploded Kit ER',5);

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

1075: -- NULL;
1076: -- Need to Call Shipping Update
1077: l_update_shipping := FND_API.G_TRUE;
1078:
1079: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1080: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT' )
1081: -- QUOTING change
1082: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1083: THEN

Line 1091: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1087: ' Entity ID: '|| to_char(p_x_line_rec.inventory_item_id));
1088: end if;
1089:
1090: OE_delayed_requests_Pvt.log_request
1091: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1092: p_entity_id => p_x_line_rec.line_id,
1093: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1094: p_requesting_entity_id => p_x_line_rec.line_id,
1095: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 1093: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1089:
1090: OE_delayed_requests_Pvt.log_request
1091: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1092: p_entity_id => p_x_line_rec.line_id,
1093: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1094: p_requesting_entity_id => p_x_line_rec.line_id,
1095: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1096: p_request_unique_key1 => 'ITEM',
1097: p_param1 => 'I',

Line 1095: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

1091: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1092: p_entity_id => p_x_line_rec.line_id,
1093: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1094: p_requesting_entity_id => p_x_line_rec.line_id,
1095: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1096: p_request_unique_key1 => 'ITEM',
1097: p_param1 => 'I',
1098: p_param2 => p_x_line_rec.inventory_item_id,
1099: x_return_status => l_return_status);

Line 1124: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1120: ' Entity ID: '|| l_new_itemcat);
1121: end if;
1122:
1123: OE_delayed_requests_Pvt.log_request
1124: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1125: p_entity_id => p_x_line_rec.line_id,
1126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1127: p_requesting_entity_id => p_x_line_rec.line_id,
1128: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 1126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1122:
1123: OE_delayed_requests_Pvt.log_request
1124: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1125: p_entity_id => p_x_line_rec.line_id,
1126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1127: p_requesting_entity_id => p_x_line_rec.line_id,
1128: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1129: p_request_unique_key1 => 'ITEMCATEGORY',
1130: p_param1 => 'IC',

Line 1128: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

1124: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1125: p_entity_id => p_x_line_rec.line_id,
1126: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1127: p_requesting_entity_id => p_x_line_rec.line_id,
1128: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1129: p_request_unique_key1 => 'ITEMCATEGORY',
1130: p_param1 => 'IC',
1131: p_param2 => l_new_itemcat,
1132: x_return_status => l_return_status);

Line 1153: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute1,p_old_line_rec.global_attribute1) then

1149: if l_debug_level > 0 then
1150: oe_debug_pub.add('before calling jg');
1151: end if;
1152: ---Start bug 14317960 --Comparing so that User passed value are always honoured
1153: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute1,p_old_line_rec.global_attribute1) then
1154: if l_debug_level > 0 then
1155: oe_debug_pub.add('p_x_line_rec.global_attribute1'|| p_x_line_rec.global_attribute1);
1156: end if;
1157: p_x_line_rec.global_attribute1 := NULL;

Line 1160: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute2,p_old_line_rec.global_attribute2) then

1156: end if;
1157: p_x_line_rec.global_attribute1 := NULL;
1158: End IF ;
1159:
1160: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute2,p_old_line_rec.global_attribute2) then
1161: if l_debug_level > 0 then
1162: oe_debug_pub.add('p_x_line_rec.global_attribute2'|| p_x_line_rec.global_attribute2);
1163: end if;
1164: p_x_line_rec.global_attribute2 := NULL;

Line 1168: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute3,p_old_line_rec.global_attribute3) then

1164: p_x_line_rec.global_attribute2 := NULL;
1165: End IF ;
1166:
1167:
1168: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute3,p_old_line_rec.global_attribute3) then
1169: if l_debug_level > 0 then
1170: oe_debug_pub.add('p_x_line_rec.global_attribute3'|| p_x_line_rec.global_attribute3);
1171: end if;
1172: p_x_line_rec.global_attribute3 := NULL;

Line 1175: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute4,p_old_line_rec.global_attribute4) then

1171: end if;
1172: p_x_line_rec.global_attribute3 := NULL;
1173: End IF ;
1174:
1175: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute4,p_old_line_rec.global_attribute4) then
1176: if l_debug_level > 0 then
1177: oe_debug_pub.add('p_x_line_rec.global_attribute4'|| p_x_line_rec.global_attribute4);
1178: end if;
1179: p_x_line_rec.global_attribute4 := NULL;

Line 1182: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute5,p_old_line_rec.global_attribute5) then

1178: end if;
1179: p_x_line_rec.global_attribute4 := NULL;
1180: End IF ;
1181:
1182: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute5,p_old_line_rec.global_attribute5) then
1183: if l_debug_level > 0 then
1184: oe_debug_pub.add('p_x_line_rec.global_attribute5'|| p_x_line_rec.global_attribute5);
1185: end if;
1186: p_x_line_rec.global_attribute5 := NULL;

Line 1189: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute6,p_old_line_rec.global_attribute6) then

1185: end if;
1186: p_x_line_rec.global_attribute5 := NULL;
1187: End IF ;
1188:
1189: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute6,p_old_line_rec.global_attribute6) then
1190: if l_debug_level > 0 then
1191: oe_debug_pub.add('p_x_line_rec.global_attribute6'|| p_x_line_rec.global_attribute6);
1192: end if;
1193: p_x_line_rec.global_attribute6 := NULL;

Line 1196: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute7,p_old_line_rec.global_attribute7) then

1192: end if;
1193: p_x_line_rec.global_attribute6 := NULL;
1194: End IF ;
1195:
1196: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute7,p_old_line_rec.global_attribute7) then
1197: if l_debug_level > 0 then
1198: oe_debug_pub.add('p_x_line_rec.global_attribute7'|| p_x_line_rec.global_attribute7);
1199: end if;
1200: p_x_line_rec.global_attribute7 := NULL;

Line 1203: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute8,p_old_line_rec.global_attribute8) then

1199: end if;
1200: p_x_line_rec.global_attribute7 := NULL;
1201: End IF ;
1202:
1203: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute8,p_old_line_rec.global_attribute8) then
1204: if l_debug_level > 0 then
1205: oe_debug_pub.add('p_x_line_rec.global_attribute8'|| p_x_line_rec.global_attribute8);
1206: end if;
1207: p_x_line_rec.global_attribute8 := NULL;

Line 1210: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute9,p_old_line_rec.global_attribute9) then

1206: end if;
1207: p_x_line_rec.global_attribute8 := NULL;
1208: End IF ;
1209:
1210: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute9,p_old_line_rec.global_attribute9) then
1211: if l_debug_level > 0 then
1212: oe_debug_pub.add('p_x_line_rec.global_attribute9'|| p_x_line_rec.global_attribute9);
1213: end if;
1214: p_x_line_rec.global_attribute9 := NULL;

Line 1217: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute10,p_old_line_rec.global_attribute10) then

1213: end if;
1214: p_x_line_rec.global_attribute9 := NULL;
1215: End IF ;
1216:
1217: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute10,p_old_line_rec.global_attribute10) then
1218: if l_debug_level > 0 then
1219: oe_debug_pub.add('p_x_line_rec.global_attribute10'|| p_x_line_rec.global_attribute10);
1220: end if;
1221: p_x_line_rec.global_attribute10 := NULL;

Line 1224: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute11,p_old_line_rec.global_attribute11) then

1220: end if;
1221: p_x_line_rec.global_attribute10 := NULL;
1222: End IF ;
1223:
1224: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute11,p_old_line_rec.global_attribute11) then
1225: if l_debug_level > 0 then
1226: oe_debug_pub.add('p_x_line_rec.global_attribute11'|| p_x_line_rec.global_attribute11);
1227: end if;
1228: p_x_line_rec.global_attribute11 := NULL;

Line 1231: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute12,p_old_line_rec.global_attribute12) then

1227: end if;
1228: p_x_line_rec.global_attribute11 := NULL;
1229: End IF ;
1230:
1231: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute12,p_old_line_rec.global_attribute12) then
1232: if l_debug_level > 0 then
1233: oe_debug_pub.add('p_x_line_rec.global_attribute12'|| p_x_line_rec.global_attribute12);
1234: end if;
1235: p_x_line_rec.global_attribute12 := NULL;

Line 1238: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute13,p_old_line_rec.global_attribute13) then

1234: end if;
1235: p_x_line_rec.global_attribute12 := NULL;
1236: End IF ;
1237:
1238: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute13,p_old_line_rec.global_attribute13) then
1239: if l_debug_level > 0 then
1240: oe_debug_pub.add('p_x_line_rec.global_attribute13'|| p_x_line_rec.global_attribute13);
1241: end if;
1242: p_x_line_rec.global_attribute13 := NULL;

Line 1245: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute14,p_old_line_rec.global_attribute14) then

1241: end if;
1242: p_x_line_rec.global_attribute13 := NULL;
1243: End IF ;
1244:
1245: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute14,p_old_line_rec.global_attribute14) then
1246: if l_debug_level > 0 then
1247: oe_debug_pub.add('p_x_line_rec.global_attribute14'|| p_x_line_rec.global_attribute14);
1248: end if;
1249: p_x_line_rec.global_attribute14:= NULL;

Line 1252: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute15,p_old_line_rec.global_attribute15) then

1248: end if;
1249: p_x_line_rec.global_attribute14:= NULL;
1250: End IF ;
1251:
1252: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute15,p_old_line_rec.global_attribute15) then
1253: if l_debug_level > 0 then
1254: oe_debug_pub.add('p_x_line_rec.global_attribute15'|| p_x_line_rec.global_attribute15);
1255: end if;
1256: p_x_line_rec.global_attribute15 := NULL;

Line 1259: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute16,p_old_line_rec.global_attribute16) then

1255: end if;
1256: p_x_line_rec.global_attribute15 := NULL;
1257: End IF ;
1258:
1259: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute16,p_old_line_rec.global_attribute16) then
1260: if l_debug_level > 0 then
1261: oe_debug_pub.add('p_x_line_rec.global_attribute16'|| p_x_line_rec.global_attribute16);
1262: end if;
1263: p_x_line_rec.global_attribute16 := NULL;

Line 1266: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute17,p_old_line_rec.global_attribute17) then

1262: end if;
1263: p_x_line_rec.global_attribute16 := NULL;
1264: End IF ;
1265:
1266: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute17,p_old_line_rec.global_attribute17) then
1267: if l_debug_level > 0 then
1268: oe_debug_pub.add('p_x_line_rec.global_attribute17'|| p_x_line_rec.global_attribute17);
1269: end if;
1270: p_x_line_rec.global_attribute17 := NULL;

Line 1273: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute18,p_old_line_rec.global_attribute18) then

1269: end if;
1270: p_x_line_rec.global_attribute17 := NULL;
1271: End IF ;
1272:
1273: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute18,p_old_line_rec.global_attribute18) then
1274: if l_debug_level > 0 then
1275: oe_debug_pub.add('p_x_line_rec.global_attribute18'|| p_x_line_rec.global_attribute18);
1276: end if;
1277: p_x_line_rec.global_attribute18 := NULL;

Line 1280: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute19,p_old_line_rec.global_attribute19) then

1276: end if;
1277: p_x_line_rec.global_attribute18 := NULL;
1278: End IF ;
1279:
1280: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute19,p_old_line_rec.global_attribute19) then
1281: if l_debug_level > 0 then
1282: oe_debug_pub.add('p_x_line_rec.global_attribute19'|| p_x_line_rec.global_attribute19);
1283: end if;
1284: p_x_line_rec.global_attribute19 := NULL;

Line 1287: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute20,p_old_line_rec.global_attribute20) then

1283: end if;
1284: p_x_line_rec.global_attribute19 := NULL;
1285: End IF ;
1286:
1287: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute20,p_old_line_rec.global_attribute20) then
1288: if l_debug_level > 0 then
1289: oe_debug_pub.add('p_x_line_rec.global_attribute20'|| p_x_line_rec.global_attribute20);
1290: end if;
1291: p_x_line_rec.global_attribute20 := NULL;

Line 1294: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute_category,p_old_line_rec.global_attribute_category) then

1290: end if;
1291: p_x_line_rec.global_attribute20 := NULL;
1292: End IF ;
1293:
1294: IF OE_GLOBALS.Equal(p_x_line_rec.global_attribute_category,p_old_line_rec.global_attribute_category) then
1295: if l_debug_level > 0 then
1296: oe_debug_pub.add('global_attribute_category'|| p_x_line_rec.global_attribute_category);
1297: end if;
1298: p_x_line_rec.global_attribute_category := NULL;

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

1335: oe_debug_pub.add('value of ONT_HONOR_ITEM_CHANGE:'||l_item_chg_prof,5);
1336: oe_debug_pub.add('p_x_line_rec.inventory_item_id : '||p_x_line_rec.inventory_item_id);
1337: oe_debug_pub.add('p_old_line_rec.inventory_item_id : '||p_old_line_rec.inventory_item_id);
1338: end if;
1339: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
1340: /*if nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM)
1341: <> FND_API.G_MISS_NUM
1342: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <>
1343: FND_API.G_MISS_NUM*/

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

1363: p_x_line_rec.calculate_price_flag := 'Y';
1364: end if;
1365: -- bug 2971066 end
1366: -- bug 1819133, need to recalculate price if item is updated
1367: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1368: --change made for bug 1998333 Begin
1369: if nvl(l_item_chg_prof,'N') = 'N' then
1370: --retaining the old behaviour
1371: p_x_line_rec.calculate_price_flag := 'Y';

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

1375: end if;
1376: --change made for bug 1998333 End
1377: END IF;
1378:
1379: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1380:
1381: -- bug 1829201, need to recalculate commitment.
1382: IF p_x_line_rec.commitment_id is not null then
1383: l_calculate_commitment_flag := 'Y';

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

1395:
1396:
1397: /*sdatti*/
1398: if l_debug_level > 0 then
1399: oe_debug_pub.ADD('OE_GLOBALS.G_PRICING_RECURSION:'||oe_globals.g_pricing_recursion,1);
1400: end if;
1401: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
1402: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
1403: update_adjustment_flags(p_old_line_rec,p_x_line_rec);

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

1398: if l_debug_level > 0 then
1399: oe_debug_pub.ADD('OE_GLOBALS.G_PRICING_RECURSION:'||oe_globals.g_pricing_recursion,1);
1400: end if;
1401: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
1402: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
1403: update_adjustment_flags(p_old_line_rec,p_x_line_rec);
1404: END IF;
1405: END IF;
1406: /*sdatti*/

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

1407:
1408: END IF;
1409:
1410:
1411: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
1412: THEN
1413: /* may need to call pricing */
1414:
1415: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

1411: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
1412: THEN
1413: /* may need to call pricing */
1414:
1415: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1416: -- 12876258 Start Enable Log delayed request for taxing
1417: OE_GLOBALS.G_TAX_FLAG := 'Y';
1418: if l_debug_level > 0 then
1419: oe_debug_pub.add('TaxFlag set for invoice to org change');

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

1413: /* may need to call pricing */
1414:
1415: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1416: -- 12876258 Start Enable Log delayed request for taxing
1417: OE_GLOBALS.G_TAX_FLAG := 'Y';
1418: if l_debug_level > 0 then
1419: oe_debug_pub.add('TaxFlag set for invoice to org change');
1420: end if; -- 12876258 End addition
1421: --Customer Acceptance

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

1424: IF p_x_line_rec.commitment_id IS NOT NULL THEN
1425: l_get_commitment_bal := 'Y';
1426: END IF;
1427:
1428: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1429: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
1430: -- QUOTING change
1431: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1432: THEN

Line 1439: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1435: oe_debug_pub.ADD('line ID: '|| to_char(p_x_line_rec.line_id)||
1436: ' Entity ID: '|| to_char(p_x_line_rec.invoice_to_org_id));
1437: end if;
1438: OE_delayed_requests_Pvt.log_request(
1439: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1440: p_entity_id => p_x_line_rec.line_id,
1441: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1442: p_requesting_entity_id => p_x_line_rec.line_id,
1443: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 1441: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1437: end if;
1438: OE_delayed_requests_Pvt.log_request(
1439: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1440: p_entity_id => p_x_line_rec.line_id,
1441: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1442: p_requesting_entity_id => p_x_line_rec.line_id,
1443: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1444: p_request_unique_key1 => 'BILL_TO',
1445: p_param1 => 'B',

Line 1443: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

1439: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1440: p_entity_id => p_x_line_rec.line_id,
1441: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1442: p_requesting_entity_id => p_x_line_rec.line_id,
1443: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1444: p_request_unique_key1 => 'BILL_TO',
1445: p_param1 => 'B',
1446: p_param2 => p_x_line_rec.invoice_to_org_id,
1447: x_return_status => l_return_status);

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

1446: p_param2 => p_x_line_rec.invoice_to_org_id,
1447: x_return_status => l_return_status);
1448: END IF;
1449:
1450: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1451: --R12 CC Encryption
1452: select count(payment_type_code) into
1453: l_delete_payment_count from oe_payments
1454: where header_id = p_x_line_rec.header_id

Line 1462: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,

1458: --Delayed request for deleting the payments when
1459: --invoice to changes
1460: IF l_delete_payment_count > 0 THEN
1461: OE_delayed_requests_Pvt.log_request
1462: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1463: p_entity_id => p_x_line_rec.line_id,
1464: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1465: p_requesting_entity_id => p_x_line_rec.line_id,
1466: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,

Line 1464: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,

1460: IF l_delete_payment_count > 0 THEN
1461: OE_delayed_requests_Pvt.log_request
1462: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1463: p_entity_id => p_x_line_rec.line_id,
1464: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1465: p_requesting_entity_id => p_x_line_rec.line_id,
1466: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,
1467: p_param1 => p_x_line_rec.header_id,
1468: p_param2 => to_char(p_old_line_rec.invoice_to_org_id),

Line 1466: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,

1462: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1463: p_entity_id => p_x_line_rec.line_id,
1464: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE_PAYMENT,
1465: p_requesting_entity_id => p_x_line_rec.line_id,
1466: p_request_type => OE_GLOBALS.G_DELETE_PAYMENTS,
1467: p_param1 => p_x_line_rec.header_id,
1468: p_param2 => to_char(p_old_line_rec.invoice_to_org_id),
1469: x_return_status => l_return_status);
1470: END IF;--Payment type code check

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

1494: END IF;
1495:
1496: -- Changes for Blanket Orders
1497:
1498: IF NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_number,p_old_line_rec.blanket_number) OR
1499: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1500: THEN
1501: --for ER 2901219
1502: --To trigger Pricing event if Blanket Number or Line Number is Changed

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

1495:
1496: -- Changes for Blanket Orders
1497:
1498: IF NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_number,p_old_line_rec.blanket_number) OR
1499: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1500: THEN
1501: --for ER 2901219
1502: --To trigger Pricing event if Blanket Number or Line Number is Changed
1503: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

1499: NOT OE_GLOBALS.Equal(p_x_line_rec.blanket_line_number,p_old_line_rec.blanket_line_number)
1500: THEN
1501: --for ER 2901219
1502: --To trigger Pricing event if Blanket Number or Line Number is Changed
1503: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1504:
1505: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1506: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
1507: -- QUOTING change

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

1501: --for ER 2901219
1502: --To trigger Pricing event if Blanket Number or Line Number is Changed
1503: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1504:
1505: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
1506: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
1507: -- QUOTING change
1508: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1509: THEN

Line 1511: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1507: -- QUOTING change
1508: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
1509: THEN
1510: OE_delayed_requests_Pvt.log_request(
1511: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1512: p_entity_id => p_x_line_rec.line_id,
1513: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1514: p_requesting_entity_id => p_x_line_rec.line_id,
1515: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 1513: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1509: THEN
1510: OE_delayed_requests_Pvt.log_request(
1511: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1512: p_entity_id => p_x_line_rec.line_id,
1513: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1514: p_requesting_entity_id => p_x_line_rec.line_id,
1515: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1516: p_param1 => 'H',
1517: p_param2 => p_x_line_rec.blanket_number,

Line 1515: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

1511: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1512: p_entity_id => p_x_line_rec.line_id,
1513: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1514: p_requesting_entity_id => p_x_line_rec.line_id,
1515: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
1516: p_param1 => 'H',
1517: p_param2 => p_x_line_rec.blanket_number,
1518: x_return_status => l_return_status);
1519: END IF;

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

1518: x_return_status => l_return_status);
1519: END IF;
1520: END IF;
1521:
1522: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)
1523: THEN
1524: /* need to reprice the line*/
1525:
1526: -- bug 1819133, need to recalculate price if item is updated

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

1523: THEN
1524: /* need to reprice the line*/
1525:
1526: -- bug 1819133, need to recalculate price if item is updated
1527: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1528: if l_debug_level > 0 then
1529: oe_debug_pub.add('before checking profile ONT_HONOR_ITEM_CHANGE',5);
1530: end if;
1531: --change made for bug 1998333 Begin

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

1542: end if;
1543: --change made for bug 1998333 End
1544: END IF;
1545:
1546: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1547:
1548: -- bug 1829201, need to recalculate commitment.
1549: IF p_x_line_rec.commitment_id is not null then
1550: l_calculate_commitment_flag := 'Y';

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

1551: END IF;
1552:
1553: END IF;
1554:
1555: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_identifier_type,p_old_line_rec.item_identifier_type)
1556: THEN
1557: /* need to reprice the line*/
1558: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
1559: null;

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

1554:
1555: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_identifier_type,p_old_line_rec.item_identifier_type)
1556: THEN
1557: /* need to reprice the line*/
1558: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
1559: null;
1560:
1561: END IF;
1562:

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

1559: null;
1560:
1561: END IF;
1562:
1563: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item,p_old_line_rec.ordered_item)
1564: THEN
1565: -- Call Pricing
1566: -- bug 1819133, need to recalculate price if item is updated
1567: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

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

1563: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item,p_old_line_rec.ordered_item)
1564: THEN
1565: -- Call Pricing
1566: -- bug 1819133, need to recalculate price if item is updated
1567: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1568: if l_debug_level > 0 then
1569: oe_debug_pub.add('before checking profile ONT_HONOR_ITEM_CHANGE',5);
1570: end if;
1571: --change made for bug 1998333 Begin

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

1582: end if;
1583: --change made for bug 1998333 End
1584: END IF;
1585:
1586: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1587:
1588: OE_GLOBALS.G_TAX_FLAG := 'Y';
1589:
1590: -- bug 1829201, need to recalculate commitment.

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

1584: END IF;
1585:
1586: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1587:
1588: OE_GLOBALS.G_TAX_FLAG := 'Y';
1589:
1590: -- bug 1829201, need to recalculate commitment.
1591: IF p_x_line_rec.commitment_id is not null then
1592: l_calculate_commitment_flag := 'Y';

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

1592: l_calculate_commitment_flag := 'Y';
1593: END IF;
1594: END IF;
1595:
1596: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_revision,p_old_line_rec.item_revision)
1597: THEN
1598: -- Need to Call Shipping Update
1599: l_update_shipping := FND_API.G_TRUE;
1600: END IF;

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

1598: -- Need to Call Shipping Update
1599: l_update_shipping := FND_API.G_TRUE;
1600: END IF;
1601:
1602: IF NOT OE_GLOBALS.Equal(p_x_line_rec.item_type_code,p_old_line_rec.item_type_code)
1603: THEN
1604:
1605: -- Need to Call Shipping Update
1606: l_update_shipping := FND_API.G_TRUE;

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

1615: if l_debug_level > 0 then
1616: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
1617: end if;
1618:
1619: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1620: p_x_line_rec.booked_flag = 'Y' AND
1621: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1622: THEN
1623: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;

Line 1621: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE

1617: end if;
1618:
1619: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1620: p_x_line_rec.booked_flag = 'Y' AND
1621: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1622: THEN
1623: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1624: END IF;
1625:

Line 1623: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;

1619: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1620: p_x_line_rec.booked_flag = 'Y' AND
1621: l_freeze_method <> OE_GLOBALS.G_IIFM_PICK_RELEASE
1622: THEN
1623: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1624: END IF;
1625:
1626: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1627:

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

1622: THEN
1623: l_freeze_method := OE_GLOBALS.G_IIFM_ENTRY;
1624: END IF;
1625:
1626: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1627:
1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND

Line 1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

1624: END IF;
1625:
1626: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1627:
1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND
1631: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

Line 1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

1625:
1626: l_freeze_method := nvl(l_freeze_method, OE_GLOBALS.G_IIFM_ENTRY);
1627:
1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND
1631: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1633: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

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

1627:
1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND
1631: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1633: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1634: THEN
1635: if l_debug_level > 0 then

Line 1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

1628: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND
1631: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1633: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1634: THEN
1635: if l_debug_level > 0 then
1636: oe_debug_pub.ADD('freeze inc items ' || l_freeze_method,2);

Line 1633: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

1629: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
1630: p_x_line_rec.ato_line_id is NULL AND
1631: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
1632: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
1633: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
1634: THEN
1635: if l_debug_level > 0 then
1636: oe_debug_pub.ADD('freeze inc items ' || l_freeze_method,2);
1637: end if;

Line 1649: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

1645: -- Need to log Freight Rating request for configured item.
1646: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
1647: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
1648: (p_x_line_rec.header_id) = 'OM_CALLED_FREIGHT_RATES'
1649: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
1650: AND p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG THEN
1651: if l_debug_level > 0 then
1652: oe_debug_pub.add('Log Freight Rating request for CONFIG item. ',3);
1653: end if;

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

1646: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
1647: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
1648: (p_x_line_rec.header_id) = 'OM_CALLED_FREIGHT_RATES'
1649: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
1650: AND p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG THEN
1651: if l_debug_level > 0 then
1652: oe_debug_pub.add('Log Freight Rating request for CONFIG item. ',3);
1653: end if;
1654: l_get_FTE_freight_rate := 'Y';

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

1658: l_def_contingency_attributes := FND_API.G_TRUE;
1659:
1660: END IF;
1661:
1662: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_category_code,p_old_line_rec.line_category_code)
1663: THEN
1664:
1665: -- Need to Call Shipping Update
1666: l_update_shipping := FND_API.G_TRUE;

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

1664:
1665: -- Need to Call Shipping Update
1666: l_update_shipping := FND_API.G_TRUE;
1667: -- Call Pricing
1668: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1669:
1670: IF p_x_line_rec.commitment_id IS NOT NULL THEN
1671: l_get_commitment_bal := 'Y';
1672: END IF;

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

1680: l_def_contingency_attributes := FND_API.G_TRUE;
1681:
1682: END IF;
1683:
1684: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
1685: THEN
1686:
1687: -- Need to Call Shipping Update
1688: l_update_shipping := FND_API.G_TRUE;

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

1686:
1687: -- Need to Call Shipping Update
1688: l_update_shipping := FND_API.G_TRUE;
1689: -- Call Pricing
1690: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1691: --Customer Acceptance
1692: l_def_contingency_attributes := FND_API.G_TRUE;
1693:
1694:

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

1698:
1699: END IF;
1700:
1701: -- bug 2072014, need to recalculate price if uom is updated BEGIN
1702: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
1703: THEN
1704:
1705: -- Added below debug messages for bug 9014929
1706: oe_debug_pub.add(' ORDER_QUANTITY_UOM has changed : p_x_line_rec.operation = '||p_x_line_rec.operation);

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

1707: oe_debug_pub.add('p_x_line_rec.Pricing_quantity = '||p_x_line_rec.Pricing_quantity);
1708: oe_debug_pub.add('p_x_line_rec.ordered_quantity = '||p_x_line_rec.ordered_quantity);
1709:
1710: /* Added the following if condition to fix the bug 2967630 */
1711: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
1712:
1713: -- Added below code for bug 9014929
1714: OE_LINE_ADJ_UTIL.Change_adj_for_uom_change(p_x_line_rec);
1715: Oe_Debug_Pub.add(' p_x_line_rec.Pricing_quantity = ' || p_x_line_rec.Pricing_quantity);

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

1724: end if;
1725: p_x_line_rec.calculate_price_flag := 'Y';
1726: end if;
1727:
1728: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1729: --bug 3942402
1730: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id, p_old_line_rec.inventory_item_id) THEN
1731: IF (nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM) = FND_API.G_MISS_NUM
1732: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM)

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

1726: end if;
1727:
1728: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
1729: --bug 3942402
1730: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id, p_old_line_rec.inventory_item_id) THEN
1731: IF (nvl(p_x_line_rec.inventory_item_id,FND_API.G_MISS_NUM) = FND_API.G_MISS_NUM
1732: and nvl(p_old_line_rec.inventory_item_id,FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM)
1733: and p_x_line_rec.calculate_price_flag in ('N','P')
1734: and nvl(l_item_chg_prof,'N') = 'N' then

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

1757: --bug 3942402
1758: /* Added the following line to fix the bug 2917690 */
1759: OE_LINE_ADJ_UTIL.Change_adj_for_uom_change(p_x_line_rec);
1760: END IF;
1761: OE_GLOBALS.G_PRICE_FLAG := 'Y';
1762: l_3a7_attribute_change := FND_API.G_TRUE;
1763:
1764: -- Freight Rating.
1765: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

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

1773: END IF;
1774: END IF;
1775: -- bug 2072014, need to recalculate price if uom is updated END
1776:
1777: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
1778: THEN
1779:
1780: if l_debug_level > 0 then
1781: oe_debug_pub.add('Ordered Qty has changed',1); -- PETER

Line 1790: IF (OE_GLOBALS.G_UI_FLAG) THEN

1786: l_3a7_attribute_change := FND_API.G_TRUE;
1787:
1788: /* Added the following code to fix the bug 3739180 */
1789: If p_x_line_rec.calculate_price_flag in ('N','P') and p_x_line_rec.reference_line_id IS NOT NULL THEN
1790: IF (OE_GLOBALS.G_UI_FLAG) THEN
1791: if l_debug_level > 0 then
1792: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
1793: end if;
1794: OE_delayed_requests_Pvt.log_request(

Line 1795: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1791: if l_debug_level > 0 then
1792: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
1793: end if;
1794: OE_delayed_requests_Pvt.log_request(
1795: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1796: p_entity_id => p_x_line_rec.line_id,
1797: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1798: p_requesting_entity_id => p_x_line_rec.line_id,
1799: p_request_unique_key1 => 'LINE',

Line 1797: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

1793: end if;
1794: OE_delayed_requests_Pvt.log_request(
1795: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1796: p_entity_id => p_x_line_rec.line_id,
1797: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
1798: p_requesting_entity_id => p_x_line_rec.line_id,
1799: p_request_unique_key1 => 'LINE',
1800: p_param1 => 'RETURN',
1801: p_param2 => NULL,

Line 1806: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1802: p_param3 => NULL,
1803: p_param4 => NULL,
1804: p_param5 => NULL,
1805: p_param6 => p_x_line_rec.ordered_quantity,
1806: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1807: x_return_status => l_return_status);
1808: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
1809: if l_debug_level > 0 then
1810: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);

Line 1808: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN

1804: p_param5 => NULL,
1805: p_param6 => p_x_line_rec.ordered_quantity,
1806: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1807: x_return_status => l_return_status);
1808: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
1809: if l_debug_level > 0 then
1810: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
1811: end if;
1812: OE_delayed_requests_Pvt.log_request(

Line 1813: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1809: if l_debug_level > 0 then
1810: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
1811: end if;
1812: OE_delayed_requests_Pvt.log_request(
1813: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1814: p_entity_id => p_x_line_rec.line_id,
1815: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1816: p_requesting_entity_id => p_x_line_rec.line_id,
1817: p_request_unique_key1 => 'LINE',

Line 1815: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

1811: end if;
1812: OE_delayed_requests_Pvt.log_request(
1813: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1814: p_entity_id => p_x_line_rec.line_id,
1815: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
1816: p_requesting_entity_id => p_x_line_rec.line_id,
1817: p_request_unique_key1 => 'LINE',
1818: p_param1 => 'RETURN',
1819: p_param2 => NULL,

Line 1824: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

1820: p_param3 => NULL,
1821: p_param4 => NULL,
1822: p_param5 => NULL,
1823: p_param6 => p_x_line_rec.ordered_quantity,
1824: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
1825: x_return_status => l_return_status);
1826: END IF;
1827: END IF;
1828: /* End of the code added to fix the bug 3739180 */

Line 1859: -- of type OE_Globals.G_UPDATE_REQUISITION.

1855: --
1856: -- This program unit will track the specific change in Ordered Quantity
1857: -- and/or Schedule Ship Date on an internal sales order line shipment,
1858: -- and in the event of any change in values, it will log a delayed request
1859: -- of type OE_Globals.G_UPDATE_REQUISITION.
1860: --
1861: -- This delayed request will be logged only if global OE_Internal_Requisi
1862: -- tion_Pvt.G_Update_ISO_From_Req set to FALSE. If this global is TRUE
1863: -- then it means, the change requests for quantity/date or cancellation

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

1882: -- Please refer to following delayed request params with their meaning
1883: -- useful while logging the delayed request -
1884: --
1885: -- P_entity_code Entity for which delayed request has to be logged.
1886: -- In this project it can be OE_Globals.G_Entity_Line
1887: -- or OE_Globals.G_Entity_Header
1888: -- P_entity_id Primary key of the entity record. In this project,
1889: -- it can be Order Line_id or Header_id
1890: -- P_requesting_entity_code Which entity has requested this delayed request to

Line 1887: -- or OE_Globals.G_Entity_Header

1883: -- useful while logging the delayed request -
1884: --
1885: -- P_entity_code Entity for which delayed request has to be logged.
1886: -- In this project it can be OE_Globals.G_Entity_Line
1887: -- or OE_Globals.G_Entity_Header
1888: -- P_entity_id Primary key of the entity record. In this project,
1889: -- it can be Order Line_id or Header_id
1890: -- P_requesting_entity_code Which entity has requested this delayed request to
1891: -- be logged! In this project it will be OE_Globals.

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

1887: -- or OE_Globals.G_Entity_Header
1888: -- P_entity_id Primary key of the entity record. In this project,
1889: -- it can be Order Line_id or Header_id
1890: -- P_requesting_entity_code Which entity has requested this delayed request to
1891: -- be logged! In this project it will be OE_Globals.
1892: -- G_Entity_Line or OE_Globals.G_Entity_Header
1893: -- P_requesting_entity_id Primary key of the requesting entity. In this
1894: -- project, it is Line_id or Header_id
1895: -- P_request_type Indicates which business logic (or which procedure)

Line 1892: -- G_Entity_Line or OE_Globals.G_Entity_Header

1888: -- P_entity_id Primary key of the entity record. In this project,
1889: -- it can be Order Line_id or Header_id
1890: -- P_requesting_entity_code Which entity has requested this delayed request to
1891: -- be logged! In this project it will be OE_Globals.
1892: -- G_Entity_Line or OE_Globals.G_Entity_Header
1893: -- P_requesting_entity_id Primary key of the requesting entity. In this
1894: -- project, it is Line_id or Header_id
1895: -- P_request_type Indicates which business logic (or which procedure)
1896: -- should be executed. In this project, it is OE_Global

Line 1962: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

1958: -- request will be logged only if the change is not initiated from Requesting
1959: -- Organization user, and it is not a Internal Sales Order Full Cancellation
1960:
1961: OE_delayed_requests_Pvt.log_request
1962: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
1963: , p_entity_id => p_x_line_rec.line_id
1964: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1965: , p_requesting_entity_id => p_x_line_rec.line_id
1966: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 1964: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

1960:
1961: OE_delayed_requests_Pvt.log_request
1962: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
1963: , p_entity_id => p_x_line_rec.line_id
1964: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1965: , p_requesting_entity_id => p_x_line_rec.line_id
1966: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
1967: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1968: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 1971: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

1967: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1968: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id
1969: , p_param1 => (p_x_line_rec.ordered_quantity - p_old_line_rec.ordered_quantity)
1970: -- , p_date_param1 => p_x_line_rec.schedule_ship_date
1971: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
1972: , x_return_status => l_return_status
1973: );
1974:
1975: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 1991: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER

1987: -- request will be logged only if the change is not initiated from Requesting
1988: -- Organization user, and it is not a Internal Sales Order Full Cancellation
1989:
1990: OE_delayed_requests_Pvt.log_request
1991: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER
1992: , p_entity_id => p_x_line_rec.header_id
1993: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1994: , p_requesting_entity_id => p_x_line_rec.line_id
1995: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id

Line 1993: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

1989:
1990: OE_delayed_requests_Pvt.log_request
1991: ( p_entity_code => OE_GLOBALS.G_ENTITY_HEADER
1992: , p_entity_id => p_x_line_rec.header_id
1993: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
1994: , p_requesting_entity_id => p_x_line_rec.line_id
1995: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1996: , p_param3 => 1
1997: , p_long_param1 => p_x_line_rec.line_id

Line 1998: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

1994: , p_requesting_entity_id => p_x_line_rec.line_id
1995: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
1996: , p_param3 => 1
1997: , p_long_param1 => p_x_line_rec.line_id
1998: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
1999: , x_return_status => l_return_status
2000: );
2001:
2002: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 2029: IF ( l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

2025: l_freeze_method := G_FREEZE_METHOD; /* Bug # 5036404 */
2026: if l_debug_level > 0 then
2027: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
2028: end if;
2029: IF ( l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
2030: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2031: p_x_line_rec.ato_line_id is NULL AND
2032: p_old_line_rec.ordered_quantity = 0 AND
2033: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

Line 2030: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

2026: if l_debug_level > 0 then
2027: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
2028: end if;
2029: IF ( l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
2030: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2031: p_x_line_rec.ato_line_id is NULL AND
2032: p_old_line_rec.ordered_quantity = 0 AND
2033: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
2034: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

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

2029: IF ( l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
2030: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2031: p_x_line_rec.ato_line_id is NULL AND
2032: p_old_line_rec.ordered_quantity = 0 AND
2033: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
2034: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
2035: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
2036: /* Start DOO Pre Exploded Kit ER 9339742 */
2037: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))

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

2030: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2031: p_x_line_rec.ato_line_id is NULL AND
2032: p_old_line_rec.ordered_quantity = 0 AND
2033: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
2034: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
2035: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
2036: /* Start DOO Pre Exploded Kit ER 9339742 */
2037: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
2038: OR

Line 2039: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO) ) OR

2035: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
2036: /* Start DOO Pre Exploded Kit ER 9339742 */
2037: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
2038: OR
2039: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO) ) OR
2040: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2041: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
2042: AND p_x_line_rec.ato_line_id is NULL
2043: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)

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

2036: /* Start DOO Pre Exploded Kit ER 9339742 */
2037: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO))
2038: OR
2039: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO) ) OR
2040: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2041: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
2042: AND p_x_line_rec.ato_line_id is NULL
2043: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
2044: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)

Line 2043: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)

2039: (((p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND (OE_GENESIS_UTIL.G_INCOMING_FROM_DOO) ) OR
2040: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2041: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
2042: AND p_x_line_rec.ato_line_id is NULL
2043: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
2044: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
2045: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))
2046: THEN
2047: IF OE_GENESIS_UTIL.G_INCOMING_FROM_DOO THEN

Line 2045: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))

2041: p_x_line_rec.split_from_line_id IS NULL AND p_x_line_rec.pre_exploded_flag = 'Y'))
2042: AND p_x_line_rec.ato_line_id is NULL
2043: AND ( (( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL)
2044: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
2045: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS))
2046: THEN
2047: IF OE_GENESIS_UTIL.G_INCOMING_FROM_DOO THEN
2048: if l_debug_level > 0 then
2049: oe_debug_pub.ADD(' The update is from DOO Pre Exploded Kit ER',5);

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

2067: l_ordered_quantity_changed := FND_API.G_TRUE;
2068: END IF;
2069: --changes for bug 2315926 Begin
2070:
2071: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
2072: p_x_line_rec.split_by = 'SYSTEM' and
2073: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT')
2074: OR
2075: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

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

2071: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
2072: p_x_line_rec.split_by = 'SYSTEM' and
2073: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT')
2074: OR
2075: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2076: p_x_line_rec.split_from_line_id IS NOT NULL AND
2077: nvl(p_x_line_rec.split_by, 'USER') = 'SYSTEM') THEN
2078: -- don't call credit checking for system split when tax value changes.
2079: l_param1 := 'No_Credit_Checking';

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

2095: If l_debug_level > 0 Then
2096: oe_debug_pub.add('Catchweight enabled item',3);
2097: oe_debug_pub.add('Setting the price flag to Yes');
2098: End If;
2099: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2100: END IF;
2101: END IF;
2102: else
2103: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

2099: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2100: END IF;
2101: END IF;
2102: else
2103: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2104: if l_debug_level > 0 then
2105: oe_debug_pub.ADD('B2315926_2:',2);
2106: end if;
2107: end if;

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

2108: --changes for bug 2315926 end
2109:
2110: --changes for bug#7491829
2111:
2112: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE and
2113: p_x_line_rec.split_by = 'SYSTEM' and
2114: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT') THEN
2115: IF l_debug_level > 0 THEN
2116: oe_debug_pub.add('Logging Reverse Limits delayed request for parent line');

Line 2121: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2117: oe_debug_pub.add('Price request code for parent : ' || p_x_line_rec.price_request_code);
2118: oe_debug_pub.add('OLD Price request code for parent : ' || p_old_line_rec.price_request_code);
2119: END IF;
2120: OE_delayed_requests_Pvt.log_request(
2121: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2122: p_entity_id => p_x_line_rec.line_id,
2123: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2124: p_requesting_entity_id => p_x_line_rec.line_id,
2125: p_request_unique_key1 => 'LINE',

Line 2123: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2119: END IF;
2120: OE_delayed_requests_Pvt.log_request(
2121: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2122: p_entity_id => p_x_line_rec.line_id,
2123: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2124: p_requesting_entity_id => p_x_line_rec.line_id,
2125: p_request_unique_key1 => 'LINE',
2126: p_param1 => 'SPLIT_ORIG',
2127: p_param2 => p_old_line_rec.price_request_code,

Line 2132: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2128: p_param3 => p_old_line_rec.ordered_quantity,
2129: p_param4 => p_x_line_rec.ordered_quantity,
2130: p_param5 => NULL,
2131: p_param6 => NULL,
2132: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2133: x_return_status => l_return_status);
2134:
2135: END IF;
2136:

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

2133: x_return_status => l_return_status);
2134:
2135: END IF;
2136:
2137: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2138: p_x_line_rec.split_from_line_id IS NOT NULL AND
2139: nvl(p_x_line_rec.split_by, 'USER') = 'SYSTEM') THEN
2140: IF l_debug_level > 0 THEN
2141: oe_debug_pub.add('Logging Reverse Limits delayed request for child line');

Line 2144: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2140: IF l_debug_level > 0 THEN
2141: oe_debug_pub.add('Logging Reverse Limits delayed request for child line');
2142: END IF;
2143: OE_delayed_requests_Pvt.log_request(
2144: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2145: p_entity_id => p_x_line_rec.line_id,
2146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2147: p_requesting_entity_id => p_x_line_rec.line_id,
2148: p_request_unique_key1 => 'LINE',

Line 2146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2142: END IF;
2143: OE_delayed_requests_Pvt.log_request(
2144: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2145: p_entity_id => p_x_line_rec.line_id,
2146: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2147: p_requesting_entity_id => p_x_line_rec.line_id,
2148: p_request_unique_key1 => 'LINE',
2149: p_param1 => 'SPLIT_NEW',
2150: p_param2 => NULL,

Line 2155: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2151: p_param3 => NULL,
2152: p_param4 => NULL,
2153: p_param5 => NULL,
2154: p_param6 => p_x_line_rec.ordered_quantity,
2155: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2156: x_return_status => l_return_status);
2157: END IF;
2158:
2159: --bug#7491829

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

2157: END IF;
2158:
2159: --bug#7491829
2160:
2161: OE_GLOBALS.G_TAX_FLAG := 'Y';
2162:
2163: -- bug 1829201, need to recalculate commitment when quantity changes.
2164: IF p_x_line_rec.commitment_id is not null then
2165: l_calculate_commitment_flag := 'Y';

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

2164: IF p_x_line_rec.commitment_id is not null then
2165: l_calculate_commitment_flag := 'Y';
2166:
2167: -- lkxu, bug 1786533 for commitment during line split
2168: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2169: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
2170:
2171: l_update_commitment_flag := 'Y';
2172: OE_GLOBALS.g_original_commitment_applied

Line 2172: OE_GLOBALS.g_original_commitment_applied

2168: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2169: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
2170:
2171: l_update_commitment_flag := 'Y';
2172: OE_GLOBALS.g_original_commitment_applied
2173: := Oe_Commitment_Pvt.Get_Commitment_Applied_Amount
2174: (p_header_id => p_x_line_rec.header_id ,
2175: p_line_id => p_x_line_rec.line_id ,
2176: p_commitment_id => p_x_line_rec.commitment_id);

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

2192: split line process items - CHILD
2193: ============================================================*/
2194: -- INVCONV
2195:
2196: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2197: p_x_line_rec.split_from_line_id IS NOT NULL AND
2198: nvl(p_x_line_rec.split_by, 'USER') = 'USER' AND
2199: p_x_line_rec.line_category_code <> 'RETURN'
2200: THEN

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

2203: oe_line_util.Calculate_Ordered_Quantity2(p_x_line_rec);
2204: */
2205: /* OPM - NC 3/8/02 Bug#2046641
2206: Commented the above call and added the call to calculate_dual_quantity */
2207: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN
2208:
2209: if l_debug_level > 0 then
2210: oe_debug_pub.add('about to call calculate_dual_quantity 1' );
2211: end if;

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

2236:
2237: END IF; -- Bug#2046641
2238: END IF; -- INVCONV
2239:
2240: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
2241: /* INVCONV 02/JUN/00 ordered_quantity2 needs to be calculated
2242: for split line process items - PARENT
2243: =======================================================*/
2244: IF p_x_line_rec.split_action_code = 'SPLIT' AND

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

2250: oe_line_util.Calculate_Ordered_Quantity2(p_x_line_rec);
2251: */
2252: /* OPM - NC 3/8/02 Bug#2046641
2253: Commented the above call and added the call to calculate_dual_quantity */
2254: IF (OE_CODE_CONTROL.CODE_RELEASE_LEVEL <= '110507') OR NOT(OE_GLOBALS.G_UI_FLAG) THEN
2255: if l_debug_level > 0 then
2256: oe_debug_pub.add('about to call calculate_dual_quantity 2' );
2257: end if;
2258:

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

2426: -- , p_old_line_rec => p_old_line_rec); INVCONV COMMENTED OUT FOR NOW
2427: END IF;
2428: END IF;
2429:
2430: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
2431: THEN
2432: -- Need to Call Shipping Update
2433: l_update_shipping := FND_API.G_TRUE;
2434: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

2430: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom)
2431: THEN
2432: -- Need to Call Shipping Update
2433: l_update_shipping := FND_API.G_TRUE;
2434: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2435: OE_GLOBALS.G_TAX_FLAG := 'Y';
2436: END IF;
2437:
2438: -- bug 1829201, need to recalculate commitment.

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

2431: THEN
2432: -- Need to Call Shipping Update
2433: l_update_shipping := FND_API.G_TRUE;
2434: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2435: OE_GLOBALS.G_TAX_FLAG := 'Y';
2436: END IF;
2437:
2438: -- bug 1829201, need to recalculate commitment.
2439: --IF p_x_line_rec.commitment_id is not null then

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

2443: -- INVCONV
2444: --OPM 02/JUN/00 Test for changes to process attributes
2445: -- (ordered_quantity2, preferred_grade)
2446: --------------------------------------------------------
2447: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
2448: THEN
2449: if l_debug_level > 0 then
2450: oe_debug_pub.add('Ordered Qty2 has changed',1); -- INVCONV
2451: oe_debug_pub.add('New Ordered Qty2 : ' || p_x_line_rec.ordered_quantity2, 1);

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

2465: -- need to call pricing
2466: if l_debug_level > 0 then
2467: oe_debug_pub.add('dual uom - ont_pricing_qty_source = ' || l_item_rec.ont_pricing_qty_source );
2468: end if;
2469: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2470: OE_GLOBALS.G_TAX_FLAG := 'Y';
2471:
2472: END IF;
2473:

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

2466: if l_debug_level > 0 then
2467: oe_debug_pub.add('dual uom - ont_pricing_qty_source = ' || l_item_rec.ont_pricing_qty_source );
2468: end if;
2469: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2470: OE_GLOBALS.G_TAX_FLAG := 'Y';
2471:
2472: END IF;
2473:
2474: oe_sales_can_util.check_constraints

Line 2504: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

2500: -- request will be logged only if the change is not initiated from Requesting
2501: -- Organization user, and it is not a Internal Sales Order Full Cancellation
2502:
2503: OE_delayed_requests_Pvt.log_request
2504: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2505: , p_entity_id => p_x_line_rec.line_id
2506: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2507: , p_requesting_entity_id => p_x_line_rec.line_id
2508: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 2506: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

2502:
2503: OE_delayed_requests_Pvt.log_request
2504: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2505: , p_entity_id => p_x_line_rec.line_id
2506: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2507: , p_requesting_entity_id => p_x_line_rec.line_id
2508: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2509: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2510: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 2513: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

2509: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2510: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id
2511: , p_param4 => (p_x_line_rec.ordered_quantity2 - p_old_line_rec.ordered_quantity2)
2512: --, p_date_param1 => p_x_line_rec.schedule_ship_date
2513: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
2514: , x_return_status => l_return_status
2515: );
2516: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2517: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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

2527: END IF; -- IF dual_uom_control -- INVCONV Process_Characteristics
2528: -- end 2046190
2529:
2530: -- NULL;
2531: END IF; -- IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
2532:
2533: IF NOT OE_GLOBALS.Equal(p_x_line_rec.preferred_grade,p_old_line_rec.preferred_grade
2534: )
2535: THEN

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

2529:
2530: -- NULL;
2531: END IF; -- IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) -- peter
2532:
2533: IF NOT OE_GLOBALS.Equal(p_x_line_rec.preferred_grade,p_old_line_rec.preferred_grade
2534: )
2535: THEN
2536: -- Need to Call Shipping Update
2537: l_update_shipping := FND_API.G_TRUE;

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

2534: )
2535: THEN
2536: -- Need to Call Shipping Update
2537: l_update_shipping := FND_API.G_TRUE;
2538: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2539: OE_GLOBALS.G_TAX_FLAG := 'Y';
2540:
2541: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2542: l_get_commitment_bal := 'Y';

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

2535: THEN
2536: -- Need to Call Shipping Update
2537: l_update_shipping := FND_API.G_TRUE;
2538: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2539: OE_GLOBALS.G_TAX_FLAG := 'Y';
2540:
2541: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2542: l_get_commitment_bal := 'Y';
2543: END IF;

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

2544: END IF;
2545: --INVCONV 02/JUN/00 END
2546: --=================
2547:
2548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
2549: THEN
2550:
2551: -- Need to Call Pricing: bug 1504821
2552: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

2548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
2549: THEN
2550:
2551: -- Need to Call Pricing: bug 1504821
2552: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2553:
2554: /* Additional task: If the payment type is not CREDIT CARD
2555: then if the payment term changes for a line which is Booked
2556: it should log a delayed request for Verify Payment */

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

2554: /* Additional task: If the payment type is not CREDIT CARD
2555: then if the payment term changes for a line which is Booked
2556: it should log a delayed request for Verify Payment */
2557:
2558: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
2559:
2560: if p_x_line_rec.booked_flag ='Y' then
2561:
2562: IF OE_PrePayment_UTIL.IS_MULTIPLE_PAYMENTS_ENABLED = TRUE THEN

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

2582: END IF; -- if operation is update
2583:
2584: END IF; -- if payment_term_id has changed
2585:
2586: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
2587: THEN
2588: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2589:
2590: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

2584: END IF; -- if payment_term_id has changed
2585:
2586: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
2587: THEN
2588: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2589:
2590: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2591: l_get_commitment_bal := 'Y';
2592: END IF;

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

2591: l_get_commitment_bal := 'Y';
2592: END IF;
2593: END IF;
2594:
2595: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_date,p_old_line_rec.pricing_date)
2596: THEN
2597: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2598:
2599: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN

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

2593: END IF;
2594:
2595: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_date,p_old_line_rec.pricing_date)
2596: THEN
2597: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2598:
2599: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2600: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2601: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190

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

2596: THEN
2597: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2598:
2599: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2600: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2601: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190
2602: p_x_line_rec.calculate_price_flag := 'Y';
2603: END IF;
2604: -- bug 2072014, need to recalculate price if pricing_date is updated END

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

2597: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2598:
2599: -- bug 2072014, need to recalculate price if pricing_date is updated BEGIN
2600: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2601: OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id) THEN --bug 5260190
2602: p_x_line_rec.calculate_price_flag := 'Y';
2603: END IF;
2604: -- bug 2072014, need to recalculate price if pricing_date is updated END
2605:

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

2607: l_get_commitment_bal := 'Y';
2608: END IF;
2609: END IF;
2610:
2611: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity,p_old_line_rec.pricing_quantity)
2612: THEN
2613: --commenting the below line for bug 2315926
2614: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2615:

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

2610:
2611: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity,p_old_line_rec.pricing_quantity)
2612: THEN
2613: --commenting the below line for bug 2315926
2614: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2615:
2616: -- bug 1829201, need to recalculate commitment.
2617: IF p_x_line_rec.commitment_id is not null then
2618: l_calculate_commitment_flag := 'Y';

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

2618: l_calculate_commitment_flag := 'Y';
2619: END IF;
2620: END IF;
2621:
2622: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity_uom,p_old_line_rec.pricing_quantity_uom)
2623: THEN
2624: --commenting the below line for bug 2315926
2625: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2626:

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

2621:
2622: IF NOT OE_GLOBALS.Equal(p_x_line_rec.pricing_quantity_uom,p_old_line_rec.pricing_quantity_uom)
2623: THEN
2624: --commenting the below line for bug 2315926
2625: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
2626:
2627: -- bug 1829201, need to recalculate commitment.
2628: IF p_x_line_rec.commitment_id is not null then
2629: l_calculate_commitment_flag := 'Y';

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

2629: l_calculate_commitment_flag := 'Y';
2630: END IF;
2631: END IF;
2632:
2633: IF NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id)
2634: THEN
2635: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2636: if l_debug_level > 0 then
2637: oe_debug_pub.ADD('RMA: logging delayed request ');

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

2631: END IF;
2632:
2633: IF NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id,p_old_line_rec.reference_line_id)
2634: THEN
2635: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2636: if l_debug_level > 0 then
2637: oe_debug_pub.ADD('RMA: logging delayed request ');
2638: end if;
2639: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR

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

2635: IF OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' THEN
2636: if l_debug_level > 0 then
2637: oe_debug_pub.ADD('RMA: logging delayed request ');
2638: end if;
2639: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
2640: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
2641:
2642: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2643:

Line 2640: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

2636: if l_debug_level > 0 then
2637: oe_debug_pub.ADD('RMA: logging delayed request ');
2638: end if;
2639: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE OR
2640: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
2641:
2642: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2643:
2644: OE_delayed_requests_Pvt.log_request(

Line 2645: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2641:
2642: IF p_x_line_rec.split_from_line_id is NULL THEN -- Bug 5676051
2643:
2644: OE_delayed_requests_Pvt.log_request(
2645: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2646: p_entity_id => p_x_line_rec.line_id,
2647: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2648: p_requesting_entity_id => p_x_line_rec.line_id,
2649: p_param1 => p_x_line_rec.operation, --Bug 4651421

Line 2647: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2643:
2644: OE_delayed_requests_Pvt.log_request(
2645: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2646: p_entity_id => p_x_line_rec.line_id,
2647: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2648: p_requesting_entity_id => p_x_line_rec.line_id,
2649: p_param1 => p_x_line_rec.operation, --Bug 4651421
2650: p_param2 => p_x_line_rec.split_by,
2651: p_param3 => p_x_line_rec.split_action_code,

Line 2653: p_request_type => OE_GLOBALS.G_INSERT_RMA,

2649: p_param1 => p_x_line_rec.operation, --Bug 4651421
2650: p_param2 => p_x_line_rec.split_by,
2651: p_param3 => p_x_line_rec.split_action_code,
2652: p_param4 => to_char(p_x_line_rec.split_from_line_id),
2653: p_request_type => OE_GLOBALS.G_INSERT_RMA,
2654: x_return_status => l_return_status);
2655: END IF; -- Bug 5676051
2656:
2657: /* BUG 2013611 and 2109230 */

Line 2659: IF (OE_GLOBALS.G_UI_FLAG) THEN

2655: END IF; -- Bug 5676051
2656:
2657: /* BUG 2013611 and 2109230 */
2658: If p_x_line_rec.calculate_price_flag in ('N','P') THEN
2659: IF (OE_GLOBALS.G_UI_FLAG) THEN
2660: if l_debug_level > 0 then
2661: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
2662: end if;
2663: OE_delayed_requests_Pvt.log_request(

Line 2664: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2660: if l_debug_level > 0 then
2661: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY LINE return',1);
2662: end if;
2663: OE_delayed_requests_Pvt.log_request(
2664: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2665: p_entity_id => p_x_line_rec.line_id,
2666: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2667: p_requesting_entity_id => p_x_line_rec.line_id,
2668: p_request_unique_key1 => 'LINE',

Line 2666: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

2662: end if;
2663: OE_delayed_requests_Pvt.log_request(
2664: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2665: p_entity_id => p_x_line_rec.line_id,
2666: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
2667: p_requesting_entity_id => p_x_line_rec.line_id,
2668: p_request_unique_key1 => 'LINE',
2669: p_param1 => 'RETURN',
2670: p_param2 => NULL,

Line 2675: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2671: p_param3 => NULL,
2672: p_param4 => NULL,
2673: p_param5 => NULL,
2674: p_param6 => p_x_line_rec.ordered_quantity,
2675: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2676: x_return_status => l_return_status);
2677: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
2678: if l_debug_level > 0 then
2679: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);

Line 2677: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN

2673: p_param5 => NULL,
2674: p_param6 => p_x_line_rec.ordered_quantity,
2675: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2676: x_return_status => l_return_status);
2677: ELSIF NOT (OE_GLOBALS.G_UI_FLAG) THEN
2678: if l_debug_level > 0 then
2679: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
2680: end if;
2681: OE_delayed_requests_Pvt.log_request(

Line 2682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2678: if l_debug_level > 0 then
2679: oe_debug_pub.add('Log REVERSE_LIMITS delayed request for ENTITY ALL line return',1);
2680: end if;
2681: OE_delayed_requests_Pvt.log_request(
2682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2683: p_entity_id => p_x_line_rec.line_id,
2684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2685: p_requesting_entity_id => p_x_line_rec.line_id,
2686: p_request_unique_key1 => 'LINE',

Line 2684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

2680: end if;
2681: OE_delayed_requests_Pvt.log_request(
2682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2683: p_entity_id => p_x_line_rec.line_id,
2684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
2685: p_requesting_entity_id => p_x_line_rec.line_id,
2686: p_request_unique_key1 => 'LINE',
2687: p_param1 => 'RETURN',
2688: p_param2 => NULL,

Line 2693: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

2689: p_param3 => NULL,
2690: p_param4 => NULL,
2691: p_param5 => NULL,
2692: p_param6 => p_x_line_rec.ordered_quantity,
2693: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
2694: x_return_status => l_return_status);
2695: END IF;
2696: END IF;
2697: /* BUG 2013611 and 2109230 END */

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

2709: end if;
2710:
2711: END IF;
2712:
2713: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,p_old_line_rec.request_date)
2714: THEN
2715:
2716: -- Need to Call Shipping Update
2717: l_update_shipping := FND_API.G_TRUE;

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

2716: -- Need to Call Shipping Update
2717: l_update_shipping := FND_API.G_TRUE;
2718:
2719: -- Call Pricing
2720: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2721:
2722: IF p_x_line_rec.commitment_id IS NOT NULL THEN
2723: l_get_commitment_bal := 'Y';
2724: END IF;

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

2724: END IF;
2725:
2726: /*
2727: ** Commented as part of 1655720 after discussion with zbutt
2728: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
2729: p_x_line_rec.booked_flag ='Y'
2730: THEN
2731: if l_debug_level > 0 then
2732: oe_debug_pub.ADD('logging delayed request for Verify Payment

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

2737: */
2738:
2739: END IF;
2740:
2741: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date)
2742: THEN
2743:
2744: -- Need to Call Shipping Update
2745: l_update_shipping := FND_API.G_TRUE;

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

2748: -- schedule_ship_date changes.
2749: IF p_old_line_rec.schedule_ship_date IS NOT NULL THEN
2750: l_3a7_attribute_change := FND_API.G_TRUE;
2751: END IF;
2752: -- OE_GLOBALS.G_TAX_FLAG := 'Y';
2753:
2754: -- Call Pricing
2755: -- For performance bug 1351111, turning off Pricing for scheduling
2756:

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

2757: /* Commenting out for 1419204
2758: l_turn_off_pricing := FND_PROFILE.VALUE('ONT_NO_PRICING_AT_SCHEDULING');
2759: -- by default, turn off pricing at scheduling
2760: IF l_turn_off_pricing = 'N' THEN
2761: OE_GLOBALS.G_PRICE_FLAG := 'Y';
2762: End If;
2763: */
2764:
2765: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

2783:
2784: -- modified for bug 1655720 to not perform credit checking if
2785: -- schedule_ship_date changes.
2786: /***
2787: IF (p_x_line_rec.source_type_code <> OE_GLOBALS.G_SOURCE_EXTERNAL) THEN
2788:
2789: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
2790: THEN
2791: IF NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' AND

Line 2789: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

2785: -- schedule_ship_date changes.
2786: /***
2787: IF (p_x_line_rec.source_type_code <> OE_GLOBALS.G_SOURCE_EXTERNAL) THEN
2788:
2789: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
2790: THEN
2791: IF NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' AND
2792: p_x_line_rec.booked_flag ='Y' AND
2793: (to_date(p_x_line_rec.schedule_ship_date, 'DD/MM/YYYY') <>

Line 2816: -- of type OE_Globals.G_UPDATE_REQUISITION.

2812: --
2813: -- This program unit will track the specific change in Ordered Quantity
2814: -- and/or Schedule Ship Date on an internal sales order line shipment,
2815: -- and in the event of any change in values, it will log a delayed request
2816: -- of type OE_Globals.G_UPDATE_REQUISITION.
2817: --
2818: -- This delayed request will be logged only if global OE_Internal_Requisi
2819: -- tion_Pvt.G_Update_ISO_From_Req set to FALSE. If this global is TRUE
2820: -- then it means, the change requests for quantity/date or cancellation

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

2839: -- Please refer to following delayed request params with their meaning
2840: -- useful while logging the delayed request -
2841: --
2842: -- P_entity_code Entity for which delayed request has to be logged.
2843: -- In this project it can be OE_Globals.G_Entity_Line
2844: -- or OE_Globals.G_Entity_Header
2845: -- P_entity_id Primary key of the entity record. In this project,
2846: -- it can be Order Line_id or Header_id
2847: -- P_requesting_entity_code Which entity has requested this delayed request to

Line 2844: -- or OE_Globals.G_Entity_Header

2840: -- useful while logging the delayed request -
2841: --
2842: -- P_entity_code Entity for which delayed request has to be logged.
2843: -- In this project it can be OE_Globals.G_Entity_Line
2844: -- or OE_Globals.G_Entity_Header
2845: -- P_entity_id Primary key of the entity record. In this project,
2846: -- it can be Order Line_id or Header_id
2847: -- P_requesting_entity_code Which entity has requested this delayed request to
2848: -- be logged! In this project it will be OE_Globals.

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

2844: -- or OE_Globals.G_Entity_Header
2845: -- P_entity_id Primary key of the entity record. In this project,
2846: -- it can be Order Line_id or Header_id
2847: -- P_requesting_entity_code Which entity has requested this delayed request to
2848: -- be logged! In this project it will be OE_Globals.
2849: -- G_Entity_Line or OE_Globals.G_Entity_Header
2850: -- P_requesting_entity_id Primary key of the requesting entity. In this
2851: -- project, it is Line_id or Header_id
2852: -- P_request_type Indicates which business logic (or which procedure)

Line 2849: -- G_Entity_Line or OE_Globals.G_Entity_Header

2845: -- P_entity_id Primary key of the entity record. In this project,
2846: -- it can be Order Line_id or Header_id
2847: -- P_requesting_entity_code Which entity has requested this delayed request to
2848: -- be logged! In this project it will be OE_Globals.
2849: -- G_Entity_Line or OE_Globals.G_Entity_Header
2850: -- P_requesting_entity_id Primary key of the requesting entity. In this
2851: -- project, it is Line_id or Header_id
2852: -- P_request_type Indicates which business logic (or which procedure)
2853: -- should be executed. In this project, it is OE_Global

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

2906: /* -- Commented for IR ISO Tracking bug 7667702
2907: *
2908: IF (p_x_line_rec.order_source_id = 10) THEN
2909: IF (p_old_line_rec.schedule_ship_date IS NOT NULL) OR
2910: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2911: p_x_line_rec.split_from_line_id IS NOT NULL AND
2912: nvl(p_x_line_rec.split_by, 'X') = 'SYSTEM') THEN
2913: -- The above new OR condition is needed to ensure that a data
2914: -- change can happen either as a direct Update operation, OR

Line 2936: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

2932: -- Purchasing profile option does not allow update of Need By Date when
2933: -- Schedule Ship Date changes on internal sales order line
2934:
2935: OE_delayed_requests_Pvt.log_request
2936: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2937: , p_entity_id => p_x_line_rec.line_id
2938: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2939: , p_requesting_entity_id => p_x_line_rec.line_id
2940: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 2938: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

2934:
2935: OE_delayed_requests_Pvt.log_request
2936: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
2937: , p_entity_id => p_x_line_rec.line_id
2938: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
2939: , p_requesting_entity_id => p_x_line_rec.line_id
2940: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2941: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2942: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 2944: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

2940: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
2941: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
2942: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id
2943: , p_date_param1 => p_x_line_rec.schedule_ship_date
2944: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
2945: , x_return_status => l_return_status
2946: );
2947:
2948: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

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

2961:
2962:
2963: END IF;
2964:
2965: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date)
2966: THEN
2967:
2968: -- Freight Rating
2969: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

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

2984:
2985:
2986: IF (p_x_line_rec.order_source_id = 10) THEN
2987: IF (p_old_line_rec.schedule_arrival_date IS NOT NULL) OR
2988: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
2989: p_x_line_rec.split_from_line_id IS NOT NULL AND
2990: nvl(p_x_line_rec.split_by, 'X') = 'SYSTEM') THEN
2991: -- The above new OR condition is needed to ensure that a data
2992: -- change can happen either as a direct Update operation, OR

Line 3016: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE

3012: -- Purchasing profile option does not allow update of Need By Date when
3013: -- Schedule Arrival Date changes on internal sales order line
3014:
3015: OE_delayed_requests_Pvt.log_request
3016: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
3017: , p_entity_id => p_x_line_rec.line_id
3018: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
3019: , p_requesting_entity_id => p_x_line_rec.line_id
3020: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id

Line 3018: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

3014:
3015: OE_delayed_requests_Pvt.log_request
3016: ( p_entity_code => OE_GLOBALS.G_ENTITY_LINE
3017: , p_entity_id => p_x_line_rec.line_id
3018: , p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
3019: , p_requesting_entity_id => p_x_line_rec.line_id
3020: , p_request_unique_key1 => p_x_line_rec.header_id -- Order Hdr_id
3021: , p_request_unique_key2 => p_x_line_rec.source_document_id -- Req Hdr_id
3022: , p_request_unique_key3 => p_x_line_rec.source_document_line_id -- Req Line_id

Line 3029: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION

3025: -- Schedule_Arrival_Date, as while executing G_UPDATE_REQUISITION delayed
3026: -- request via OE_Process_Requisition_Pvt.Update_Internal_Requisition,
3027: -- it can expect change with respect to Ship or Arrival date. Thus, will
3028: -- not raise any issues.
3029: , p_request_type => OE_GLOBALS.G_UPDATE_REQUISITION
3030: , x_return_status => l_return_status
3031: );
3032:
3033: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

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

3055:
3056:
3057: END IF;
3058:
3059: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipment_priority_code,p_old_line_rec.shipment_priority_code)
3060: THEN
3061: -- Need to Call Shipping Update
3062: l_update_shipping := FND_API.G_TRUE;
3063: END IF;

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

3061: -- Need to Call Shipping Update
3062: l_update_shipping := FND_API.G_TRUE;
3063: END IF;
3064:
3065: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,p_old_line_rec.shipped_quantity)
3066: THEN
3067: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
3068: --OE_delayed_requests_Pvt.log_request(
3069: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

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

3065: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,p_old_line_rec.shipped_quantity)
3066: THEN
3067: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
3068: --OE_delayed_requests_Pvt.log_request(
3069: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3070: --p_entity_id => p_x_line_rec.ship_set_id,
3071: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3072: --p_requesting_entity_id => p_x_line_rec.line_id,
3073: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,

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

3067: --IF (p_x_line_rec.ship_set_id IS NOT NULL ) THEN
3068: --OE_delayed_requests_Pvt.log_request(
3069: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3070: --p_entity_id => p_x_line_rec.ship_set_id,
3071: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3072: --p_requesting_entity_id => p_x_line_rec.line_id,
3073: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,
3074: --p_param1 => to_char(p_x_line_rec.actual_shipment_date,'DD-MON-RRRR'),
3075: --x_return_status => l_return_status);

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

3069: --p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3070: --p_entity_id => p_x_line_rec.ship_set_id,
3071: --p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3072: --p_requesting_entity_id => p_x_line_rec.line_id,
3073: -- p_request_type => OE_GLOBALS.G_SPLIT_SET_CHK,
3074: --p_param1 => to_char(p_x_line_rec.actual_shipment_date,'DD-MON-RRRR'),
3075: --x_return_status => l_return_status);
3076: --END IF;
3077:

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

3078: NULL;
3079:
3080: END IF;
3081:
3082: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
3083: THEN
3084: -- Need to Call Pricing: bug 3344835
3085: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3086:

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

3081:
3082: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
3083: THEN
3084: -- Need to Call Pricing: bug 3344835
3085: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3086:
3087: -- Need to Call Shipping Update
3088: l_update_shipping := FND_API.G_TRUE;
3089: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE

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

3089: IF OE_Freight_Rating_Util.IS_FREIGHT_RATING_AVAILABLE
3090: AND OE_Freight_Rating_Util.Get_List_Line_Type_Code
3091: (p_x_line_rec.header_id)
3092: = 'OM_CALLED_FREIGHT_RATES'
3093: AND oe_globals.g_freight_recursion = 'N' THEN
3094: if l_debug_level > 0 then
3095: oe_debug_pub.add('Log Freight Rating request for shipping method. ',3);
3096: end if;
3097: l_get_FTE_freight_rate := 'Y';

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

3101:
3102: -- Don't change the order for the following, flow_status_code depends on this
3103: -- order to update the appropriate flow_status_code
3104:
3105: IF NOT OE_GLOBALS.Equal(p_x_line_rec.booked_flag, p_old_line_rec.booked_flag)
3106: THEN
3107: IF p_x_line_rec.booked_flag = 'Y' AND p_x_line_rec.flow_status_code = 'ENTERED' THEN
3108: -- only set status to BOOKED if we were at ENTERED
3109: p_x_line_rec.flow_status_code := 'BOOKED';

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

3107: IF p_x_line_rec.booked_flag = 'Y' AND p_x_line_rec.flow_status_code = 'ENTERED' THEN
3108: -- only set status to BOOKED if we were at ENTERED
3109: p_x_line_rec.flow_status_code := 'BOOKED';
3110: -- For bug 1304916. Booking wil call price_line directly
3111: --OE_GLOBALS.G_PRICE_FLAG := 'Y';
3112: if l_debug_level > 0 then
3113: oe_debug_pub.add('sam: flow_status_code is ' || p_x_line_rec.flow_status_code);
3114: end if;
3115: END IF;

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

3119:
3120: /* WARNING !!!! The following code will not get executed after patchset 'G'.
3121: 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 */
3122:
3123: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_quantity,p_old_line_rec.shipping_quantity)
3124: THEN
3125: -- Convert the shipping quantity from shipping quantity UOM to
3126: -- Ordered quantity UOM and update the field shipped quantity
3127:

Line 3292: p_x_line_rec.item_type_code = Oe_Globals.G_ITEM_CONFIG AND

3288: l_shipping_param1 := p_x_line_rec.top_model_line_id;
3289:
3290: ELSIF (p_x_line_rec.ato_line_id IS NOT NULL AND
3291: p_x_line_rec.ato_line_id <> FND_API.G_MISS_NUM) AND
3292: p_x_line_rec.item_type_code = Oe_Globals.G_ITEM_CONFIG AND
3293: nvl(p_x_line_rec.model_remnant_flag,'N') = 'N' THEN
3294: l_shipping_unique_key1 := 'ATO';
3295: l_shipping_param1 := p_x_line_rec.line_id;
3296: ELSE

Line 3307: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3303: oe_debug_pub.ADD('Ship Confirmation : logging delayed request for '|| l_shipping_unique_key1 || l_shipping_param1,1);
3304: end if;
3305:
3306: OE_Delayed_Requests_Pvt.Log_Request(
3307: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3308: p_entity_id => p_x_line_rec.line_id,
3309: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3310: p_requesting_entity_id => p_x_line_rec.line_id,
3311: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,

Line 3309: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3305:
3306: OE_Delayed_Requests_Pvt.Log_Request(
3307: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3308: p_entity_id => p_x_line_rec.line_id,
3309: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3310: p_requesting_entity_id => p_x_line_rec.line_id,
3311: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,
3312: p_request_unique_key1 => l_shipping_unique_key1,
3313: p_param1 => l_shipping_param1,

Line 3311: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,

3307: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3308: p_entity_id => p_x_line_rec.line_id,
3309: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3310: p_requesting_entity_id => p_x_line_rec.line_id,
3311: p_request_type => OE_GLOBALS.G_SHIP_CONFIRMATION,
3312: p_request_unique_key1 => l_shipping_unique_key1,
3313: p_param1 => l_shipping_param1,
3314: x_return_status => l_return_status);
3315:

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

3318: END IF;
3319:
3320:
3321:
3322: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_interface_status_code, p_old_line_rec.invoice_interface_status_code)
3323: THEN
3324: IF p_x_line_rec.invoice_interface_status_code = 'YES' THEN
3325: p_x_line_rec.flow_status_code := 'INVOICED';
3326: if l_debug_level > 0 then

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

3335:
3336: END IF;
3337:
3338:
3339: IF NOT OE_GLOBALS.Equal(p_x_line_rec.open_flag, p_old_line_rec.open_flag)
3340: THEN
3341: IF p_x_line_rec.open_flag = 'N' THEN
3342: p_x_line_rec.flow_status_code := 'CLOSED';
3343: IF p_x_line_rec.cancelled_flag = 'Y' THEN

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

3350: END IF;
3351:
3352: END IF;
3353:
3354: IF NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_flag, p_old_line_rec.cancelled_flag)
3355: THEN
3356: IF p_x_line_rec.cancelled_flag = 'Y' THEN
3357: p_x_line_rec.flow_status_code := 'CANCELLED';
3358: if l_debug_level > 0 then

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

3362: END IF;
3363:
3364: END IF;
3365:
3366: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)
3367: THEN
3368: -- BUG 1491504 BEGIN -- INVCONV stet
3369: -- Warehouse data CAN determine whether the line is treated as process or discrete OR SINGLE uom OR dUAL uom CONTROLLED .
3370: -- Warehouse data can impact quantity calculations, so check the quantites here

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

3374: -- Check to see if either the primary or secondary quantity has changed
3375: -- If there is a change, make a recursive call to OE_Order_Pvt.Lines
3376: IF p_x_line_rec.ordered_quantity <> l_ordered_quantity OR
3377: p_x_line_rec.ordered_quantity2 <> l_ordered_quantity2 THEN
3378: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
3379: l_control_rec.controlled_operation := TRUE;
3380: l_control_rec.check_security := TRUE;
3381: l_control_rec.clear_dependents := FALSE;
3382: l_control_rec.default_attributes := FALSE;

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

3394: , p_x_old_line_tbl => l_old_line_tbl
3395: , x_return_status => l_return_status
3396: );
3397:
3398: -- OE_GLOBALS.G_RECURSION_MODE := 'N';
3399: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
3400: RAISE FND_API.G_EXC_ERROR;
3401: ELSIF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
3402: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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

3404: END IF;
3405: -- BUG 1491504 END
3406: -- =======================================
3407: -- Log the request for Tax Calculation
3408: OE_GLOBALS.G_TAX_FLAG := 'Y';
3409: -- Need to Call Shipping Update
3410: l_update_shipping := FND_API.G_TRUE;
3411: /* may need to call pricing */
3412: -- For performance bug 1351111, turning off Pricing for scheduling

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

3413: /* commenting out for fix 1419204
3414: l_turn_off_pricing := FND_PROFILE.VALUE('ONT_NO_PRICING_AT_SCHEDULING');
3415: -- by default, turn off pricing at scheduling
3416: IF l_turn_off_pricing = 'N' THEN
3417: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3418: End If;
3419: */
3420:
3421: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

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

3417: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3418: End If;
3419: */
3420:
3421: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
3422: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
3423: -- QUOTING change
3424: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3425: THEN

Line 3433: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3429: ' Entity ID :'|| to_char(p_x_line_rec.ship_from_org_id), 1);
3430: end if;
3431:
3432: OE_delayed_requests_Pvt.log_request(
3433: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3434: p_entity_id => p_x_line_rec.line_id,
3435: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3436: p_requesting_entity_id => p_x_line_rec.line_id,
3437: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3435: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3431:
3432: OE_delayed_requests_Pvt.log_request(
3433: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3434: p_entity_id => p_x_line_rec.line_id,
3435: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3436: p_requesting_entity_id => p_x_line_rec.line_id,
3437: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3438: p_request_unique_key1 => 'SHIP_FROM',
3439: p_param1 => 'W',

Line 3437: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3433: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3434: p_entity_id => p_x_line_rec.line_id,
3435: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3436: p_requesting_entity_id => p_x_line_rec.line_id,
3437: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3438: p_request_unique_key1 => 'SHIP_FROM',
3439: p_param1 => 'W',
3440: p_param2 => p_x_line_rec.ship_from_org_id,
3441: x_return_status => l_return_status);

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

3483: oe_debug_pub.add('l_wms_org_flag_old:'|| l_wms_org_flag_old);
3484: END IF;
3485: IF l_wms_org_flag_new <> l_wms_org_flag_old
3486: AND (l_wms_org_flag_new = 'Y' OR l_wms_org_flag_old = 'Y') THEN -- added for bug 8449058
3487: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3488: END IF;
3489: END IF;
3490: -- Pack J catchweight
3491:

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

3491:
3492:
3493: END IF;
3494:
3495: IF NOT OE_GLOBALS.Equal(p_x_line_rec.subinventory,p_old_line_rec.subinventory)
3496: THEN
3497: -- change of subinventory should not require tax or pricing calculation.
3498: -- or even hold evaluation
3499: l_update_shipping := FND_API.G_TRUE;

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

3502: end if;
3503: END IF;
3504:
3505:
3506: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_model_complete_flag,p_old_line_rec.ship_model_complete_flag)
3507: THEN
3508: -- Need to Call Shipping Update
3509: l_update_shipping := FND_API.G_TRUE;
3510: END IF;

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

3508: -- Need to Call Shipping Update
3509: l_update_shipping := FND_API.G_TRUE;
3510: END IF;
3511:
3512: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set_id,p_old_line_rec.ship_set_id)
3513: THEN
3514: -- Need to Call Shipping Update
3515: l_update_shipping := FND_API.G_TRUE;
3516:

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

3515: l_update_shipping := FND_API.G_TRUE;
3516:
3517: END IF;
3518:
3519: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_set,p_old_line_rec.ship_set)
3520: THEN
3521:
3522: NULL;
3523:

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

3523:
3524: END IF;
3525:
3526:
3527: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,p_old_line_rec.ship_tolerance_above)
3528: THEN
3529: -- Need to Call Shipping Update
3530: l_update_shipping := FND_API.G_TRUE;
3531: END IF;

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

3531: END IF;
3532:
3533: -- Changes for Bug-2579571
3534:
3535: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_set_id,p_old_line_rec.line_set_id)
3536: THEN
3537: -- Need to Call Shipping Update
3538: l_update_shipping := FND_API.G_TRUE;
3539: END IF;

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

3537: -- Need to Call Shipping Update
3538: l_update_shipping := FND_API.G_TRUE;
3539: END IF;
3540:
3541: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,p_old_line_rec.ship_tolerance_below)
3542: THEN
3543: -- Need to Call Shipping Update
3544: l_update_shipping := FND_API.G_TRUE;
3545: END IF;

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

3543: -- Need to Call Shipping Update
3544: l_update_shipping := FND_API.G_TRUE;
3545: END IF;
3546:
3547: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_contact_id,p_old_line_rec.ship_to_contact_id)
3548: THEN
3549: -- Need to Call Shipping Update
3550: l_update_shipping := FND_API.G_TRUE;
3551: -- Call Pricing

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

3548: THEN
3549: -- Need to Call Shipping Update
3550: l_update_shipping := FND_API.G_TRUE;
3551: -- Call Pricing
3552: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
3553:
3554: END IF;
3555:
3556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)

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

3552: -- OE_GLOBALS.G_PRICE_FLAG := 'Y'; Commented out for fix 1419204
3553:
3554: END IF;
3555:
3556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)
3557: THEN
3558: -- Log the request for Tax Calculation
3559: OE_GLOBALS.G_TAX_FLAG := 'Y';
3560: -- Need to Call Shipping Update

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

3555:
3556: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,p_old_line_rec.ship_to_org_id)
3557: THEN
3558: -- Log the request for Tax Calculation
3559: OE_GLOBALS.G_TAX_FLAG := 'Y';
3560: -- Need to Call Shipping Update
3561: l_update_shipping := FND_API.G_TRUE;
3562: /* may need to call pricing */
3563: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

3559: OE_GLOBALS.G_TAX_FLAG := 'Y';
3560: -- Need to Call Shipping Update
3561: l_update_shipping := FND_API.G_TRUE;
3562: /* may need to call pricing */
3563: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3564: --Customer Acceptance
3565: l_def_contingency_attributes := FND_API.G_TRUE; --added for BUG#12575548
3566:
3567: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

3577: end if;
3578: l_get_FTE_freight_rate := 'Y';
3579: END IF;
3580:
3581: IF ( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
3582: NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')
3583: -- QUOTING change
3584: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
3585: THEN

Line 3592: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3588: oe_debug_pub.add('line ID: '|| to_char(p_x_line_rec.line_id) ||
3589: ' Entity ID :'|| to_char(p_x_line_rec.ship_to_org_id), 1);
3590: end if;
3591: OE_delayed_requests_Pvt.log_request(
3592: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3593: p_entity_id => p_x_line_rec.line_id,
3594: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3595: p_requesting_entity_id => p_x_line_rec.line_id,
3596: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 3594: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

3590: end if;
3591: OE_delayed_requests_Pvt.log_request(
3592: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3593: p_entity_id => p_x_line_rec.line_id,
3594: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3595: p_requesting_entity_id => p_x_line_rec.line_id,
3596: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3597: p_request_unique_key1 => 'SHIP_TO',
3598: p_param1 => 'S',

Line 3596: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

3592: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3593: p_entity_id => p_x_line_rec.line_id,
3594: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
3595: p_requesting_entity_id => p_x_line_rec.line_id,
3596: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
3597: p_request_unique_key1 => 'SHIP_TO',
3598: p_param1 => 'S',
3599: p_param2 => p_x_line_rec.ship_to_org_id,
3600: x_return_status => l_return_status);

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

3608: END IF;
3609:
3610:
3611:
3612: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
3613: THEN
3614:
3615: -- Need to Call Shipping Update
3616: l_update_shipping := FND_API.G_TRUE;

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

3622: oe_debug_pub.add('Return Status before is : '||p_x_line_rec.return_status, 1);
3623: end if;
3624:
3625: -- Call Pricing
3626: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3627:
3628:
3629: -- bug 1829201, need to recalculate commitment.
3630: IF p_x_line_rec.commitment_id is not null then

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

3655: end if;
3656:
3657: END IF;
3658:
3659: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_document_type_id,p_old_line_rec.source_document_type_id)
3660: THEN
3661:
3662: If p_x_line_rec.source_document_type_id = 2 Then
3663: --

Line 3673: 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

3669: l_copy_pricing_attributes := TRUE;
3670:
3671: -- commented out for 1819133
3672: /***
3673: 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
3674: p_x_line_rec.calculate_price_flag := 'Y';
3675: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3676: END IF;
3677: ***/

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

3671: -- commented out for 1819133
3672: /***
3673: 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
3674: p_x_line_rec.calculate_price_flag := 'Y';
3675: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3676: END IF;
3677: ***/
3678:
3679: End If;

Line 3689: and p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

3685: --
3686:
3687: -- SAO
3688: IF p_x_line_rec.line_category_code <> 'RETURN'
3689: and p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3690: and p_x_line_rec.split_by = 'SYSTEM'
3691: and NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT'
3692: and p_x_line_rec.calculate_price_flag = 'Y' Then
3693: p_x_line_rec.calculate_price_flag :='P';

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

3693: p_x_line_rec.calculate_price_flag :='P';
3694: End IF;
3695:
3696:
3697: IF NOT OE_GLOBALS.Equal(p_x_line_rec.split_from_line_id,p_old_line_rec.split_from_line_id)
3698: THEN
3699:
3700: -- Do not attempt to copy the adjustments for the parent line
3701: IF p_x_line_rec.operation = oe_globals.g_opr_create THEN

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

3697: IF NOT OE_GLOBALS.Equal(p_x_line_rec.split_from_line_id,p_old_line_rec.split_from_line_id)
3698: THEN
3699:
3700: -- Do not attempt to copy the adjustments for the parent line
3701: IF p_x_line_rec.operation = oe_globals.g_opr_create THEN
3702: l_copy_adjustments := TRUE;
3703: l_copy_pricing_attributes := TRUE;
3704:
3705: IF p_x_line_rec.split_by = 'SYSTEM'

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

3765: End If;
3766:
3767: END IF;
3768:
3769: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_code,p_old_line_rec.tax_code)
3770: THEN
3771: OE_GLOBALS.G_TAX_FLAG := 'Y';
3772:
3773: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

3767: END IF;
3768:
3769: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_code,p_old_line_rec.tax_code)
3770: THEN
3771: OE_GLOBALS.G_TAX_FLAG := 'Y';
3772:
3773: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3774: l_get_commitment_bal := 'Y';
3775: END IF;

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

3774: l_get_commitment_bal := 'Y';
3775: END IF;
3776: END IF;
3777:
3778: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_date,p_old_line_rec.tax_date)
3779: THEN
3780: OE_GLOBALS.G_TAX_FLAG := 'Y';
3781:
3782: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

3776: END IF;
3777:
3778: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_date,p_old_line_rec.tax_date)
3779: THEN
3780: OE_GLOBALS.G_TAX_FLAG := 'Y';
3781:
3782: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3783: l_get_commitment_bal := 'Y';
3784: END IF;

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

3783: l_get_commitment_bal := 'Y';
3784: END IF;
3785: END IF;
3786:
3787: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_flag,p_old_line_rec.tax_exempt_flag)
3788: THEN
3789: OE_GLOBALS.G_TAX_FLAG := 'Y';
3790:
3791: IF p_x_line_rec.commitment_id IS NOT NULL THEN

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

3785: END IF;
3786:
3787: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_flag,p_old_line_rec.tax_exempt_flag)
3788: THEN
3789: OE_GLOBALS.G_TAX_FLAG := 'Y';
3790:
3791: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3792: l_get_commitment_bal := 'Y';
3793: END IF;

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

3792: l_get_commitment_bal := 'Y';
3793: END IF;
3794: END IF;
3795:
3796: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_number,p_old_line_rec.tax_exempt_number)
3797: THEN
3798: -- Log the request for Tax Calculation
3799: OE_GLOBALS.G_TAX_FLAG := 'Y';
3800:

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

3795:
3796: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_number,p_old_line_rec.tax_exempt_number)
3797: THEN
3798: -- Log the request for Tax Calculation
3799: OE_GLOBALS.G_TAX_FLAG := 'Y';
3800:
3801: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3802: l_get_commitment_bal := 'Y';
3803: END IF;

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

3802: l_get_commitment_bal := 'Y';
3803: END IF;
3804: END IF;
3805:
3806: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_reason_code,p_old_line_rec.tax_exempt_reason_code)
3807: THEN
3808: -- Log the request for Tax Calculation
3809: OE_GLOBALS.G_TAX_FLAG := 'Y';
3810:

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

3805:
3806: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_exempt_reason_code,p_old_line_rec.tax_exempt_reason_code)
3807: THEN
3808: -- Log the request for Tax Calculation
3809: OE_GLOBALS.G_TAX_FLAG := 'Y';
3810:
3811: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3812: l_get_commitment_bal := 'Y';
3813: END IF;

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

3812: l_get_commitment_bal := 'Y';
3813: END IF;
3814: END IF;
3815:
3816: IF NOT OE_GLOBALS.Equal(p_x_line_rec.tax_value,p_old_line_rec.tax_value)
3817: THEN
3818:
3819: IF p_x_line_rec.commitment_id is NOT NULL THEN
3820: l_calculate_commitment_flag := 'Y';

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

3827: end if;
3828: l_verify_payment_flag := 'Y';
3829: END IF;
3830: --CC Reversal ER#16014135 End
3831: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3832: -- Log Verify Payment only if the Tax Value has
3833: -- Increased AND Payment Type Code is Credit Card.
3834: IF p_x_line_rec.tax_value > p_old_line_rec.tax_value AND
3835: --OE_Order_Cache.g_header_rec.payment_type_code = 'CREDIT_CARD' THEN --CC Reversal ER#16014135 Commented

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

3852: END IF;
3853:
3854: END IF;
3855:
3856: IF NOT OE_GLOBALS.Equal(p_x_line_rec.top_model_line_id,p_old_line_rec.top_model_line_id)
3857: THEN
3858: -- Need to Call Shipping Update
3859: l_update_shipping := FND_API.G_TRUE;
3860:

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

3862: l_def_contingency_attributes := FND_API.G_TRUE;
3863:
3864: END IF;
3865: -- Bug 3418496
3866: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) THEN
3867: IF( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3868: AND p_x_line_rec.booked_flag ='Y') THEN
3869: -- Log Delayed Request for Verify Payment
3870: if l_debug_level > 0 then

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

3863:
3864: END IF;
3865: -- Bug 3418496
3866: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) THEN
3867: IF( p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
3868: AND p_x_line_rec.booked_flag ='Y') THEN
3869: -- Log Delayed Request for Verify Payment
3870: if l_debug_level > 0 then
3871: oe_debug_pub.ADD('log verify payment delayed request for change in List price');

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

3877: If the new selling price is NULL AND old selling price is NOT NULL Then
3878: Reprice the line
3879: End if;
3880: */
3881: IF NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,p_old_line_rec.unit_selling_price)
3882: THEN
3883:
3884: l_3a7_attribute_change := FND_API.G_TRUE;
3885: IF (p_x_line_rec.unit_selling_price is NULL And

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

3888: oe_debug_pub.add('User has cleared unit selling price');
3889: oe_debug_pub.add('Just Reprice');
3890: end if;
3891: --Oe_Line_Adj_Util.Delete_Row(p_line_id=>p_x_line_rec.line_id); 7363196
3892: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3893: p_x_line_rec.unit_list_price := NULL;
3894: p_x_line_rec.unit_list_price_per_pqty := NULL;
3895: End if;
3896:

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

3893: p_x_line_rec.unit_list_price := NULL;
3894: p_x_line_rec.unit_list_price_per_pqty := NULL;
3895: End if;
3896:
3897: OE_GLOBALS.G_TAX_FLAG := 'Y';
3898: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3899: -- Additional task : Log Verify Payment always when the payment Type
3900: -- code is not CREDIT CARD. For CREDIT CARD, log this request only if
3901: -- the Unit Selling Price has increased.

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

3894: p_x_line_rec.unit_list_price_per_pqty := NULL;
3895: End if;
3896:
3897: OE_GLOBALS.G_TAX_FLAG := 'Y';
3898: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
3899: -- Additional task : Log Verify Payment always when the payment Type
3900: -- code is not CREDIT CARD. For CREDIT CARD, log this request only if
3901: -- the Unit Selling Price has increased.
3902:

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

3948: END IF;
3949:
3950: /* csheu -- bug #1533658 S*/
3951:
3952: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_date,p_old_line_rec.service_start_date)
3953:
3954: THEN
3955: -- Call Pricing
3956: if l_debug_level > 0 then

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

3955: -- Call Pricing
3956: if l_debug_level > 0 then
3957: oe_debug_pub.add('CSH- service start_date is changed');
3958: end if;
3959: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3960: l_copy_service_fields := TRUE;
3961:
3962: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3963: l_get_commitment_bal := 'Y';

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

3979: --BUG#12542895
3980: END IF;
3981:
3982:
3983: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_date,p_old_line_rec.service_end_date)
3984:
3985: THEN
3986: if l_debug_level > 0 then
3987: oe_debug_pub.add('CSH- service end_date is changed');

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

3986: if l_debug_level > 0 then
3987: oe_debug_pub.add('CSH- service end_date is changed');
3988: end if;
3989: -- Call Pricing
3990: OE_GLOBALS.G_PRICE_FLAG := 'Y';
3991: l_copy_service_fields := TRUE;
3992:
3993: IF p_x_line_rec.commitment_id IS NOT NULL THEN
3994: l_get_commitment_bal := 'Y';

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

4011: END IF;
4012:
4013: /* csheu -- bug #1533658 E*/
4014:
4015: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration)
4016:
4017: THEN
4018: -- Call Pricing
4019: OE_GLOBALS.G_PRICE_FLAG := 'Y';

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

4015: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration)
4016:
4017: THEN
4018: -- Call Pricing
4019: OE_GLOBALS.G_PRICE_FLAG := 'Y';
4020: /* csheu -- bug #1533658 s*/
4021: if l_debug_level > 0 then
4022: oe_debug_pub.add('CSH- service duration is changed');
4023: end if;

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

4043: END IF;
4044: --BUG#12542895
4045: END IF;
4046:
4047: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period)
4048: THEN
4049: -- Reprice the Line
4050: OE_GLOBALS.G_PRICE_FLAG := 'Y';
4051:

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

4046:
4047: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period)
4048: THEN
4049: -- Reprice the Line
4050: OE_GLOBALS.G_PRICE_FLAG := 'Y';
4051:
4052: IF p_x_line_rec.commitment_id IS NOT NULL THEN
4053: l_get_commitment_bal := 'Y';
4054: END IF;

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

4075: END IF;
4076: --BUG#12542895
4077: END IF;
4078:
4079: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_reference_line_id,p_old_line_rec.service_reference_line_id)
4080:
4081: THEN
4082: if l_debug_level > 0 then
4083: oe_debug_pub.add('JPN: line id is: ' || to_char(p_x_line_rec.line_id));

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

4128: END IF; /* source_document_type_id */
4129:
4130: /* hashraf bug # 2757859 */
4131:
4132: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) THEN
4133: OE_GLOBALS.G_PRICE_FLAG := 'Y';
4134: END IF;
4135:
4136: /* end of 2757859 */

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

4129:
4130: /* hashraf bug # 2757859 */
4131:
4132: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) THEN
4133: OE_GLOBALS.G_PRICE_FLAG := 'Y';
4134: END IF;
4135:
4136: /* end of 2757859 */
4137:

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

4191: oe_debug_pub.add('Split from line:' || p_x_line_rec.split_from_line_id);
4192: end if;
4193:
4194: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
4195: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
4196: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
4197: p_x_line_rec.split_from_line_id is NOT NULL)) then
4198:
4199:

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

4192: end if;
4193:
4194: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
4195: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
4196: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
4197: p_x_line_rec.split_from_line_id is NOT NULL)) then
4198:
4199:
4200: IF p_x_line_rec.service_reference_type_code = 'ORDER' and

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

4198:
4199:
4200: IF p_x_line_rec.service_reference_type_code = 'ORDER' and
4201: p_x_line_rec.service_reference_line_id is NOT NULL and
4202: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or
4203: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and
4204: l_is_model = 'Y' THEN
4205: --bug 16848168 changes
4206: BEGIN

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

4199:
4200: IF p_x_line_rec.service_reference_type_code = 'ORDER' and
4201: p_x_line_rec.service_reference_line_id is NOT NULL and
4202: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE or
4203: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) and
4204: l_is_model = 'Y' THEN
4205: --bug 16848168 changes
4206: BEGIN
4207: oe_debug_pub.ADD('p_x_line_rec.service_reference_line_id : '||p_x_line_rec.service_reference_line_id,1);

Line 4235: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4231: oe_debug_pub.ADD('l_prg is '||l_prg);
4232: IF l_prg = 'N' THEN
4233:
4234: OE_Delayed_Requests_Pvt.log_request(
4235: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4236: p_entity_id => p_x_line_rec.line_id,
4237: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4238: p_requesting_entity_id => p_x_line_rec.line_id,
4239: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,

Line 4237: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4233:
4234: OE_Delayed_Requests_Pvt.log_request(
4235: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4236: p_entity_id => p_x_line_rec.line_id,
4237: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4238: p_requesting_entity_id => p_x_line_rec.line_id,
4239: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,
4240: x_return_status => l_return_status);
4241:

Line 4239: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,

4235: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4236: p_entity_id => p_x_line_rec.line_id,
4237: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4238: p_requesting_entity_id => p_x_line_rec.line_id,
4239: p_request_type => OE_GLOBALS.G_INSERT_SERVICE,
4240: x_return_status => l_return_status);
4241:
4242: ELSE
4243:

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

4260: p_x_line_rec.item_type_code = 'INCLUDED' OR
4261: p_x_line_rec.item_type_code = 'KIT' ) and p_x_line_rec.top_model_line_id is NOT NULL then
4262:
4263: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
4264: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
4265: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
4266: p_x_line_rec.split_from_line_id is NOT NULL)) then
4267:
4268: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

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

4261: p_x_line_rec.item_type_code = 'KIT' ) and p_x_line_rec.top_model_line_id is NOT NULL then
4262:
4263: IF NOT (( NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
4264: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
4265: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
4266: p_x_line_rec.split_from_line_id is NOT NULL)) then
4267:
4268: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
4269: THEN

Line 4268: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

4264: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) or
4265: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE and
4266: p_x_line_rec.split_from_line_id is NOT NULL)) then
4267:
4268: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
4269: THEN
4270: if l_debug_level > 0 then
4271: oe_debug_pub.ADD('operation : '|| p_x_line_rec.operation);
4272: oe_debug_pub.ADD('inventory_item_id : '|| p_x_line_rec.inventory_item_id);

Line 4317: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4313: if l_debug_level > 0 then
4314: oe_debug_pub.add('Before log delayed request -- G_CASCADE_OPTIONS_SERVICE',1);
4315: end if;
4316: OE_Delayed_Requests_Pvt.log_request(
4317: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4318: p_entity_id => p_x_line_rec.line_id,
4319: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4320: p_requesting_entity_id => p_x_line_rec.line_id,
4321: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,

Line 4319: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4315: end if;
4316: OE_Delayed_Requests_Pvt.log_request(
4317: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4318: p_entity_id => p_x_line_rec.line_id,
4319: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4320: p_requesting_entity_id => p_x_line_rec.line_id,
4321: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,
4322: x_return_status => l_return_status);
4323:

Line 4321: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,

4317: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4318: p_entity_id => p_x_line_rec.line_id,
4319: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4320: p_requesting_entity_id => p_x_line_rec.line_id,
4321: p_request_type => OE_GLOBALS.G_CASCADE_OPTIONS_SERVICE,
4322: x_return_status => l_return_status);
4323:
4324: END IF; /* delayed request -- G_CASCADE_OPTIONS_SERVICE */
4325: END IF; /*l_serviceable_item = 'Y' */

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

4332: /*lchen -- bug #1761154 end*/
4333:
4334: /* End of service related columns */
4335:
4336: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_instructions,p_old_line_rec.shipping_instructions)
4337: THEN
4338: -- Need to Call Shipping Update
4339: l_update_shipping := FND_API.G_TRUE;
4340: END IF;

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

4338: -- Need to Call Shipping Update
4339: l_update_shipping := FND_API.G_TRUE;
4340: END IF;
4341:
4342: IF NOT OE_GLOBALS.Equal(p_x_line_rec.packing_instructions,p_old_line_rec.packing_instructions)
4343: THEN
4344: -- Need to Call Shipping Update
4345: l_update_shipping := FND_API.G_TRUE;
4346: END IF;

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

4346: END IF;
4347:
4348: -- Added for the bug 2939731
4349:
4350: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_item_id,p_old_line_rec.ordered_item_id)
4351: THEN
4352: -- Need to Call Shipping Update
4353: l_update_shipping := FND_API.G_TRUE;
4354: END IF;

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

4355:
4356:
4357: -- adding check for changes in project/task
4358:
4359: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
4360: THEN
4361: -- Need to Call Shipping Update
4362: l_update_shipping := FND_API.G_TRUE;
4363: END IF;

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

4362: l_update_shipping := FND_API.G_TRUE;
4363: END IF;
4364:
4365:
4366: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
4367: THEN
4368: -- Need to Call Shipping Update
4369: l_update_shipping := FND_API.G_TRUE;
4370: END IF;

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

4370: END IF;
4371:
4372:
4373: --ER#7479609 start
4374: IF NOT OE_GLOBALS.Equal(p_x_line_rec.created_by,p_old_line_rec.created_by)
4375: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4376: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4377: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4378: THEN

Line 4375: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4371:
4372:
4373: --ER#7479609 start
4374: IF NOT OE_GLOBALS.Equal(p_x_line_rec.created_by,p_old_line_rec.created_by)
4375: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4376: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4377: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4378: THEN
4379: IF l_debug_level > 0 then

Line 4386: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4382: ' Entity ID: '|| to_char(p_x_line_rec.created_by));
4383: END IF;
4384:
4385: OE_delayed_requests_Pvt.log_request(
4386: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4387: p_entity_id => p_x_line_rec.line_id,
4388: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4389: p_requesting_entity_id => p_x_line_rec.line_id,
4390: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4388: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4384:
4385: OE_delayed_requests_Pvt.log_request(
4386: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4387: p_entity_id => p_x_line_rec.line_id,
4388: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4389: p_requesting_entity_id => p_x_line_rec.line_id,
4390: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4391: p_request_unique_key1 => 'CREATED_BY',
4392: p_param1 => 'CB',

Line 4390: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4386: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4387: p_entity_id => p_x_line_rec.line_id,
4388: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4389: p_requesting_entity_id => p_x_line_rec.line_id,
4390: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4391: p_request_unique_key1 => 'CREATED_BY',
4392: p_param1 => 'CB',
4393: p_param2 => p_x_line_rec.created_by,
4394: x_return_status => l_return_status);

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

4393: p_param2 => p_x_line_rec.created_by,
4394: x_return_status => l_return_status);
4395: END IF;
4396:
4397: IF NOT OE_GLOBALS.Equal(p_x_line_rec.creation_date,p_old_line_rec.creation_date)
4398: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4399: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4400: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4401: THEN

Line 4398: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4394: x_return_status => l_return_status);
4395: END IF;
4396:
4397: IF NOT OE_GLOBALS.Equal(p_x_line_rec.creation_date,p_old_line_rec.creation_date)
4398: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4399: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4400: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4401: THEN
4402: IF l_debug_level > 0 then

Line 4409: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4405: ' Entity ID: '|| to_char(p_x_line_rec.creation_date));
4406: END IF;
4407:
4408: OE_delayed_requests_Pvt.log_request(
4409: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4410: p_entity_id => p_x_line_rec.line_id,
4411: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4412: p_requesting_entity_id => p_x_line_rec.line_id,
4413: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4411: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4407:
4408: OE_delayed_requests_Pvt.log_request(
4409: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4410: p_entity_id => p_x_line_rec.line_id,
4411: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4412: p_requesting_entity_id => p_x_line_rec.line_id,
4413: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4414: p_request_unique_key1 => 'CREATION_DATE',
4415: p_param1 => 'CD',

Line 4413: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4409: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4410: p_entity_id => p_x_line_rec.line_id,
4411: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4412: p_requesting_entity_id => p_x_line_rec.line_id,
4413: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4414: p_request_unique_key1 => 'CREATION_DATE',
4415: p_param1 => 'CD',
4416: p_param2 => p_x_line_rec.creation_date,
4417: x_return_status => l_return_status);

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

4416: p_param2 => p_x_line_rec.creation_date,
4417: x_return_status => l_return_status);
4418: END IF;
4419:
4420: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
4421: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4422: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4423: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4424: THEN

Line 4421: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4417: x_return_status => l_return_status);
4418: END IF;
4419:
4420: IF NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,p_old_line_rec.sold_to_org_id)
4421: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4422: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4423: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4424: THEN
4425: IF l_debug_level > 0 then

Line 4432: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4428: ' Entity ID: '|| to_char(p_x_line_rec.sold_to_org_id));
4429: END IF;
4430:
4431: OE_delayed_requests_Pvt.log_request(
4432: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4433: p_entity_id => p_x_line_rec.line_id,
4434: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4435: p_requesting_entity_id => p_x_line_rec.line_id,
4436: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4434: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4430:
4431: OE_delayed_requests_Pvt.log_request(
4432: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4433: p_entity_id => p_x_line_rec.line_id,
4434: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4435: p_requesting_entity_id => p_x_line_rec.line_id,
4436: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4437: p_request_unique_key1 => 'CUSTOMER',
4438: p_param1 => 'C',

Line 4436: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4432: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4433: p_entity_id => p_x_line_rec.line_id,
4434: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4435: p_requesting_entity_id => p_x_line_rec.line_id,
4436: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4437: p_request_unique_key1 => 'CUSTOMER',
4438: p_param1 => 'C',
4439: p_param2 => p_x_line_rec.sold_to_org_id,
4440: x_return_status => l_return_status);

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

4439: p_param2 => p_x_line_rec.sold_to_org_id,
4440: x_return_status => l_return_status);
4441: END IF;
4442:
4443: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
4444: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4445: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4446: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4447: THEN

Line 4444: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4440: x_return_status => l_return_status);
4441: END IF;
4442:
4443: IF NOT OE_GLOBALS.Equal(p_x_line_rec.deliver_to_org_id,p_old_line_rec.deliver_to_org_id)
4444: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4445: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4446: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4447: THEN
4448: IF l_debug_level > 0 then

Line 4455: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4451: ' Entity ID: '|| to_char(p_x_line_rec.deliver_to_org_id));
4452: END IF;
4453:
4454: OE_delayed_requests_Pvt.log_request(
4455: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4456: p_entity_id => p_x_line_rec.line_id,
4457: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4458: p_requesting_entity_id => p_x_line_rec.line_id,
4459: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4457: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4453:
4454: OE_delayed_requests_Pvt.log_request(
4455: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4456: p_entity_id => p_x_line_rec.line_id,
4457: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4458: p_requesting_entity_id => p_x_line_rec.line_id,
4459: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4460: p_request_unique_key1 => 'DELIVER_TO',
4461: p_param1 => 'D',

Line 4459: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4455: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4456: p_entity_id => p_x_line_rec.line_id,
4457: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4458: p_requesting_entity_id => p_x_line_rec.line_id,
4459: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4460: p_request_unique_key1 => 'DELIVER_TO',
4461: p_param1 => 'D',
4462: p_param2 => p_x_line_rec.deliver_to_org_id,
4463: x_return_status => l_return_status);

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

4462: p_param2 => p_x_line_rec.deliver_to_org_id,
4463: x_return_status => l_return_status);
4464: END IF;
4465:
4466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
4467: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4468: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4469: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4470: THEN

Line 4467: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4463: x_return_status => l_return_status);
4464: END IF;
4465:
4466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.line_type_id,p_old_line_rec.line_type_id)
4467: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4468: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4469: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4470: THEN
4471: IF l_debug_level > 0 then

Line 4478: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4474: ' Entity ID: '|| to_char(p_x_line_rec.line_type_id));
4475: END IF;
4476:
4477: OE_delayed_requests_Pvt.log_request(
4478: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4479: p_entity_id => p_x_line_rec.line_id,
4480: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4481: p_requesting_entity_id => p_x_line_rec.line_id,
4482: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4480: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4476:
4477: OE_delayed_requests_Pvt.log_request(
4478: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4479: p_entity_id => p_x_line_rec.line_id,
4480: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4481: p_requesting_entity_id => p_x_line_rec.line_id,
4482: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4483: p_request_unique_key1 => 'LINE_TYPE',
4484: p_param1 => 'LT',

Line 4482: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4478: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4479: p_entity_id => p_x_line_rec.line_id,
4480: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4481: p_requesting_entity_id => p_x_line_rec.line_id,
4482: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4483: p_request_unique_key1 => 'LINE_TYPE',
4484: p_param1 => 'LT',
4485: p_param2 => p_x_line_rec.line_type_id,
4486: x_return_status => l_return_status);

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

4485: p_param2 => p_x_line_rec.line_type_id,
4486: x_return_status => l_return_status);
4487: END IF;
4488:
4489: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
4490: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4491: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4492: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4493: THEN

Line 4490: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4486: x_return_status => l_return_status);
4487: END IF;
4488:
4489: IF NOT OE_GLOBALS.Equal(p_x_line_rec.payment_term_id,p_old_line_rec.payment_term_id)
4490: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4491: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4492: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4493: THEN
4494: IF l_debug_level > 0 then

Line 4501: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4497: ' Entity ID: '|| to_char(p_x_line_rec.payment_term_id));
4498: END IF;
4499:
4500: OE_delayed_requests_Pvt.log_request(
4501: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4502: p_entity_id => p_x_line_rec.line_id,
4503: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4504: p_requesting_entity_id => p_x_line_rec.line_id,
4505: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4503: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4499:
4500: OE_delayed_requests_Pvt.log_request(
4501: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4502: p_entity_id => p_x_line_rec.line_id,
4503: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4504: p_requesting_entity_id => p_x_line_rec.line_id,
4505: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4506: p_request_unique_key1 => 'TERM',
4507: p_param1 => 'PT',

Line 4505: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4501: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4502: p_entity_id => p_x_line_rec.line_id,
4503: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4504: p_requesting_entity_id => p_x_line_rec.line_id,
4505: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4506: p_request_unique_key1 => 'TERM',
4507: p_param1 => 'PT',
4508: p_param2 => p_x_line_rec.payment_term_id,
4509: x_return_status => l_return_status);

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

4508: p_param2 => p_x_line_rec.payment_term_id,
4509: x_return_status => l_return_status);
4510: END IF;
4511:
4512: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
4513: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4514: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4515: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4516: THEN

Line 4513: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4509: x_return_status => l_return_status);
4510: END IF;
4511:
4512: IF NOT OE_GLOBALS.Equal(p_x_line_rec.price_list_id,p_old_line_rec.price_list_id)
4513: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4514: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4515: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4516: THEN
4517: IF l_debug_level > 0 then

Line 4524: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4520: ' Entity ID: '|| to_char(p_x_line_rec.price_list_id));
4521: END IF;
4522:
4523: OE_delayed_requests_Pvt.log_request(
4524: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4525: p_entity_id => p_x_line_rec.line_id,
4526: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4527: p_requesting_entity_id => p_x_line_rec.line_id,
4528: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4526: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4522:
4523: OE_delayed_requests_Pvt.log_request(
4524: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4525: p_entity_id => p_x_line_rec.line_id,
4526: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4527: p_requesting_entity_id => p_x_line_rec.line_id,
4528: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4529: p_request_unique_key1 => 'PRICE_LIST',
4530: p_param1 => 'PL',

Line 4528: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4524: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4525: p_entity_id => p_x_line_rec.line_id,
4526: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4527: p_requesting_entity_id => p_x_line_rec.line_id,
4528: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4529: p_request_unique_key1 => 'PRICE_LIST',
4530: p_param1 => 'PL',
4531: p_param2 => p_x_line_rec.price_list_id,
4532: x_return_status => l_return_status);

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

4531: p_param2 => p_x_line_rec.price_list_id,
4532: x_return_status => l_return_status);
4533: END IF;
4534:
4535: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
4536: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4537: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4538: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4539: THEN

Line 4536: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4532: x_return_status => l_return_status);
4533: END IF;
4534:
4535: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id)
4536: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4537: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4538: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4539: THEN
4540: IF l_debug_level > 0 then

Line 4547: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4543: ' Entity ID: '|| to_char(p_x_line_rec.project_id));
4544: END IF;
4545:
4546: OE_delayed_requests_Pvt.log_request(
4547: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4548: p_entity_id => p_x_line_rec.line_id,
4549: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4550: p_requesting_entity_id => p_x_line_rec.line_id,
4551: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4549: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4545:
4546: OE_delayed_requests_Pvt.log_request(
4547: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4548: p_entity_id => p_x_line_rec.line_id,
4549: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4550: p_requesting_entity_id => p_x_line_rec.line_id,
4551: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4552: p_request_unique_key1 => 'PROJECT',
4553: p_param1 => 'PR',

Line 4551: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4547: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4548: p_entity_id => p_x_line_rec.line_id,
4549: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4550: p_requesting_entity_id => p_x_line_rec.line_id,
4551: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4552: p_request_unique_key1 => 'PROJECT',
4553: p_param1 => 'PR',
4554: p_param2 => p_x_line_rec.project_id,
4555: x_return_status => l_return_status);

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

4554: p_param2 => p_x_line_rec.project_id,
4555: x_return_status => l_return_status);
4556: END IF;
4557:
4558: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
4559: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4560: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4561: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4562: THEN

Line 4559: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4555: x_return_status => l_return_status);
4556: END IF;
4557:
4558: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code)
4559: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4560: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4561: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4562: THEN
4563: IF l_debug_level > 0 then

Line 4570: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4566: ' Entity ID: '|| to_char(p_x_line_rec.shipping_method_code));
4567: END IF;
4568:
4569: OE_delayed_requests_Pvt.log_request(
4570: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4571: p_entity_id => p_x_line_rec.line_id,
4572: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4573: p_requesting_entity_id => p_x_line_rec.line_id,
4574: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4572: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4568:
4569: OE_delayed_requests_Pvt.log_request(
4570: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4571: p_entity_id => p_x_line_rec.line_id,
4572: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4573: p_requesting_entity_id => p_x_line_rec.line_id,
4574: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4575: p_request_unique_key1 => 'SHIP_METHOD',
4576: p_param1 => 'SM',

Line 4574: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4570: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4571: p_entity_id => p_x_line_rec.line_id,
4572: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4573: p_requesting_entity_id => p_x_line_rec.line_id,
4574: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4575: p_request_unique_key1 => 'SHIP_METHOD',
4576: p_param1 => 'SM',
4577: p_param2 => p_x_line_rec.shipping_method_code,
4578: x_return_status => l_return_status);

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

4577: p_param2 => p_x_line_rec.shipping_method_code,
4578: x_return_status => l_return_status);
4579: END IF;
4580:
4581: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,p_old_line_rec.source_type_code)
4582: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4583: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4584: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4585: THEN

Line 4582: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4578: x_return_status => l_return_status);
4579: END IF;
4580:
4581: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,p_old_line_rec.source_type_code)
4582: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4583: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4584: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4585: THEN
4586: IF l_debug_level > 0 then

Line 4593: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4589: ' Entity ID: '|| to_char(p_x_line_rec.source_type_code));
4590: END IF;
4591:
4592: OE_delayed_requests_Pvt.log_request(
4593: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4594: p_entity_id => p_x_line_rec.line_id,
4595: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4596: p_requesting_entity_id => p_x_line_rec.line_id,
4597: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4595: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4591:
4592: OE_delayed_requests_Pvt.log_request(
4593: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4594: p_entity_id => p_x_line_rec.line_id,
4595: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4596: p_requesting_entity_id => p_x_line_rec.line_id,
4597: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4598: p_request_unique_key1 => 'SOURCE_TYPE',
4599: p_param1 => 'ST',

Line 4597: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4593: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4594: p_entity_id => p_x_line_rec.line_id,
4595: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4596: p_requesting_entity_id => p_x_line_rec.line_id,
4597: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4598: p_request_unique_key1 => 'SOURCE_TYPE',
4599: p_param1 => 'ST',
4600: p_param2 => p_x_line_rec.source_type_code,
4601: x_return_status => l_return_status);

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

4600: p_param2 => p_x_line_rec.source_type_code,
4601: x_return_status => l_return_status);
4602: END IF;
4603:
4604: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
4605: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4606: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4607: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4608: THEN

Line 4605: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4601: x_return_status => l_return_status);
4602: END IF;
4603:
4604: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
4605: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4606: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4607: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4608: THEN
4609: IF l_debug_level > 0 then

Line 4616: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4612: ' Entity ID: '|| to_char(p_x_line_rec.task_id));
4613: END IF;
4614:
4615: OE_delayed_requests_Pvt.log_request(
4616: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4617: p_entity_id => p_x_line_rec.line_id,
4618: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4619: p_requesting_entity_id => p_x_line_rec.line_id,
4620: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4618: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4614:
4615: OE_delayed_requests_Pvt.log_request(
4616: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4617: p_entity_id => p_x_line_rec.line_id,
4618: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4619: p_requesting_entity_id => p_x_line_rec.line_id,
4620: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4621: p_request_unique_key1 => 'TASK',
4622: p_param1 => 'T',

Line 4620: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4616: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4617: p_entity_id => p_x_line_rec.line_id,
4618: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4619: p_requesting_entity_id => p_x_line_rec.line_id,
4620: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4621: p_request_unique_key1 => 'TASK',
4622: p_param1 => 'T',
4623: p_param2 => p_x_line_rec.task_id,
4624: x_return_status => l_return_status);

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

4623: p_param2 => p_x_line_rec.task_id,
4624: x_return_status => l_return_status);
4625: END IF;
4626:
4627: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
4628: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4629: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4630: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4631: THEN

Line 4628: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4624: x_return_status => l_return_status);
4625: END IF;
4626:
4627: IF NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id)
4628: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4629: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4630: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4631: THEN
4632: IF l_debug_level > 0 then

Line 4639: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4635: ' Entity ID: '|| to_char(p_x_line_rec.inventory_item_id));
4636: END IF;
4637:
4638: OE_delayed_requests_Pvt.log_request(
4639: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4640: p_entity_id => p_x_line_rec.line_id,
4641: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4642: p_requesting_entity_id => p_x_line_rec.line_id,
4643: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4641: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4637:
4638: OE_delayed_requests_Pvt.log_request(
4639: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4640: p_entity_id => p_x_line_rec.line_id,
4641: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4642: p_requesting_entity_id => p_x_line_rec.line_id,
4643: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4644: p_request_unique_key1 => 'TOP_MODEL',
4645: p_param1 => 'TM',

Line 4643: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4639: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4640: p_entity_id => p_x_line_rec.line_id,
4641: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4642: p_requesting_entity_id => p_x_line_rec.line_id,
4643: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4644: p_request_unique_key1 => 'TOP_MODEL',
4645: p_param1 => 'TM',
4646: p_param2 => p_x_line_rec.inventory_item_id,
4647: x_return_status => l_return_status);

Line 4654: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_id,p_old_line_rec.end_customer_id)

4650:
4651: --ER#7479609 end
4652:
4653: --ER 12571983 start
4654: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_id,p_old_line_rec.end_customer_id)
4655: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4656: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4657: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F' THEN
4658:

Line 4655: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4651: --ER#7479609 end
4652:
4653: --ER 12571983 start
4654: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_id,p_old_line_rec.end_customer_id)
4655: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4656: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4657: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F' THEN
4658:
4659: IF l_debug_level > 0 THEN

Line 4666: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4662: ' Entity ID: '|| TO_CHAR(p_x_line_rec.end_customer_id));
4663: END IF;
4664:
4665: OE_delayed_requests_Pvt.log_request(
4666: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4667: p_entity_id => p_x_line_rec.line_id,
4668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4669: p_requesting_entity_id => p_x_line_rec.line_id,
4670: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4664:
4665: OE_delayed_requests_Pvt.log_request(
4666: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4667: p_entity_id => p_x_line_rec.line_id,
4668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4669: p_requesting_entity_id => p_x_line_rec.line_id,
4670: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4671: p_request_unique_key1 => 'END_CUSTOMER',
4672: p_param1 => 'EC',

Line 4670: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4666: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4667: p_entity_id => p_x_line_rec.line_id,
4668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4669: p_requesting_entity_id => p_x_line_rec.line_id,
4670: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4671: p_request_unique_key1 => 'END_CUSTOMER',
4672: p_param1 => 'EC',
4673: p_param2 => p_x_line_rec.end_customer_id,
4674: x_return_status => l_return_status);

Line 4676: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_site_use_id,p_old_line_rec.end_customer_site_use_id)

4672: p_param1 => 'EC',
4673: p_param2 => p_x_line_rec.end_customer_id,
4674: x_return_status => l_return_status);
4675: END IF;
4676: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_site_use_id,p_old_line_rec.end_customer_site_use_id)
4677: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4678: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4679: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F' THEN
4680:

Line 4677: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4673: p_param2 => p_x_line_rec.end_customer_id,
4674: x_return_status => l_return_status);
4675: END IF;
4676: IF NOT OE_GLOBALS.Equal(p_x_line_rec.end_customer_site_use_id,p_old_line_rec.end_customer_site_use_id)
4677: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4678: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4679: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F' THEN
4680:
4681: IF l_debug_level > 0 THEN

Line 4688: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4684: ' Entity ID: '|| TO_CHAR(p_x_line_rec.end_customer_site_use_id));
4685: END IF;
4686:
4687: OE_delayed_requests_Pvt.log_request(
4688: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4689: p_entity_id => p_x_line_rec.line_id,
4690: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4691: p_requesting_entity_id => p_x_line_rec.line_id,
4692: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4690: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4686:
4687: OE_delayed_requests_Pvt.log_request(
4688: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4689: p_entity_id => p_x_line_rec.line_id,
4690: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4691: p_requesting_entity_id => p_x_line_rec.line_id,
4692: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4693: p_request_unique_key1 => 'END_CUSTOMER_LOCATION',
4694: p_param1 => 'EL',

Line 4692: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4688: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4689: p_entity_id => p_x_line_rec.line_id,
4690: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4691: p_requesting_entity_id => p_x_line_rec.line_id,
4692: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4693: p_request_unique_key1 => 'END_CUSTOMER_LOCATION',
4694: p_param1 => 'EL',
4695: p_param2 => p_x_line_rec.end_customer_site_use_id,
4696: x_return_status => l_return_status);

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

4698: --ER 12571983 end
4699:
4700: --ER 3667551 start
4701: -- only if system parameter is set to BTL then processing for BTL case needs to be done
4702: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
4703: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4704: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4705: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4706: AND l_credithold_cust ='BTL' THEN

Line 4703: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

4699:
4700: --ER 3667551 start
4701: -- only if system parameter is set to BTL then processing for BTL case needs to be done
4702: IF NOT OE_GLOBALS.Equal(p_x_line_rec.invoice_to_org_id,p_old_line_rec.invoice_to_org_id)
4703: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
4704: AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT'
4705: AND NVL(p_x_line_rec.transaction_phase_code,'F') = 'F'
4706: AND l_credithold_cust ='BTL' THEN
4707:

Line 4719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4715: ' Entity ID: '|| TO_CHAR(l_bill_to_cust_id));
4716: END IF;
4717:
4718: OE_delayed_requests_Pvt.log_request(
4719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4720: p_entity_id => p_x_line_rec.line_id,
4721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4722: p_requesting_entity_id => p_x_line_rec.line_id,
4723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

Line 4721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4717:
4718: OE_delayed_requests_Pvt.log_request(
4719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4720: p_entity_id => p_x_line_rec.line_id,
4721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4722: p_requesting_entity_id => p_x_line_rec.line_id,
4723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4724: p_request_unique_key1 => 'BILL_TO_CUSTOMER',
4725: p_param1 => 'BTL',

Line 4723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,

4719: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4720: p_entity_id => p_x_line_rec.line_id,
4721: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4722: p_requesting_entity_id => p_x_line_rec.line_id,
4723: p_request_type => OE_GLOBALS.G_EVAL_HOLD_SOURCE,
4724: p_request_unique_key1 => 'BILL_TO_CUSTOMER',
4725: p_param1 => 'BTL',
4726: p_param2 => l_bill_to_cust_id,
4727: x_return_status => l_return_status);

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

4728: END IF;
4729: --ER 3667551 end
4730:
4731: -- bug 1829201, commitment related change.
4732: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,p_old_line_rec.commitment_id)
4733: THEN
4734:
4735: l_calculate_commitment_flag := 'Y';
4736: OE_GLOBALS.G_TAX_FLAG := 'Y';

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

4732: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,p_old_line_rec.commitment_id)
4733: THEN
4734:
4735: l_calculate_commitment_flag := 'Y';
4736: OE_GLOBALS.G_TAX_FLAG := 'Y';
4737:
4738: -- log delayed request for Verify_Payment.
4739: if l_debug_level > 0 then
4740: oe_debug_pub.add('log verify payment delayed request for change in commitment_id', 3);

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

4742: l_verify_payment_flag := 'Y';
4743: OE_CREDIT_ENGINE_GRP.TOLERANCE_CHECK_REQUIRED := FALSE; --ER 12363706
4744: END IF;
4745:
4746: IF NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_applied_amount,p_old_line_rec.commitment_applied_amount)
4747: AND OE_Commitment_Pvt.Do_Commitment_Sequencing
4748: AND oe_code_control.code_release_level >= '110510'
4749: AND p_x_line_rec.commitment_id IS NOT NULL
4750: THEN

Line 4763: NOT OE_GLOBALS.Equal(p_x_line_rec.transaction_phase_code

4759: -- updated during complete negotiation WF activity
4760: IF
4761: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
4762: AND
4763: NOT OE_GLOBALS.Equal(p_x_line_rec.transaction_phase_code
4764: ,p_old_line_rec.transaction_phase_code)
4765: THEN
4766:
4767: -- NOTE: Evaluate Hold Source Requests will be directly executed

Line 4781: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND

4777: if l_debug_level > 0 then
4778: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
4779: end if;
4780:
4781: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4782: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4783: p_x_line_rec.ato_line_id is NULL AND
4784: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4785: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND

Line 4782: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

4778: oe_debug_pub.ADD('Freeze method is :' || l_freeze_method,2);
4779: end if;
4780:
4781: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4782: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4783: p_x_line_rec.ato_line_id is NULL AND
4784: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4785: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4786: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))

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

4780:
4781: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4782: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4783: p_x_line_rec.ato_line_id is NULL AND
4784: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4785: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4786: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
4787: THEN
4788: p_x_line_rec.explosion_date := null;

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

4781: IF l_freeze_method = OE_GLOBALS.G_IIFM_ENTRY AND
4782: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
4783: p_x_line_rec.ato_line_id is NULL AND
4784: ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
4785: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
4786: p_x_line_rec.line_id = p_x_line_rec.top_model_line_id))
4787: THEN
4788: p_x_line_rec.explosion_date := null;
4789: l_count := l_count + 1;

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

4802: -- QUOTING changes: END
4803:
4804: --Customer Acceptance:: Log delayed request to default contingency attributes
4805:
4806: IF NOT OE_GLOBALS.Equal(p_x_line_rec.contingency_id,p_old_line_rec.contingency_id)
4807: THEN
4808: --Customer Acceptance
4809: l_def_contingency_attributes := FND_API.G_TRUE;
4810: END IF;

Line 4817: p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE)

4813: 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);
4814: END IF;
4815: IF NVL(OE_SYS_PARAMETERS.VALUE('ENABLE_FULFILLMENT_ACCEPTANCE'), 'N') = 'Y'
4816: AND (NVL( p_x_line_rec.booked_flag, 'N') = 'N' OR
4817: p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE)
4818: AND l_def_contingency_attributes = FND_API.G_TRUE
4819: AND p_x_line_rec.inventory_item_id IS NOT NULL
4820: AND p_x_line_rec.inventory_item_id <> FND_API.G_MISS_NUM
4821: AND p_x_line_rec.line_type_id IS NOT NULL

Line 4830: (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

4826: p_x_line_rec.source_document_type_id = 10 OR
4827: (p_x_line_rec.order_source_id=27 AND p_x_line_rec.retrobill_request_id IS NOT NULL) OR
4828: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4829: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4830: (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
4831: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4832: (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
4833: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4834: IF l_debug_level > 0 THEN

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

4827: (p_x_line_rec.order_source_id=27 AND p_x_line_rec.retrobill_request_id IS NOT NULL) OR
4828: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4829: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4830: (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
4831: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4832: (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
4833: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4834: IF l_debug_level > 0 THEN
4835: oe_debug_pub.add('Item_type_code:'||p_x_line_rec.item_type_code||'-Do not default Contingency Attributes for this line' );

Line 4832: (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

4828: (p_x_line_rec.item_type_code IN ('CONFIG', 'SERVICE', 'CLASS', 'OPTION', 'INCLUDED')) OR
4829: (p_x_line_rec.item_type_code='KIT' AND p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id) OR
4830: (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
4831: (p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE AND p_x_line_rec.split_from_line_id IS NOT NULL) OR
4832: (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
4833: NVL(p_x_line_rec.transaction_phase_code, 'F') = 'N') THEN
4834: IF l_debug_level > 0 THEN
4835: oe_debug_pub.add('Item_type_code:'||p_x_line_rec.item_type_code||'-Do not default Contingency Attributes for this line' );
4836: END IF;

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

4845: , p_shippable_flag => p_x_line_rec.shippable_flag
4846: , p_org_id => p_x_line_rec.org_id
4847: , p_accounting_rule_id => p_x_line_rec.accounting_rule_id
4848: , p_ship_to_org_id => p_x_line_rec.ship_to_org_id --For Bug#8262992
4849: , p_operation => OE_GLOBALS.G_OPR_DELETE);
4850:
4851: ELSE
4852:
4853: OE_ACCEPTANCE_UTIL.Register_Changed_Lines(

Line 4868: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4864: , p_operation => p_x_line_rec.operation);
4865:
4866: /** Logic to Default Contingency attributes**/
4867: oe_delayed_requests_pvt.log_request(
4868: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4869: p_entity_id => p_x_line_rec.header_id,
4870: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4871: p_requesting_entity_id => p_x_line_rec.header_id,
4872: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,

Line 4870: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

4866: /** Logic to Default Contingency attributes**/
4867: oe_delayed_requests_pvt.log_request(
4868: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4869: p_entity_id => p_x_line_rec.header_id,
4870: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4871: p_requesting_entity_id => p_x_line_rec.header_id,
4872: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,
4873: x_return_status => l_return_status);
4874:

Line 4872: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,

4868: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4869: p_entity_id => p_x_line_rec.header_id,
4870: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
4871: p_requesting_entity_id => p_x_line_rec.header_id,
4872: p_request_type => OE_GLOBALS.G_DFLT_CONTINGENCY_ATTRIBUTES,
4873: x_return_status => l_return_status);
4874:
4875: END IF;
4876: END IF;

Line 4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR

4956: End If;
4957: IF (p_x_line_rec.service_bill_option_code = 'FPOM' AND NVL(p_x_line_rec.fulfilled_flag,'N') = 'N'
4958: AND (p_x_line_rec.item_type_code='SERVICE' OR NVL(p_x_line_rec.subscription_enable_flag,'N')='Y')
4959: AND(
4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR
4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR

Line 4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR

4957: IF (p_x_line_rec.service_bill_option_code = 'FPOM' AND NVL(p_x_line_rec.fulfilled_flag,'N') = 'N'
4958: AND (p_x_line_rec.item_type_code='SERVICE' OR NVL(p_x_line_rec.subscription_enable_flag,'N')='Y')
4959: AND(
4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR
4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR
4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)

Line 4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR

4958: AND (p_x_line_rec.item_type_code='SERVICE' OR NVL(p_x_line_rec.subscription_enable_flag,'N')='Y')
4959: AND(
4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR
4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR
4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)
4966: )

Line 4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR

4959: AND(
4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR
4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR
4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)
4966: )
4967: )

Line 4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR

4960: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) OR
4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR
4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)
4966: )
4967: )
4968: THEN

Line 4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)

4961: NOT OE_GLOBALS.Equal(p_x_line_rec.service_start_Date,p_old_line_rec.service_start_Date) OR
4962: NOT OE_GLOBALS.Equal(p_x_line_rec.service_end_Date,p_old_line_rec.service_end_Date) OR
4963: NOT OE_GLOBALS.Equal(p_x_line_rec.service_period,p_old_line_rec.service_period) OR
4964: NOT OE_GLOBALS.Equal(p_x_line_rec.service_duration,p_old_line_rec.service_duration) OR
4965: NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_profile_id,p_old_line_rec.service_bill_profile_id)
4966: )
4967: )
4968: THEN
4969: oe_delayed_requests_pvt.log_request(

Line 4970: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4966: )
4967: )
4968: THEN
4969: oe_delayed_requests_pvt.log_request(
4970: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4971: p_entity_id => p_x_line_rec.line_id,
4972: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4973: p_requesting_entity_id => p_x_line_rec.line_id,
4974: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 4972: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4968: THEN
4969: oe_delayed_requests_pvt.log_request(
4970: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4971: p_entity_id => p_x_line_rec.line_id,
4972: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4973: p_requesting_entity_id => p_x_line_rec.line_id,
4974: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
4975: p_request_unique_key1 => 'LINE',
4976: p_param1 => p_x_line_rec.line_id,

Line 4974: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

4970: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4971: p_entity_id => p_x_line_rec.line_id,
4972: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4973: p_requesting_entity_id => p_x_line_rec.line_id,
4974: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
4975: p_request_unique_key1 => 'LINE',
4976: p_param1 => p_x_line_rec.line_id,
4977: x_return_status => l_return_status);
4978: -- Billing Profile change needs payment to be logged

Line 4981: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) THEN

4977: x_return_status => l_return_status);
4978: -- Billing Profile change needs payment to be logged
4979: l_verify_payment_flag := 'Y';
4980: END IF;
4981: IF NOT OE_GLOBALS.Equal(p_x_line_rec.service_bill_option_code,p_old_line_rec.service_bill_option_code) THEN
4982: l_verify_payment_flag := 'Y';
4983: END IF;
4984: -- For Subscription Template change log Price Line
4985: If NVL(p_x_line_rec.subscription_enable_flag,'N')='Y' AND

Line 4986: NOT OE_GLOBALS.Equal(p_x_line_rec.service_subs_template_id,p_old_line_rec.service_subs_template_id)

4982: l_verify_payment_flag := 'Y';
4983: END IF;
4984: -- For Subscription Template change log Price Line
4985: If NVL(p_x_line_rec.subscription_enable_flag,'N')='Y' AND
4986: NOT OE_GLOBALS.Equal(p_x_line_rec.service_subs_template_id,p_old_line_rec.service_subs_template_id)
4987: THEN
4988: IF l_debug_level > 0 THEN
4989: oe_debug_pub.add(' Subscription Template changed, Logging Price Line for line_id = '||p_x_line_rec.line_id);
4990: End If;

Line 4992: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4988: IF l_debug_level > 0 THEN
4989: oe_debug_pub.add(' Subscription Template changed, Logging Price Line for line_id = '||p_x_line_rec.line_id);
4990: End If;
4991: OE_delayed_requests_Pvt.log_request(
4992: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4993: p_entity_id => p_x_line_rec.line_id,
4994: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4995: p_requesting_entity_id => p_x_line_rec.line_id,
4996: p_request_unique_key1 => 'LINE',

Line 4994: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4990: End If;
4991: OE_delayed_requests_Pvt.log_request(
4992: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4993: p_entity_id => p_x_line_rec.line_id,
4994: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
4995: p_requesting_entity_id => p_x_line_rec.line_id,
4996: p_request_unique_key1 => 'LINE',
4997: p_param1 => p_x_line_rec.header_id,
4998: p_param2 => 'LINE',

Line 4999: p_request_type => OE_GLOBALS.G_PRICE_LINE,

4995: p_requesting_entity_id => p_x_line_rec.line_id,
4996: p_request_unique_key1 => 'LINE',
4997: p_param1 => p_x_line_rec.header_id,
4998: p_param2 => 'LINE',
4999: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5000: x_return_status => l_return_status);
5001: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5002: oe_delayed_requests_pvt.log_request(
5003: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

Line 5003: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

4999: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5000: x_return_status => l_return_status);
5001: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5002: oe_delayed_requests_pvt.log_request(
5003: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5004: p_entity_id => p_x_line_rec.line_id,
5005: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5006: p_requesting_entity_id => p_x_line_rec.line_id,
5007: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 5005: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5001: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5002: oe_delayed_requests_pvt.log_request(
5003: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5004: p_entity_id => p_x_line_rec.line_id,
5005: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5006: p_requesting_entity_id => p_x_line_rec.line_id,
5007: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5008: p_request_unique_key1 => 'LINE',
5009: p_param1 => p_x_line_rec.line_id,

Line 5007: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

5003: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5004: p_entity_id => p_x_line_rec.line_id,
5005: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5006: p_requesting_entity_id => p_x_line_rec.line_id,
5007: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5008: p_request_unique_key1 => 'LINE',
5009: p_param1 => p_x_line_rec.line_id,
5010: x_return_status => l_return_status);
5011: End If;

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

5021: IF((p_x_line_rec.shipping_interfaced_flag = 'Y' OR
5022: (p_x_line_rec.shippable_flag = 'Y' AND p_x_line_rec.booked_flag = 'Y'
5023: AND Shipping_Interfaced_Status(p_x_line_rec.line_id) = 'Y')) AND
5024: (l_update_shipping = FND_API.G_TRUE OR l_explosion_date_changed = FND_API.G_TRUE) AND
5025: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND NVL(p_x_line_rec.split_action_code,'X') <> 'SPLIT')) THEN
5026:
5027: if l_debug_level > 0 then
5028: oe_debug_pub.ADD('Logging update shipping delayed request for line ID : '|| to_char(p_x_line_rec.line_id) ,1);
5029: end if;

Line 5032: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5028: oe_debug_pub.ADD('Logging update shipping delayed request for line ID : '|| to_char(p_x_line_rec.line_id) ,1);
5029: end if;
5030:
5031: OE_Delayed_Requests_Pvt.Log_Request(
5032: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5033: p_entity_id => p_x_line_rec.line_id,
5034: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5035: p_requesting_entity_id => p_x_line_rec.line_id,
5036: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 5034: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5030:
5031: OE_Delayed_Requests_Pvt.Log_Request(
5032: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5033: p_entity_id => p_x_line_rec.line_id,
5034: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5035: p_requesting_entity_id => p_x_line_rec.line_id,
5036: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
5037: p_request_unique_key1 => p_x_line_rec.operation,
5038: p_param1 => l_update_shipping,

Line 5036: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

5032: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5033: p_entity_id => p_x_line_rec.line_id,
5034: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5035: p_requesting_entity_id => p_x_line_rec.line_id,
5036: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
5037: p_request_unique_key1 => p_x_line_rec.operation,
5038: p_param1 => l_update_shipping,
5039: p_param2 => l_explosion_date_changed,
5040: p_param5 => l_ordered_quantity_changed,

Line 5045: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN

5041: x_return_status => l_return_status);
5042:
5043: END IF;
5044: /*Bug2848734 */
5045: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
5046: IF (p_x_line_rec.line_category_code = 'RETURN' and
5047: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
5048: p_x_line_rec.return_context IS NULL ) THEN
5049:

Line 5047: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and

5043: END IF;
5044: /*Bug2848734 */
5045: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
5046: IF (p_x_line_rec.line_category_code = 'RETURN' and
5047: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
5048: p_x_line_rec.return_context IS NULL ) THEN
5049:
5050: p_x_line_rec.reference_customer_trx_line_id := NULL;
5051: p_x_line_rec.credit_invoice_line_id := NULL;

Line 5063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,

5059: ------------------------------------------------------------------------
5060: -- Derive fulfillment_base
5061: ------------------------------------------------------------------------
5062:
5063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,
5064: p_old_line_rec.Inventory_Item_Id)
5065: OR NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
5066: p_old_line_rec.ship_from_org_id)
5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,

Line 5065: OR NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,

5061: ------------------------------------------------------------------------
5062:
5063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,
5064: p_old_line_rec.Inventory_Item_Id)
5065: OR NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
5066: p_old_line_rec.ship_from_org_id)
5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
5068: p_old_line_rec.order_quantity_uom)
5069: OR NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id ,

Line 5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,

5063: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,
5064: p_old_line_rec.Inventory_Item_Id)
5065: OR NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
5066: p_old_line_rec.ship_from_org_id)
5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
5068: p_old_line_rec.order_quantity_uom)
5069: OR NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id ,
5070: p_old_line_rec.reference_line_id)
5071: OR NOT OE_GLOBALS.Equal(p_x_line_rec.fulfillment_base , --added for bug#16547287

Line 5069: OR NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id ,

5065: OR NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
5066: p_old_line_rec.ship_from_org_id)
5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
5068: p_old_line_rec.order_quantity_uom)
5069: OR NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id ,
5070: p_old_line_rec.reference_line_id)
5071: OR NOT OE_GLOBALS.Equal(p_x_line_rec.fulfillment_base , --added for bug#16547287
5072: p_old_line_rec.fulfillment_base)
5073: THEN

Line 5071: OR NOT OE_GLOBALS.Equal(p_x_line_rec.fulfillment_base , --added for bug#16547287

5067: OR NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
5068: p_old_line_rec.order_quantity_uom)
5069: OR NOT OE_GLOBALS.Equal(p_x_line_rec.reference_line_id ,
5070: p_old_line_rec.reference_line_id)
5071: OR NOT OE_GLOBALS.Equal(p_x_line_rec.fulfillment_base , --added for bug#16547287
5072: p_old_line_rec.fulfillment_base)
5073: THEN
5074: IF l_debug_level > 0 THEN
5075: oe_debug_pub.add('Calling derive_fulfillment_base : ');

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

5115: oe_debug_pub.ADD('Apply Attr Change Catch Weight Pricing');
5116: END IF;
5117:
5118: p_x_line_rec.calculate_price_flag := 'Y';
5119: OE_GLOBALS.G_PRICE_FLAG := 'Y';
5120: OE_GLOBALS.G_TAX_FLAG := 'Y';
5121:
5122: END IF;
5123:

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

5116: END IF;
5117:
5118: p_x_line_rec.calculate_price_flag := 'Y';
5119: OE_GLOBALS.G_PRICE_FLAG := 'Y';
5120: OE_GLOBALS.G_TAX_FLAG := 'Y';
5121:
5122: END IF;
5123:
5124: END IF;

Line 5150: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5146: l_from_header_id := p_x_line_rec.source_document_id;
5147: End If;
5148:
5149: OE_delayed_requests_Pvt.log_request(
5150: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5151: p_entity_id => p_x_line_rec.line_id,
5152: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5153: p_requesting_entity_id => p_x_line_rec.line_id,
5154: p_param1 => p_x_line_rec.header_id,

Line 5152: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5148:
5149: OE_delayed_requests_Pvt.log_request(
5150: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5151: p_entity_id => p_x_line_rec.line_id,
5152: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5153: p_requesting_entity_id => p_x_line_rec.line_id,
5154: p_param1 => p_x_line_rec.header_id,
5155: p_param2 => l_from_line_id,
5156: p_param3 => l_from_header_id,

Line 5160: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,

5156: p_param3 => l_from_header_id,
5157: p_param4 => p_x_line_rec.line_category_code,
5158: p_param5 => p_x_line_rec.split_by,
5159: p_param6 => p_x_line_rec.booked_flag,
5160: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,
5161: x_return_status => l_return_status);
5162:
5163: --bug 16317238 start
5164: copy_assoc(p_line_id => l_from_line_id,

Line 5174: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5170:
5171: IF l_prg_exist = 'Y' THEN
5172:
5173: OE_delayed_requests_Pvt.log_request(
5174: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5175: p_entity_id => p_x_line_rec.line_id,
5176: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5177: p_requesting_entity_id => p_x_line_rec.line_id,
5178: p_param1 => p_x_line_rec.header_id,

Line 5176: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5172:
5173: OE_delayed_requests_Pvt.log_request(
5174: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5175: p_entity_id => p_x_line_rec.line_id,
5176: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5177: p_requesting_entity_id => p_x_line_rec.line_id,
5178: p_param1 => p_x_line_rec.header_id,
5179: p_param2 => l_from_line_id,
5180: p_param3 => l_from_header_id,

Line 5185: p_request_type => OE_GLOBALS.G_COPY_ASSOCIATION,

5181: p_param4 => l_orig_pr_adjustment_id,
5182: p_param5 => l_or_rltd_padj_id,
5183: p_param6 => l_prg_list_line_id,
5184: p_param7 => l_assoc_list_line_id,
5185: p_request_type => OE_GLOBALS.G_COPY_ASSOCIATION,
5186: x_return_status => l_return_status);
5187:
5188: END IF;
5189: --bug 16317238 end

Line 5202: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND (p_x_line_rec.CALCULATE_PRICE_FLAG = 'N' OR

5198: oe_debug_pub.ADD('LINE_CATEGORY_CODE '||p_x_line_rec.LINE_CATEGORY_CODE);
5199: oe_debug_pub.ADD('REFERENCE_LINE_ID '||p_x_line_rec.REFERENCE_LINE_ID);
5200: oe_debug_pub.ADD('RETURN_CONTEXT '||p_x_line_rec.RETURN_CONTEXT);
5201:
5202: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND (p_x_line_rec.CALCULATE_PRICE_FLAG = 'N' OR
5203: (p_x_line_rec.CALCULATE_PRICE_FLAG = 'P' AND
5204: p_x_line_rec.LINE_CATEGORY_CODE = 'RETURN' AND
5205: p_x_line_rec.REFERENCE_LINE_ID IS NOT NULL AND
5206: p_x_line_rec.RETURN_CONTEXT IS NOT NULL))

Line 5210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5206: p_x_line_rec.RETURN_CONTEXT IS NOT NULL))
5207: THEN
5208: oe_debug_pub.ADD('Logging DR_COPY_OTM_RECORDS relayed request fro Line '||p_x_line_rec.line_id||' From line '||l_from_line_id);
5209: OE_delayed_requests_Pvt.log_request(
5210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5211: p_entity_id => p_x_line_rec.line_id,
5212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5213: p_requesting_entity_id => p_x_line_rec.line_id,
5214: p_param1 => p_x_line_rec.header_id,

Line 5212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5208: oe_debug_pub.ADD('Logging DR_COPY_OTM_RECORDS relayed request fro Line '||p_x_line_rec.line_id||' From line '||l_from_line_id);
5209: OE_delayed_requests_Pvt.log_request(
5210: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5211: p_entity_id => p_x_line_rec.line_id,
5212: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5213: p_requesting_entity_id => p_x_line_rec.line_id,
5214: p_param1 => p_x_line_rec.header_id,
5215: p_param2 => l_from_line_id,
5216: p_param3 => l_from_header_id,

Line 5217: p_request_type => OE_GLOBALS.G_DR_COPY_OTM_RECORDS,

5213: p_requesting_entity_id => p_x_line_rec.line_id,
5214: p_param1 => p_x_line_rec.header_id,
5215: p_param2 => l_from_line_id,
5216: p_param3 => l_from_header_id,
5217: p_request_type => OE_GLOBALS.G_DR_COPY_OTM_RECORDS,
5218: x_return_status => l_return_status
5219: );
5220: END IF;
5221: --Bug#10052614 End

Line 5228: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

5224: IF l_copy_service_fields and
5225: p_x_line_rec.item_type_code = 'SERVICE' and
5226: p_x_line_rec.service_reference_type_code = 'ORDER' and
5227: p_x_line_rec.service_reference_line_id is NOT NULL and
5228: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
5229: BEGIN
5230:
5231: Select 'Y'
5232: INTO l_is_model

Line 5247: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5243: if l_debug_level > 0 then
5244: oe_debug_pub.add('CSH Before log request --G_UPDATE_SERVICE', 1);
5245: end if;
5246: OE_Delayed_Requests_Pvt.log_request(
5247: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5248: p_entity_id => p_x_line_rec.line_id,
5249: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5250: p_requesting_entity_id => p_x_line_rec.line_id,
5251: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,

Line 5249: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5245: end if;
5246: OE_Delayed_Requests_Pvt.log_request(
5247: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5248: p_entity_id => p_x_line_rec.line_id,
5249: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5250: p_requesting_entity_id => p_x_line_rec.line_id,
5251: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,
5252: x_return_status => l_return_status);
5253: END IF;

Line 5251: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,

5247: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5248: p_entity_id => p_x_line_rec.line_id,
5249: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5250: p_requesting_entity_id => p_x_line_rec.line_id,
5251: p_request_type => OE_GLOBALS.G_UPDATE_SERVICE,
5252: x_return_status => l_return_status);
5253: END IF;
5254: END IF; /* IF l_copy_service_fields... = TRUE */
5255:

Line 5277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5273: l_from_header_id := p_x_line_rec.source_document_id;
5274: End IF;
5275:
5276: OE_delayed_requests_Pvt.log_request(
5277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5278: p_entity_id => p_x_line_rec.line_id,
5279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5280: p_requesting_entity_id => p_x_line_rec.line_id,
5281: p_param1 => p_x_line_rec.header_id,

Line 5279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5275:
5276: OE_delayed_requests_Pvt.log_request(
5277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5278: p_entity_id => p_x_line_rec.line_id,
5279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5280: p_requesting_entity_id => p_x_line_rec.line_id,
5281: p_param1 => p_x_line_rec.header_id,
5282: p_param2 => l_from_line_id,
5283: p_param3 => l_from_header_id,

Line 5284: p_request_type => OE_GLOBALS.G_COPY_PRICING_ATTRIBUTES,

5280: p_requesting_entity_id => p_x_line_rec.line_id,
5281: p_param1 => p_x_line_rec.header_id,
5282: p_param2 => l_from_line_id,
5283: p_param3 => l_from_header_id,
5284: p_request_type => OE_GLOBALS.G_COPY_PRICING_ATTRIBUTES,
5285: x_return_status => l_return_status);
5286:
5287: END IF;
5288:

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

5302:
5303:
5304: If p_x_line_rec.item_type_code = 'INCLUDED' and
5305: l_charges_for_included_item = 'Y' Then
5306: oe_globals.g_price_flag := 'Y';
5307: --Elsif p_x_line_rec.item_type_code = 'CONFIG' THEN
5308: -- oe_globals.g_price_flag := 'Y';
5309: Else
5310: if l_debug_level > 0 then

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

5304: If p_x_line_rec.item_type_code = 'INCLUDED' and
5305: l_charges_for_included_item = 'Y' Then
5306: oe_globals.g_price_flag := 'Y';
5307: --Elsif p_x_line_rec.item_type_code = 'CONFIG' THEN
5308: -- oe_globals.g_price_flag := 'Y';
5309: Else
5310: if l_debug_level > 0 then
5311: oe_debug_pub.add('2207809: no price for config item', 3);
5312: end if;

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

5309: Else
5310: if l_debug_level > 0 then
5311: oe_debug_pub.add('2207809: no price for config item', 3);
5312: end if;
5313: oe_globals.g_price_flag := 'N';
5314: End If;
5315: End If;
5316:
5317: -------------------------------------------------------------------

Line 5349: -- AND OE_GLOBALS.G_UI_FLAG bug# 13011328 - Commenting out this line since ULP, USP is not updatable from PO API

5345: p_x_line_rec.order_quantity_uom <> fnd_api.g_miss_char
5346: AND oe_code_control.code_release_level >= '110510'
5347: -- bug 3491752
5348: --AND /*nvl(fnd_profile.value('ONT_LIST_PRICE_OVERRIDE_PRIV'), 'NONE')*/ --G_LIST_PRICE_OVERRIDE = 'UNLIMITED' --bug4080363
5349: -- AND OE_GLOBALS.G_UI_FLAG bug# 13011328 - Commenting out this line since ULP, USP is not updatable from PO API
5350: AND OE_Globals.G_PRICING_RECURSION = 'N' THEN
5351:
5352: IF p_x_line_rec.unit_list_price IS NOT NULL AND
5353: p_x_line_rec.unit_list_price <> FND_API.G_MISS_NUM AND

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

5346: AND oe_code_control.code_release_level >= '110510'
5347: -- bug 3491752
5348: --AND /*nvl(fnd_profile.value('ONT_LIST_PRICE_OVERRIDE_PRIV'), 'NONE')*/ --G_LIST_PRICE_OVERRIDE = 'UNLIMITED' --bug4080363
5349: -- AND OE_GLOBALS.G_UI_FLAG bug# 13011328 - Commenting out this line since ULP, USP is not updatable from PO API
5350: AND OE_Globals.G_PRICING_RECURSION = 'N' THEN
5351:
5352: IF p_x_line_rec.unit_list_price IS NOT NULL AND
5353: p_x_line_rec.unit_list_price <> FND_API.G_MISS_NUM AND
5354: p_x_line_rec.original_list_price IS NOT NULL AND

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

5379: end if;
5380: L_Call_pricing := 'Y';
5381: End If;
5382: -- Override List Price
5383: IF oe_globals.g_price_flag = 'Y' and
5384: not l_no_price_flag and
5385: nvl(oe_globals.g_pricing_recursion,'N') <> 'Y' and
5386: --bsadri nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
5387: --For bug 7115648

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

5381: End If;
5382: -- Override List Price
5383: IF oe_globals.g_price_flag = 'Y' and
5384: not l_no_price_flag and
5385: nvl(oe_globals.g_pricing_recursion,'N') <> 'Y' and
5386: --bsadri nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
5387: --For bug 7115648
5388: p_x_line_rec.inventory_item_id is not null and
5389: --End of 7115648

Line 5404: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5400: if l_debug_level > 0 then
5401: oe_debug_pub.ADD('Logging REVERSE_LIMITS delayed request for LINE CANCEL ',1);
5402: end if;
5403: OE_delayed_requests_Pvt.log_request(
5404: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5405: p_entity_id => p_x_line_rec.line_id,
5406: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5407: p_requesting_entity_id => p_x_line_rec.line_id,
5408: p_request_unique_key1 => 'LINE',

Line 5406: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5402: end if;
5403: OE_delayed_requests_Pvt.log_request(
5404: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5405: p_entity_id => p_x_line_rec.line_id,
5406: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5407: p_requesting_entity_id => p_x_line_rec.line_id,
5408: p_request_unique_key1 => 'LINE',
5409: p_param1 => 'CANCEL',
5410: p_param2 => p_x_line_rec.price_request_code,

Line 5415: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,

5411: p_param3 => NULL,
5412: p_param4 => NULL,
5413: p_param5 => NULL,
5414: p_param6 => NULL,
5415: p_request_type => OE_GLOBALS.G_REVERSE_LIMITS,
5416: x_return_status => l_return_status);
5417: if l_debug_level > 0 then
5418: oe_debug_pub.ADD('REVERSE_LIMITS Delayed request has been logged',1);
5419: end if;

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

5423: END IF;
5424: If
5425: ( (p_x_line_rec.unit_list_price is null or
5426: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
5427: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea

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

5424: If
5425: ( (p_x_line_rec.unit_list_price is null or
5426: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
5427: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )

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

5425: ( (p_x_line_rec.unit_list_price is null or
5426: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
5427: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
5433: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE

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

5426: p_x_line_rec.Unit_List_Price = fnd_api.g_miss_num or
5427: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
5433: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
5434: )

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

5427: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity) or
5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
5433: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
5434: )
5435: --RT{

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

5428: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,p_old_line_rec.ordered_quantity2) or -- INVCONV 2317146 - INVCONV STET
5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
5433: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
5434: )
5435: --RT{
5436: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)= FND_API.G_MISS_NUM

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

5429: NOT OE_GLOBALS.Equal(p_x_line_rec.cancelled_Quantity,p_old_line_rec.cancelled_Quantity) or
5430: NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,p_old_line_rec.order_quantity_uom) or
5431: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,p_old_line_rec.inventory_item_id) or --fix bug 1388503 btea
5432: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_list_price,p_old_line_rec.unit_list_price) )
5433: and p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_SERVICE
5434: )
5435: --RT{
5436: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)= FND_API.G_MISS_NUM
5437: --RT}

Line 5442: IF ((OE_GLOBALS.G_UI_FLAG)

5438: or l_call_pricing = 'Y' -- Override List Price
5439: then
5440:
5441:
5442: IF ((OE_GLOBALS.G_UI_FLAG)
5443: and OE_GLOBALS.G_DEFER_PRICING='N'
5444: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
5445: THEN
5446:

Line 5443: and OE_GLOBALS.G_DEFER_PRICING='N'

5439: then
5440:
5441:
5442: IF ((OE_GLOBALS.G_UI_FLAG)
5443: and OE_GLOBALS.G_DEFER_PRICING='N'
5444: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
5445: THEN
5446:
5447: l_Price_Control_Rec.pricing_event := 'PRICE';

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

5482: -- Bug 2757443.
5483: -- Need to log delayed request for tax and commitment
5484: -- when unit_selling_price changes from null to not null
5485: -- during PRICE event.
5486: IF NOT OE_GLOBALS.Equal(p_old_line_rec.unit_selling_price,
5487: l_x_Line_Tbl(1).unit_selling_price) THEN
5488:
5489: OE_GLOBALS.G_TAX_FLAG := 'Y';
5490: IF l_x_Line_Tbl(1).commitment_id IS NOT NULL THEN

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

5485: -- during PRICE event.
5486: IF NOT OE_GLOBALS.Equal(p_old_line_rec.unit_selling_price,
5487: l_x_Line_Tbl(1).unit_selling_price) THEN
5488:
5489: OE_GLOBALS.G_TAX_FLAG := 'Y';
5490: IF l_x_Line_Tbl(1).commitment_id IS NOT NULL THEN
5491: l_calculate_commitment_flag := 'Y';
5492: END IF;
5493: END IF;

Line 5513: IF ((OE_GLOBALS.G_UI_FLAG)

5509: End If; --end if for UI Flag Check
5510: if l_debug_level > 0 then
5511: oe_debug_pub.ADD('Logging delayed request for pricing');
5512: end if;
5513: IF ((OE_GLOBALS.G_UI_FLAG)
5514: and OE_GLOBALS.G_DEFER_PRICING='N'
5515: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
5516: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
5517: --RT

Line 5514: and OE_GLOBALS.G_DEFER_PRICING='N'

5510: if l_debug_level > 0 then
5511: oe_debug_pub.ADD('Logging delayed request for pricing');
5512: end if;
5513: IF ((OE_GLOBALS.G_UI_FLAG)
5514: and OE_GLOBALS.G_DEFER_PRICING='N'
5515: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
5516: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
5517: --RT
5518: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM THEN

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

5512: end if;
5513: IF ((OE_GLOBALS.G_UI_FLAG)
5514: and OE_GLOBALS.G_DEFER_PRICING='N'
5515: and (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N'))
5516: OR (p_x_line_rec.item_type_code = 'INCLUDED' and OE_GLOBALS.G_DEFER_PRICING='N')
5517: --RT
5518: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM THEN
5519: if l_debug_level > 0 then
5520: oe_debug_pub.add('ui mode or config, included item'||p_x_line_rec.line_id);

Line 5537: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5533: oe_debug_pub.ADD('logging price line request');
5534: end if;
5535:
5536: OE_delayed_requests_Pvt.log_request(
5537: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5538: p_entity_id => p_x_line_rec.line_id,
5539: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5540: p_requesting_entity_id => p_x_line_rec.line_id,
5541: p_request_unique_key1 => 'LINE',

Line 5539: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5535:
5536: OE_delayed_requests_Pvt.log_request(
5537: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5538: p_entity_id => p_x_line_rec.line_id,
5539: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5540: p_requesting_entity_id => p_x_line_rec.line_id,
5541: p_request_unique_key1 => 'LINE',
5542: p_param1 => p_x_line_rec.header_id,
5543: p_param2 => 'LINE',

Line 5544: p_request_type => OE_GLOBALS.G_PRICE_LINE,

5540: p_requesting_entity_id => p_x_line_rec.line_id,
5541: p_request_unique_key1 => 'LINE',
5542: p_param1 => p_x_line_rec.header_id,
5543: p_param2 => 'LINE',
5544: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5545: x_return_status => l_return_status);
5546: -- sol_ord_er #16014165
5547: IF (p_x_line_rec.service_bill_option_code = 'FPOM'
5548: AND NVL(p_x_line_rec.fulfilled_flag,'N') = 'N') THEN

Line 5550: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5546: -- sol_ord_er #16014165
5547: IF (p_x_line_rec.service_bill_option_code = 'FPOM'
5548: AND NVL(p_x_line_rec.fulfilled_flag,'N') = 'N') THEN
5549: oe_delayed_requests_pvt.log_request(
5550: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5551: p_entity_id => p_x_line_rec.line_id,
5552: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5553: p_requesting_entity_id => p_x_line_rec.line_id,
5554: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 5552: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5548: AND NVL(p_x_line_rec.fulfilled_flag,'N') = 'N') THEN
5549: oe_delayed_requests_pvt.log_request(
5550: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5551: p_entity_id => p_x_line_rec.line_id,
5552: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5553: p_requesting_entity_id => p_x_line_rec.line_id,
5554: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5555: p_request_unique_key1 => 'LINE',
5556: p_param1 => p_x_line_rec.line_id,

Line 5554: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

5550: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5551: p_entity_id => p_x_line_rec.line_id,
5552: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5553: p_requesting_entity_id => p_x_line_rec.line_id,
5554: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5555: p_request_unique_key1 => 'LINE',
5556: p_param1 => p_x_line_rec.line_id,
5557: x_return_status => l_return_status);
5558: END IF;

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

5561:
5562: ELSE
5563:
5564: IF OE_LINE_ADJ_UTIL.Is_Pricing_Related_Change(p_x_line_rec,p_old_line_rec)
5565: OR NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code) THEN
5566: if l_debug_level > 0 then
5567: oe_debug_pub.add('renga-logging delayed req freight_for_included',1);
5568: end if;
5569:

Line 5571: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5567: oe_debug_pub.add('renga-logging delayed req freight_for_included',1);
5568: end if;
5569:
5570: OE_delayed_requests_Pvt.log_request(
5571: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5572: p_entity_id => p_x_line_rec.header_id,
5573: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5574: p_requesting_entity_id => p_x_line_rec.header_id,
5575: p_request_unique_key1 => 'ORDER',

Line 5573: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5569:
5570: OE_delayed_requests_Pvt.log_request(
5571: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5572: p_entity_id => p_x_line_rec.header_id,
5573: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5574: p_requesting_entity_id => p_x_line_rec.header_id,
5575: p_request_unique_key1 => 'ORDER',
5576: p_param1 => p_x_line_rec.header_id,
5577: p_param2 => 'ORDER',

Line 5578: p_request_type => OE_GLOBALS.G_FREIGHT_FOR_INCLUDED,

5574: p_requesting_entity_id => p_x_line_rec.header_id,
5575: p_request_unique_key1 => 'ORDER',
5576: p_param1 => p_x_line_rec.header_id,
5577: p_param2 => 'ORDER',
5578: p_request_type => OE_GLOBALS.G_FREIGHT_FOR_INCLUDED,
5579: x_return_status => l_return_status);
5580:
5581: if l_debug_level > 0 then
5582: oe_debug_pub.add('renga-after logging delayed req freight_for_included',1);

Line 5596: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5592: ELSE
5593: l_pricing_event := 'ORDER';
5594: END IF;
5595: OE_delayed_requests_Pvt.log_request(
5596: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5597: p_entity_id => p_x_line_rec.Header_Id,
5598: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5599: p_requesting_entity_id => p_x_line_rec.Header_Id,
5600: p_request_unique_key1 => l_pricing_event,

Line 5598: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5594: END IF;
5595: OE_delayed_requests_Pvt.log_request(
5596: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5597: p_entity_id => p_x_line_rec.Header_Id,
5598: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5599: p_requesting_entity_id => p_x_line_rec.Header_Id,
5600: p_request_unique_key1 => l_pricing_event,
5601: p_param1 => p_x_line_rec.header_id,
5602: p_param2 => l_pricing_event,

Line 5603: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

5599: p_requesting_entity_id => p_x_line_rec.Header_Id,
5600: p_request_unique_key1 => l_pricing_event,
5601: p_param1 => p_x_line_rec.header_id,
5602: p_param2 => l_pricing_event,
5603: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
5604: x_return_status => l_return_status);
5605: -- sol_ord_er #16014165
5606: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5607: oe_delayed_requests_pvt.log_request(

Line 5608: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5604: x_return_status => l_return_status);
5605: -- sol_ord_er #16014165
5606: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5607: oe_delayed_requests_pvt.log_request(
5608: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5609: p_entity_id => p_x_line_rec.Header_Id,
5610: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5611: p_requesting_entity_id => p_x_line_rec.Header_Id,
5612: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 5610: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5606: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5607: oe_delayed_requests_pvt.log_request(
5608: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5609: p_entity_id => p_x_line_rec.Header_Id,
5610: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5611: p_requesting_entity_id => p_x_line_rec.Header_Id,
5612: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5613: p_request_unique_key1 => 'ORDER',
5614: p_param1 => p_x_line_rec.Header_Id,

Line 5612: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

5608: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5609: p_entity_id => p_x_line_rec.Header_Id,
5610: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5611: p_requesting_entity_id => p_x_line_rec.Header_Id,
5612: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5613: p_request_unique_key1 => 'ORDER',
5614: p_param1 => p_x_line_rec.Header_Id,
5615: x_return_status => l_return_status);
5616: END IF;

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

5622: end if;
5623: --RT{
5624: IF nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)<>FND_API.G_MISS_NUM Then
5625: --call pricing for retrobilling lines in one shot (PRICE_ORDER)
5626: IF p_x_line_rec.operation=OE_GLOBALS.G_OPR_CREATE THEN
5627: l_retrobill_operation:='CREATE';
5628: ELSE
5629: l_retrobill_operation:='UPDATE';
5630: END IF;

Line 5634: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5630: END IF;
5631:
5632:
5633: OE_delayed_requests_Pvt.log_request(
5634: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5635: p_entity_id => p_x_line_rec.Header_Id,
5636: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5637: p_requesting_entity_id => p_x_line_rec.Header_Id,
5638: p_request_unique_key1 => 'RETROBILL',

Line 5636: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5632:
5633: OE_delayed_requests_Pvt.log_request(
5634: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5635: p_entity_id => p_x_line_rec.Header_Id,
5636: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5637: p_requesting_entity_id => p_x_line_rec.Header_Id,
5638: p_request_unique_key1 => 'RETROBILL',
5639: p_param1 => p_x_line_rec.header_id,
5640: p_param2 => 'RETROBILL',

Line 5642: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

5638: p_request_unique_key1 => 'RETROBILL',
5639: p_param1 => p_x_line_rec.header_id,
5640: p_param2 => 'RETROBILL',
5641: p_param3 => l_retrobill_operation,
5642: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
5643: x_return_status => l_return_status);
5644:
5645: --copy the adjustments over to the new retrobilling line
5646: OE_delayed_requests_Pvt.log_request(

Line 5647: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5643: x_return_status => l_return_status);
5644:
5645: --copy the adjustments over to the new retrobilling line
5646: OE_delayed_requests_Pvt.log_request(
5647: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5648: p_entity_id => p_x_line_rec.line_id,
5649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5650: p_requesting_entity_id => p_x_line_rec.line_id,
5651: p_param1 => p_x_line_rec.header_id,

Line 5649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

5645: --copy the adjustments over to the new retrobilling line
5646: OE_delayed_requests_Pvt.log_request(
5647: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5648: p_entity_id => p_x_line_rec.line_id,
5649: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
5650: p_requesting_entity_id => p_x_line_rec.line_id,
5651: p_param1 => p_x_line_rec.header_id,
5652: --x_line_rec.orig_sys_line_ref stores orignial line_id
5653: --p_param2 is copy_line_line_id

Line 5661: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,

5657: p_param3 => p_x_line_rec.orig_sys_document_ref,
5658: p_param4 => p_x_line_rec.line_category_code,
5659: p_param5 => p_x_line_rec.split_by,
5660: p_param6 => p_x_line_rec.booked_flag,
5661: p_request_type => OE_GLOBALS.G_COPY_ADJUSTMENTS,
5662: p_param7 => 'RETROBILL',
5663: p_param8 => p_x_line_rec.retrobill_request_id,
5664: x_return_status => l_return_status);
5665: --RT}

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

5669: ELSE
5670: l_pricing_event := 'BATCH';
5671: END IF;
5672:
5673: IF OE_GLOBALS.G_DEFER_PRICING='Y' AND
5674: p_x_line_rec.booked_flag='Y'AND
5675: p_x_line_rec.item_type_code <>'INCLUDED' THEN --2442012
5676: l_pricing_event := 'PRICE,BATCH,BOOK';
5677: ELSIF OE_GLOBALS.G_DEFER_PRICING='Y' THEN

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

5673: IF OE_GLOBALS.G_DEFER_PRICING='Y' AND
5674: p_x_line_rec.booked_flag='Y'AND
5675: p_x_line_rec.item_type_code <>'INCLUDED' THEN --2442012
5676: l_pricing_event := 'PRICE,BATCH,BOOK';
5677: ELSIF OE_GLOBALS.G_DEFER_PRICING='Y' THEN
5678: l_pricing_event := 'PRICE,BATCH';
5679: END IF;
5680:
5681: OE_delayed_requests_Pvt.log_request(

Line 5682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5678: l_pricing_event := 'PRICE,BATCH';
5679: END IF;
5680:
5681: OE_delayed_requests_Pvt.log_request(
5682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5683: p_entity_id => p_x_line_rec.Header_Id,
5684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5685: p_requesting_entity_id => p_x_line_rec.Header_Id,
5686: p_request_unique_key1 => l_pricing_event,

Line 5684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5680:
5681: OE_delayed_requests_Pvt.log_request(
5682: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5683: p_entity_id => p_x_line_rec.Header_Id,
5684: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5685: p_requesting_entity_id => p_x_line_rec.Header_Id,
5686: p_request_unique_key1 => l_pricing_event,
5687: p_param1 => p_x_line_rec.header_id,
5688: p_param2 => l_pricing_event,

Line 5689: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

5685: p_requesting_entity_id => p_x_line_rec.Header_Id,
5686: p_request_unique_key1 => l_pricing_event,
5687: p_param1 => p_x_line_rec.header_id,
5688: p_param2 => l_pricing_event,
5689: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
5690: x_return_status => l_return_status);
5691: -- sol_ord_er #16014165
5692: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5693: oe_delayed_requests_pvt.log_request(

Line 5694: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5690: x_return_status => l_return_status);
5691: -- sol_ord_er #16014165
5692: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5693: oe_delayed_requests_pvt.log_request(
5694: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5695: p_entity_id => p_x_line_rec.Header_Id,
5696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5697: p_requesting_entity_id => p_x_line_rec.Header_Id,
5698: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 5696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5692: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
5693: oe_delayed_requests_pvt.log_request(
5694: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5695: p_entity_id => p_x_line_rec.Header_Id,
5696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5697: p_requesting_entity_id => p_x_line_rec.Header_Id,
5698: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5699: p_request_unique_key1 => 'ORDER',
5700: p_param1 => p_x_line_rec.Header_Id,

Line 5698: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

5694: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5695: p_entity_id => p_x_line_rec.Header_Id,
5696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5697: p_requesting_entity_id => p_x_line_rec.Header_Id,
5698: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5699: p_request_unique_key1 => 'ORDER',
5700: p_param1 => p_x_line_rec.Header_Id,
5701: x_return_status => l_return_status);
5702: END IF;

Line 5709: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5705: END IF; --2442012
5706:
5707: /* If p_x_line_rec.booked_flag='Y' and p_x_line_rec.item_type_code <> 'INCLUDED' Then
5708: OE_delayed_requests_Pvt.log_request(
5709: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5710: p_entity_id => p_x_line_rec.Header_Id,
5711: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5712: p_requesting_entity_id => p_x_line_rec.Header_Id,
5713: p_request_unique_key1 => 'BOOK',

Line 5711: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5707: /* If p_x_line_rec.booked_flag='Y' and p_x_line_rec.item_type_code <> 'INCLUDED' Then
5708: OE_delayed_requests_Pvt.log_request(
5709: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5710: p_entity_id => p_x_line_rec.Header_Id,
5711: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5712: p_requesting_entity_id => p_x_line_rec.Header_Id,
5713: p_request_unique_key1 => 'BOOK',
5714: p_param1 => p_x_line_rec.header_id,
5715: p_param2 => 'BOOK',

Line 5716: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

5712: p_requesting_entity_id => p_x_line_rec.Header_Id,
5713: p_request_unique_key1 => 'BOOK',
5714: p_param1 => p_x_line_rec.header_id,
5715: p_param2 => 'BOOK',
5716: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
5717: x_return_status => l_return_status);
5718: End If;
5719: */
5720: -- fixed bug 1688064, move the following line out of IF block.

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

5717: x_return_status => l_return_status);
5718: End If;
5719: */
5720: -- fixed bug 1688064, move the following line out of IF block.
5721: -- Oe_Globals.g_price_flag := 'N';
5722: END IF;
5723:
5724: /* rlanka: Fix for Bug 1729372
5725:

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

5729:
5730: */
5731:
5732: if l_debug_level > 0 then
5733: oe_debug_pub.add('g_price_flag = ' || oe_globals.g_price_flag);
5734: --oe_debug_pub.add('l_no_price_flag = '|| l_no_price_flag);
5735: oe_debug_pub.add('g_pricing_recursion = ' || oe_globals.g_pricing_recursion);
5736: oe_debug_pub.add('Ordered quantity = '|| to_char(p_x_line_rec.ordered_quantity));
5737: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);

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

5731:
5732: if l_debug_level > 0 then
5733: oe_debug_pub.add('g_price_flag = ' || oe_globals.g_price_flag);
5734: --oe_debug_pub.add('l_no_price_flag = '|| l_no_price_flag);
5735: oe_debug_pub.add('g_pricing_recursion = ' || oe_globals.g_pricing_recursion);
5736: oe_debug_pub.add('Ordered quantity = '|| to_char(p_x_line_rec.ordered_quantity));
5737: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);
5738: oe_debug_pub.add('Calculate_price_flag = '|| p_x_line_rec.calculate_price_flag);
5739: end if;

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

5737: oe_debug_pub.add('Ordered qty UOM = ' || p_x_line_rec.order_quantity_uom);
5738: oe_debug_pub.add('Calculate_price_flag = '|| p_x_line_rec.calculate_price_flag);
5739: end if;
5740:
5741: if (oe_globals.g_price_flag = 'Y' and
5742: not l_no_price_flag and
5743: oe_globals.g_pricing_recursion = 'Y' and
5744: nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
5745: p_x_line_rec.Ordered_Quantity <> fnd_api.g_miss_num and

Line 5743: oe_globals.g_pricing_recursion = 'Y' and

5739: end if;
5740:
5741: if (oe_globals.g_price_flag = 'Y' and
5742: not l_no_price_flag and
5743: oe_globals.g_pricing_recursion = 'Y' and
5744: nvl(p_x_line_rec.ordered_quantity,0) <> 0 and
5745: p_x_line_rec.Ordered_Quantity <> fnd_api.g_miss_num and
5746: p_x_line_rec.order_quantity_uom is not null and
5747: p_x_line_rec.order_quantity_uom <> fnd_api.g_miss_char and

Line 5773: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

5769: Else
5770: l_pricing_event := 'BATCH';
5771: End If;
5772: OE_delayed_requests_Pvt.log_request(
5773: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5774: p_entity_id => p_x_line_rec.line_Id,
5775: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5776: p_requesting_entity_id => p_x_line_rec.line_Id,
5777: p_request_unique_key1 => l_pricing_event,

Line 5775: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5771: End If;
5772: OE_delayed_requests_Pvt.log_request(
5773: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5774: p_entity_id => p_x_line_rec.line_Id,
5775: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5776: p_requesting_entity_id => p_x_line_rec.line_Id,
5777: p_request_unique_key1 => l_pricing_event,
5778: p_param1 => p_x_line_rec.header_id,
5779: p_param2 => l_pricing_event,

Line 5780: p_request_type => OE_GLOBALS.G_PRICE_LINE,

5776: p_requesting_entity_id => p_x_line_rec.line_Id,
5777: p_request_unique_key1 => l_pricing_event,
5778: p_param1 => p_x_line_rec.header_id,
5779: p_param2 => l_pricing_event,
5780: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5781: x_return_status => l_return_status);
5782: -- sol_ord_er #16014165
5783: /* The current Line is PRG line, hence Order has to be logged and check for FPOM should not be used */
5784: oe_delayed_requests_pvt.log_request(

Line 5785: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5781: x_return_status => l_return_status);
5782: -- sol_ord_er #16014165
5783: /* The current Line is PRG line, hence Order has to be logged and check for FPOM should not be used */
5784: oe_delayed_requests_pvt.log_request(
5785: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5786: p_entity_id => p_x_line_rec.line_Id,
5787: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5788: p_requesting_entity_id => p_x_line_rec.line_Id,
5789: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 5787: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5783: /* The current Line is PRG line, hence Order has to be logged and check for FPOM should not be used */
5784: oe_delayed_requests_pvt.log_request(
5785: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5786: p_entity_id => p_x_line_rec.line_Id,
5787: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5788: p_requesting_entity_id => p_x_line_rec.line_Id,
5789: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5790: p_request_unique_key1 => 'ORDER',
5791: p_param1 => p_x_line_rec.header_id,

Line 5789: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

5785: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5786: p_entity_id => p_x_line_rec.line_Id,
5787: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5788: p_requesting_entity_id => p_x_line_rec.line_Id,
5789: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
5790: p_request_unique_key1 => 'ORDER',
5791: p_param1 => p_x_line_rec.header_id,
5792: x_return_status => l_return_status);
5793: -- sol_ord_er #16014165 end

Line 5799: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

5795: /* if (p_x_line_rec.booked_flag = 'Y')
5796: then
5797: oe_debug_pub.add('Booked order -- log a request to Price Line');
5798: OE_delayed_requests_Pvt.log_request(
5799: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5800: p_entity_id => p_x_line_rec.line_Id,
5801: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5802: p_requesting_entity_id => p_x_line_rec.line_Id,
5803: p_request_unique_key1 => 'BOOK',

Line 5801: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5797: oe_debug_pub.add('Booked order -- log a request to Price Line');
5798: OE_delayed_requests_Pvt.log_request(
5799: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
5800: p_entity_id => p_x_line_rec.line_Id,
5801: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5802: p_requesting_entity_id => p_x_line_rec.line_Id,
5803: p_request_unique_key1 => 'BOOK',
5804: p_param1 => p_x_line_rec.header_id,
5805: p_param2 => 'BOOK',

Line 5806: p_request_type => OE_GLOBALS.G_PRICE_LINE,

5802: p_requesting_entity_id => p_x_line_rec.line_Id,
5803: p_request_unique_key1 => 'BOOK',
5804: p_param1 => p_x_line_rec.header_id,
5805: p_param2 => 'BOOK',
5806: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5807: x_return_status => l_return_status);
5808: end if; -- if order is BOOKED
5809: */ --2442012
5810: end if; -- if new line created by Promotional modifier needs to be re-priced.

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

5810: end if; -- if new line created by Promotional modifier needs to be re-priced.
5811:
5812: -- end of fix for bug 1729372
5813:
5814: Oe_Globals.g_price_flag := 'N';
5815:
5816: If NOT OE_GLOBALS.Equal(p_x_line_rec.Shipped_Quantity,p_old_line_rec.Shipped_Quantity)
5817: --RT{
5818: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM

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

5812: -- end of fix for bug 1729372
5813:
5814: Oe_Globals.g_price_flag := 'N';
5815:
5816: If NOT OE_GLOBALS.Equal(p_x_line_rec.Shipped_Quantity,p_old_line_rec.Shipped_Quantity)
5817: --RT{
5818: and nvl(p_x_line_rec.retrobill_request_id,FND_API.G_MISS_NUM)=FND_API.G_MISS_NUM
5819: --RT}
5820: Then

Line 5829: IF l_x_result_out = OE_GLOBALS.G_PARTIALLY_SHIPPED THEN

5825: , p_shipped_quantity => p_x_line_rec.Shipped_Quantity
5826: , x_result_out => l_x_result_out
5827: );
5828:
5829: IF l_x_result_out = OE_GLOBALS.G_PARTIALLY_SHIPPED THEN
5830: -- This line will split, set the calculate_price_flag to 'P' if 'Y'
5831: IF (p_x_line_rec.calculate_price_flag = 'Y') THEN
5832: p_x_line_rec.calculate_price_flag := 'P';
5833: END IF;

Line 5838: Elsif p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

5834:
5835:
5836: END IF;
5837:
5838: Elsif p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
5839: and p_x_line_rec.split_by = 'SYSTEM'
5840: and NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT'
5841: and p_x_line_rec.calculate_price_flag = 'Y' Then
5842: p_x_line_rec.calculate_price_flag :='P';

Line 5846: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5842: p_x_line_rec.calculate_price_flag :='P';
5843: End If;
5844:
5845: OE_delayed_requests_Pvt.log_request(
5846: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5847: p_entity_id => p_x_line_rec.line_id,
5848: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5849: p_requesting_entity_id => p_x_line_rec.line_id,
5850: p_request_unique_key1 => 'SHIP',

Line 5848: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

5844:
5845: OE_delayed_requests_Pvt.log_request(
5846: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5847: p_entity_id => p_x_line_rec.line_id,
5848: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
5849: p_requesting_entity_id => p_x_line_rec.line_id,
5850: p_request_unique_key1 => 'SHIP',
5851: p_param1 => p_x_line_rec.header_id,
5852: p_param2 => 'SHIP',

Line 5853: p_request_type => OE_GLOBALS.G_PRICE_LINE,

5849: p_requesting_entity_id => p_x_line_rec.line_id,
5850: p_request_unique_key1 => 'SHIP',
5851: p_param1 => p_x_line_rec.header_id,
5852: p_param2 => 'SHIP',
5853: p_request_type => OE_GLOBALS.G_PRICE_LINE,
5854: x_return_status => l_return_status);
5855: End If;
5856:
5857: -- change for bug 1406890

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

5945: if l_debug_level > 0 then
5946: oe_debug_pub.add('Ren: no tax delayed request for include and config',1);
5947: end if;
5948:
5949: oe_globals.g_tax_flag := 'N';
5950:
5951: END IF;
5952: --changes for bug 2505961 begin
5953:

Line 5957: and oe_globals.g_tax_flag = 'Y'

5953:
5954: --commented the following for bug7306510 as the sql execution is no more required
5955: /*if p_x_line_rec.commitment_id is not null
5956: and p_x_line_rec.commitment_id <> FND_API.G_MISS_NUM
5957: and oe_globals.g_tax_flag = 'Y'
5958: then
5959: begin
5960: select nvl(tax_calculation_flag,'N') into l_tax_commt_flag
5961: from ra_cust_trx_types ract where ract.cust_trx_type_id =

Line 5993: oe_debug_pub.add('Before Tax delayed Req, taxFlag= '||oe_globals.g_tax_flag||' l_current_event= '||l_current_event);

5989: -- OM will depend on Tax_event alone ( specfied transaction type level) to automatically trigger
5990: -- tax calcualtion .ra_cust_trx_types.tax_calculation_flag is no more considered while logging delayed requests for tax
5991: -- 12876258 Added Debug
5992: if l_debug_level > 0 then
5993: oe_debug_pub.add('Before Tax delayed Req, taxFlag= '||oe_globals.g_tax_flag||' l_current_event= '||l_current_event);
5994: end if; -- end 12876258
5995:
5996:
5997: IF ( oe_globals.g_tax_flag = 'Y' and

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

5993: oe_debug_pub.add('Before Tax delayed Req, taxFlag= '||oe_globals.g_tax_flag||' l_current_event= '||l_current_event);
5994: end if; -- end 12876258
5995:
5996:
5997: IF ( oe_globals.g_tax_flag = 'Y' and
5998: l_current_event >= l_tax_calculation_event_code and
5999: /*bug7306510 ( l_tax_calculation_flag = 'Y' or
6000: p_x_line_rec.tax_exempt_flag = 'R' or l_tax_commt_flag = 'Y'
6001: or (l_tax_calculation_flag = 'N' and

Line 6012: IF (OE_GLOBALS.G_UI_FLAG)

6008: oe_debug_pub.ADD('Logging delayed request for taxing');
6009: end if;
6010: -- lkxu, make changes for bug 1581188
6011: l_tax_commt_flag := 'N'; --bug 2505961
6012: IF (OE_GLOBALS.G_UI_FLAG)
6013: AND nvl(FND_PROFILE.VALUE('ONT_DELAY_TAX_CALC'), 'N') = 'N' THEN --TaxER
6014: OE_delayed_requests_Pvt.log_request(
6015: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6016: p_entity_id => p_x_line_rec.line_id,

Line 6015: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6011: l_tax_commt_flag := 'N'; --bug 2505961
6012: IF (OE_GLOBALS.G_UI_FLAG)
6013: AND nvl(FND_PROFILE.VALUE('ONT_DELAY_TAX_CALC'), 'N') = 'N' THEN --TaxER
6014: OE_delayed_requests_Pvt.log_request(
6015: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6016: p_entity_id => p_x_line_rec.line_id,
6017: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6018: p_requesting_entity_id => p_x_line_rec.line_id,
6019: p_request_type => OE_GLOBALS.g_tax_line,

Line 6017: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6013: AND nvl(FND_PROFILE.VALUE('ONT_DELAY_TAX_CALC'), 'N') = 'N' THEN --TaxER
6014: OE_delayed_requests_Pvt.log_request(
6015: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6016: p_entity_id => p_x_line_rec.line_id,
6017: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6018: p_requesting_entity_id => p_x_line_rec.line_id,
6019: p_request_type => OE_GLOBALS.g_tax_line,
6020: x_return_status => l_return_status);
6021: -- 14151216, Added IF for System Parameter check

Line 6019: p_request_type => OE_GLOBALS.g_tax_line,

6015: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6016: p_entity_id => p_x_line_rec.line_id,
6017: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6018: p_requesting_entity_id => p_x_line_rec.line_id,
6019: p_request_type => OE_GLOBALS.g_tax_line,
6020: x_return_status => l_return_status);
6021: -- 14151216, Added IF for System Parameter check
6022: IF (NVL(oe_sys_parameters.value('OE_INVOICE_FREIGHT_AS_LINE',p_x_line_rec.org_id), 'N') = 'Y') THEN
6023: -- Bug 13777599 start

Line 6028: p_entity_code => OE_GLOBALS.G_ENTITY_HEADER,

6024: if l_debug_level > 0 then
6025: oe_debug_pub.add(' OEXULINB 1 Tax Header Delayed Req');
6026: End IF;
6027: OE_delayed_requests_Pvt.log_request(
6028: p_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6029: p_entity_id => p_x_line_rec.header_id,
6030: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6031: p_requesting_entity_id => p_x_line_rec.header_id,
6032: p_request_type => OE_GLOBALS.g_tax_line,

Line 6030: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,

6026: End IF;
6027: OE_delayed_requests_Pvt.log_request(
6028: p_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6029: p_entity_id => p_x_line_rec.header_id,
6030: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6031: p_requesting_entity_id => p_x_line_rec.header_id,
6032: p_request_type => OE_GLOBALS.g_tax_line,
6033: p_param1 => NULL,
6034: x_return_status => l_return_status);

Line 6032: p_request_type => OE_GLOBALS.g_tax_line,

6028: p_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6029: p_entity_id => p_x_line_rec.header_id,
6030: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6031: p_requesting_entity_id => p_x_line_rec.header_id,
6032: p_request_type => OE_GLOBALS.g_tax_line,
6033: p_param1 => NULL,
6034: x_return_status => l_return_status);
6035: -- Bug 13777599 end
6036: End If; --14151216, end if for System Parameter

Line 6040: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6036: End If; --14151216, end if for System Parameter
6037: ELSE
6038: -- added p_param1 for bug 1786533.
6039: OE_delayed_requests_Pvt.log_request(
6040: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6041: p_entity_id => p_x_line_rec.line_id,
6042: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6043: p_requesting_entity_id => p_x_line_rec.line_id,
6044: p_request_type => OE_GLOBALS.g_tax_line,

Line 6042: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6038: -- added p_param1 for bug 1786533.
6039: OE_delayed_requests_Pvt.log_request(
6040: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6041: p_entity_id => p_x_line_rec.line_id,
6042: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6043: p_requesting_entity_id => p_x_line_rec.line_id,
6044: p_request_type => OE_GLOBALS.g_tax_line,
6045: p_param1 => l_param1,
6046: x_return_status => l_return_status);

Line 6044: p_request_type => OE_GLOBALS.g_tax_line,

6040: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6041: p_entity_id => p_x_line_rec.line_id,
6042: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6043: p_requesting_entity_id => p_x_line_rec.line_id,
6044: p_request_type => OE_GLOBALS.g_tax_line,
6045: p_param1 => l_param1,
6046: x_return_status => l_return_status);
6047: -- 14151216, Added IF for System Parameter check
6048: IF (NVL(oe_sys_parameters.value('OE_INVOICE_FREIGHT_AS_LINE',p_x_line_rec.org_id), 'N') = 'Y') THEN

Line 6054: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6050: if l_debug_level > 0 then
6051: oe_debug_pub.add(' OEXULINB 2 Tax Header Delayed Req');
6052: End IF;
6053: OE_delayed_requests_Pvt.log_request(
6054: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6055: p_entity_id => p_x_line_rec.header_id,
6056: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6057: p_requesting_entity_id => p_x_line_rec.header_id,
6058: p_request_type => OE_GLOBALS.g_tax_line,

Line 6056: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,

6052: End IF;
6053: OE_delayed_requests_Pvt.log_request(
6054: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6055: p_entity_id => p_x_line_rec.header_id,
6056: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6057: p_requesting_entity_id => p_x_line_rec.header_id,
6058: p_request_type => OE_GLOBALS.g_tax_line,
6059: p_param1 => NULL,
6060: x_return_status => l_return_status);

Line 6058: p_request_type => OE_GLOBALS.g_tax_line,

6054: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6055: p_entity_id => p_x_line_rec.header_id,
6056: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_HEADER,
6057: p_requesting_entity_id => p_x_line_rec.header_id,
6058: p_request_type => OE_GLOBALS.g_tax_line,
6059: p_param1 => NULL,
6060: x_return_status => l_return_status);
6061: -- Bug 13777599 end
6062: End If; --14151216, end if for System Parameter

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

6060: x_return_status => l_return_status);
6061: -- Bug 13777599 end
6062: End If; --14151216, end if for System Parameter
6063: END IF;
6064: oe_globals.g_tax_flag := 'N';
6065: END IF;
6066:
6067: /** commented out for bug 1581188
6068: IF (oe_globals.g_tax_flag = 'Y') THEN

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

6064: oe_globals.g_tax_flag := 'N';
6065: END IF;
6066:
6067: /** commented out for bug 1581188
6068: IF (oe_globals.g_tax_flag = 'Y') THEN
6069: if l_debug_level > 0 then
6070: oe_debug_pub.ADD('Logging delayed request for taxing');
6071: end if;
6072: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

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

6068: IF (oe_globals.g_tax_flag = 'Y') THEN
6069: if l_debug_level > 0 then
6070: oe_debug_pub.ADD('Logging delayed request for taxing');
6071: end if;
6072: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6073: p_entity_id => p_x_line_rec.line_id,
6074: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6075: p_requesting_entity_id => p_x_line_rec.line_id,
6076: p_request_type => OE_GLOBALS.g_tax_line,

Line 6074: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6070: oe_debug_pub.ADD('Logging delayed request for taxing');
6071: end if;
6072: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6073: p_entity_id => p_x_line_rec.line_id,
6074: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6075: p_requesting_entity_id => p_x_line_rec.line_id,
6076: p_request_type => OE_GLOBALS.g_tax_line,
6077: x_return_status => l_return_status);
6078: oe_globals.g_tax_flag := 'N';

Line 6076: p_request_type => OE_GLOBALS.g_tax_line,

6072: OE_delayed_requests_Pvt.log_request(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6073: p_entity_id => p_x_line_rec.line_id,
6074: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6075: p_requesting_entity_id => p_x_line_rec.line_id,
6076: p_request_type => OE_GLOBALS.g_tax_line,
6077: x_return_status => l_return_status);
6078: oe_globals.g_tax_flag := 'N';
6079: END IF;
6080: **/

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

6074: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6075: p_requesting_entity_id => p_x_line_rec.line_id,
6076: p_request_type => OE_GLOBALS.g_tax_line,
6077: x_return_status => l_return_status);
6078: oe_globals.g_tax_flag := 'N';
6079: END IF;
6080: **/
6081:
6082: -- Log a verify payment request if the order is booked and a new line.

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

6081:
6082: -- Log a verify payment request if the order is booked and a new line.
6083: -- Fix 1939779: Added condition to not log verify payment request for
6084: -- new config item lines being added to an order.
6085: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6086: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
6087: p_x_line_rec.booked_flag = 'Y' THEN
6088: --IF (NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' --CC Reversal ER#16014135 Commented
6089: --CC Reversal ER#16014135 Start

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

6082: -- Log a verify payment request if the order is booked and a new line.
6083: -- Fix 1939779: Added condition to not log verify payment request for
6084: -- new config item lines being added to an order.
6085: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6086: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
6087: p_x_line_rec.booked_flag = 'Y' THEN
6088: --IF (NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD' --CC Reversal ER#16014135 Commented
6089: --CC Reversal ER#16014135 Start
6090: IF ((NVL(OE_Order_Cache.g_header_rec.payment_type_code, 'NULL') <> 'CREDIT_CARD'

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

6101: END IF;
6102: END IF;
6103:
6104: -- Suppress verify payment and credit checking if the line is split
6105: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6106: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) OR
6107: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6108: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
6109: IF l_cc_rev_reauth_code IS NULL THEN --CC Reversal ER#16014135

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

6103:
6104: -- Suppress verify payment and credit checking if the line is split
6105: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6106: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) OR
6107: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6108: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
6109: IF l_cc_rev_reauth_code IS NULL THEN --CC Reversal ER#16014135
6110: if l_debug_level > 0 then
6111: oe_debug_pub.ADD('Line is being Split, Suppress Verify Payment', 1);

Line 6128: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6124: oe_debug_pub.ADD('Logging delayed request for Verify Payment');
6125: end if;
6126: --
6127: OE_delayed_requests_Pvt.log_request
6128: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6129: p_entity_id => p_x_line_rec.header_id,
6130: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6131: p_requesting_entity_id => p_x_line_rec.line_id,
6132: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,

Line 6130: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6126: --
6127: OE_delayed_requests_Pvt.log_request
6128: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6129: p_entity_id => p_x_line_rec.header_id,
6130: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6131: p_requesting_entity_id => p_x_line_rec.line_id,
6132: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,
6133: x_return_status => l_return_status);
6134: END IF;

Line 6132: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,

6128: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6129: p_entity_id => p_x_line_rec.header_id,
6130: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6131: p_requesting_entity_id => p_x_line_rec.line_id,
6132: p_request_type => OE_GLOBALS.G_VERIFY_PAYMENT,
6133: x_return_status => l_return_status);
6134: END IF;
6135: END IF;
6136:

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

6143: -- don't get the balance again, as this is the second call due to the change
6144: -- of unit_selling_price, and the returned value at this moment would be the
6145: -- balance after the current line is saved to database.
6146:
6147: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
6148: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
6149: oe_globals.g_commitment_balance IS NULL) THEN
6150: l_class := NULL;
6151: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');

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

6144: -- of unit_selling_price, and the returned value at this moment would be the
6145: -- balance after the current line is saved to database.
6146:
6147: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
6148: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
6149: oe_globals.g_commitment_balance IS NULL) THEN
6150: l_class := NULL;
6151: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
6152: l_oe_installed_flag := 'I';

Line 6149: oe_globals.g_commitment_balance IS NULL) THEN

6145: -- balance after the current line is saved to database.
6146:
6147: IF NVL(OE_GLOBALS.g_pricing_recursion, 'N') <> 'Y'
6148: OR (NVL(OE_GLOBALS.g_pricing_recursion, 'N') = 'Y' AND
6149: oe_globals.g_commitment_balance IS NULL) THEN
6150: l_class := NULL;
6151: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
6152: l_oe_installed_flag := 'I';
6153:

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

6151: l_so_source_code := FND_PROFILE.VALUE('ONT_SOURCE_CODE');
6152: l_oe_installed_flag := 'I';
6153:
6154: -- get the available commitmenb balance before saving the line.
6155: IF NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6156: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
6157: oe_globals.g_commitment_balance := ARP_BAL_UTIL.GET_COMMITMENT_BALANCE(
6158: p_x_line_rec.commitment_id
6159: ,l_class

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

6153:
6154: -- get the available commitmenb balance before saving the line.
6155: IF NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
6156: p_x_line_rec.split_from_line_id IS NOT NULL) THEN
6157: oe_globals.g_commitment_balance := ARP_BAL_UTIL.GET_COMMITMENT_BALANCE(
6158: p_x_line_rec.commitment_id
6159: ,l_class
6160: ,l_so_source_code
6161: ,l_oe_installed_flag );

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

6161: ,l_oe_installed_flag );
6162: END IF;
6163:
6164: -- if updating, then the applied commitment should become available
6165: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
6166: l_commitment_applied_amount
6167: := OE_Commitment_PVT.get_commitment_applied_amount
6168: (p_header_id => p_x_line_rec.header_id ,
6169: p_line_id => p_x_line_rec.line_id ,

Line 6172: oe_globals.g_commitment_balance

6168: (p_header_id => p_x_line_rec.header_id ,
6169: p_line_id => p_x_line_rec.line_id ,
6170: p_commitment_id => p_x_line_rec.commitment_id);
6171: /* Fix Bug # 2511389: This is now done in OE_Commitment_PVT.Calculate_Commitments
6172: oe_globals.g_commitment_balance
6173: := oe_globals.g_commitment_balance + l_commitment_applied_amount;
6174: */
6175:
6176:

Line 6173: := oe_globals.g_commitment_balance + l_commitment_applied_amount;

6169: p_line_id => p_x_line_rec.line_id ,
6170: p_commitment_id => p_x_line_rec.commitment_id);
6171: /* Fix Bug # 2511389: This is now done in OE_Commitment_PVT.Calculate_Commitments
6172: oe_globals.g_commitment_balance
6173: := oe_globals.g_commitment_balance + l_commitment_applied_amount;
6174: */
6175:
6176:
6177: END IF;

Line 6188: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6184: if l_debug_level > 0 then
6185: oe_debug_pub.add('Logging delayed request for Commitment.', 2);
6186: end if;
6187: OE_Delayed_Requests_Pvt.Log_Request(
6188: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6189: p_entity_id => p_x_line_rec.line_id,
6190: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6191: p_requesting_entity_id => p_x_line_rec.line_id,
6192: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,

Line 6190: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6186: end if;
6187: OE_Delayed_Requests_Pvt.Log_Request(
6188: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6189: p_entity_id => p_x_line_rec.line_id,
6190: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6191: p_requesting_entity_id => p_x_line_rec.line_id,
6192: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,
6193: x_return_status => l_return_status);
6194:

Line 6192: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,

6188: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6189: p_entity_id => p_x_line_rec.line_id,
6190: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6191: p_requesting_entity_id => p_x_line_rec.line_id,
6192: p_request_type => OE_GLOBALS.G_CALCULATE_COMMITMENT,
6193: x_return_status => l_return_status);
6194:
6195: END IF;
6196:

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

6203: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
6204: THEN
6205:
6206: -- lkxu, bug 1786533.
6207: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6208: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT' ) THEN
6209:
6210: if l_debug_level > 0 then
6211: oe_debug_pub.add('Logging delayed request for updating commitment for line '||p_x_line_rec.line_id, 2);

Line 6216: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,

6212: end if;
6213:
6214: -- should log as ENTITY_ALL, as SPLIT is a batch mode
6215: OE_Delayed_Requests_Pvt.Log_Request(
6216: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
6217: p_entity_id =>p_x_line_rec.line_id,
6218: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
6219: p_requesting_entity_id =>p_x_line_rec.line_id,
6220: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,

Line 6218: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,

6214: -- should log as ENTITY_ALL, as SPLIT is a batch mode
6215: OE_Delayed_Requests_Pvt.Log_Request(
6216: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
6217: p_entity_id =>p_x_line_rec.line_id,
6218: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
6219: p_requesting_entity_id =>p_x_line_rec.line_id,
6220: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,
6221: x_return_status =>l_return_status);
6222: END IF;

Line 6220: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,

6216: p_entity_code =>OE_GLOBALS.G_ENTITY_ALL,
6217: p_entity_id =>p_x_line_rec.line_id,
6218: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
6219: p_requesting_entity_id =>p_x_line_rec.line_id,
6220: p_request_type =>OE_GLOBALS.G_UPDATE_COMMITMENT,
6221: x_return_status =>l_return_status);
6222: END IF;
6223: END IF;
6224:

Line 6234: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6230: oe_debug_pub.add('param2 is: '|| p_x_line_rec.header_id, 3);
6231: oe_debug_pub.add('param3 is: '|| p_x_line_rec.commitment_id, 3);
6232: end if;
6233: OE_Delayed_Requests_Pvt.Log_Request(
6234: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6235: p_entity_id => p_x_line_rec.line_id,
6236: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6237: p_requesting_entity_id => p_x_line_rec.line_id,
6238: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,

Line 6236: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6232: end if;
6233: OE_Delayed_Requests_Pvt.Log_Request(
6234: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6235: p_entity_id => p_x_line_rec.line_id,
6236: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6237: p_requesting_entity_id => p_x_line_rec.line_id,
6238: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,
6239: p_param1 => p_x_line_rec.commitment_applied_amount,
6240: p_param2 => p_x_line_rec.header_id,

Line 6238: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,

6234: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6235: p_entity_id => p_x_line_rec.line_id,
6236: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6237: p_requesting_entity_id => p_x_line_rec.line_id,
6238: p_request_type => OE_GLOBALS.G_UPDATE_COMMITMENT_APPLIED,
6239: p_param1 => p_x_line_rec.commitment_applied_amount,
6240: p_param2 => p_x_line_rec.header_id,
6241: p_param3 => p_x_line_rec.commitment_id,
6242: x_return_status => l_return_status);

Line 6254: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6250: oe_debug_pub.add('Logging delayed request for freight rate: '||p_x_line_rec.header_id, 2);
6251: end if;
6252:
6253: OE_delayed_requests_Pvt.log_request
6254: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6255: p_entity_id => p_x_line_rec.header_id,
6256: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6257: p_requesting_entity_id => p_x_line_rec.line_id,
6258: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,

Line 6256: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

6252:
6253: OE_delayed_requests_Pvt.log_request
6254: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6255: p_entity_id => p_x_line_rec.header_id,
6256: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6257: p_requesting_entity_id => p_x_line_rec.line_id,
6258: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,
6259: x_return_status => l_return_status);
6260:

Line 6258: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,

6254: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6255: p_entity_id => p_x_line_rec.header_id,
6256: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
6257: p_requesting_entity_id => p_x_line_rec.line_id,
6258: p_request_type => OE_GLOBALS.G_FREIGHT_RATING,
6259: x_return_status => l_return_status);
6260:
6261: IF p_x_line_rec.booked_flag='Y' THEN
6262: l_pricing_event := 'BATCH,BOOK';

Line 6269: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6265: END IF;
6266:
6267: -- also log pricing request to calculate fregight rates.
6268: OE_delayed_requests_Pvt.log_request(
6269: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6270: p_entity_id => p_x_line_rec.header_id,
6271: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6272: p_requesting_entity_id => p_x_line_rec.header_id,
6273: p_request_unique_key1 => l_pricing_event,

Line 6271: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

6267: -- also log pricing request to calculate fregight rates.
6268: OE_delayed_requests_Pvt.log_request(
6269: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6270: p_entity_id => p_x_line_rec.header_id,
6271: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
6272: p_requesting_entity_id => p_x_line_rec.header_id,
6273: p_request_unique_key1 => l_pricing_event,
6274: p_request_unique_key2 => 'Y', -- get freight flag
6275: p_param1 => p_x_line_rec.header_id,

Line 6277: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

6273: p_request_unique_key1 => l_pricing_event,
6274: p_request_unique_key2 => 'Y', -- get freight flag
6275: p_param1 => p_x_line_rec.header_id,
6276: p_param2 => l_pricing_event,
6277: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
6278: x_return_status => l_return_status);
6279: END IF;
6280: -- end of bug 2668298.
6281:

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

6297: */
6298:
6299: IF p_x_line_rec.ordered_quantity = 0 AND
6300: p_old_line_rec.ordered_quantity = 0 AND
6301: OE_GLOBALS.g_recursion_mode = 'N' AND -- Bug 3379121
6302: OE_OE_FORM_CANCEL_LINE.g_ord_lvl_can THEN
6303:
6304: IF l_debug_level > 0 THEN
6305: oe_debug_pub.add('Line Ord Qty already 0, Calling Check_Constraints based on Order Cancel Global');

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

6320: /* Fix # 3147694 End */
6321:
6322:
6323: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
6324: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
6325: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6326: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
6327: ,p_old_line_rec.ship_from_org_id)
6328: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR

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

6321:
6322:
6323: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
6324: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
6325: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6326: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
6327: ,p_old_line_rec.ship_from_org_id)
6328: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
6329: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

Line 6326: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id

6322:
6323: IF OE_CODE_CONTROL.GET_CODE_RELEASE_LEVEL >='110510' THEN
6324: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE OR
6325: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6326: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
6327: ,p_old_line_rec.ship_from_org_id)
6328: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
6329: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
6330: ,p_old_line_rec.ship_to_org_id)

Line 6329: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

6325: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
6326: ( ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id
6327: ,p_old_line_rec.ship_from_org_id)
6328: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
6329: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
6330: ,p_old_line_rec.ship_to_org_id)
6331: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
6332: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
6333: ,p_old_line_rec.inventory_item_id)

Line 6332: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id

6328: AND p_old_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) OR
6329: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
6330: ,p_old_line_rec.ship_to_org_id)
6331: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
6332: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
6333: ,p_old_line_rec.inventory_item_id)
6334: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
6335: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
6336: ,p_old_line_rec.order_quantity_uom)

Line 6335: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

6331: AND p_old_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) OR
6332: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id
6333: ,p_old_line_rec.inventory_item_id)
6334: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
6335: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
6336: ,p_old_line_rec.order_quantity_uom)
6337: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
6338: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
6339: ,p_old_line_rec.ordered_quantity)

Line 6338: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

6334: AND p_old_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) OR
6335: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
6336: ,p_old_line_rec.order_quantity_uom)
6337: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
6338: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
6339: ,p_old_line_rec.ordered_quantity)
6340: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
6341: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
6342: ,p_old_line_rec.schedule_ship_date)

Line 6341: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

6337: AND p_old_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR) OR
6338: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
6339: ,p_old_line_rec.ordered_quantity)
6340: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
6341: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
6342: ,p_old_line_rec.schedule_ship_date)
6343: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
6344: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
6345: ,p_old_line_rec.schedule_arrival_date)

Line 6344: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date

6340: AND p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM) OR
6341: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
6342: ,p_old_line_rec.schedule_ship_date)
6343: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
6344: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
6345: ,p_old_line_rec.schedule_arrival_date)
6346: AND p_old_line_rec.schedule_arrival_date <> FND_API.G_MISS_DATE) OR
6347: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
6348: ,p_old_line_rec.freight_terms_code)

Line 6347: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code

6343: AND p_old_line_rec.schedule_ship_date <> FND_API.G_MISS_DATE) OR
6344: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_arrival_date
6345: ,p_old_line_rec.schedule_arrival_date)
6346: AND p_old_line_rec.schedule_arrival_date <> FND_API.G_MISS_DATE) OR
6347: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
6348: ,p_old_line_rec.freight_terms_code)
6349: AND p_old_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR)))
6350: THEN
6351: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN

Line 6351: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN

6347: ( NOT OE_GLOBALS.EQUAL(p_x_line_rec.freight_terms_code
6348: ,p_old_line_rec.freight_terms_code)
6349: AND p_old_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR)))
6350: THEN
6351: IF OE_GLOBALS.G_FTE_REINVOKE IS NULL THEN
6352: Select Count(*) into l_fte_count
6353: from oe_price_adjustments where
6354: header_id = p_x_line_rec.header_id
6355: and LIST_LINE_TYPE_CODE = 'OM_CALLED_CHOOSE_SHIP_METHOD';

Line 6363: OE_GLOBALS.G_FTE_REINVOKE := 'Y';

6359: If l_fte_count > 0 Then
6360: --fnd_message.set_name('ONT','MY_MESSAGE');
6361: --OE_MSG_PUB.Add;
6362: --NULL;
6363: OE_GLOBALS.G_FTE_REINVOKE := 'Y';
6364: ELSE
6365: OE_GLOBALS.G_FTE_REINVOKE := 'N';
6366: End If;
6367: END IF;

Line 6365: OE_GLOBALS.G_FTE_REINVOKE := 'N';

6361: --OE_MSG_PUB.Add;
6362: --NULL;
6363: OE_GLOBALS.G_FTE_REINVOKE := 'Y';
6364: ELSE
6365: OE_GLOBALS.G_FTE_REINVOKE := 'N';
6366: End If;
6367: END IF;
6368: END IF;
6369: END IF;

Line 6395: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN

6391: END IF; */
6392:
6393: /*Bug2848734 */
6394: /* moved following code to above Derive_FB ER14763609
6395: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
6396: IF (p_x_line_rec.line_category_code = 'RETURN' and
6397: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
6398: p_x_line_rec.return_context IS NULL ) THEN
6399:

Line 6397: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and

6393: /*Bug2848734 */
6394: /* moved following code to above Derive_FB ER14763609
6395: IF NOT OE_GLOBALS.Equal(p_x_line_rec.return_context, p_old_line_rec.return_context) THEN
6396: IF (p_x_line_rec.line_category_code = 'RETURN' and
6397: p_x_line_rec.OPERATION = OE_GLOBALS.G_OPR_UPDATE and
6398: p_x_line_rec.return_context IS NULL ) THEN
6399:
6400: p_x_line_rec.reference_customer_trx_line_id := NULL;
6401: p_x_line_rec.credit_invoice_line_id := NULL;

Line 9386: OE_GLOBALS.Set_Context;

9382: oe_debug_pub.add('Entering OE_LINE_UTIL.UPDATE_ROW', 1);
9383: end if;
9384: --Commented for MOAC start
9385: /*if l_org_id IS NULL THEN
9386: OE_GLOBALS.Set_Context;
9387: l_org_id := OE_GLOBALS.G_ORG_ID;
9388: end if;*/
9389: --Commented for MOAC end
9390:

Line 9387: l_org_id := OE_GLOBALS.G_ORG_ID;

9383: end if;
9384: --Commented for MOAC start
9385: /*if l_org_id IS NULL THEN
9386: OE_GLOBALS.Set_Context;
9387: l_org_id := OE_GLOBALS.G_ORG_ID;
9388: end if;*/
9389: --Commented for MOAC end
9390:
9391: SELECT lock_control

Line 9862: OE_GLOBALS.Set_Context;

9858: oe_debug_pub.add('Entering OE_LINE_UTIL.INSERT_ROW', 1);
9859: end if;
9860:
9861: --MOAC change
9862: OE_GLOBALS.Set_Context;
9863: l_org_id := OE_GLOBALS.G_ORG_ID;
9864: IF l_org_id IS NULL THEN
9865: -- org_id is null, don't do insert. raise an error.
9866: IF l_debug_level > 0 then

Line 9863: l_org_id := OE_GLOBALS.G_ORG_ID;

9859: end if;
9860:
9861: --MOAC change
9862: OE_GLOBALS.Set_Context;
9863: l_org_id := OE_GLOBALS.G_ORG_ID;
9864: IF l_org_id IS NULL THEN
9865: -- org_id is null, don't do insert. raise an error.
9866: IF l_debug_level > 0 then
9867: oe_debug_pub.ADD('Org_Id is NULL',1);

Line 9875: OE_GLOBALS.Set_Context;

9871: RAISE FND_API.G_EXC_ERROR;
9872: END IF;
9873: /*
9874: if l_org_id IS NULL THEN
9875: OE_GLOBALS.Set_Context;
9876: l_org_id := OE_GLOBALS.G_ORG_ID;
9877: end if;
9878: */
9879: l_sold_from_org := l_org_id;

Line 9876: l_org_id := OE_GLOBALS.G_ORG_ID;

9872: END IF;
9873: /*
9874: if l_org_id IS NULL THEN
9875: OE_GLOBALS.Set_Context;
9876: l_org_id := OE_GLOBALS.G_ORG_ID;
9877: end if;
9878: */
9879: l_sold_from_org := l_org_id;
9880:

Line 9882: if p_line_rec.split_from_line_id is not null and p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

9878: */
9879: l_sold_from_org := l_org_id;
9880:
9881: -- For the split's issue Bug #3721385
9882: if p_line_rec.split_from_line_id is not null and p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
9883: (p_line_rec.sold_from_org_id is not null OR p_line_rec.sold_from_org_id <> FND_API.G_MISS_NUM)
9884: then
9885:
9886: l_sold_from_org := p_line_rec.sold_from_org_id;

Line 9902: p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

9898: END IF;
9899: --bug 4446805 set the price request code to NULL if operation is create during splitting
9900: IF p_line_rec.split_from_line_id is not null AND
9901: p_line_rec.split_from_line_id <> FND_API.G_MISS_NUM AND
9902: p_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
9903: THEN
9904: l_price_request_code := NULL;
9905: ELSE
9906: l_price_request_code := p_line_rec.price_request_code;

Line 10779: /*l_org_id := OE_GLOBALS.G_ORG_ID;

10775: BEGIN
10776:
10777: oe_debug_pub.add('Entering OE_LINE_UTIL.DELETE_ROW', 1);
10778: --Commented for MOAC start
10779: /*l_org_id := OE_GLOBALS.G_ORG_ID;
10780:
10781: IF l_org_id IS NULL THEN
10782: OE_GLOBALS.Set_Context;
10783: l_org_id := OE_GLOBALS.G_ORG_ID;

Line 10782: OE_GLOBALS.Set_Context;

10778: --Commented for MOAC start
10779: /*l_org_id := OE_GLOBALS.G_ORG_ID;
10780:
10781: IF l_org_id IS NULL THEN
10782: OE_GLOBALS.Set_Context;
10783: l_org_id := OE_GLOBALS.G_ORG_ID;
10784: END IF;
10785:
10786: oe_debug_pub.add('Entering delete '||to_char(l_org_id), 1); */

Line 10783: l_org_id := OE_GLOBALS.G_ORG_ID;

10779: /*l_org_id := OE_GLOBALS.G_ORG_ID;
10780:
10781: IF l_org_id IS NULL THEN
10782: OE_GLOBALS.Set_Context;
10783: l_org_id := OE_GLOBALS.G_ORG_ID;
10784: END IF;
10785:
10786: oe_debug_pub.add('Entering delete '||to_char(l_org_id), 1); */
10787: --Commented for MOAC end

Line 10797: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

10793: --check code release level first. Notification framework is at Pack H level
10794: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110508' THEN
10795: oe_debug_pub.add('JFC: in delete row, l_line_id'|| l_line.line_id , 1);
10796: /* Set the operation on the record so that globals are updated as well */
10797: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
10798: l_new_line_rec.line_id :=l_line.line_id;
10799: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,
10800: p_line_rec =>l_new_line_rec,
10801: p_line_id =>l_line.line_id,

Line 10819: IF l_line.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

10815: -- notification framework end
10816:
10817: -- Keep all your dependencies in Delete Dependents Procedure
10818: -- If model is deleted, delete from SPC tables
10819: IF l_line.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
10820: OE_Config_Pvt.Delete_Config
10821: ( p_config_hdr_id => l_line.config_header_id,
10822: p_config_rev_nbr => l_line.config_rev_nbr,
10823: x_return_status => l_return_status );

Line 10976: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

10972: AND SERVICE_REFERENCE_TYPE_CODE = 'ORDER'; -- bug 3056313
10973:
10974: END IF; -- if service lines exist, for bug 2408321
10975:
10976: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
10977: END LOOP; -- loop for models
10978:
10979: CLOSE llinetbl;
10980:

Line 11011: IF l_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

11007: -- if model, call spc's delete
11008: IF p_header_id = FND_API.G_MISS_NUM THEN
11009: -- we already have l_line_rec
11010:
11011: IF l_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
11012: OE_Config_Pvt.Delete_Config
11013: ( p_config_hdr_id => l_line_rec.config_header_id,
11014: p_config_rev_nbr => l_line_rec.config_rev_nbr,
11015: x_return_status => l_return_status );

Line 11062: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

11058: ,p_shipping_interfaced_flag => l_shipping_interfaced_flag
11059: ,p_ordered_quantity => l_ordered_quantity -- BUG 2670775 Reverse Limits
11060: ,p_price_request_code => l_price_request_code); -- BUG 2670775 Reverse Limits
11061:
11062: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
11063: END LOOP; -- loop of the service lines.
11064:
11065: CLOSE llinetbl;
11066:

Line 11090: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

11086: --check code release level first. Notification framework is at Pack H level
11087: oe_debug_pub.add('JPN: Delete all lines now');
11088: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110508' THEN
11089: /* Set the operation on the record so that globals are updated as well */
11090: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
11091: l_new_line_rec.line_id :=l_line_rec.line_id;
11092: l_new_line_rec.last_update_date :=l_line_rec.last_update_date;
11093:
11094: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,

Line 11125: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;

11121: FOR l_svc IN svc_line
11122: LOOP
11123: oe_debug_pub.add('JFC: in delete row, service line_id= '|| l_svc.line_id , 1);
11124: /* Set the operation on the record so that globals are updated as well */
11125: l_new_line_rec.operation := OE_GLOBALS.G_OPR_DELETE;
11126: l_new_line_rec.line_id :=l_svc.line_id;
11127: OE_ORDER_UTIL.Update_Global_Picture(p_Upd_New_Rec_If_Exists => True,
11128: p_line_rec =>l_new_line_rec,
11129: p_line_id =>l_svc.line_id,

Line 12916: /*l_org_id := OE_GLOBALS.G_ORG_ID;

12912:
12913: END IF;
12914:
12915: --Commented for MOAC start
12916: /*l_org_id := OE_GLOBALS.G_ORG_ID;
12917: if l_org_id IS NULL THEN
12918: OE_GLOBALS.Set_Context;
12919: l_org_id := OE_GLOBALS.G_ORG_ID;
12920: end if;

Line 12918: OE_GLOBALS.Set_Context;

12914:
12915: --Commented for MOAC start
12916: /*l_org_id := OE_GLOBALS.G_ORG_ID;
12917: if l_org_id IS NULL THEN
12918: OE_GLOBALS.Set_Context;
12919: l_org_id := OE_GLOBALS.G_ORG_ID;
12920: end if;
12921: IF l_debug_level > 0 THEN
12922: oe_debug_pub.add('Entering '||to_char(l_org_id), 1);

Line 12919: l_org_id := OE_GLOBALS.G_ORG_ID;

12915: --Commented for MOAC start
12916: /*l_org_id := OE_GLOBALS.G_ORG_ID;
12917: if l_org_id IS NULL THEN
12918: OE_GLOBALS.Set_Context;
12919: l_org_id := OE_GLOBALS.G_ORG_ID;
12920: end if;
12921: IF l_debug_level > 0 THEN
12922: oe_debug_pub.add('Entering '||to_char(l_org_id), 1);
12923: END IF;*/

Line 13792: IF (OE_GLOBALS.G_UI_FLAG) THEN -- 3025978

13788: -- Retrieve the primary key.
13789:
13790: IF p_line_id <> FND_API.G_MISS_NUM THEN
13791: l_line_id := p_line_id;
13792: IF (OE_GLOBALS.G_UI_FLAG) THEN -- 3025978
13793: l_lock_control := p_x_line_rec.lock_control;
13794: END IF;
13795: ELSE
13796: l_line_id := p_x_line_rec.line_id;

Line 13931: OR (OE_GLOBALS.G_UI_FLAG = TRUE ) THEN -- 3025978

13927: END IF;
13928:
13929: IF l_lock_control IS NULL
13930: OR (l_lock_control <> l_db_lock_control)
13931: OR (OE_GLOBALS.G_UI_FLAG = TRUE ) THEN -- 3025978
13932:
13933: oe_line_util.Query_Row
13934: (p_line_id => l_line_id
13935: ,x_line_rec => p_x_line_rec

Line 13971: OE_GLOBALS.G_LOCK_CONST := 0;

13967: -- following constants are used to debug lock_order,
13968: -- please do not use them for any other purpose.
13969: -- set G_LOCK_TEST := 'Y', for debugging.
13970:
13971: OE_GLOBALS.G_LOCK_CONST := 0;
13972: --OE_GLOBALS.G_LOCK_TEST := 'Y';
13973: OE_GLOBALS.G_LOCK_TEST := 'N';
13974:
13975: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,

Line 13972: --OE_GLOBALS.G_LOCK_TEST := 'Y';

13968: -- please do not use them for any other purpose.
13969: -- set G_LOCK_TEST := 'Y', for debugging.
13970:
13971: OE_GLOBALS.G_LOCK_CONST := 0;
13972: --OE_GLOBALS.G_LOCK_TEST := 'Y';
13973: OE_GLOBALS.G_LOCK_TEST := 'N';
13974:
13975: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
13976: l_lock_control)

Line 13973: OE_GLOBALS.G_LOCK_TEST := 'N';

13969: -- set G_LOCK_TEST := 'Y', for debugging.
13970:
13971: OE_GLOBALS.G_LOCK_CONST := 0;
13972: --OE_GLOBALS.G_LOCK_TEST := 'Y';
13973: OE_GLOBALS.G_LOCK_TEST := 'N';
13974:
13975: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
13976: l_lock_control)
13977: THEN

Line 13975: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,

13971: OE_GLOBALS.G_LOCK_CONST := 0;
13972: --OE_GLOBALS.G_LOCK_TEST := 'Y';
13973: OE_GLOBALS.G_LOCK_TEST := 'N';
13974:
13975: IF OE_GLOBALS.Equal(p_x_line_rec.lock_control,
13976: l_lock_control)
13977: THEN
13978:
13979: -- Row has not changed. Set out parameter.

Line 14013: OE_GLOBALS.G_LOCK_TEST := 'N';

14009: END IF;
14010:
14011: END IF;
14012:
14013: OE_GLOBALS.G_LOCK_TEST := 'N';
14014:
14015: IF l_debug_level > 0 THEN
14016: oe_debug_pub.add('Exiting OE_LINE_UTIL.LOCK_ROW', 1);
14017: oe_debug_pub.add(' ', 1);

Line 14018: oe_debug_pub.add('lock const: '|| oe_globals.g_lock_const, 1);

14014:
14015: IF l_debug_level > 0 THEN
14016: oe_debug_pub.add('Exiting OE_LINE_UTIL.LOCK_ROW', 1);
14017: oe_debug_pub.add(' ', 1);
14018: oe_debug_pub.add('lock const: '|| oe_globals.g_lock_const, 1);
14019: END IF;
14020:
14021: EXCEPTION
14022:

Line 14024: OE_GLOBALS.G_LOCK_TEST := 'N';

14020:
14021: EXCEPTION
14022:
14023: WHEN CAN_NOT_LOCK_MODEL THEN
14024: OE_GLOBALS.G_LOCK_TEST := 'N';
14025: IF l_debug_level > 0 THEN
14026: oe_debug_pub.add('model locking exception', 1);
14027: END IF;
14028: x_return_status := FND_API.G_RET_STS_ERROR;

Line 14033: OE_GLOBALS.G_LOCK_TEST := 'N';

14029: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
14030:
14031:
14032: WHEN NO_DATA_FOUND THEN
14033: OE_GLOBALS.G_LOCK_TEST := 'N';
14034: x_return_status := FND_API.G_RET_STS_ERROR;
14035: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
14036:
14037: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)

Line 14045: OE_GLOBALS.G_LOCK_TEST := 'N';

14041: OE_MSG_PUB.Add;
14042:
14043: END IF;
14044: WHEN APP_EXCEPTIONS.RECORD_LOCK_EXCEPTION THEN
14045: OE_GLOBALS.G_LOCK_TEST := 'N';
14046: x_return_status := FND_API.G_RET_STS_ERROR;
14047: p_x_line_rec.return_status := FND_API.G_RET_STS_ERROR;
14048:
14049: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)

Line 14057: OE_GLOBALS.G_LOCK_TEST := 'N';

14053: OE_MSG_PUB.Add;
14054:
14055: END IF;
14056: WHEN OTHERS THEN
14057: OE_GLOBALS.G_LOCK_TEST := 'N';
14058: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14059: p_x_line_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
14060:
14061: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)

Line 14224: NOT OE_GLOBALS.Equal(p_line_rec.calculate_price_flag,

14220: end if;
14221:
14222: IF (p_line_rec.calculate_price_flag IS NULL OR
14223: p_line_rec.calculate_price_flag <> FND_API.G_MISS_CHAR) AND
14224: NOT OE_GLOBALS.Equal(p_line_rec.calculate_price_flag,
14225: p_old_line_rec.calculate_price_flag)
14226: THEN
14227: l_line_val_rec.calculate_price_descr := OE_Id_To_Value.Calculate_price_Flag ( p_calculate_price_flag => p_line_rec.calculate_price_flag
14228: );

Line 14238: NOT OE_GLOBALS.Equal(p_line_rec.accounting_rule_id,

14234:
14235:
14236: IF (p_line_rec.accounting_rule_id IS NULL OR
14237: p_line_rec.accounting_rule_id <> FND_API.G_MISS_NUM) AND
14238: NOT OE_GLOBALS.Equal(p_line_rec.accounting_rule_id,
14239: p_old_line_rec.accounting_rule_id)
14240: THEN
14241: l_line_val_rec.accounting_rule := OE_Id_To_Value.Accounting_Rule
14242: ( p_accounting_rule_id => p_line_rec.accounting_rule_id

Line 14248: NOT OE_GLOBALS.Equal(p_line_rec.agreement_id,

14244: END IF;
14245:
14246: IF (p_line_rec.agreement_id IS NULL OR
14247: p_line_rec.agreement_id <> FND_API.G_MISS_NUM) AND
14248: NOT OE_GLOBALS.Equal(p_line_rec.agreement_id,
14249: p_old_line_rec.agreement_id)
14250: THEN
14251: l_line_val_rec.agreement := OE_Id_To_Value.Agreement
14252: ( p_agreement_id => p_line_rec.agreement_id

Line 14258: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_contact_id,

14254: END IF;
14255:
14256: IF (p_line_rec.deliver_to_contact_id IS NULL OR
14257: p_line_rec.deliver_to_contact_id <> FND_API.G_MISS_NUM) AND
14258: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_contact_id,
14259: p_old_line_rec.deliver_to_contact_id)
14260: THEN
14261: l_line_val_rec.deliver_to_contact := OE_Id_To_Value.Deliver_To_Contact
14262: ( p_deliver_to_contact_id => p_line_rec.deliver_to_contact_id

Line 14268: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_org_id,

14264: END IF;
14265:
14266: IF (p_line_rec.deliver_to_org_id IS NULL OR
14267: p_line_rec.deliver_to_org_id <> FND_API.G_MISS_NUM) AND
14268: NOT OE_GLOBALS.Equal(p_line_rec.deliver_to_org_id,
14269: p_old_line_rec.deliver_to_org_id)
14270: THEN
14271: get_customer_details
14272: ( p_org_id => p_line_rec.deliver_to_org_id

Line 14293: NOT OE_GLOBALS.Equal(p_line_rec.demand_bucket_type_code,

14289: END IF;
14290:
14291: IF (p_line_rec.demand_bucket_type_code IS NULL OR
14292: p_line_rec.demand_bucket_type_code <> FND_API.G_MISS_CHAR) AND
14293: NOT OE_GLOBALS.Equal(p_line_rec.demand_bucket_type_code,
14294: p_old_line_rec.demand_bucket_type_code)
14295: THEN
14296: l_line_val_rec.demand_bucket_type := OE_Id_To_Value.Demand_Bucket_Type
14297: ( p_demand_bucket_type_code => p_line_rec.demand_bucket_type_code

Line 14303: NOT OE_GLOBALS.Equal(p_line_rec.fob_point_code,

14299: END IF;
14300:
14301: IF (p_line_rec.fob_point_code IS NULL OR
14302: p_line_rec.fob_point_code <> FND_API.G_MISS_CHAR) AND
14303: NOT OE_GLOBALS.Equal(p_line_rec.fob_point_code,
14304: p_old_line_rec.fob_point_code)
14305: THEN
14306: l_line_val_rec.fob_point := OE_Id_To_Value.Fob_Point
14307: ( p_fob_point_code => p_line_rec.fob_point_code

Line 14313: NOT OE_GLOBALS.Equal(p_line_rec.freight_terms_code,

14309: END IF;
14310:
14311: IF (p_line_rec.freight_terms_code IS NULL OR
14312: p_line_rec.freight_terms_code <> FND_API.G_MISS_CHAR) AND
14313: NOT OE_GLOBALS.Equal(p_line_rec.freight_terms_code,
14314: p_old_line_rec.freight_terms_code)
14315: THEN
14316: l_line_val_rec.freight_terms := OE_Id_To_Value.Freight_Terms
14317: ( p_freight_terms_code => p_line_rec.freight_terms_code

Line 14323: NOT OE_GLOBALS.Equal(p_line_rec.freight_carrier_code,

14319: END IF;
14320:
14321: IF (p_line_rec.freight_carrier_code IS NULL OR
14322: p_line_rec.freight_carrier_code <> FND_API.G_MISS_CHAR) AND
14323: NOT OE_GLOBALS.Equal(p_line_rec.freight_carrier_code,
14324: p_old_line_rec.freight_carrier_code)
14325: THEN
14326: l_line_val_rec.freight_carrier := OE_Id_To_Value.Freight_Carrier
14327: ( p_freight_carrier_code => p_line_rec.freight_carrier_code

Line 14333: NOT OE_GLOBALS.Equal(p_line_rec.shipping_method_code,

14329: );
14330: END IF;
14331: IF (p_line_rec.shipping_method_code IS NULL OR
14332: p_line_rec.shipping_method_code <> FND_API.G_MISS_CHAR) AND
14333: NOT OE_GLOBALS.Equal(p_line_rec.shipping_method_code,
14334: p_old_line_rec.shipping_method_code)
14335: THEN
14336: l_line_val_rec.shipping_method := OE_Id_To_Value.ship_method
14337: ( p_ship_method_code => p_line_rec.shipping_method_code

Line 14343: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_contact_id,

14339: END IF;
14340:
14341: IF (p_line_rec.intermed_ship_to_contact_id IS NULL OR
14342: p_line_rec.intermed_ship_to_contact_id <> FND_API.G_MISS_NUM) AND
14343: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_contact_id,
14344: p_old_line_rec.intermed_ship_to_contact_id)
14345: THEN
14346: l_line_val_rec.intermed_ship_to_contact := OE_Id_To_Value.Intermed_Ship_To_Contact
14347: ( p_intermed_ship_to_contact_id => p_line_rec.intermed_ship_to_contact_id

Line 14354: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_org_id,

14350:
14351: /*1621182*/
14352: IF (p_line_rec.intermed_ship_to_org_id IS NULL OR
14353: p_line_rec.intermed_ship_to_org_id <> FND_API.G_MISS_NUM) AND
14354: NOT OE_GLOBALS.Equal(p_line_rec.intermed_ship_to_org_id,
14355: p_old_line_rec.intermed_ship_to_org_id)
14356: THEN
14357: OE_Id_To_Value.Intermed_Ship_To_Org
14358: ( p_intermed_ship_to_org_id => p_line_rec.intermed_ship_to_org_id

Line 14375: NOT OE_GLOBALS.Equal(p_line_rec.inventory_item_id,

14371: /*1621182*/
14372:
14373: IF (p_line_rec.inventory_item_id IS NULL OR
14374: p_line_rec.inventory_item_id <> FND_API.G_MISS_NUM) AND
14375: NOT OE_GLOBALS.Equal(p_line_rec.inventory_item_id,
14376: p_old_line_rec.inventory_item_id)
14377: THEN
14378: l_line_val_rec.inventory_item := OE_Id_To_Value.Inventory_Item
14379: ( p_inventory_item_id => p_line_rec.inventory_item_id

Line 14385: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_contact_id,

14381: END IF;
14382:
14383: IF (p_line_rec.invoice_to_contact_id IS NULL OR
14384: p_line_rec.invoice_to_contact_id <> FND_API.G_MISS_NUM) AND
14385: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_contact_id,
14386: p_old_line_rec.invoice_to_contact_id)
14387: THEN
14388: l_line_val_rec.invoice_to_contact := OE_Id_To_Value.Invoice_To_Contact
14389: ( p_invoice_to_contact_id => p_line_rec.invoice_to_contact_id

Line 14395: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_org_id,

14391: END IF;
14392:
14393: IF (p_line_rec.invoice_to_org_id IS NULL OR
14394: p_line_rec.invoice_to_org_id <> FND_API.G_MISS_NUM) AND
14395: NOT OE_GLOBALS.Equal(p_line_rec.invoice_to_org_id,
14396: p_old_line_rec.invoice_to_org_id)
14397: THEN
14398:
14399: get_customer_details

Line 14421: NOT OE_GLOBALS.Equal(p_line_rec.invoicing_rule_id,

14417: END IF;
14418:
14419: IF (p_line_rec.invoicing_rule_id IS NULL OR
14420: p_line_rec.invoicing_rule_id <> FND_API.G_MISS_NUM) AND
14421: NOT OE_GLOBALS.Equal(p_line_rec.invoicing_rule_id,
14422: p_old_line_rec.invoicing_rule_id)
14423: THEN
14424: l_line_val_rec.invoicing_rule := OE_Id_To_Value.Invoicing_Rule
14425: ( p_invoicing_rule_id => p_line_rec.invoicing_rule_id

Line 14431: NOT OE_GLOBALS.Equal(p_line_rec.item_type_code,

14427: END IF;
14428:
14429: IF (p_line_rec.item_type_code IS NULL OR
14430: p_line_rec.item_type_code <> FND_API.G_MISS_CHAR) AND
14431: NOT OE_GLOBALS.Equal(p_line_rec.item_type_code,
14432: p_old_line_rec.item_type_code)
14433: THEN
14434: l_line_val_rec.item_type := OE_Id_To_Value.Item_Type
14435: ( p_item_type_code => p_line_rec.item_type_code

Line 14441: NOT OE_GLOBALS.Equal(p_line_rec.line_type_id,

14437: END IF;
14438:
14439: IF (p_line_rec.line_type_id IS NULL OR
14440: p_line_rec.line_type_id <> FND_API.G_MISS_NUM) AND
14441: NOT OE_GLOBALS.Equal(p_line_rec.line_type_id,
14442: p_old_line_rec.line_type_id)
14443: THEN
14444: l_line_val_rec.line_type := OE_Id_To_Value.Line_Type
14445: ( p_line_type_id => p_line_rec.line_type_id

Line 14451: NOT OE_GLOBALS.Equal(p_line_rec.over_ship_reason_code,

14447: END IF;
14448:
14449: IF (p_line_rec.over_ship_reason_code IS NULL OR
14450: p_line_rec.over_ship_reason_code <> FND_API.G_MISS_CHAR) AND
14451: NOT OE_GLOBALS.Equal(p_line_rec.over_ship_reason_code,
14452: p_old_line_rec.over_ship_reason_code)
14453: THEN
14454: l_line_val_rec.over_ship_reason := OE_Id_To_Value.over_ship_reason
14455: ( p_over_ship_reason_code => p_line_rec.over_ship_reason_code

Line 14461: NOT OE_GLOBALS.Equal(p_line_rec.payment_term_id,

14457: END IF;
14458:
14459: IF (p_line_rec.payment_term_id IS NULL OR
14460: p_line_rec.payment_term_id <> FND_API.G_MISS_NUM) AND
14461: NOT OE_GLOBALS.Equal(p_line_rec.payment_term_id,
14462: p_old_line_rec.payment_term_id)
14463: THEN
14464: l_line_val_rec.payment_term := OE_Id_To_Value.Payment_Term
14465: ( p_payment_term_id => p_line_rec.payment_term_id

Line 14471: NOT OE_GLOBALS.Equal(p_line_rec.price_list_id,

14467: END IF;
14468:
14469: IF (p_line_rec.price_list_id IS NULL OR
14470: p_line_rec.price_list_id <> FND_API.G_MISS_NUM) AND
14471: NOT OE_GLOBALS.Equal(p_line_rec.price_list_id,
14472: p_old_line_rec.price_list_id)
14473: THEN
14474: l_line_val_rec.price_list := OE_Id_To_Value.Price_List
14475: ( p_price_list_id => p_line_rec.price_list_id

Line 14481: NOT OE_GLOBALS.Equal(p_line_rec.project_id,

14477: END IF;
14478:
14479: IF (p_line_rec.project_id IS NULL OR
14480: p_line_rec.project_id <> FND_API.G_MISS_NUM) AND
14481: NOT OE_GLOBALS.Equal(p_line_rec.project_id,
14482: p_old_line_rec.project_id)
14483: THEN
14484: l_line_val_rec.project := OE_Id_To_Value.Project
14485: ( p_project_id => p_line_rec.project_id

Line 14492: NOT OE_GLOBALS.Equal(p_line_rec.source_type_code,

14488:
14489:
14490: IF (p_line_rec.source_type_code IS NULL OR
14491: p_line_rec.source_type_code <> FND_API.G_MISS_CHAR) AND
14492: NOT OE_GLOBALS.Equal(p_line_rec.source_type_code,
14493: p_old_line_rec.source_type_code)
14494: THEN
14495:
14496: l_line_val_rec.source_type := OE_Id_To_Value.source_type

Line 14504: NOT OE_GLOBALS.Equal(p_line_rec.return_reason_code,

14500:
14501:
14502: IF (p_line_rec.return_reason_code IS NULL OR
14503: p_line_rec.return_reason_code <> FND_API.G_MISS_CHAR) AND
14504: NOT OE_GLOBALS.Equal(p_line_rec.return_reason_code,
14505: p_old_line_rec.return_reason_code)
14506: THEN
14507:
14508: l_line_val_rec.return_reason := OE_Id_To_Value.return_reason

Line 14515: NOT OE_GLOBALS.Equal(p_line_rec.reference_line_id,

14511: END IF;
14512:
14513: IF (p_line_rec.reference_line_id IS NULL OR
14514: p_line_rec.reference_line_id <> FND_API.G_MISS_NUM) AND
14515: NOT OE_GLOBALS.Equal(p_line_rec.reference_line_id,
14516: p_old_line_rec.reference_line_id)
14517: THEN
14518: OE_Id_To_Value.reference_line
14519: ( p_reference_line_id => p_line_rec.reference_line_id

Line 14531: NOT OE_GLOBALS.Equal(p_line_rec.reference_customer_trx_line_id,

14527: END IF;
14528:
14529: IF (p_line_rec.reference_customer_trx_line_id IS NULL OR
14530: p_line_rec.reference_customer_trx_line_id <> FND_API.G_MISS_NUM) AND
14531: NOT OE_GLOBALS.Equal(p_line_rec.reference_customer_trx_line_id,
14532: p_old_line_rec.reference_customer_trx_line_id)
14533: THEN
14534: OE_Id_To_Value.Reference_Cust_Trx_Line
14535: ( p_reference_cust_trx_line_id => p_line_rec.reference_customer_trx_line_id

Line 14543: NOT OE_GLOBALS.Equal(p_line_rec.credit_invoice_line_id,

14539: END IF;
14540:
14541: IF (p_line_rec.credit_invoice_line_id IS NULL OR
14542: p_line_rec.credit_invoice_line_id <> FND_API.G_MISS_NUM) AND
14543: NOT OE_GLOBALS.Equal(p_line_rec.credit_invoice_line_id,
14544: p_old_line_rec.credit_invoice_line_id)
14545: THEN
14546: l_line_val_rec.credit_invoice_number
14547: := OE_Id_To_Value.credit_invoice_line

Line 14554: NOT OE_GLOBALS.Equal(p_line_rec.rla_schedule_type_code,

14550: END IF;
14551:
14552: IF (p_line_rec.rla_schedule_type_code IS NULL OR
14553: p_line_rec.rla_schedule_type_code <> FND_API.G_MISS_CHAR) AND
14554: NOT OE_GLOBALS.Equal(p_line_rec.rla_schedule_type_code,
14555: p_old_line_rec.rla_schedule_type_code)
14556: THEN
14557: l_line_val_rec.rla_schedule_type := OE_Id_To_Value.Rla_Schedule_Type
14558: ( p_rla_schedule_type_code => p_line_rec.rla_schedule_type_code

Line 14564: NOT OE_GLOBALS.Equal(p_line_rec.salesrep_id,

14560: END IF;
14561:
14562: IF (p_line_rec.salesrep_id IS NULL OR
14563: p_line_rec.salesrep_id <> FND_API.G_MISS_NUM) AND
14564: NOT OE_GLOBALS.Equal(p_line_rec.salesrep_id,
14565: p_old_line_rec.salesrep_id)
14566: THEN
14567: l_line_val_rec.salesrep := OE_Id_To_Value.salesrep
14568: ( p_salesrep_id => p_line_rec.salesrep_id

Line 14574: NOT OE_GLOBALS.Equal(p_line_rec.commitment_id,

14570: END IF;
14571:
14572: IF (p_line_rec.commitment_id IS NULL OR
14573: p_line_rec.commitment_id <> FND_API.G_MISS_NUM) AND
14574: NOT OE_GLOBALS.Equal(p_line_rec.commitment_id,
14575: p_old_line_rec.commitment_id)
14576: THEN
14577: l_line_val_rec.commitment := OE_Id_To_Value.Commitment
14578: ( p_commitment_id => p_line_rec.commitment_id

Line 14585: NOT OE_GLOBALS.Equal(p_line_rec.shipment_priority_code,

14581:
14582:
14583: IF (p_line_rec.shipment_priority_code IS NULL OR
14584: p_line_rec.shipment_priority_code <> FND_API.G_MISS_CHAR) AND
14585: NOT OE_GLOBALS.Equal(p_line_rec.shipment_priority_code,
14586: p_old_line_rec.shipment_priority_code)
14587: THEN
14588: l_line_val_rec.shipment_priority := OE_Id_To_Value.Shipment_Priority
14589: ( p_shipment_priority_code => p_line_rec.shipment_priority_code

Line 14595: NOT OE_GLOBALS.Equal(p_line_rec.demand_class_code,

14591: END IF;
14592:
14593: IF (p_line_rec.demand_class_code IS NULL OR
14594: p_line_rec.demand_class_code <> FND_API.G_MISS_CHAR) AND
14595: NOT OE_GLOBALS.Equal(p_line_rec.demand_class_code,
14596: p_old_line_rec.demand_class_code)
14597: THEN
14598: l_line_val_rec.demand_class := OE_Id_To_Value.Demand_Class
14599: ( p_demand_class_code => p_line_rec.demand_class_code

Line 14605: NOT OE_GLOBALS.Equal(p_line_rec.ship_from_org_id,

14601: END IF;
14602:
14603: IF (p_line_rec.ship_from_org_id IS NULL OR
14604: p_line_rec.ship_from_org_id <> FND_API.G_MISS_NUM) AND
14605: NOT OE_GLOBALS.Equal(p_line_rec.ship_from_org_id,
14606: p_old_line_rec.ship_from_org_id)
14607: THEN
14608: OE_Id_To_Value.Ship_From_Org
14609: ( p_ship_from_org_id => p_line_rec.ship_from_org_id

Line 14621: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_contact_id,

14617: END IF;
14618:
14619: IF (p_line_rec.ship_to_contact_id IS NULL OR
14620: p_line_rec.ship_to_contact_id <> FND_API.G_MISS_NUM) AND
14621: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_contact_id,
14622: p_old_line_rec.ship_to_contact_id)
14623: THEN
14624: l_line_val_rec.ship_to_contact := OE_Id_To_Value.Ship_To_Contact
14625: ( p_ship_to_contact_id => p_line_rec.ship_to_contact_id

Line 14631: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_org_id,

14627: END IF;
14628:
14629: IF (p_line_rec.ship_to_org_id IS NULL OR
14630: p_line_rec.ship_to_org_id <> FND_API.G_MISS_NUM) AND
14631: NOT OE_GLOBALS.Equal(p_line_rec.ship_to_org_id,
14632: p_old_line_rec.ship_to_org_id)
14633: THEN
14634: get_customer_details
14635: ( p_org_id => p_line_rec.ship_to_org_id

Line 14657: NOT OE_GLOBALS.Equal(p_line_rec.sold_to_org_id,

14653:
14654:
14655: IF (p_line_rec.sold_to_org_id IS NULL OR
14656: p_line_rec.sold_to_org_id <> FND_API.G_MISS_NUM) AND
14657: NOT OE_GLOBALS.Equal(p_line_rec.sold_to_org_id,
14658: p_old_line_rec.sold_to_org_id)
14659: THEN
14660: OE_Id_To_Value.Sold_To_Org
14661: ( p_sold_to_org_id => p_line_rec.sold_to_org_id

Line 14669: NOT OE_GLOBALS.Equal(p_line_rec.task_id,

14665: END IF;
14666:
14667: IF (p_line_rec.task_id IS NULL OR
14668: p_line_rec.task_id <> FND_API.G_MISS_NUM) AND
14669: NOT OE_GLOBALS.Equal(p_line_rec.task_id,
14670: p_old_line_rec.task_id)
14671: THEN
14672: l_line_val_rec.task := OE_Id_To_Value.Task
14673: ( p_task_id => p_line_rec.task_id

Line 14679: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_flag,

14675: END IF;
14676:
14677: IF (p_line_rec.tax_exempt_flag IS NULL OR
14678: p_line_rec.tax_exempt_flag <> FND_API.G_MISS_CHAR) AND
14679: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_flag,
14680: p_old_line_rec.tax_exempt_flag)
14681: THEN
14682: l_line_val_rec.tax_exempt := OE_Id_To_Value.Tax_Exempt
14683: ( p_tax_exempt_flag => p_line_rec.tax_exempt_flag

Line 14689: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_reason_code,

14685: END IF;
14686:
14687: IF (p_line_rec.tax_exempt_reason_code IS NULL OR
14688: p_line_rec.tax_exempt_reason_code <> FND_API.G_MISS_CHAR) AND
14689: NOT OE_GLOBALS.Equal(p_line_rec.tax_exempt_reason_code,
14690: p_old_line_rec.tax_exempt_reason_code)
14691: THEN
14692: l_line_val_rec.tax_exempt_reason := OE_Id_To_Value.Tax_Exempt_Reason
14693: ( p_tax_exempt_reason_code => p_line_rec.tax_exempt_reason_code

Line 14699: NOT OE_GLOBALS.Equal(p_line_rec.tax_point_code,

14695: END IF;
14696:
14697: IF (p_line_rec.tax_point_code IS NULL OR
14698: p_line_rec.tax_point_code <> FND_API.G_MISS_CHAR) AND
14699: NOT OE_GLOBALS.Equal(p_line_rec.tax_point_code,
14700: p_old_line_rec.tax_point_code)
14701: THEN
14702: l_line_val_rec.tax_point := OE_Id_To_Value.Tax_Point
14703: ( p_tax_point_code => p_line_rec.tax_point_code

Line 14709: NOT OE_GLOBALS.Equal(p_line_rec.tax_code,

14705: END IF;
14706:
14707: /*IF (p_line_rec.tax_code IS NULL OR
14708: p_line_rec.tax_code <> FND_API.G_MISS_CHAR) AND
14709: NOT OE_GLOBALS.Equal(p_line_rec.tax_code,
14710: p_old_line_rec.tax_code)
14711: THEN
14712: l_line_val_rec.tax_group := OE_Id_To_Value.Tax_Group
14713: ( p_tax_code => p_line_rec.tax_code

Line 14719: NOT OE_GLOBALS.Equal(p_line_rec.veh_cus_item_cum_key_id,

14715: END IF;*/
14716:
14717: IF (p_line_rec.veh_cus_item_cum_key_id IS NULL OR
14718: p_line_rec.veh_cus_item_cum_key_id <> FND_API.G_MISS_NUM) AND
14719: NOT OE_GLOBALS.Equal(p_line_rec.veh_cus_item_cum_key_id,
14720: p_old_line_rec.veh_cus_item_cum_key_id)
14721: THEN
14722: l_line_val_rec.veh_cus_item_cum_key := OE_Id_To_Value.veh_cus_item_cum_key
14723: ( p_veh_cus_item_cum_key_id => p_line_rec.veh_cus_item_cum_key_id

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

15848:
15849: IF p_x_line_rec.sold_to_org_id = FND_API.G_MISS_NUM
15850: THEN
15851:
15852: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
15853:
15854: -- bug 2411783
15855: -- for a newly created order, since the line is not posted,
15856: -- in Order import, there will be no Header record.

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

15857: --OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
15858: --l_sold_to_org_id := OE_Order_Cache.g_header_rec.sold_to_org_id;
15859: null;
15860:
15861: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
15862:
15863: SELECT SOLD_TO_ORG_ID
15864: INTO l_sold_to_org_id
15865: FROM OE_ORDER_LINES

Line 16021: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

16017: -- For e.g. oe_value_to_id.ship_to_contact_id requires ship_to_org_id
16018:
16019: -- bug 3487597, added clause for line_id
16020:
16021: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
16022: AND ( p_x_line_rec.ship_to_org_id = FND_API.G_MISS_NUM
16023: OR p_x_line_rec.invoice_to_org_id = FND_API.G_MISS_NUM
16024: OR p_x_line_rec.deliver_to_org_id = FND_API.G_MISS_NUM )
16025: AND p_x_line_rec.line_id <> FND_API.G_MISS_NUM

Line 17075: l_control_rec OE_GLOBALS.Control_Rec_Type;

17071: IS
17072: /* Variables to call process order */
17073: l_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
17074: l_old_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
17075: l_control_rec OE_GLOBALS.Control_Rec_Type;
17076:
17077: l_attribute_value VARCHAR2(2000);
17078: l_address_id VARCHAR2(2000):= NULL;
17079: l_cust_id NUMBER:= NULL;

Line 17238: l_control_rec OE_GLOBALS.Control_Rec_Type;

17234: (p_x_line_rec IN OUT NOCOPY OE_Order_PUB.Line_Rec_Type)
17235: IS
17236: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
17237: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
17238: l_control_rec OE_GLOBALS.Control_Rec_Type;
17239: l_return_status VARCHAR2(30);
17240: BEGIN
17241:
17242: l_control_rec.controlled_operation := TRUE;

Line 17285: l_control_rec OE_GLOBALS.Control_Rec_Type;

17281: (p_x_line_rec IN OUT NOCOPY OE_Order_PUB.Line_Rec_Type)
17282: IS
17283: l_old_line_tbl OE_Order_PUB.Line_Tbl_Type;
17284: l_line_tbl OE_Order_PUB.Line_Tbl_Type;
17285: l_control_rec OE_GLOBALS.Control_Rec_Type;
17286: l_return_status VARCHAR2(30);
17287: BEGIN
17288:
17289: l_control_rec.controlled_operation := TRUE;

Line 17436: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,

17432: ------------------------------------------------------------------------
17433: -- Copy corresponding inventory item to the line if it is a CUST item
17434: ------------------------------------------------------------------------
17435:
17436: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,
17437: p_old_line_rec.ship_from_org_id) OR
17438: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,
17439: p_old_line_rec.ship_to_org_id) THEN
17440: if l_debug_level > 0 then

Line 17438: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,

17434: ------------------------------------------------------------------------
17435:
17436: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_from_org_id ,
17437: p_old_line_rec.ship_from_org_id) OR
17438: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id ,
17439: p_old_line_rec.ship_to_org_id) THEN
17440: if l_debug_level > 0 then
17441: oe_debug_pub.Add('RR:I1', 1);
17442: end if;

Line 17484: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,

17480: -- Populate ordered item field if item identifier type is INT or CUST
17481: /*Bug 2411113*/
17482: ------------------------------------------------------------------------
17483:
17484: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
17485: p_old_line_rec.inventory_item_id)
17486: AND p_x_line_rec.item_identifier_type in ('INT', 'CUST'))
17487: OR
17488: (p_x_line_rec.ordered_item = FND_API.G_MISS_CHAR

Line 17535: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

17531: -- rlanka: changes made to fix bug 1730452
17532: -- rlanka: changes made to fix bug 1857538
17533: -------------------------------------------------------------------------
17534:
17535: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
17536: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
17537: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
17538: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
17539: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

Line 17536: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

17532: -- rlanka: changes made to fix bug 1857538
17533: -------------------------------------------------------------------------
17534:
17535: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
17536: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
17537: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
17538: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
17539: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
17540: p_x_line_rec.split_from_line_id IS NULL THEN

Line 17537: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and

17533: -------------------------------------------------------------------------
17534:
17535: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
17536: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
17537: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
17538: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
17539: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
17540: p_x_line_rec.split_from_line_id IS NULL THEN
17541:

Line 17539: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

17535: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
17536: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
17537: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT and
17538: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
17539: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
17540: p_x_line_rec.split_from_line_id IS NULL THEN
17541:
17542:
17543: /* Fix for bug 1730452 (May 1, 2001)

Line 17600: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17596: OEXULPAB.pls
17597: - Idea is, copy_model_pattr for each option line.
17598: */
17599: OE_delayed_requests_Pvt.log_request(
17600: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17601: p_entity_id => p_x_line_rec.line_id,
17602: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17603: p_requesting_entity_id => p_x_line_rec.line_id,
17604: p_param1 => p_x_line_rec.line_id,

Line 17602: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17598: */
17599: OE_delayed_requests_Pvt.log_request(
17600: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17601: p_entity_id => p_x_line_rec.line_id,
17602: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17603: p_requesting_entity_id => p_x_line_rec.line_id,
17604: p_param1 => p_x_line_rec.line_id,
17605: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,
17606: x_return_status => l_return_status);

Line 17605: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,

17601: p_entity_id => p_x_line_rec.line_id,
17602: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17603: p_requesting_entity_id => p_x_line_rec.line_id,
17604: p_param1 => p_x_line_rec.line_id,
17605: p_request_type => OE_GLOBALS.G_COPY_MODEL_PATTR,
17606: x_return_status => l_return_status);
17607: end if;
17608:
17609: END IF;

Line 17620: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR

17616:
17617: OE_SALES_CAN_UTIL.G_REQUIRE_REASON := l_require_reason;
17618:
17619: /*sdatti*/
17620: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
17621: p_x_line_rec.ordered_quantity = 0)
17622: and OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
17623:
17624: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN

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

17620: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
17621: p_x_line_rec.ordered_quantity = 0)
17622: and OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110509' THEN
17623:
17624: IF Nvl(oe_globals.g_pricing_recursion,'N') = 'N' THEN
17625: update_adjustment_flags(p_old_line_rec,p_x_line_rec);
17626: END IF;
17627: END IF;
17628: /*sdatti*/

Line 17643: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

17639: -- log a split payment request to cascade payment information from
17640: -- the parent line if the line is split
17641: ------------------------------------------------------------------------
17642:
17643: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
17644: AND p_x_line_rec.split_from_line_id is not null
17645: AND OE_PREPAYMENT_UTIL.IS_MULTIPLE_PAYMENTS_ENABLED
17646: THEN
17647:

Line 17663: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17659:
17660: IF l_line_payment_type_code IS NOT NULL THEN
17661: oe_debug_pub.add('Log delayed request to cascade payment information for line: '||p_x_line_rec.line_id, 1);
17662: OE_Delayed_Requests_Pvt.Log_Request(
17663: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17664: p_entity_id => p_x_line_rec.line_id,
17665: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17666: p_requesting_entity_id => p_x_line_rec.line_id,
17667: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,

Line 17665: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17661: oe_debug_pub.add('Log delayed request to cascade payment information for line: '||p_x_line_rec.line_id, 1);
17662: OE_Delayed_Requests_Pvt.Log_Request(
17663: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17664: p_entity_id => p_x_line_rec.line_id,
17665: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17666: p_requesting_entity_id => p_x_line_rec.line_id,
17667: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,
17668: p_param1 => p_x_line_rec.split_from_line_id,
17669: p_param2 => p_x_line_rec.header_id,

Line 17667: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,

17663: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17664: p_entity_id => p_x_line_rec.line_id,
17665: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17666: p_requesting_entity_id => p_x_line_rec.line_id,
17667: p_request_type => OE_GLOBALS.G_SPLIT_PAYMENT,
17668: p_param1 => p_x_line_rec.split_from_line_id,
17669: p_param2 => p_x_line_rec.header_id,
17670: x_return_status => l_return_status);
17671: END IF;

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

17676: ------------------------------------------------------------------------
17677: -- log a split hold request if the line is split
17678: ------------------------------------------------------------------------
17679:
17680: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
17681: p_x_line_rec.split_from_line_id is not null
17682: THEN
17683: if l_debug_level > 0 then
17684: oe_debug_pub.add('This is a new line after split', 1);

Line 17687: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17683: if l_debug_level > 0 then
17684: oe_debug_pub.add('This is a new line after split', 1);
17685: end if;
17686: OE_Delayed_Requests_Pvt.Log_Request(
17687: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17688: p_entity_id => p_x_line_rec.line_id,
17689: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17690: p_requesting_entity_id => p_x_line_rec.line_id,
17691: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,

Line 17689: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17685: end if;
17686: OE_Delayed_Requests_Pvt.Log_Request(
17687: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17688: p_entity_id => p_x_line_rec.line_id,
17689: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17690: p_requesting_entity_id => p_x_line_rec.line_id,
17691: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,
17692: p_param1 => p_x_line_rec.split_from_line_id,
17693: x_return_status => l_return_status);

Line 17691: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,

17687: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17688: p_entity_id => p_x_line_rec.line_id,
17689: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17690: p_requesting_entity_id => p_x_line_rec.line_id,
17691: p_request_type => OE_GLOBALS.G_SPLIT_HOLD,
17692: p_param1 => p_x_line_rec.split_from_line_id,
17693: x_return_status => l_return_status);
17694: END IF;
17695:

Line 17719: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR

17715: -- IF p_x_line_rec.shipping_interfaced_flag = 'Y' AND
17716: IF (p_x_line_rec.shipping_interfaced_flag = 'Y' OR
17717: (p_x_line_rec.shippable_flag = 'Y' AND p_x_line_rec.booked_flag = 'Y'
17718: AND Shipping_Interfaced_Status(p_x_line_rec.line_id) = 'Y')) AND
17719: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR
17720: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
17721: (
17722: (p_x_line_rec.ship_set_id IS NULL AND
17723: p_old_line_rec.ship_set_id IS NOT NULL) --AND

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

17716: IF (p_x_line_rec.shipping_interfaced_flag = 'Y' OR
17717: (p_x_line_rec.shippable_flag = 'Y' AND p_x_line_rec.booked_flag = 'Y'
17718: AND Shipping_Interfaced_Status(p_x_line_rec.line_id) = 'Y')) AND
17719: ( (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) OR
17720: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
17721: (
17722: (p_x_line_rec.ship_set_id IS NULL AND
17723: p_old_line_rec.ship_set_id IS NOT NULL) --AND
17724: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,

Line 17724: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,

17720: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
17721: (
17722: (p_x_line_rec.ship_set_id IS NULL AND
17723: p_old_line_rec.ship_set_id IS NOT NULL) --AND
17724: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
17725: p_old_line_rec.ship_from_org_id))
17726: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
17727: p_old_line_rec.request_date))
17728: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

Line 17726: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

17722: (p_x_line_rec.ship_set_id IS NULL AND
17723: p_old_line_rec.ship_set_id IS NOT NULL) --AND
17724: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
17725: p_old_line_rec.ship_from_org_id))
17726: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
17727: p_old_line_rec.request_date))
17728: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
17729: p_old_line_rec.ship_to_org_id))
17730: ) AND

Line 17728: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

17724: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
17725: p_old_line_rec.ship_from_org_id))
17726: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
17727: p_old_line_rec.request_date))
17728: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
17729: p_old_line_rec.ship_to_org_id))
17730: ) AND
17731: p_x_line_rec.split_action_code = 'SPLIT'
17732: )

Line 17741: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17737: if l_debug_level > 0 then
17738: oe_debug_pub.ADD('Update Shipping : '|| p_x_line_rec.line_id ,1);
17739: end if;
17740: OE_Delayed_Requests_Pvt.Log_Request(
17741: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17742: p_entity_id => p_x_line_rec.line_id,
17743: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17744: p_requesting_entity_id => p_x_line_rec.line_id,
17745: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 17743: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17739: end if;
17740: OE_Delayed_Requests_Pvt.Log_Request(
17741: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17742: p_entity_id => p_x_line_rec.line_id,
17743: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17744: p_requesting_entity_id => p_x_line_rec.line_id,
17745: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
17746: p_request_unique_key1 => p_x_line_rec.operation,
17747: p_param1 => FND_API.G_TRUE,

Line 17745: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

17741: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17742: p_entity_id => p_x_line_rec.line_id,
17743: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17744: p_requesting_entity_id => p_x_line_rec.line_id,
17745: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
17746: p_request_unique_key1 => p_x_line_rec.operation,
17747: p_param1 => FND_API.G_TRUE,
17748: p_param2 => FND_API.G_FALSE,
17749: x_return_status => l_return_status);

Line 17754: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

17750:
17751: END IF;
17752: --bsadri call pricing for deleted lines
17753:
17754: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
17755: p_x_line_rec.order_quantity_uom IS NOT NULL AND
17756: p_x_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR AND
17757: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
17758: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN

Line 17760: IF (OE_GLOBALS.G_UI_FLAG) and

17756: p_x_line_rec.order_quantity_uom <> FND_API.G_MISS_CHAR AND
17757: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
17758: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN
17759:
17760: IF (OE_GLOBALS.G_UI_FLAG) and
17761: OE_GLOBALS.G_DEFER_PRICING='N' and
17762: (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N') THEN
17763: if l_debug_level > 0 then
17764: oe_debug_pub.add('ui mode - delete');

Line 17761: OE_GLOBALS.G_DEFER_PRICING='N' and

17757: NVL(p_x_line_rec.ordered_quantity,0) <> 0 AND
17758: p_x_line_rec.Ordered_Quantity <> FND_API.G_MISS_NUM THEN
17759:
17760: IF (OE_GLOBALS.G_UI_FLAG) and
17761: OE_GLOBALS.G_DEFER_PRICING='N' and
17762: (nvl(Oe_Config_Pvt.oecfg_configuration_pricing,'N')='N') THEN
17763: if l_debug_level > 0 then
17764: oe_debug_pub.add('ui mode - delete');
17765: end if;

Line 17772: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17768: ELSE
17769: l_pricing_event := 'ORDER';
17770: END IF;
17771: OE_delayed_requests_Pvt.log_request(
17772: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17773: p_entity_id => p_x_line_rec.Header_Id,
17774: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17775: p_requesting_entity_id => p_x_line_rec.Header_Id,
17776: p_request_unique_key1 => l_pricing_event,

Line 17774: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17770: END IF;
17771: OE_delayed_requests_Pvt.log_request(
17772: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17773: p_entity_id => p_x_line_rec.Header_Id,
17774: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17775: p_requesting_entity_id => p_x_line_rec.Header_Id,
17776: p_request_unique_key1 => l_pricing_event,
17777: p_param1 => p_x_line_rec.header_id,
17778: p_param2 => l_pricing_event,

Line 17779: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

17775: p_requesting_entity_id => p_x_line_rec.Header_Id,
17776: p_request_unique_key1 => l_pricing_event,
17777: p_param1 => p_x_line_rec.header_id,
17778: p_param2 => l_pricing_event,
17779: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
17780: x_return_status => l_return_status);
17781: -- sol_ord_er #16014165
17782: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17783: oe_delayed_requests_pvt.log_request(

Line 17784: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17780: x_return_status => l_return_status);
17781: -- sol_ord_er #16014165
17782: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17783: oe_delayed_requests_pvt.log_request(
17784: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17785: p_entity_id => p_x_line_rec.Header_Id,
17786: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17787: p_requesting_entity_id => p_x_line_rec.Header_Id,
17788: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 17786: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17782: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17783: oe_delayed_requests_pvt.log_request(
17784: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17785: p_entity_id => p_x_line_rec.Header_Id,
17786: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17787: p_requesting_entity_id => p_x_line_rec.Header_Id,
17788: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
17789: p_request_unique_key1 => 'ORDER',
17790: p_param1 => p_x_line_rec.Header_Id,

Line 17788: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

17784: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17785: p_entity_id => p_x_line_rec.Header_Id,
17786: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17787: p_requesting_entity_id => p_x_line_rec.Header_Id,
17788: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
17789: p_request_unique_key1 => 'ORDER',
17790: p_param1 => p_x_line_rec.Header_Id,
17791: x_return_status => l_return_status);
17792: END IF;

Line 17815: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17811: if l_debug_level > 0 then
17812: oe_debug_pub.add('logging price order - delete operation');
17813: end if;
17814: OE_delayed_requests_Pvt.log_request(
17815: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17816: p_entity_id => p_x_line_rec.Header_Id,
17817: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17818: p_requesting_entity_id => p_x_line_rec.Header_Id,
17819: p_request_unique_key1 => l_pricing_event,

Line 17817: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17813: end if;
17814: OE_delayed_requests_Pvt.log_request(
17815: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17816: p_entity_id => p_x_line_rec.Header_Id,
17817: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17818: p_requesting_entity_id => p_x_line_rec.Header_Id,
17819: p_request_unique_key1 => l_pricing_event,
17820: p_param1 => p_x_line_rec.header_id,
17821: p_param2 => l_pricing_event,

Line 17822: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

17818: p_requesting_entity_id => p_x_line_rec.Header_Id,
17819: p_request_unique_key1 => l_pricing_event,
17820: p_param1 => p_x_line_rec.header_id,
17821: p_param2 => l_pricing_event,
17822: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
17823: x_return_status => l_return_status);
17824: -- sol_ord_er #16014165
17825: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17826: oe_delayed_requests_pvt.log_request(

Line 17827: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17823: x_return_status => l_return_status);
17824: -- sol_ord_er #16014165
17825: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17826: oe_delayed_requests_pvt.log_request(
17827: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17828: p_entity_id => p_x_line_rec.Header_Id,
17829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17830: p_requesting_entity_id => p_x_line_rec.Header_Id,
17831: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

Line 17829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17825: IF (p_x_line_rec.service_bill_option_code = 'FPOM') THEN
17826: oe_delayed_requests_pvt.log_request(
17827: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17828: p_entity_id => p_x_line_rec.Header_Id,
17829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17830: p_requesting_entity_id => p_x_line_rec.Header_Id,
17831: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
17832: p_request_unique_key1 => 'ORDER',
17833: p_param1 => p_x_line_rec.Header_Id,

Line 17831: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,

17827: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17828: p_entity_id => p_x_line_rec.Header_Id,
17829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17830: p_requesting_entity_id => p_x_line_rec.Header_Id,
17831: p_request_type => OE_GLOBALS.G_SERVICE_FIRST_PERIOD_BILL,
17832: p_request_unique_key1 => 'ORDER',
17833: p_param1 => p_x_line_rec.Header_Id,
17834: x_return_status => l_return_status);
17835: END IF;

Line 17845: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17841: if l_debug_level > 0 then
17842: oe_debug_pub.add('bokked - delete');
17843: end if;
17844: OE_delayed_requests_Pvt.log_request(
17845: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17846: p_entity_id => p_x_line_rec.Header_Id,
17847: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17848: p_requesting_entity_id => p_x_line_rec.Header_Id,
17849: p_request_unique_key1 => 'BOOK',

Line 17847: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17843: end if;
17844: OE_delayed_requests_Pvt.log_request(
17845: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17846: p_entity_id => p_x_line_rec.Header_Id,
17847: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17848: p_requesting_entity_id => p_x_line_rec.Header_Id,
17849: p_request_unique_key1 => 'BOOK',
17850: p_param1 => p_x_line_rec.header_id,
17851: p_param2 => 'BOOK',

Line 17852: p_request_type => OE_GLOBALS.G_PRICE_ORDER,

17848: p_requesting_entity_id => p_x_line_rec.Header_Id,
17849: p_request_unique_key1 => 'BOOK',
17850: p_param1 => p_x_line_rec.header_id,
17851: p_param2 => 'BOOK',
17852: p_request_type => OE_GLOBALS.G_PRICE_ORDER,
17853: x_return_status => l_return_status);
17854: END IF; --2442012
17855: */
17856: END IF;

Line 17861: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN

17857:
17858:
17859: --Bug# 9434723 - Start -
17860: -- Logging delayed request on DELETE Operation to delete header-level charges if there is no more qty on SO
17861: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN
17862: oe_debug_pub.add(' Logging delayed request to delete header-level charges ');
17863: oe_delayed_requests_pvt.log_request(
17864: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17865: p_entity_id => p_x_line_rec.header_id,

Line 17864: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17860: -- Logging delayed request on DELETE Operation to delete header-level charges if there is no more qty on SO
17861: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN
17862: oe_debug_pub.add(' Logging delayed request to delete header-level charges ');
17863: oe_delayed_requests_pvt.log_request(
17864: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17865: p_entity_id => p_x_line_rec.header_id,
17866: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17867: p_requesting_entity_id => p_x_line_rec.header_id,
17868: p_request_type => OE_GLOBALS.G_DELETE_CHARGES,

Line 17866: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

17862: oe_debug_pub.add(' Logging delayed request to delete header-level charges ');
17863: oe_delayed_requests_pvt.log_request(
17864: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17865: p_entity_id => p_x_line_rec.header_id,
17866: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17867: p_requesting_entity_id => p_x_line_rec.header_id,
17868: p_request_type => OE_GLOBALS.G_DELETE_CHARGES,
17869: x_return_status => l_return_status);
17870: oe_debug_pub.add(' After logging G_DELETE_CHARGES delayed request - l_return_status= '||l_return_status);

Line 17868: p_request_type => OE_GLOBALS.G_DELETE_CHARGES,

17864: p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17865: p_entity_id => p_x_line_rec.header_id,
17866: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
17867: p_requesting_entity_id => p_x_line_rec.header_id,
17868: p_request_type => OE_GLOBALS.G_DELETE_CHARGES,
17869: x_return_status => l_return_status);
17870: oe_debug_pub.add(' After logging G_DELETE_CHARGES delayed request - l_return_status= '||l_return_status);
17871: END IF;
17872: --- Bug# 9434723 -- End

Line 17879: IF (p_x_line_rec.operation = oe_globals.g_opr_update) and

17875: if l_debug_level > 0 then
17876: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
17877: end if;
17878:
17879: IF (p_x_line_rec.operation = oe_globals.g_opr_update) and
17880: NOT (p_x_line_rec.split_action_code IS NOT NULL AND
17881: p_x_line_rec.split_action_code <> FND_API.G_MISS_CHAR) AND
17882: (p_x_line_rec.line_set_id IS NOT NULL AND
17883: p_x_line_rec.line_set_id <> FND_API.G_MISS_NUM) THEN

Line 17889: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,

17885: -- Addded project and task to fix bug #1229811
17886: if l_debug_level > 0 then
17887: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
17888: end if;
17889: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
17890: p_old_line_rec.inventory_item_id) OR
17891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
17892: p_old_line_rec.order_quantity_uom) OR
17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,

Line 17891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,

17887: oe_debug_pub.ADD('Raj:Split-Inside Request' ,1);
17888: end if;
17889: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
17890: p_old_line_rec.inventory_item_id) OR
17891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
17892: p_old_line_rec.order_quantity_uom) OR
17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
17894: p_old_line_rec.ship_tolerance_above) OR
17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,

Line 17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,

17889: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.inventory_item_id ,
17890: p_old_line_rec.inventory_item_id) OR
17891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
17892: p_old_line_rec.order_quantity_uom) OR
17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
17894: p_old_line_rec.ship_tolerance_above) OR
17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
17896: p_old_line_rec.ship_tolerance_below) OR
17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,

Line 17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,

17891: NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom ,
17892: p_old_line_rec.order_quantity_uom) OR
17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
17894: p_old_line_rec.ship_tolerance_above) OR
17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
17896: p_old_line_rec.ship_tolerance_below) OR
17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
17898: p_old_line_rec.project_id) OR
17899: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,

Line 17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,

17893: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_above ,
17894: p_old_line_rec.ship_tolerance_above) OR
17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
17896: p_old_line_rec.ship_tolerance_below) OR
17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
17898: p_old_line_rec.project_id) OR
17899: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
17900: p_old_line_rec.task_id) OR
17901: NOT OE_GLOBALS.EQUAL(Nvl (p_x_line_rec.fulfillment_base,'P') , --ER#14763609

Line 17899: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,

17895: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_tolerance_below ,
17896: p_old_line_rec.ship_tolerance_below) OR
17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
17898: p_old_line_rec.project_id) OR
17899: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
17900: p_old_line_rec.task_id) OR
17901: NOT OE_GLOBALS.EQUAL(Nvl (p_x_line_rec.fulfillment_base,'P') , --ER#14763609
17902: Nvl (p_old_line_rec.fulfillment_base,'P')) THEN
17903: OE_Delayed_Requests_Pvt.Log_Request(

Line 17901: NOT OE_GLOBALS.EQUAL(Nvl (p_x_line_rec.fulfillment_base,'P') , --ER#14763609

17897: NOT OE_GLOBALS.EQUAL(p_x_line_rec.project_id ,
17898: p_old_line_rec.project_id) OR
17899: NOT OE_GLOBALS.EQUAL(p_x_line_rec.task_id ,
17900: p_old_line_rec.task_id) OR
17901: NOT OE_GLOBALS.EQUAL(Nvl (p_x_line_rec.fulfillment_base,'P') , --ER#14763609
17902: Nvl (p_old_line_rec.fulfillment_base,'P')) THEN
17903: OE_Delayed_Requests_Pvt.Log_Request(
17904: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17905: p_entity_id => p_x_line_rec.line_set_id,

Line 17904: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17900: p_old_line_rec.task_id) OR
17901: NOT OE_GLOBALS.EQUAL(Nvl (p_x_line_rec.fulfillment_base,'P') , --ER#14763609
17902: Nvl (p_old_line_rec.fulfillment_base,'P')) THEN
17903: OE_Delayed_Requests_Pvt.Log_Request(
17904: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17905: p_entity_id => p_x_line_rec.line_set_id,
17906: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17907: p_requesting_entity_id => p_x_line_rec.line_id,
17908: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,

Line 17906: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

17902: Nvl (p_old_line_rec.fulfillment_base,'P')) THEN
17903: OE_Delayed_Requests_Pvt.Log_Request(
17904: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17905: p_entity_id => p_x_line_rec.line_set_id,
17906: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17907: p_requesting_entity_id => p_x_line_rec.line_id,
17908: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,
17909: x_return_status => l_return_status);
17910: END IF;

Line 17908: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,

17904: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17905: p_entity_id => p_x_line_rec.line_set_id,
17906: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
17907: p_requesting_entity_id => p_x_line_rec.line_id,
17908: p_request_type => OE_GLOBALS.G_VALIDATE_LINE_SET,
17909: x_return_status => l_return_status);
17910: END IF;
17911:
17912: END IF;

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

17916: -- Perform Cancellation if necessary
17917: ------------------------------------------------------------------------
17918:
17919: -- QUOTING change
17920: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
17921: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
17922: THEN
17923: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND
17924: (p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM OR

Line 17923: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND

17919: -- QUOTING change
17920: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
17921: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
17922: THEN
17923: IF (p_x_line_rec.operation = oe_globals.G_OPR_UPDATE AND
17924: (p_old_line_rec.ordered_quantity <> FND_API.G_MISS_NUM OR
17925: p_old_line_rec.ordered_quantity IS NOT NULL)) then
17926:
17927: OE_SALES_CAN_UTIL.Perform_Line_change(p_x_line_rec,

Line 17971: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id

17967: ------------------------------------------------------------------------
17968:
17969: IF (p_x_line_rec.line_category_code <> 'RETURN') THEN
17970:
17971: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id
17972: ,p_old_line_rec.ship_from_org_id) OR
17973: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,
17974: p_old_line_rec.shipping_method_code)) THEN
17975: IF (p_x_line_rec.shipping_method_code IS NOT NULL AND

Line 17973: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,

17969: IF (p_x_line_rec.line_category_code <> 'RETURN') THEN
17970:
17971: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id
17972: ,p_old_line_rec.ship_from_org_id) OR
17973: NOT OE_GLOBALS.Equal(p_x_line_rec.shipping_method_code,
17974: p_old_line_rec.shipping_method_code)) THEN
17975: IF (p_x_line_rec.shipping_method_code IS NOT NULL AND
17976: p_x_line_rec.ship_from_org_id IS NOT NULL) THEN
17977:

Line 18085: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

18081: IF
18082: ((
18083: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
18084: AND
18085: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
18086: ,p_old_line_rec.transaction_phase_code)
18087: ) OR
18088: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
18089: p_old_line_rec.inventory_item_id) OR

Line 18088: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,

18084: AND
18085: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
18086: ,p_old_line_rec.transaction_phase_code)
18087: ) OR
18088: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
18089: p_old_line_rec.inventory_item_id) OR
18090: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
18091: p_old_line_rec.sold_to_org_id) OR
18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,

Line 18090: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,

18086: ,p_old_line_rec.transaction_phase_code)
18087: ) OR
18088: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
18089: p_old_line_rec.inventory_item_id) OR
18090: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
18091: p_old_line_rec.sold_to_org_id) OR
18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
18093: p_old_line_rec.unit_selling_price) OR
18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

Line 18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,

18088: NOT OE_GLOBALS.Equal(p_x_line_rec.inventory_item_id,
18089: p_old_line_rec.inventory_item_id) OR
18090: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
18091: p_old_line_rec.sold_to_org_id) OR
18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
18093: p_old_line_rec.unit_selling_price) OR
18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18095: p_old_line_rec.commitment_id) OR
18096: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And

Line 18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

18090: NOT OE_GLOBALS.Equal(p_x_line_rec.sold_to_org_id,
18091: p_old_line_rec.sold_to_org_id) OR
18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
18093: p_old_line_rec.unit_selling_price) OR
18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18095: p_old_line_rec.commitment_id) OR
18096: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
18097: --fix bug 1669076
18098: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

Line 18096: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And

18092: NOT OE_GLOBALS.Equal(p_x_line_rec.unit_selling_price,
18093: p_old_line_rec.unit_selling_price) OR
18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18095: p_old_line_rec.commitment_id) OR
18096: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
18097: --fix bug 1669076
18098: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18099: p_old_line_rec.commitment_id)
18100: THEN

Line 18098: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

18094: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18095: p_old_line_rec.commitment_id) OR
18096: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)) And
18097: --fix bug 1669076
18098: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18099: p_old_line_rec.commitment_id)
18100: THEN
18101:
18102: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)

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

18098: NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18099: p_old_line_rec.commitment_id)
18100: THEN
18101:
18102: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
18103: 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_
18104: Then
18105:
18106: If p_x_line_rec.ordered_quantity IS NULL OR

Line 18103: 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_

18099: p_old_line_rec.commitment_id)
18100: THEN
18101:
18102: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,p_old_line_rec.ordered_quantity)
18103: 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_
18104: Then
18105:
18106: If p_x_line_rec.ordered_quantity IS NULL OR
18107: p_x_line_rec.ordered_quantity = FND_API.G_MISS_NUM Then

Line 18136: If NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,

18132: l_old_unit_selling_price :=p_old_line_rec.unit_selling_price;
18133: End If;
18134:
18135:
18136: If NOT OE_GLOBALS.Equal(p_x_line_rec.commitment_id,
18137: p_old_line_rec.commitment_id) Then
18138: /* commtiment can change event quantity can change
18139: We always pass in the new, not the delta when commitment changes */
18140:

Line 18163: -- IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN

18159: End If;
18160:
18161:
18162: -- commented out the IF condition for bug 1905467.
18163: -- IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
18164:
18165: -- retain the original commitment functionality
18166: IF Not Oe_Commitment_pvt.do_commitment_sequencing THEN
18167: if l_debug_level > 0 then

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

18203: -- QUOTING change - log request only for fulfillment phase
18204: --4504362 : Branch scheduling checks removed
18205: -- If this is a split line then put this in fulfilment set if any.
18206:
18207: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
18208: p_x_line_rec.split_from_line_id IS NOT NULL ) THEN
18209: oe_split_util.Add_To_Fulfillment_Set(p_line_rec => p_x_line_rec);
18210: END IF;
18211:

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

18213: -- If line is being created by a split operation, then log request
18214: -- to copy attachments else log request to apply automatic attachments
18215: ------------------------------------------------------------------------
18216:
18217: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
18218:
18219: IF NVL(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
18220: = FND_API.G_MISS_NUM
18221: THEN

Line 18230: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18226: if l_debug_level > 0 then
18227: oe_debug_pub.add('log request to apply atchmt',1);
18228: end if;
18229: OE_delayed_requests_Pvt.Log_Request
18230: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18231: p_entity_id => p_x_line_rec.line_id,
18232: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18233: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18234: p_requesting_entity_id => p_x_line_rec.line_id,

Line 18232: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,

18228: end if;
18229: OE_delayed_requests_Pvt.Log_Request
18230: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18231: p_entity_id => p_x_line_rec.line_id,
18232: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18233: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18234: p_requesting_entity_id => p_x_line_rec.line_id,
18235: x_return_status => l_return_status
18236: );

Line 18233: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18229: OE_delayed_requests_Pvt.Log_Request
18230: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18231: p_entity_id => p_x_line_rec.line_id,
18232: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18233: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18234: p_requesting_entity_id => p_x_line_rec.line_id,
18235: x_return_status => l_return_status
18236: );
18237: END IF;

Line 18246: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18242: if l_debug_level > 0 then
18243: oe_debug_pub.add('log request to copy all atchmt',1);
18244: end if;
18245: OE_delayed_requests_Pvt.Log_Request
18246: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18247: p_entity_id => p_x_line_rec.line_id,
18248: p_param1 => p_x_line_rec.split_from_line_id,
18249: p_param2 => 'N', -- copy ALL attachments
18250: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 18250: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

18246: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18247: p_entity_id => p_x_line_rec.line_id,
18248: p_param1 => p_x_line_rec.split_from_line_id,
18249: p_param2 => 'N', -- copy ALL attachments
18250: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18251: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18252: p_requesting_entity_id => p_x_line_rec.line_id,
18253: x_return_status => l_return_status
18254: );

Line 18251: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18247: p_entity_id => p_x_line_rec.line_id,
18248: p_param1 => p_x_line_rec.split_from_line_id,
18249: p_param2 => 'N', -- copy ALL attachments
18250: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18251: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18252: p_requesting_entity_id => p_x_line_rec.line_id,
18253: x_return_status => l_return_status
18254: );
18255:

Line 18279: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18275: IF l_debug_level > 0 THEN
18276: oe_debug_pub.add('log request to copy all atchmt',1);
18277: END IF;
18278: OE_delayed_requests_Pvt.Log_Request
18279: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18280: p_entity_id => p_x_line_rec.line_id,
18281: p_param1 => p_x_line_rec.split_from_line_id,
18282: p_param2 => 'N', -- copy ALL attachments
18283: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 18283: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

18279: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18280: p_entity_id => p_x_line_rec.line_id,
18281: p_param1 => p_x_line_rec.split_from_line_id,
18282: p_param2 => 'N', -- copy ALL attachments
18283: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18284: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
18285: p_requesting_entity_id => p_x_line_rec.line_id,
18286: x_return_status => l_return_status
18287: );

Line 18284: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,

18280: p_entity_id => p_x_line_rec.line_id,
18281: p_param1 => p_x_line_rec.split_from_line_id,
18282: p_param2 => 'N', -- copy ALL attachments
18283: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18284: p_requesting_entity_code =>OE_GLOBALS.G_ENTITY_LINE,
18285: p_requesting_entity_id => p_x_line_rec.line_id,
18286: x_return_status => l_return_status
18287: );
18288:

Line 18294: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18290: IF l_debug_level > 0 THEN
18291: oe_debug_pub.add('log request to apply atchmt',1);
18292: END IF;
18293: OE_delayed_requests_Pvt.Log_Request
18294: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18295: p_entity_id => p_x_line_rec.line_id,
18296: p_request_type =>OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18297: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18298: p_requesting_entity_id => p_x_line_rec.line_id,

Line 18296: p_request_type =>OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,

18292: END IF;
18293: OE_delayed_requests_Pvt.Log_Request
18294: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18295: p_entity_id => p_x_line_rec.line_id,
18296: p_request_type =>OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18297: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18298: p_requesting_entity_id => p_x_line_rec.line_id,
18299: x_return_status => l_return_status
18300: );

Line 18297: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18293: OE_delayed_requests_Pvt.Log_Request
18294: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18295: p_entity_id => p_x_line_rec.line_id,
18296: p_request_type =>OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18297: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18298: p_requesting_entity_id => p_x_line_rec.line_id,
18299: x_return_status => l_return_status
18300: );
18301: IF l_debug_level > 0 THEN

Line 18305: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18301: IF l_debug_level > 0 THEN
18302: oe_debug_pub.add('log request to copy manual atchmt',1);
18303: END IF;
18304: OE_delayed_requests_Pvt.Log_Request
18305: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18306: p_entity_id => p_x_line_rec.line_id,
18307: p_param1 => p_x_line_rec.split_from_line_id,
18308: p_param2 => 'Y', -- copy only manual attachments
18309: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 18309: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

18305: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18306: p_entity_id => p_x_line_rec.line_id,
18307: p_param1 => p_x_line_rec.split_from_line_id,
18308: p_param2 => 'Y', -- copy only manual attachments
18309: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18310: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18311: p_requesting_entity_id => p_x_line_rec.line_id,
18312: x_return_status => l_return_status
18313: );

Line 18310: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18306: p_entity_id => p_x_line_rec.line_id,
18307: p_param1 => p_x_line_rec.split_from_line_id,
18308: p_param2 => 'Y', -- copy only manual attachments
18309: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18310: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18311: p_requesting_entity_id => p_x_line_rec.line_id,
18312: x_return_status => l_return_status
18313: );
18314:

Line 18321: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18317: if l_debug_level > 0 then
18318: oe_debug_pub.add('log request to copy manual atchmt',1);
18319: end if;
18320: OE_delayed_requests_Pvt.Log_Request
18321: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18322: p_entity_id => p_x_line_rec.line_id,
18323: p_param1 => p_x_line_rec.split_from_line_id,
18324: p_param2 => 'Y', -- copy only manual attachments
18325: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

Line 18325: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,

18321: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18322: p_entity_id => p_x_line_rec.line_id,
18323: p_param1 => p_x_line_rec.split_from_line_id,
18324: p_param2 => 'Y', -- copy only manual attachments
18325: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18326: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18327: p_requesting_entity_id => p_x_line_rec.line_id,
18328: x_return_status => l_return_status
18329: );

Line 18326: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18322: p_entity_id => p_x_line_rec.line_id,
18323: p_param1 => p_x_line_rec.split_from_line_id,
18324: p_param2 => 'Y', -- copy only manual attachments
18325: p_request_type => OE_GLOBALS.G_COPY_ATCHMT,
18326: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18327: p_requesting_entity_id => p_x_line_rec.line_id,
18328: x_return_status => l_return_status
18329: );
18330: END IF; -- if G_APPLY_AUTOMATIC_ATCHMT = 'Y' , --End of bug# 13451157

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

18331: END IF; -- if SYSTEM split else
18332:
18333: END IF; -- if split else
18334: ELSE -- 5893276
18335: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
18336: G_APPLY_AUTOMATIC_ATCHMT = 'Y' THEN
18337: if l_debug_level > 0 then
18338: oe_debug_pub.add('log request to apply atchmt for UPDATE ',1);
18339: end if;

Line 18347: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID

18343: --7688372 start
18344: Load_attachment_rules_Line;
18345: --7688372 end
18346:
18347: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
18348: ,p_old_line_rec.INVOICE_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('INVOICE_TO_ORG_ID')) --7688372
18349: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
18350: ,p_old_line_rec.SOLD_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SOLD_TO_ORG_ID')) --7688372
18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER

Line 18349: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID

18345: --7688372 end
18346:
18347: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
18348: ,p_old_line_rec.INVOICE_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('INVOICE_TO_ORG_ID')) --7688372
18349: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
18350: ,p_old_line_rec.SOLD_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SOLD_TO_ORG_ID')) --7688372
18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
18352: ,p_old_line_rec.CUST_PO_NUMBER) AND g_attachrule_count_line_tab.exists('CUST_PO_NUMBER')) --7688372
18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID

Line 18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER

18347: IF (NOT OE_GLOBALS.Equal(p_x_line_rec.INVOICE_TO_ORG_ID
18348: ,p_old_line_rec.INVOICE_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('INVOICE_TO_ORG_ID')) --7688372
18349: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
18350: ,p_old_line_rec.SOLD_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SOLD_TO_ORG_ID')) --7688372
18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
18352: ,p_old_line_rec.CUST_PO_NUMBER) AND g_attachrule_count_line_tab.exists('CUST_PO_NUMBER')) --7688372
18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
18354: ,p_old_line_rec.INVENTORY_ITEM_ID) AND g_attachrule_count_line_tab.exists('INVENTORY_ITEM_ID')) --7688372
18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE

Line 18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID

18349: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SOLD_TO_ORG_ID
18350: ,p_old_line_rec.SOLD_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SOLD_TO_ORG_ID')) --7688372
18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
18352: ,p_old_line_rec.CUST_PO_NUMBER) AND g_attachrule_count_line_tab.exists('CUST_PO_NUMBER')) --7688372
18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
18354: ,p_old_line_rec.INVENTORY_ITEM_ID) AND g_attachrule_count_line_tab.exists('INVENTORY_ITEM_ID')) --7688372
18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
18356: ,p_old_line_rec.LINE_CATEGORY_CODE) AND g_attachrule_count_line_tab.exists('LINE_CATEGORY_CODE')) --7688372
18357: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID

Line 18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE

18351: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.CUST_PO_NUMBER
18352: ,p_old_line_rec.CUST_PO_NUMBER) AND g_attachrule_count_line_tab.exists('CUST_PO_NUMBER')) --7688372
18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
18354: ,p_old_line_rec.INVENTORY_ITEM_ID) AND g_attachrule_count_line_tab.exists('INVENTORY_ITEM_ID')) --7688372
18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
18356: ,p_old_line_rec.LINE_CATEGORY_CODE) AND g_attachrule_count_line_tab.exists('LINE_CATEGORY_CODE')) --7688372
18357: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
18358: ,p_old_line_rec.LINE_TYPE_ID) AND g_attachrule_count_line_tab.exists('LINE_TYPE_ID')) --7688372
18359: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID

Line 18357: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID

18353: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.INVENTORY_ITEM_ID
18354: ,p_old_line_rec.INVENTORY_ITEM_ID) AND g_attachrule_count_line_tab.exists('INVENTORY_ITEM_ID')) --7688372
18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
18356: ,p_old_line_rec.LINE_CATEGORY_CODE) AND g_attachrule_count_line_tab.exists('LINE_CATEGORY_CODE')) --7688372
18357: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
18358: ,p_old_line_rec.LINE_TYPE_ID) AND g_attachrule_count_line_tab.exists('LINE_TYPE_ID')) --7688372
18359: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID
18360: ,p_old_line_rec.SHIP_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SHIP_TO_ORG_ID')) --7688372
18361: THEN

Line 18359: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID

18355: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_CATEGORY_CODE
18356: ,p_old_line_rec.LINE_CATEGORY_CODE) AND g_attachrule_count_line_tab.exists('LINE_CATEGORY_CODE')) --7688372
18357: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.LINE_TYPE_ID
18358: ,p_old_line_rec.LINE_TYPE_ID) AND g_attachrule_count_line_tab.exists('LINE_TYPE_ID')) --7688372
18359: OR (NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID
18360: ,p_old_line_rec.SHIP_TO_ORG_ID) AND g_attachrule_count_line_tab.exists('SHIP_TO_ORG_ID')) --7688372
18361: THEN
18362:
18363: l_attr_attach_change := TRUE;

Line 18369: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18365: END IF;
18366: --6896311
18367: IF l_attr_attach_change THEN --6896311
18368: OE_delayed_requests_Pvt.Log_Request
18369: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18370: p_entity_id => p_x_line_rec.line_id,
18371: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18372: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18373: p_requesting_entity_id => p_x_line_rec.line_id,

Line 18371: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,

18367: IF l_attr_attach_change THEN --6896311
18368: OE_delayed_requests_Pvt.Log_Request
18369: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18370: p_entity_id => p_x_line_rec.line_id,
18371: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18372: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18373: p_requesting_entity_id => p_x_line_rec.line_id,
18374: x_return_status => l_return_status
18375: );

Line 18372: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18368: OE_delayed_requests_Pvt.Log_Request
18369: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18370: p_entity_id => p_x_line_rec.line_id,
18371: p_request_type => OE_GLOBALS.G_APPLY_AUTOMATIC_ATCHMT,
18372: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18373: p_requesting_entity_id => p_x_line_rec.line_id,
18374: x_return_status => l_return_status
18375: );
18376: END IF; --6896311

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

18386: -- default values on the child entities of line record are
18387: -- obtained from the updated line record
18388: ------------------------------------------------------------------------
18389:
18390: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
18391: ONT_LINE_Def_Util.Clear_LINE_Cache;
18392: END IF;
18393:
18394:

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

18396: -- if there is an update operation on model line,
18397: -- clear the cached model line record if any.
18398: ------------------------------------------------------------------------
18399:
18400: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
18401: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
18402: if l_debug_level > 0 then
18403: oe_debug_pub.add('clear the cached top model record', 1);
18404: oe_debug_pub.add('model line: '|| p_x_line_rec.line_id, 1);

Line 18401: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN

18397: -- clear the cached model line record if any.
18398: ------------------------------------------------------------------------
18399:
18400: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
18401: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL THEN
18402: if l_debug_level > 0 then
18403: oe_debug_pub.add('clear the cached top model record', 1);
18404: oe_debug_pub.add('model line: '|| p_x_line_rec.line_id, 1);
18405: end if;

Line 18435: IF NOT OE_GLOBALS.Equal(p_old_line_rec.ship_from_org_id,

18431:
18432: if l_debug_level > 0 then
18433: oe_debug_pub.add('Setting the resource ',1);
18434: end if;
18435: IF NOT OE_GLOBALS.Equal(p_old_line_rec.ship_from_org_id,
18436: p_x_line_rec.ship_from_org_id)
18437: THEN
18438: IF p_x_line_rec.ship_from_org_id is not null
18439: THEN

Line 18466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,

18462: -- place the clearing logic here for a scheduled line, some
18463: -- of the delayed request may clear the original item information
18464: -- after substitution.
18465:
18466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.Inventory_Item_Id,
18467: p_old_line_rec.Inventory_Item_Id)
18468: AND p_x_line_rec.schedule_status_code is null
18469: AND p_x_line_rec.Original_Inventory_Item_Id IS NOT NULL
18470: AND p_x_line_rec.item_relationship_type IS NULL

Line 18518: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) AND

18514:
18515: if l_debug_level > 0 then
18516: oe_debug_pub.add('Before checking for system split on int ord');
18517: end if;
18518: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) AND
18519: (p_x_line_rec.split_by = 'SYSTEM') AND
18520: (p_x_line_rec.order_source_id = 10) THEN
18521: FND_MESSAGE.SET_NAME('ONT','OE_CHG_CORR_REQ');
18522: -- { start fix for 2648277

Line 18542: NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

18538: -- lines. Do not log for System Split Lines.
18539:
18540: IF p_x_line_rec.source_type_code = 'EXTERNAL' AND
18541: p_x_line_rec.booked_flag = 'Y' AND
18542: NOT (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
18543: p_x_line_rec.split_by = 'SYSTEM' AND
18544: NVL(p_x_line_rec.split_action_code,'X') = 'SPLIT') AND
18545: (PO_CODE_RELEASE_GRP.Current_Release >=
18546: PO_CODE_RELEASE_GRP.PRC_11i_Family_Pack_J) AND

Line 18559: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

18555: -- Processing the request logged above for CONFIG Lines
18556: -- since deletion of CONFIG Lines removes the Delayed Request
18557: -- For Dropship Change Management.
18558:
18559: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
18560: p_x_line_rec.item_type_code = 'CONFIG') THEN
18561:
18562: IF l_debug_level > 0 THEN
18563: oe_debug_pub.ADD('Processing DROPSHIP_CMS Request for CONFIG Line');

Line 18570: IF (oe_delayed_requests_pvt.G_Delayed_Requests(i).request_type = OE_GLOBALS.G_DROPSHIP_CMS

18566: i := oe_delayed_requests_pvt.G_Delayed_Requests.first;
18567:
18568: WHILE i IS NOT NULL LOOP
18569:
18570: IF (oe_delayed_requests_pvt.G_Delayed_Requests(i).request_type = OE_GLOBALS.G_DROPSHIP_CMS
18571: AND oe_delayed_requests_pvt.G_Delayed_Requests(i).entity_code = OE_GLOBALS.G_ENTITY_ALL
18572: AND oe_delayed_requests_pvt.G_Delayed_Requests(i).entity_id = p_x_line_rec.line_id) THEN
18573:
18574: IF l_debug_level > 0 THEN

Line 18571: AND oe_delayed_requests_pvt.G_Delayed_Requests(i).entity_code = OE_GLOBALS.G_ENTITY_ALL

18567:
18568: WHILE i IS NOT NULL LOOP
18569:
18570: IF (oe_delayed_requests_pvt.G_Delayed_Requests(i).request_type = OE_GLOBALS.G_DROPSHIP_CMS
18571: AND oe_delayed_requests_pvt.G_Delayed_Requests(i).entity_code = OE_GLOBALS.G_ENTITY_ALL
18572: AND oe_delayed_requests_pvt.G_Delayed_Requests(i).entity_id = p_x_line_rec.line_id) THEN
18573:
18574: IF l_debug_level > 0 THEN
18575: oe_debug_pub.add('G_Delayed_Requests.entity_code/entity_id' ||

Line 18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then

18671:
18672: /* Start AuditTrail */
18673:
18674: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND

Line 18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN

18672: /* Start AuditTrail */
18673:
18674: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason

Line 18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP

18673:
18674: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
18681: if l_debug_level > 0 then

Line 18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN

18674: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
18681: if l_debug_level > 0 then
18682: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);

Line 18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND

18675: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE) then
18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
18681: if l_debug_level > 0 then
18682: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);
18683: end if;

Line 18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason

18676: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18677: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18678: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18679: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).LINE_ID = p_x_line_rec.line_id AND
18680: OE_GLOBALS.oe_audit_history_tbl(l_ind).HISTORY_TYPE = 'R' THEN -- flag 'R' denotes requires reason
18681: if l_debug_level > 0 then
18682: OE_DEBUG_PUB.add('OEXULINB- Audit Reason Required', 5);
18683: end if;
18684: IF (p_x_line_rec.change_reason IS NULL OR

Line 18693: IF OE_GLOBALS.G_DEFAULT_REASON THEN

18689: IF OE_Versioning_Util.Captured_Reason IS NULL THEN
18690: OE_Versioning_Util.Get_Reason_Info(l_reason_code, l_reason_comments);
18691: IF l_reason_code IS NULL THEN
18692: -- bug 3636884, defaulting reason from group API
18693: IF OE_GLOBALS.G_DEFAULT_REASON THEN
18694: if l_debug_level > 0 then
18695: oe_debug_pub.add('Defaulting Audit Reason for Order Line', 1);
18696: end if;
18697: p_x_line_rec.change_reason := 'SYSTEM';

Line 18730: IF (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE) AND

18726: END IF;
18727:
18728: IF p_process_step IN (2,3) THEN
18729:
18730: IF (p_x_line_rec.operation=OE_GLOBALS.G_OPR_UPDATE) AND
18731: (p_x_line_rec.split_action_code = 'SPLIT') THEN
18732:
18733: --11.5.10 Versioning/Audit Trail updates
18734: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN

Line 18735: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18731: (p_x_line_rec.split_action_code = 'SPLIT') THEN
18732:
18733: --11.5.10 Versioning/Audit Trail updates
18734: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN
18735: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18736: p_entity_id => p_x_line_rec.line_id,
18737: p_hist_type_code => 'SPLIT');
18738: --log delayed request
18739: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

Line 18739: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

18735: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18736: p_entity_id => p_x_line_rec.line_id,
18737: p_hist_type_code => 'SPLIT');
18738: --log delayed request
18739: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18740: p_entity_id => p_x_line_rec.header_id,
18741: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18742: p_requesting_entity_id => p_x_line_rec.line_id,
18743: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 18741: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18737: p_hist_type_code => 'SPLIT');
18738: --log delayed request
18739: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18740: p_entity_id => p_x_line_rec.header_id,
18741: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18742: p_requesting_entity_id => p_x_line_rec.line_id,
18743: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18744: x_return_status => l_return_status);
18745: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

Line 18743: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

18739: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18740: p_entity_id => p_x_line_rec.header_id,
18741: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18742: p_requesting_entity_id => p_x_line_rec.line_id,
18743: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18744: x_return_status => l_return_status);
18745: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
18746: ELSE
18747: OE_CHG_ORDER_PVT.RecordLineHist

Line 18745: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

18741: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18742: p_requesting_entity_id => p_x_line_rec.line_id,
18743: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18744: x_return_status => l_return_status);
18745: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
18746: ELSE
18747: OE_CHG_ORDER_PVT.RecordLineHist
18748: (p_line_id => p_x_line_rec.line_id,
18749: p_line_rec => null,

Line 18777: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN

18773: END IF;
18774:
18775: --11.5.10 Versioning/Audit Trail updates
18776: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
18777: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;

Line 18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND

18774:
18775: --11.5.10 Versioning/Audit Trail updates
18776: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
18777: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;

Line 18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN

18775: --11.5.10 Versioning/Audit Trail updates
18776: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510'
18777: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
18783: OE_GLOBALS.G_CAPTURED_REASON := 'Y';

Line 18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;

18777: AND OE_GLOBALS.G_ROLL_VERSION <> 'N' THEN
18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
18783: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
18784: ELSE
18785: if l_debug_level > 0 then

Line 18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;

18778: IF OE_GLOBALS.G_REASON_CODE IS NULL AND
18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
18783: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
18784: ELSE
18785: if l_debug_level > 0 then
18786: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);

Line 18783: OE_GLOBALS.G_CAPTURED_REASON := 'Y';

18779: OE_GLOBALS.G_CAPTURED_REASON IN ('V','A') THEN
18780: IF p_x_line_rec.change_reason <> FND_API.G_MISS_CHAR THEN
18781: OE_GLOBALS.G_REASON_CODE := p_x_line_rec.change_reason;
18782: OE_GLOBALS.G_REASON_COMMENTS := p_x_line_rec.change_comments;
18783: OE_GLOBALS.G_CAPTURED_REASON := 'Y';
18784: ELSE
18785: if l_debug_level > 0 then
18786: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
18787: end if;

Line 18788: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140

18784: ELSE
18785: if l_debug_level > 0 then
18786: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
18787: end if;
18788: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140
18789: IF OE_GLOBALS.G_UI_FLAG
18790: OR ( p_x_line_rec.split_action_code = 'SPLIT'
18791: AND nvl(p_x_line_rec.split_by,'SYSTEM') = 'USER' ) THEN --bug5716140
18792: raise FND_API.G_EXC_ERROR;

Line 18789: IF OE_GLOBALS.G_UI_FLAG

18785: if l_debug_level > 0 then
18786: OE_DEBUG_PUB.add('Reason code for versioning is missing or invalid', 1);
18787: end if;
18788: -- if OE_GLOBALS.G_UI_FLAG then --bug5716140
18789: IF OE_GLOBALS.G_UI_FLAG
18790: OR ( p_x_line_rec.split_action_code = 'SPLIT'
18791: AND nvl(p_x_line_rec.split_by,'SYSTEM') = 'USER' ) THEN --bug5716140
18792: raise FND_API.G_EXC_ERROR;
18793: end if;

Line 18801: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

18797: --log delayed request
18798: if l_debug_level > 0 then
18799: oe_debug_pub.add('log versioning request',1);
18800: end if;
18801: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18802: p_entity_id => p_x_line_rec.header_id,
18803: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18804: p_requesting_entity_id => p_x_line_rec.line_id,
18805: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 18803: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18799: oe_debug_pub.add('log versioning request',1);
18800: end if;
18801: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18802: p_entity_id => p_x_line_rec.header_id,
18803: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18804: p_requesting_entity_id => p_x_line_rec.line_id,
18805: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18806: x_return_status => l_return_status);
18807: END IF;

Line 18805: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

18801: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18802: p_entity_id => p_x_line_rec.header_id,
18803: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18804: p_requesting_entity_id => p_x_line_rec.line_id,
18805: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18806: x_return_status => l_return_status);
18807: END IF;
18808:
18809: /* Start Audit Trail - Insert Lines history */

Line 18812: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN

18808:
18809: /* Start Audit Trail - Insert Lines history */
18810:
18811: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18812: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18813: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18814: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18815: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
18816: if l_debug_level > 0 then

Line 18813: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP

18809: /* Start Audit Trail - Insert Lines history */
18810:
18811: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18812: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18813: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18814: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18815: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
18816: if l_debug_level > 0 then
18817: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);

Line 18814: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN

18810:
18811: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18812: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18813: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18814: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18815: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
18816: if l_debug_level > 0 then
18817: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);
18818: end if;

Line 18815: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN

18811: IF l_code_level >= '110508' and nvl(l_audit_trail_enabled,'D') <> 'D' THEN
18812: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.count > 0 THEN
18813: FOR l_ind in 1..OE_GLOBALS.oe_audit_history_tbl.last LOOP
18814: IF OE_GLOBALS.OE_AUDIT_HISTORY_TBL.exists(l_ind) THEN
18815: IF OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id = p_x_line_rec.line_id THEN
18816: if l_debug_level > 0 then
18817: OE_DEBUG_PUB.add('OEXULINB:calling oe_order_chg_pvt.recordlinehist', 5);
18818: end if;
18819:

Line 18823: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18819:
18820: /* Commenting the below code for bug#14387840
18821: --11.5.10 Versioning/Audit Trail updates
18822: IF OE_CODE_CONTROL.CODE_RELEASE_LEVEL >= '110510' THEN
18823: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18824: p_entity_id => p_x_line_rec.line_id,
18825: p_hist_type_code => 'UPDATE');
18826: --log delayed request
18827: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

Line 18827: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

18823: OE_Versioning_Util.Capture_Audit_Info(p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18824: p_entity_id => p_x_line_rec.line_id,
18825: p_hist_type_code => 'UPDATE');
18826: --log delayed request
18827: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18828: p_entity_id => p_x_line_rec.header_id,
18829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18830: p_requesting_entity_id => p_x_line_rec.line_id,
18831: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

Line 18829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

18825: p_hist_type_code => 'UPDATE');
18826: --log delayed request
18827: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18828: p_entity_id => p_x_line_rec.header_id,
18829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18830: p_requesting_entity_id => p_x_line_rec.line_id,
18831: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18832: x_return_status => l_return_status);
18833: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

Line 18831: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,

18827: OE_Delayed_Requests_Pvt.Log_Request(p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
18828: p_entity_id => p_x_line_rec.header_id,
18829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18830: p_requesting_entity_id => p_x_line_rec.line_id,
18831: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18832: x_return_status => l_return_status);
18833: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
18834: ELSE
18835: */

Line 18833: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';

18829: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
18830: p_requesting_entity_id => p_x_line_rec.line_id,
18831: p_request_type => OE_GLOBALS.G_VERSION_AUDIT,
18832: x_return_status => l_return_status);
18833: OE_GLOBALS.G_AUDIT_HISTORY_RQD_FLAG := 'N';
18834: ELSE
18835: */
18836: OE_CHG_ORDER_PVT.RecordLineHist
18837: (p_line_id => p_x_line_rec.line_id,

Line 18864: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);

18860: -- commenting out for bug#14387840
18861: -- END IF;
18862: -- now the history is inserted successfully, remove the entry from pl/sql table
18863: if l_debug_level > 0 then
18864: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);
18865: end if;
18866: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);
18867: END IF;
18868: END IF;

Line 18866: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);

18862: -- now the history is inserted successfully, remove the entry from pl/sql table
18863: if l_debug_level > 0 then
18864: oe_debug_pub.add('Deleting the history entry for line ID : '||OE_GLOBALS.oe_audit_history_tbl(l_ind).line_id,1);
18865: end if;
18866: OE_GLOBALS.oe_audit_history_tbl.delete(l_ind);
18867: END IF;
18868: END IF;
18869:
18870: END LOOP;

Line 18980: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN

18976: oe_debug_pub.add('AK line_iset_d ' || p_line_set_id);
18977: oe_debug_pub.add('AK line_number' || p_line_number);
18978: oe_debug_pub.add('AK item_type_code' || p_item_type_code);
18979:
18980: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN
18981:
18982: OPEN Standard_line_number;
18983: l_cursor_flag := 'S';
18984:

Line 19023: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

19019: CLOSE Standard_line_number;
19020:
19021: OPEN Standard_line_number;
19022: IF SQL%FOUND THEN
19023: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
19024:
19025: LOOP
19026: FETCH Standard_line_number
19027: INTO l_line_rec.line_id,

Line 19045: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL

19041:
19042: END IF;
19043: CLOSE Standard_line_number;
19044:
19045: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL
19046: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT
19047: THEN
19048:
19049:

Line 19046: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT

19042: END IF;
19043: CLOSE Standard_line_number;
19044:
19045: ELSIF p_item_type_code = OE_GLOBALS.G_ITEM_MODEL
19046: OR p_item_type_code = OE_GLOBALS.G_ITEM_KIT
19047: THEN
19048:
19049:
19050: OPEN Model_line_number;

Line 19069: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

19065: AND line_id <> p_line_id
19066: AND header_id = p_header_id; -- 2508099
19067:
19068: IF SQL%FOUND THEN
19069: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
19070:
19071: LOOP
19072: FETCH Model_line_number
19073: INTO l_line_rec.line_id,

Line 19134: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;

19130: CLOSE service_line_number;
19131:
19132: OPEN service_line_number;
19133: IF SQL%FOUND THEN
19134: OE_GLOBALS.G_CASCADING_REQUEST_LOGGED := TRUE;
19135:
19136: LOOP
19137: FETCH service_line_number
19138: INTO l_line_rec.line_id,

Line 19171: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN

19167: END IF;
19168:
19169: WHEN APP_EXCEPTIONS.RECORD_LOCK_EXCEPTION THEN
19170:
19171: IF p_item_type_code = OE_GLOBALS.G_ITEM_STANDARD THEN
19172: CLOSE Standard_line_number;
19173: ELSE
19174: CLOSE Model_Line_Number;
19175: END IF;

Line 19271: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

19267: oe_debug_pub.add('Entering Post_Write_Process',1);
19268: end if;
19269:
19270: -- QUOTING change
19271: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
19272: AND p_x_line_rec.split_from_line_id IS NULL
19273: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
19274: )
19275: OR (

Line 19277: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

19273: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'
19274: )
19275: OR (
19276: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
19277: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
19278: ,p_old_line_rec.transaction_phase_code)
19279: )
19280: THEN
19281: if l_debug_level > 0 then

Line 19285: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE

19281: if l_debug_level > 0 then
19282: oe_debug_pub.add('Call evaluate_holds_post_write for CREATE');
19283: end if;
19284: OE_Holds_PUB.evaluate_holds_post_write
19285: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE
19286: ,p_entity_id => p_x_line_rec.line_id
19287: ,x_msg_count => l_msg_count
19288: ,x_msg_data => l_msg_data
19289: ,x_return_status => l_return_status

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

19301: END IF;
19302: /* bug 8471521 --- Moved the code after scheduling ---
19303: --Call the delayed request for holds evaluation. This is needed for a
19304: --scheduling fix.
19305: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19306:
19307: if l_debug_level > 0 then
19308: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
19309: end if;

Line 19312: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE

19308: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
19309: end if;
19310:
19311: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19312: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE
19313: ,p_delete => FND_API.G_TRUE
19314: ,x_return_status => l_return_status
19315: );
19316: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 19330: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE

19326: -- Start the Line Workflow
19327: --------------------------------------------------------------------
19328:
19329: -- QUOTING change
19330: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
19331: OR (OE_Quote_Util.G_COMPLETE_NEG = 'Y'
19332: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
19333: ,p_old_line_rec.transaction_phase_code)
19334: )

Line 19332: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

19328:
19329: -- QUOTING change
19330: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE
19331: OR (OE_Quote_Util.G_COMPLETE_NEG = 'Y'
19332: AND NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
19333: ,p_old_line_rec.transaction_phase_code)
19334: )
19335: )
19336: AND nvl(p_x_line_rec.transaction_phase_code,'F') = 'F'

Line 19350: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;

19346: -- Since process included items cannot set recursion mode, caler needs to set
19347: -- the recursion mode.
19348: --------------------------------------------------------------------
19349:
19350: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;
19351: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
19352:
19353: I := OE_Config_Pvt.OE_FREEZE_INC_ITEMS_TBL.FIRST;
19354: WHILE I is not null

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

19347: -- the recursion mode.
19348: --------------------------------------------------------------------
19349:
19350: l_old_recursion_mode := OE_GLOBALS.G_RECURSION_MODE;
19351: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
19352:
19353: I := OE_Config_Pvt.OE_FREEZE_INC_ITEMS_TBL.FIRST;
19354: WHILE I is not null
19355: LOOP

Line 19370: delayed request OE_GLOBALS.G_PRE_EXPLODED_KIT should get logged only if the above

19366: EBS OM Sales order pad or by directly calling the Process Order api without
19367: settting the above global. Since the trade off is: we should allow the user to
19368: successfully update the order, and the validation should be standard. The
19369: validation should NOT be of Pre Exploded Kit functionality. Hence, the below
19370: delayed request OE_GLOBALS.G_PRE_EXPLODED_KIT should get logged only if the above
19371: global is TRUE. It should be irrespective of the Pre_Exploded_Flag attribute value. */
19372:
19373: AND p_x_line_rec.ato_line_id is NULL
19374: AND ((p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT

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

19370: delayed request OE_GLOBALS.G_PRE_EXPLODED_KIT should get logged only if the above
19371: global is TRUE. It should be irrespective of the Pre_Exploded_Flag attribute value. */
19372:
19373: AND p_x_line_rec.ato_line_id is NULL
19374: AND ((p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT
19375: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
19376: -- Bug 11928288 : Start
19377: OR (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL
19378: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)

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

19373: AND p_x_line_rec.ato_line_id is NULL
19374: AND ((p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT
19375: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
19376: -- Bug 11928288 : Start
19377: OR (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL
19378: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
19379: -- Bug 11928288 : End
19380: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS ) THEN
19381: -- Importing Pre Exploded Kit.

Line 19380: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS ) THEN

19376: -- Bug 11928288 : Start
19377: OR (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL
19378: AND p_x_line_rec.line_id = p_x_line_rec.top_model_line_id)
19379: -- Bug 11928288 : End
19380: OR p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS ) THEN
19381: -- Importing Pre Exploded Kit.
19382: -- Log a delayed request for its execution after the whole Kit is
19383: -- imported and records are posted to OE_Order_Lines_All table
19384: -- This request will be logged for Kit model line

Line 19388: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19384: -- This request will be logged for Kit model line
19385:
19386: oe_debug_pub.add(' Logging G_PRE_EXPLODED_KIT delayed requests');
19387: OE_delayed_requests_Pvt.log_request(
19388: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19389: p_entity_id => p_x_line_rec.top_model_line_id, -- The top model line
19390: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19391: p_requesting_entity_id => p_x_line_rec.line_id,
19392: p_date_param1 => p_x_line_rec.explosion_date,

Line 19390: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

19386: oe_debug_pub.add(' Logging G_PRE_EXPLODED_KIT delayed requests');
19387: OE_delayed_requests_Pvt.log_request(
19388: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19389: p_entity_id => p_x_line_rec.top_model_line_id, -- The top model line
19390: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19391: p_requesting_entity_id => p_x_line_rec.line_id,
19392: p_date_param1 => p_x_line_rec.explosion_date,
19393: p_request_type => OE_GLOBALS.G_PRE_EXPLODED_KIT,
19394: x_return_status => l_return_status);

Line 19393: p_request_type => OE_GLOBALS.G_PRE_EXPLODED_KIT,

19389: p_entity_id => p_x_line_rec.top_model_line_id, -- The top model line
19390: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
19391: p_requesting_entity_id => p_x_line_rec.line_id,
19392: p_date_param1 => p_x_line_rec.explosion_date,
19393: p_request_type => OE_GLOBALS.G_PRE_EXPLODED_KIT,
19394: x_return_status => l_return_status);
19395: ELSE
19396: /* End DOO Pre Exploded Kit ER 9339742 */
19397: if l_debug_level > 0 then

Line 19461: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity, p_old_line_rec.ordered_quantity) THEN

19457: -- when changes been done by Planning user
19458: --
19459:
19460: IF OE_Schedule_GRP.G_ISO_Planning_Update AND
19461: NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity, p_old_line_rec.ordered_quantity) THEN
19462: -- nvl(p_x_line_rec.ordered_quantity,0) = 0 THEN -- Commented for bug 7611039
19463: OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING := 'Y';
19464:
19465: IF l_debug_level > 0 THEN

Line 19476: AND p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE

19472:
19473:
19474: IF OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING = 'Y'
19475: AND p_x_line_rec.line_category_code <> 'RETURN'
19476: AND p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE
19477: THEN
19478:
19479: if l_debug_level > 0 then
19480: oe_debug_pub.add('PO: Calling new Schedule_line from post write',1);

Line 19501: AND (NOT oe_globals.equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date) OR

19497:
19498: elsIF OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING ='N'
19499: AND (p_x_line_rec.ship_set_id is not null
19500: or p_x_line_rec.arrival_set_id is not null)
19501: AND (NOT oe_globals.equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date) OR
19502: NOT oe_globals.equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date) OR
19503: NOT oe_globals.equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) OR
19504: NOT oe_globals.equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code))
19505: then

Line 19502: NOT oe_globals.equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date) OR

19498: elsIF OE_SCHEDULE_UTIL.OESCH_PERFORM_SCHEDULING ='N'
19499: AND (p_x_line_rec.ship_set_id is not null
19500: or p_x_line_rec.arrival_set_id is not null)
19501: AND (NOT oe_globals.equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date) OR
19502: NOT oe_globals.equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date) OR
19503: NOT oe_globals.equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) OR
19504: NOT oe_globals.equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code))
19505: then
19506:

Line 19503: NOT oe_globals.equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) OR

19499: AND (p_x_line_rec.ship_set_id is not null
19500: or p_x_line_rec.arrival_set_id is not null)
19501: AND (NOT oe_globals.equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date) OR
19502: NOT oe_globals.equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date) OR
19503: NOT oe_globals.equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) OR
19504: NOT oe_globals.equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code))
19505: then
19506:
19507: if p_x_line_rec.ship_set_id is not null then

Line 19504: NOT oe_globals.equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code))

19500: or p_x_line_rec.arrival_set_id is not null)
19501: AND (NOT oe_globals.equal(p_x_line_rec.schedule_ship_date,p_old_line_rec.schedule_ship_date) OR
19502: NOT oe_globals.equal(p_x_line_rec.schedule_arrival_date,p_old_line_rec.schedule_arrival_date) OR
19503: NOT oe_globals.equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) OR
19504: NOT oe_globals.equal(p_x_line_rec.shipping_method_code,p_old_line_rec.shipping_method_code))
19505: then
19506:
19507: if p_x_line_rec.ship_set_id is not null then
19508: l_set_id:=p_x_line_rec.ship_set_id;

Line 19552: NOT p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG

19548: -- do not move Log_CTO_Requests above scheduling
19549:
19550: IF (p_x_line_rec.top_model_line_id is NOT NULL OR
19551: p_x_line_rec.ato_line_id is NOT NULL) AND
19552: NOT p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CONFIG
19553: THEN
19554:
19555: Log_CTO_Requests( p_x_line_rec => p_x_line_rec
19556: ,p_old_line_rec => p_old_line_rec

Line 19563: -- OE_GLOBALS.G_RECURSION_MODE := l_old_recursion_mode;

19559:
19560:
19561:
19562: -- re-set the old recursion mode after process included items call.
19563: -- OE_GLOBALS.G_RECURSION_MODE := l_old_recursion_mode;
19564:
19565: -- 4504362 :Branch scheduling check removed.
19566: -- This is moved from cancellations logic since closing the line is
19567: -- based on the cancellation flag and ordered quantity

Line 19574: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then

19570:
19571: IF Nvl(p_x_line_rec.split_action_code,'X') <> 'SPLIT' THEN
19572:
19573: If (p_x_line_rec.ordered_quantity = 0 AND
19574: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then
19575:
19576: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
19577: /*
19578: -- Log a request to cancel the workflow.

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

19572:
19573: If (p_x_line_rec.ordered_quantity = 0 AND
19574: p_x_line_rec.operation = oe_globals.G_OPR_UPDATE )then
19575:
19576: -- OE_GLOBALS.G_RECURSION_MODE := 'Y';
19577: /*
19578: -- Log a request to cancel the workflow.
19579:
19580:

Line 19582: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19578: -- Log a request to cancel the workflow.
19579:
19580:
19581: OE_delayed_requests_Pvt.log_request
19582: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19583: p_entity_id => p_x_line_rec.line_id,
19584: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19585: p_requesting_entity_id => p_x_line_rec.line_id,
19586: p_request_type => OE_GLOBALS.G_CANCEL_WF,

Line 19584: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,

19580:
19581: OE_delayed_requests_Pvt.log_request
19582: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19583: p_entity_id => p_x_line_rec.line_id,
19584: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19585: p_requesting_entity_id => p_x_line_rec.line_id,
19586: p_request_type => OE_GLOBALS.G_CANCEL_WF,
19587: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
19588: x_return_status => l_return_status);

Line 19586: p_request_type => OE_GLOBALS.G_CANCEL_WF,

19582: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19583: p_entity_id => p_x_line_rec.line_id,
19584: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19585: p_requesting_entity_id => p_x_line_rec.line_id,
19586: p_request_type => OE_GLOBALS.G_CANCEL_WF,
19587: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
19588: x_return_status => l_return_status);
19589: */
19590:

Line 19587: p_param1 => OE_GLOBALS.G_ENTITY_LINE,

19583: p_entity_id => p_x_line_rec.line_id,
19584: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_ALL,
19585: p_requesting_entity_id => p_x_line_rec.line_id,
19586: p_request_type => OE_GLOBALS.G_CANCEL_WF,
19587: p_param1 => OE_GLOBALS.G_ENTITY_LINE,
19588: x_return_status => l_return_status);
19589: */
19590:
19591: -- commented the code to move the logic to delayed request

Line 19593: wf_engine.handleerror(OE_Globals.G_WFI_LIN

19589: */
19590:
19591: -- commented the code to move the logic to delayed request
19592: -- reopened to revert the changes
19593: wf_engine.handleerror(OE_Globals.G_WFI_LIN
19594: ,to_char(p_x_line_rec.line_id)
19595: ,'CLOSE_LINE',
19596: 'RETRY','CANCEL');
19597: if l_debug_level > 0 then

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

19619: RAISE FND_API.G_EXC_ERROR;
19620: END IF;
19621: END IF;
19622:
19623: -- OE_GLOBALS.G_RECURSION_MODE := 'N';
19624:
19625:
19626: /*
19627: ** Fix Bug # 3184597 Start

Line 19631: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN

19627: ** Fix Bug # 3184597 Start
19628: ** Check if the cancelled line is waiting on the flow to be
19629: ** started. If so, delete entry from G_START_LINE_FLOWS_TBL
19630: */
19631: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
19632: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
19633: WHILE (l_ctr IS NOT NULL) LOOP
19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
19635: p_x_line_rec.line_id) THEN

Line 19632: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;

19628: ** Check if the cancelled line is waiting on the flow to be
19629: ** started. If so, delete entry from G_START_LINE_FLOWS_TBL
19630: */
19631: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
19632: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
19633: WHILE (l_ctr IS NOT NULL) LOOP
19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
19635: p_x_line_rec.line_id) THEN
19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);

Line 19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =

19630: */
19631: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL.COUNT > 0) THEN
19632: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
19633: WHILE (l_ctr IS NOT NULL) LOOP
19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
19635: p_x_line_rec.line_id) THEN
19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
19637: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
19638: EXIT;

Line 19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);

19632: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.FIRST;
19633: WHILE (l_ctr IS NOT NULL) LOOP
19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
19635: p_x_line_rec.line_id) THEN
19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
19637: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
19638: EXIT;
19639: END IF;
19640: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);

Line 19637: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);

19633: WHILE (l_ctr IS NOT NULL) LOOP
19634: IF (OE_GLOBALS.G_START_LINE_FLOWS_TBL(l_ctr).LINE_ID =
19635: p_x_line_rec.line_id) THEN
19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
19637: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
19638: EXIT;
19639: END IF;
19640: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);
19641: END LOOP;

Line 19640: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);

19636: oe_debug_pub.add('Cancellation:Deleting from OE_GLOBALS.G_START_LINE_FLOWS_TBL for lineID:' || p_x_line_rec.line_id);
19637: OE_GLOBALS.G_START_LINE_FLOWS_TBL.DELETE(l_ctr);
19638: EXIT;
19639: END IF;
19640: l_ctr := OE_GLOBALS.G_START_LINE_FLOWS_TBL.NEXT(l_ctr);
19641: END LOOP;
19642: END IF;
19643: /* Fix Bug # 3184597 End */
19644: -- Added below IF condition for FP bug 6628653 base bug 6513023

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

19667:
19668: -- bug 8471521 Moved the code after scheduling call to avoid the issue happens because of the ware house change..
19669: --Call the delayed request for holds evaluation. This is needed for a
19670: --scheduling fix.
19671: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19672:
19673: if l_debug_level > 0 then
19674: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
19675: end if;

Line 19678: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE

19674: oe_debug_pub.add('Calling DelayedReg for evaluate_holds in post_write for UPDATE');
19675: end if;
19676:
19677: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19678: (p_request_type =>OE_GLOBALS.G_EVAL_HOLD_SOURCE
19679: ,p_delete => FND_API.G_TRUE
19680: ,x_return_status => l_return_status
19681: );
19682: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

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

19699: -- the value of the authorized_to_ship_flag in the lines table
19700: -- Check if the ship authorization activity is in a NOTIFIED state
19701: --------------------------------------------------------------------
19702:
19703: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19704: if l_debug_level > 0 then
19705: oe_debug_pub.add('Authorization flag is: ' ||
19706: p_x_line_rec.authorized_to_ship_flag);
19707: end if;

Line 19709: NOT OE_GLOBALS.Equal(p_x_line_rec.authorized_to_ship_flag,

19705: oe_debug_pub.add('Authorization flag is: ' ||
19706: p_x_line_rec.authorized_to_ship_flag);
19707: end if;
19708: IF p_x_line_rec.authorized_to_ship_flag = 'Y' AND
19709: NOT OE_GLOBALS.Equal(p_x_line_rec.authorized_to_ship_flag,
19710: p_old_line_rec.authorized_to_ship_flag)
19711: THEN
19712: OPEN ship_authorize;
19713: FETCH ship_authorize INTO l_ship_authorize;

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

19729: -- children and sub children(like options,classes,services,service
19730: -- attached to children).
19731: --------------------------------------------------------------------
19732:
19733: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19734:
19735: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,
19736: p_old_line_rec.line_number)
19737: THEN

Line 19735: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,

19731: --------------------------------------------------------------------
19732:
19733: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
19734:
19735: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.line_number ,
19736: p_old_line_rec.line_number)
19737: THEN
19738: Cascade_Line_Number
19739: ( p_x_line_rec.header_id,

Line 19757: p_x_line_rec.operation = oe_globals.g_opr_update)

19753: -- other cases.
19754: --------------------------------------------------------------------
19755:
19756: IF NOT (nvl(p_x_line_rec.split_action_code,'X') = 'SPLIT' and
19757: p_x_line_rec.operation = oe_globals.g_opr_update)
19758: THEN
19759:
19760: IF NOT( (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
19761: <> FND_API.G_MISS_NUM)

Line 19762: AND p_x_line_rec.operation = oe_globals.g_opr_create

19758: THEN
19759:
19760: IF NOT( (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
19761: <> FND_API.G_MISS_NUM)
19762: AND p_x_line_rec.operation = oe_globals.g_opr_create
19763: )
19764: THEN
19765:
19766: if l_debug_level > 0 then

Line 19772: p_x_line_rec.operation = oe_globals.g_opr_create) THEN

19768: end if;
19769:
19770: -- Bug# 5726848 IF condition modified for allowing update of sales credit for copied orders.
19771: IF NOT (nvl(p_x_line_rec.source_document_type_id,-99) = 2 AND
19772: p_x_line_rec.operation = oe_globals.g_opr_create) THEN
19773: -- End of change Bug# 5726848
19774: OE_Line_Scredit_Util.Create_Credit
19775: (p_line_rec => p_x_line_rec,p_old_line_rec => p_old_line_rec);
19776: END IF;

Line 19787: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND

19783: -- child RMA lines are in sequence with the parent line. FOR ER:1480867
19784:
19785: IF p_x_line_rec.line_category_code = 'RETURN' AND
19786: p_x_line_rec.reference_line_id IS NOT NULL AND
19787: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND
19788: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,
19789: p_old_line_rec.reference_line_id)
19790:
19791: THEN

Line 19788: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,

19784:
19785: IF p_x_line_rec.line_category_code = 'RETURN' AND
19786: p_x_line_rec.reference_line_id IS NOT NULL AND
19787: OE_GLOBALS.G_RETURN_CHILDREN_MODE = 'N' AND
19788: NOT OE_GLOBALS.EQUAL(p_x_line_rec.reference_line_id ,
19789: p_old_line_rec.reference_line_id)
19790:
19791: THEN
19792: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype

Line 19793: (p_request_type =>OE_GLOBALS.G_INSERT_RMA

19789: p_old_line_rec.reference_line_id)
19790:
19791: THEN
19792: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19793: (p_request_type =>OE_GLOBALS.G_INSERT_RMA
19794: ,p_delete => FND_API.G_TRUE
19795: ,x_return_status => l_return_status
19796: );
19797: END IF;

Line 19818: AND p_x_line_rec.operation = oe_globals.g_opr_update

19814: THEN
19815:
19816: -- Blanket Request should not be logged for system splits.
19817: IF (nvl(p_x_line_rec.split_action_code,'X') = 'SPLIT'
19818: AND p_x_line_rec.operation = oe_globals.g_opr_update
19819: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
19820: )
19821: OR (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
19822: <> FND_API.G_MISS_NUM

Line 19823: AND p_x_line_rec.operation = oe_globals.g_opr_create

19819: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
19820: )
19821: OR (nvl(p_x_line_rec.split_from_line_id,FND_API.G_MISS_NUM)
19822: <> FND_API.G_MISS_NUM
19823: AND p_x_line_rec.operation = oe_globals.g_opr_create
19824: AND nvl(p_x_line_rec.split_by,'USER') = 'SYSTEM'
19825: )
19826: THEN
19827: NULL;

Line 19870: ( p_control_rec IN OE_GLOBALS.Control_Rec_Type

19866: PROCEDURE Post_Line_Process
19867: -----------------------------------------------------------*/
19868:
19869: PROCEDURE Post_Line_Process
19870: ( p_control_rec IN OE_GLOBALS.Control_Rec_Type
19871: , p_x_line_tbl IN OUT NOCOPY OE_Order_PUB.Line_Tbl_Type
19872: )
19873: IS
19874: l_return_status VARCHAR2(1);

Line 19888: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN

19884:
19885: -- Create Sets for lines and call group scheduling if any
19886: /*
19887: IF (p_control_rec.process AND
19888: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN
19889: OE_Set_Util.Process_Sets
19890: (p_x_line_tbl => p_x_line_tbl);
19891: END IF;
19892: */

Line 19895: OE_GLOBALS.G_RECURSION_MODE <> 'Y') THEN

19891: END IF;
19892: */
19893:
19894: IF (p_control_rec.process AND
19895: OE_GLOBALS.G_RECURSION_MODE <> 'Y') THEN
19896:
19897: -- batch validation request is executed in post_lines
19898: -- so that it gets executed before any other delayed requests
19899: -- like pricing, scheduling for models.

Line 19902: (p_request_type =>OE_GLOBALS.G_VALIDATE_CONFIGURATION

19898: -- so that it gets executed before any other delayed requests
19899: -- like pricing, scheduling for models.
19900:
19901: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19902: (p_request_type =>OE_GLOBALS.G_VALIDATE_CONFIGURATION
19903: ,p_delete => FND_API.G_TRUE
19904: ,x_return_status => l_return_status
19905: );
19906:

Line 19921: (p_request_type =>OE_GLOBALS.G_CASCADE_CHANGES

19917: -- cascading of changes from model to options
19918: -- is done before executing other requests.
19919:
19920: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19921: (p_request_type =>OE_GLOBALS.G_CASCADE_CHANGES
19922: ,p_delete => FND_API.G_TRUE
19923: ,x_return_status => l_return_status
19924: );
19925:

Line 19936: (p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION

19932: -- Making change to whole configuration is done before all
19933: -- other delayed requests are fired.
19934:
19935: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19936: (p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION
19937: ,p_delete => FND_API.G_TRUE
19938: ,x_return_status => l_return_status
19939: );
19940: IF l_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN

Line 19949: (p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION

19945:
19946: -- handling split of models
19947:
19948: OE_DELAYED_REQUESTS_PVT.Process_Request_for_Reqtype
19949: (p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION
19950: ,p_delete => FND_API.G_TRUE
19951: ,x_return_status => l_return_status
19952: );
19953:

Line 20126: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN

20122:
20123: -- Create Sets for lines and call group scheduling if any
20124:
20125: IF (p_control_rec.process AND
20126: OE_GLOBALS.G_RECURSION_MODE <> 'Y')THEN
20127:
20128: OE_Set_Util.Process_Sets
20129: (p_x_line_tbl => p_x_line_tbl);
20130:

Line 20182: p_x_line_tbl(I).operation = OE_GLOBALS.G_OPR_CREATE) THEN

20178: p_x_line_tbl(I).schedule_status_code IS NOT NULL)
20179: OR (NVL(p_x_line_tbl(I).split_by ,'USER') = 'SYSTEM' AND
20180: p_x_line_tbl(I).split_from_line_id is not null AND
20181: p_x_line_tbl(I).split_from_line_id <> FND_API.G_MISS_NUM AND
20182: p_x_line_tbl(I).operation = OE_GLOBALS.G_OPR_CREATE) THEN
20183:
20184: if l_debug_level > 0 then
20185: oe_debug_pub.add('Logging G_SPLIT_SCHEDULE' ||
20186: p_x_line_tbl(I).line_id, 2);

Line 20190: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20186: p_x_line_tbl(I).line_id, 2);
20187: end if;
20188:
20189: OE_delayed_requests_Pvt.log_request(
20190: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20191: p_entity_id => p_x_line_tbl(I).line_id,
20192: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20193: p_requesting_entity_id => p_x_line_tbl(I).line_id,
20194: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,

Line 20192: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

20188:
20189: OE_delayed_requests_Pvt.log_request(
20190: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20191: p_entity_id => p_x_line_tbl(I).line_id,
20192: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20193: p_requesting_entity_id => p_x_line_tbl(I).line_id,
20194: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,
20195: p_param1 => p_x_line_tbl(I).schedule_status_code,
20196: p_param2 => p_x_line_tbl(I).arrival_set_id,

Line 20194: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,

20190: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20191: p_entity_id => p_x_line_tbl(I).line_id,
20192: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
20193: p_requesting_entity_id => p_x_line_tbl(I).line_id,
20194: p_request_type => OE_GLOBALS.G_SPLIT_SCHEDULE,
20195: p_param1 => p_x_line_tbl(I).schedule_status_code,
20196: p_param2 => p_x_line_tbl(I).arrival_set_id,
20197: p_param3 => p_x_line_tbl(I).ship_set_id,
20198: p_param4 => p_x_line_tbl(I).ship_model_complete_flag,

Line 20454: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item

20450: BEGIN
20451:
20452: IF oe_line_util.Process_Characteristics
20453: (p_line_rec.inventory_item_id,p_line_rec.ship_from_org_id,l_item_rec) AND
20454: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item
20455: ,p_old_line_rec.ordered_item)) OR
20456: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id
20457: ,p_old_line_rec.ship_from_org_id))) AND
20458: (p_line_rec.preferred_grade IS NULL OR

Line 20456: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id

20452: IF oe_line_util.Process_Characteristics
20453: (p_line_rec.inventory_item_id,p_line_rec.ship_from_org_id,l_item_rec) AND
20454: ((NOT OE_GLOBALS.EQUAL(p_line_rec.ordered_item
20455: ,p_old_line_rec.ordered_item)) OR
20456: (NOT OE_GLOBALS.EQUAL(p_line_rec.ship_from_org_id
20457: ,p_old_line_rec.ship_from_org_id))) AND
20458: (p_line_rec.preferred_grade IS NULL OR
20459: p_line_rec.preferred_grade = FND_API.G_MISS_CHAR) THEN
20460: NULL;

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

20626: -- secondary_default_ind value of D = type 2
20627: -- secondary_default_ind value of N = type 3
20628:
20629: -- bug 4053117 start pal
20630: IF OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id)
20631: and l_item_rec.secondary_default_ind <> 'F'
20632: and (
20633: (p_x_line_rec.ordered_quantity IS NOT NULL and
20634: p_x_line_rec.ordered_quantity <> FND_API.G_MISS_NUM ) AND

Line 20639: oe_debug_pub.add('Sync_dual_qty IF (OE_GLOBALS.G_UI_FLAG) and ship froms = - early exit ');

20635: (p_x_line_rec.ordered_quantity2 IS NOT NULL and
20636: p_x_line_rec.ordered_quantity2 <> FND_API.G_MISS_NUM )
20637: ) THEN
20638: IF l_debug_level > 0 THEN
20639: oe_debug_pub.add('Sync_dual_qty IF (OE_GLOBALS.G_UI_FLAG) and ship froms = - early exit ');
20640: END IF;
20641: RETURN;
20642: END IF;
20643: -- bug 4053117 end

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

20642: END IF;
20643: -- bug 4053117 end
20644:
20645: -- 5172701 pal
20646: IF NOT ( OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,p_old_line_rec.ship_from_org_id) )
20647: and l_item_rec.secondary_uom_code is NOT NULL
20648: THEN
20649: p_x_line_rec.ordered_quantity_uom2 := l_item_rec.secondary_uom_code;
20650: END IF;

Line 20684: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE --13503975

20680: OR ( l_item_rec.secondary_default_ind = 'F' -- INVCONV
20681: AND p_x_line_rec.split_from_line_id IS NOT NULL -- CHILD with a SYSTEM split from SHIPPING
20682: AND p_x_line_rec.split_by = 'SYSTEM'
20683: -- need to check if user or system , early exit if system else sync
20684: AND p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE --13503975
20685: AND p_x_line_rec.line_category_code <> 'RETURN'
20686: AND ((nvl(P_X_LINE_REC.ordered_quantity,0) <> 0) )
20687: AND ((nvl(P_X_LINE_REC.ordered_quantity2,0) <> 0)) ) --added for bug 7418730
20688: -- Bug 7418730 is for secondary quantity getting cleared on change of warehouse

Line 20739: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

20735: /* If the ordered_quantity_um has changed, force recalculation of quantity2
20736: unless we have a no default process item where there is no
20737: automatic calculation
20738: ==========================================================================*/
20739: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
20740: ,p_old_line_rec.order_quantity_uom ))
20741: AND p_old_line_rec.order_quantity_uom is not NULL -- OPM 24/OCT/00 B1458751
20742: -- AND l_item_rec.dualum_ind <> 3 -- INVCONV
20743: AND l_item_rec.secondary_default_ind <> 'N' -- INVCONV

Line 20750: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

20746: END IF;
20747:
20748: /* Has one of the two quantities changed */
20749:
20750: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
20751: ,p_old_line_rec.ordered_quantity )) OR
20752: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
20753: ,p_old_line_rec.ordered_quantity2)) OR
20754: (p_x_line_rec.ordered_quantity IS NULL) OR

Line 20752: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

20748: /* Has one of the two quantities changed */
20749:
20750: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
20751: ,p_old_line_rec.ordered_quantity )) OR
20752: (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
20753: ,p_old_line_rec.ordered_quantity2)) OR
20754: (p_x_line_rec.ordered_quantity IS NULL) OR
20755: (p_x_line_rec.ordered_quantity2 IS NULL) THEN
20756:

Line 20785: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

20781: oe_debug_pub.add('Sync_dual_qty - no change detected so no sync',1);
20782: END IF;
20783:
20784: RETURN;
20785: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
20786:
20787: oe_debug_pub.add('Sync_dual_qty - here 1 ',1);
20788:
20789: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

Line 20789: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

20785: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
20786:
20787: oe_debug_pub.add('Sync_dual_qty - here 1 ',1);
20788:
20789: IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
20790: ,p_old_line_rec.ordered_quantity )) OR
20791: p_x_line_rec.ordered_quantity2 IS NULL THEN
20792: /* Primary quantity has changed so recalculate secondary */
20793:

Line 20925: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

20921:
20922: end if; --end 8501046
20923:
20924:
20925: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
20926: ,p_old_line_rec.ordered_quantity2 )) THEN
20927: /* Secondary quantity has changed so recalculate primary
20928: =======================================================*/
20929:

Line 21011: OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 ,NVL(p_old_line_rec.ordered_quantity2 ,p_x_line_rec.ordered_quantity2))

21007: * it exists and secondary is the
21008: * change from null to non null value */
21009:
21010: IF l_item_rec.secondary_default_ind = 'F' and
21011: OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 ,NVL(p_old_line_rec.ordered_quantity2 ,p_x_line_rec.ordered_quantity2))
21012: and p_x_line_rec.ordered_quantity is not null THEN
21013:
21014: IF l_debug_level > 0 THEN oe_debug_pub.add('Sync_dual_qty - do not reconvert the secondary to primary when it exists and secondary is changed
21015: from null to non null - early return');

Line 21043: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

21039: END IF;
21040:
21041: p_x_line_rec.ordered_quantity := l_converted_qty;
21042:
21043: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
21044:
21045:
21046: EXCEPTION
21047:

Line 21199: AND p_x_line_rec.operation = oe_globals.g_opr_update

21195: = p_x_line_rec.order_quantity_uom) THEN -- added 14296662
21196:
21197:
21198: IF (p_x_line_rec.split_action_code = 'SPLIT'
21199: AND p_x_line_rec.operation = oe_globals.g_opr_update
21200: )
21201: OR (p_x_line_rec.split_from_line_id is not null
21202: AND p_x_line_rec.split_from_line_id <> fnd_api.g_miss_num
21203: AND p_x_line_rec.operation = oe_globals.g_opr_create

Line 21203: AND p_x_line_rec.operation = oe_globals.g_opr_create

21199: AND p_x_line_rec.operation = oe_globals.g_opr_update
21200: )
21201: OR (p_x_line_rec.split_from_line_id is not null
21202: AND p_x_line_rec.split_from_line_id <> fnd_api.g_miss_num
21203: AND p_x_line_rec.operation = oe_globals.g_opr_create
21204: )
21205: THEN
21206:
21207: --In case of create operation, line has shipping quantity uom 14296662

Line 21264: IF NOT(OE_GLOBALS.G_UI_FLAG) and -- 4958890

21260: -- check this - why call here ?? need to know where to call in proper place - ask OM team
21261:
21262: --oe_debug_pub.add('reserved_quantity = ' || p_x_line_rec.reserved_quantity );
21263: -- oe_debug_pub.add('reserved_quantity2 = ' || p_x_line_rec.reserved_quantity2 );
21264: IF NOT(OE_GLOBALS.G_UI_FLAG) and -- 4958890
21265: p_x_line_rec.ordered_quantity <> FND_API.G_MISS_NUM And
21266: p_x_line_rec.ordered_quantity IS NOT NULL and
21267: p_x_line_rec.ordered_quantity2 <> FND_API.G_MISS_NUM And
21268: p_x_line_rec.ordered_quantity2 IS NOT NULL and

Line 21398: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;

21394: INTO l_num
21395: FROM oe_order_lines
21396: WHERE ato_line_id = p_x_line_rec.ato_line_id
21397: AND top_model_line_id = p_x_line_rec.top_model_line_id
21398: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;
21399:
21400: l_flag := TRUE;
21401: EXCEPTION
21402: WHEN NO_DATA_FOUND THEN

Line 21419: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR

21415:
21416: l_ato_item_qty_change := FALSE;
21417:
21418: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21419: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21420: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR --##1820608
21421: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_INCLUDED) AND --9775352
21422: p_old_line_rec.schedule_status_code is NOT NULL AND
21423: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE

Line 21420: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR --##1820608

21416: l_ato_item_qty_change := FALSE;
21417:
21418: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21419: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21420: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR --##1820608
21421: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_INCLUDED) AND --9775352
21422: p_old_line_rec.schedule_status_code is NOT NULL AND
21423: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
21424: THEN

Line 21421: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_INCLUDED) AND --9775352

21417:
21418: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21419: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21420: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR --##1820608
21421: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_INCLUDED) AND --9775352
21422: p_old_line_rec.schedule_status_code is NOT NULL AND
21423: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
21424: THEN
21425: if l_debug_level > 0 then

Line 21423: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE

21419: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21420: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR --##1820608
21421: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_INCLUDED) AND --9775352
21422: p_old_line_rec.schedule_status_code is NOT NULL AND
21423: p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE
21424: THEN
21425: if l_debug_level > 0 then
21426: oe_debug_pub.add('ato item, may need to notify cto', 4);
21427: end if;

Line 21431: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN

21427: end if;
21428: l_flag := TRUE;
21429:
21430: IF p_x_line_rec.ordered_quantity = 0 AND
21431: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE THEN
21432:
21433: if l_debug_level > 0 then
21434: oe_debug_pub.add('ato item qty made to 0'|| p_x_line_rec.open_flag, 4);
21435: end if;

Line 21494: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,

21490: if l_debug_level > 0 then
21491: oe_debug_pub.add('compare for ato model now', 3);
21492: end if;
21493:
21494: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_from_org_id,
21495: p_old_line_rec.ship_from_org_id) THEN
21496:
21497: if l_debug_level > 0 then
21498: oe_debug_pub.add('cto_change logged for warehouse change', 3);

Line 21503: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21499: end if;
21500: l_notify_cto := TRUE;
21501:
21502: OE_delayed_requests_Pvt.log_request
21503: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21504: p_entity_id => p_x_line_rec.line_id,
21505: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21506: p_requesting_entity_id => p_x_line_rec.line_id,
21507: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21505: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21501:
21502: OE_delayed_requests_Pvt.log_request
21503: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21504: p_entity_id => p_x_line_rec.line_id,
21505: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21506: p_requesting_entity_id => p_x_line_rec.line_id,
21507: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21508: p_request_unique_key1 => 'Warehouse',
21509: p_param1 => p_old_line_rec.ship_from_org_id,

Line 21507: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21503: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21504: p_entity_id => p_x_line_rec.line_id,
21505: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21506: p_requesting_entity_id => p_x_line_rec.line_id,
21507: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21508: p_request_unique_key1 => 'Warehouse',
21509: p_param1 => p_old_line_rec.ship_from_org_id,
21510: p_param2 => p_x_line_rec.ship_from_org_id,
21511: p_param3 => p_x_line_rec.ato_line_id,

Line 21516: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

21512: x_return_status => x_return_status);
21513:
21514: END IF;
21515:
21516: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
21517: p_old_line_rec.ordered_quantity) THEN
21518:
21519: if l_debug_level > 0 then
21520: oe_debug_pub.add('cto_change logged for qty change', 3);

Line 21526: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21522:
21523: l_notify_cto := TRUE;
21524:
21525: OE_delayed_requests_Pvt.log_request
21526: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21527: p_entity_id => p_x_line_rec.line_id,
21528: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21529: p_requesting_entity_id => p_x_line_rec.line_id,
21530: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21528: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21524:
21525: OE_delayed_requests_Pvt.log_request
21526: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21527: p_entity_id => p_x_line_rec.line_id,
21528: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21529: p_requesting_entity_id => p_x_line_rec.line_id,
21530: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21531: p_request_unique_key1 => 'Quantity',
21532: p_param1 => p_old_line_rec.ordered_quantity,

Line 21530: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21526: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21527: p_entity_id => p_x_line_rec.line_id,
21528: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21529: p_requesting_entity_id => p_x_line_rec.line_id,
21530: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21531: p_request_unique_key1 => 'Quantity',
21532: p_param1 => p_old_line_rec.ordered_quantity,
21533: p_param2 => p_x_line_rec.ordered_quantity,
21534: p_param3 => p_x_line_rec.ato_line_id,

Line 21539: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

21535: x_return_status => x_return_status);
21536:
21537: END IF;
21538:
21539: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
21540: p_old_line_rec.request_date) THEN
21541:
21542: if l_debug_level > 0 then
21543: oe_debug_pub.add('cto_change logged for req date change', 3);

Line 21548: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21544: end if;
21545: l_notify_cto := TRUE;
21546:
21547: OE_delayed_requests_Pvt.log_request
21548: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21549: p_entity_id => p_x_line_rec.line_id,
21550: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21551: p_requesting_entity_id => p_x_line_rec.line_id,
21552: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21550: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21546:
21547: OE_delayed_requests_Pvt.log_request
21548: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21549: p_entity_id => p_x_line_rec.line_id,
21550: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21551: p_requesting_entity_id => p_x_line_rec.line_id,
21552: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21553: p_request_unique_key1 => 'Req Date',
21554: p_param1 => p_old_line_rec.request_date,

Line 21552: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21548: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21549: p_entity_id => p_x_line_rec.line_id,
21550: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21551: p_requesting_entity_id => p_x_line_rec.line_id,
21552: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21553: p_request_unique_key1 => 'Req Date',
21554: p_param1 => p_old_line_rec.request_date,
21555: p_param2 => p_x_line_rec.request_date,
21556: p_param3 => p_x_line_rec.ato_line_id,

Line 21561: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,

21557: x_return_status => x_return_status);
21558:
21559: END IF;
21560:
21561: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,
21562: p_old_line_rec.schedule_ship_date) AND
21563: NOT l_ato_item_qty_change
21564: THEN
21565:

Line 21572: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21568: end if;
21569: l_notify_cto := TRUE;
21570:
21571: OE_delayed_requests_Pvt.log_request
21572: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21573: p_entity_id => p_x_line_rec.line_id,
21574: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21575: p_requesting_entity_id => p_x_line_rec.line_id,
21576: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21574: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21570:
21571: OE_delayed_requests_Pvt.log_request
21572: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21573: p_entity_id => p_x_line_rec.line_id,
21574: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21575: p_requesting_entity_id => p_x_line_rec.line_id,
21576: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21577: p_request_unique_key1 => 'Ship Date',
21578: p_param1 => p_old_line_rec.schedule_ship_date,

Line 21576: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21572: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21573: p_entity_id => p_x_line_rec.line_id,
21574: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21575: p_requesting_entity_id => p_x_line_rec.line_id,
21576: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21577: p_request_unique_key1 => 'Ship Date',
21578: p_param1 => p_old_line_rec.schedule_ship_date,
21579: p_param2 => p_x_line_rec.schedule_ship_date,
21580: p_param3 => p_x_line_rec.ato_line_id,

Line 21585: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,

21581: x_return_status => x_return_status);
21582:
21583: END IF;
21584:
21585: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_arrival_date,
21586: p_old_line_rec.schedule_arrival_date) AND
21587: NOT l_ato_item_qty_change THEN
21588:
21589: if l_debug_level > 0 then

Line 21595: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21591: end if;
21592: l_notify_cto := TRUE;
21593:
21594: OE_delayed_requests_Pvt.log_request
21595: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21596: p_entity_id => p_x_line_rec.line_id,
21597: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21598: p_requesting_entity_id => p_x_line_rec.line_id,
21599: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21597: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21593:
21594: OE_delayed_requests_Pvt.log_request
21595: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21596: p_entity_id => p_x_line_rec.line_id,
21597: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21598: p_requesting_entity_id => p_x_line_rec.line_id,
21599: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21600: p_request_unique_key1 => 'Arr Date',
21601: p_param1 => p_old_line_rec.schedule_arrival_date,

Line 21599: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21595: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21596: p_entity_id => p_x_line_rec.line_id,
21597: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21598: p_requesting_entity_id => p_x_line_rec.line_id,
21599: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21600: p_request_unique_key1 => 'Arr Date',
21601: p_param1 => p_old_line_rec.schedule_arrival_date,
21602: p_param2 => p_x_line_rec.schedule_arrival_date,
21603: p_param3 => p_x_line_rec.ato_line_id,

Line 21610: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,

21606: END IF;
21607:
21608: -- INVCONV
21609:
21610: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity2,
21611: p_old_line_rec.ordered_quantity2) THEN
21612:
21613: if l_debug_level > 0 then
21614: oe_debug_pub.add('cto_change logged for qty2 change', 3);

Line 21620: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21616:
21617: l_notify_cto := TRUE;
21618:
21619: OE_delayed_requests_Pvt.log_request
21620: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21621: p_entity_id => p_x_line_rec.line_id,
21622: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21623: p_requesting_entity_id => p_x_line_rec.line_id,
21624: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21622: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21618:
21619: OE_delayed_requests_Pvt.log_request
21620: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21621: p_entity_id => p_x_line_rec.line_id,
21622: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21623: p_requesting_entity_id => p_x_line_rec.line_id,
21624: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21625: p_request_unique_key1 => 'Quantity2',
21626: p_param1 => p_old_line_rec.ordered_quantity2,

Line 21624: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21620: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21621: p_entity_id => p_x_line_rec.line_id,
21622: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21623: p_requesting_entity_id => p_x_line_rec.line_id,
21624: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21625: p_request_unique_key1 => 'Quantity2',
21626: p_param1 => p_old_line_rec.ordered_quantity2,
21627: p_param2 => p_x_line_rec.ordered_quantity2,
21628: p_param3 => p_x_line_rec.ato_line_id,

Line 21633: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity_uom2,

21629: x_return_status => x_return_status);
21630:
21631: END IF;
21632:
21633: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity_uom2,
21634: p_old_line_rec.ordered_quantity_uom2) THEN
21635:
21636: if l_debug_level > 0 then
21637: oe_debug_pub.add('cto_change logged for Uom2 change', 3);

Line 21643: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21639:
21640: l_notify_cto := TRUE;
21641:
21642: OE_delayed_requests_Pvt.log_request
21643: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21644: p_entity_id => p_x_line_rec.line_id,
21645: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21646: p_requesting_entity_id => p_x_line_rec.line_id,
21647: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21645: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21641:
21642: OE_delayed_requests_Pvt.log_request
21643: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21644: p_entity_id => p_x_line_rec.line_id,
21645: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21646: p_requesting_entity_id => p_x_line_rec.line_id,
21647: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21648: p_request_unique_key1 => 'Uom2',
21649: p_param1 => p_old_line_rec.ordered_quantity_uom2,

Line 21647: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21643: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21644: p_entity_id => p_x_line_rec.line_id,
21645: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21646: p_requesting_entity_id => p_x_line_rec.line_id,
21647: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21648: p_request_unique_key1 => 'Uom2',
21649: p_param1 => p_old_line_rec.ordered_quantity_uom2,
21650: p_param2 => p_x_line_rec.ordered_quantity_uom2,
21651: p_param3 => p_x_line_rec.ato_line_id,

Line 21656: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,

21652: x_return_status => x_return_status);
21653:
21654: END IF;
21655:
21656: IF NOT OE_GLOBALS.Equal(p_x_line_rec.order_quantity_uom,
21657: p_old_line_rec.order_quantity_uom) THEN
21658:
21659: if l_debug_level > 0 then
21660: oe_debug_pub.add('cto_change logged for Uom change', 3);

Line 21666: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21662:
21663: l_notify_cto := TRUE;
21664:
21665: OE_delayed_requests_Pvt.log_request
21666: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21667: p_entity_id => p_x_line_rec.line_id,
21668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21669: p_requesting_entity_id => p_x_line_rec.line_id,
21670: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21664:
21665: OE_delayed_requests_Pvt.log_request
21666: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21667: p_entity_id => p_x_line_rec.line_id,
21668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21669: p_requesting_entity_id => p_x_line_rec.line_id,
21670: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21671: p_request_unique_key1 => 'Uom',
21672: p_param1 => p_old_line_rec.order_quantity_uom,

Line 21670: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21666: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21667: p_entity_id => p_x_line_rec.line_id,
21668: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21669: p_requesting_entity_id => p_x_line_rec.line_id,
21670: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21671: p_request_unique_key1 => 'Uom',
21672: p_param1 => p_old_line_rec.order_quantity_uom,
21673: p_param2 => p_x_line_rec.order_quantity_uom,
21674: p_param3 => p_x_line_rec.ato_line_id,

Line 21694: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21690:
21691: l_notify_cto := TRUE;
21692:
21693: OE_delayed_requests_Pvt.log_request
21694: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21695: p_entity_id => p_x_line_rec.line_id,
21696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21697: p_requesting_entity_id => p_x_line_rec.line_id,
21698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21692:
21693: OE_delayed_requests_Pvt.log_request
21694: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21695: p_entity_id => p_x_line_rec.line_id,
21696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21697: p_requesting_entity_id => p_x_line_rec.line_id,
21698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21699: p_request_unique_key1 => 'Ship Date',
21700: p_param1 => p_old_line_rec.schedule_ship_date,

Line 21698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21694: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21695: p_entity_id => p_x_line_rec.line_id,
21696: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21697: p_requesting_entity_id => p_x_line_rec.line_id,
21698: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21699: p_request_unique_key1 => 'Ship Date',
21700: p_param1 => p_old_line_rec.schedule_ship_date,
21701: p_param2 => p_x_line_rec.schedule_ship_date,
21702: p_param3 => p_x_line_rec.ato_line_id,

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

21705: END IF; -- update on model line logged
21706:
21707: IF p_x_line_rec.ato_line_id is NOT NULL AND
21708: p_x_line_rec.ato_line_id <> p_x_line_rec.line_id AND
21709: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG AND
21710: ((oe_config_util.CASCADE_CHANGES_FLAG = 'N' AND
21711: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y') OR
21712: OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'Y') AND
21713: l_flag AND

Line 21716: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) -- split create

21712: OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'Y') AND
21713: l_flag AND
21714: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND -- split update
21715: NOT (p_x_line_rec.split_from_line_id is NOT NULL AND
21716: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE) -- split create
21717: THEN
21718: if l_debug_level > 0 then
21719: oe_debug_pub.add('part of ato', 3);
21720: end if;

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

21730:
21731: EXCEPTION
21732: WHEN NO_DATA_FOUND THEN
21733:
21734: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE THEN
21735: if l_debug_level > 0 then
21736: oe_debug_pub.add('pto top model and opr create', 1);
21737: end if;
21738: l_pto_ato_create := TRUE;

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

21739: END IF;
21740: END;
21741:
21742:
21743: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
21744: NOT l_pto_ato_create) OR
21745: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
21746: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
21747: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

Line 21745: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR

21741:
21742:
21743: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
21744: NOT l_pto_ato_create) OR
21745: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
21746: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
21747: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
21748: p_old_line_rec.ordered_quantity))
21749:

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

21742:
21743: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
21744: NOT l_pto_ato_create) OR
21745: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
21746: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
21747: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
21748: p_old_line_rec.ordered_quantity))
21749:
21750: THEN

Line 21747: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

21743: IF (p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
21744: NOT l_pto_ato_create) OR
21745: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE OR
21746: (p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
21747: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
21748: p_old_line_rec.ordered_quantity))
21749:
21750: THEN
21751:

Line 21759: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21755:
21756: l_notify_cto := TRUE;
21757:
21758: OE_delayed_requests_Pvt.log_request
21759: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21760: p_entity_id => p_x_line_rec.ato_line_id,
21761: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21762: p_requesting_entity_id => p_x_line_rec.line_id,
21763: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21761: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21757:
21758: OE_delayed_requests_Pvt.log_request
21759: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21760: p_entity_id => p_x_line_rec.ato_line_id,
21761: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21762: p_requesting_entity_id => p_x_line_rec.line_id,
21763: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21764: p_request_unique_key1 => 'Config Chg',
21765: p_param3 => p_x_line_rec.ato_line_id,

Line 21763: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21759: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21760: p_entity_id => p_x_line_rec.ato_line_id,
21761: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21762: p_requesting_entity_id => p_x_line_rec.line_id,
21763: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21764: p_request_unique_key1 => 'Config Chg',
21765: p_param3 => p_x_line_rec.ato_line_id,
21766: x_return_status => x_return_status);
21767:

Line 21768: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE AND

21764: p_request_unique_key1 => 'Config Chg',
21765: p_param3 => p_x_line_rec.ato_line_id,
21766: x_return_status => x_return_status);
21767:
21768: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_DELETE AND
21769: OE_Code_Control.Code_Release_Level >= '110510' THEN
21770:
21771: if l_debug_level > 0 then
21772: oe_debug_pub.add('cto_change logged for decimal change', 3);

Line 21776: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21772: oe_debug_pub.add('cto_change logged for decimal change', 3);
21773: end if;
21774:
21775: OE_delayed_requests_Pvt.log_request
21776: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21777: p_entity_id => p_x_line_rec.line_id,
21778: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21779: p_requesting_entity_id => p_x_line_rec.line_id,
21780: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21778: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21774:
21775: OE_delayed_requests_Pvt.log_request
21776: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21777: p_entity_id => p_x_line_rec.line_id,
21778: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21779: p_requesting_entity_id => p_x_line_rec.line_id,
21780: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21781: p_request_unique_key1 => 'Decimal Chg',
21782: p_param1 => p_x_line_rec.operation,

Line 21780: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21776: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21777: p_entity_id => p_x_line_rec.line_id,
21778: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21779: p_requesting_entity_id => p_x_line_rec.line_id,
21780: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21781: p_request_unique_key1 => 'Decimal Chg',
21782: p_param1 => p_x_line_rec.operation,
21783: p_param3 => p_x_line_rec.ato_line_id,
21784: p_param4 => p_x_line_rec.ordered_quantity,

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

21800: p_x_line_rec.operation = 'CREATE' AND
21801: OE_Code_Control.Code_Release_Level >= '110510' THEN
21802:
21803: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21804: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
21805: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21806: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
21807: l_num := 1;
21808: END IF;

Line 21805: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR

21801: OE_Code_Control.Code_Release_Level >= '110510' THEN
21802:
21803: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21804: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
21805: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21806: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
21807: l_num := 1;
21808: END IF;
21809:

Line 21806: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN

21802:
21803: IF p_x_line_rec.ato_line_id = p_x_line_rec.line_id AND
21804: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
21805: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_STANDARD OR
21806: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION)THEN
21807: l_num := 1;
21808: END IF;
21809:
21810: IF p_x_line_rec.ato_line_id is NOT NULL AND

Line 21835: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21831: oe_debug_pub.add('new split ato model '|| p_x_line_rec.line_id, 3);
21832: end if;
21833:
21834: OE_delayed_requests_Pvt.log_request
21835: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21836: p_entity_id => p_x_line_rec.ato_line_id,
21837: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21838: p_requesting_entity_id => p_x_line_rec.line_id,
21839: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21837: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21833:
21834: OE_delayed_requests_Pvt.log_request
21835: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21836: p_entity_id => p_x_line_rec.ato_line_id,
21837: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21838: p_requesting_entity_id => p_x_line_rec.line_id,
21839: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21840: p_request_unique_key1 => 'Split Create',
21841: p_param3 => p_x_line_rec.split_from_line_id,

Line 21839: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21835: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21836: p_entity_id => p_x_line_rec.ato_line_id,
21837: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21838: p_requesting_entity_id => p_x_line_rec.line_id,
21839: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21840: p_request_unique_key1 => 'Split Create',
21841: p_param3 => p_x_line_rec.split_from_line_id,
21842: p_param4 => p_x_line_rec.line_id,
21843: x_return_status => x_return_status);

Line 21855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21851: oe_debug_pub.add('notify_cto logged', 3);
21852: end if;
21853:
21854: OE_delayed_requests_Pvt.log_request
21855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21856: p_entity_id => p_x_line_rec.ato_line_id,
21857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21858: p_requesting_entity_id => p_x_line_rec.ato_line_id,
21859: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

Line 21857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21853:
21854: OE_delayed_requests_Pvt.log_request
21855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21856: p_entity_id => p_x_line_rec.ato_line_id,
21857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21858: p_requesting_entity_id => p_x_line_rec.ato_line_id,
21859: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
21860: x_return_status => x_return_status);
21861: END IF;

Line 21859: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

21855: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21856: p_entity_id => p_x_line_rec.ato_line_id,
21857: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21858: p_requesting_entity_id => p_x_line_rec.ato_line_id,
21859: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
21860: x_return_status => x_return_status);
21861: END IF;
21862:
21863:

Line 21881: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;

21877: SELECT line_id
21878: INTO l_num
21879: FROM oe_order_lines
21880: WHERE top_model_line_id = p_x_line_rec.top_model_line_id
21881: AND item_type_code = OE_GLOBALS.G_ITEM_CONFIG;
21882:
21883: l_flag := TRUE;
21884: EXCEPTION
21885: WHEN NO_DATA_FOUND THEN

Line 21911: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21907: oe_debug_pub.add('pto ato and config exist'|| p_x_line_rec.line_id, 2);
21908: end if;
21909:
21910: OE_delayed_requests_Pvt.log_request
21911: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21912: p_entity_id => p_x_line_rec.line_id,
21913: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21914: p_requesting_entity_id => p_x_line_rec.line_id,
21915: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

Line 21913: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21909:
21910: OE_delayed_requests_Pvt.log_request
21911: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21912: p_entity_id => p_x_line_rec.line_id,
21913: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21914: p_requesting_entity_id => p_x_line_rec.line_id,
21915: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21916: p_request_unique_key1 => 'Config Chg pto_ato',
21917: p_param3 => p_x_line_rec.top_model_line_id,

Line 21915: p_request_type => OE_GLOBALS.G_CTO_CHANGE,

21911: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21912: p_entity_id => p_x_line_rec.line_id,
21913: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21914: p_requesting_entity_id => p_x_line_rec.line_id,
21915: p_request_type => OE_GLOBALS.G_CTO_CHANGE,
21916: p_request_unique_key1 => 'Config Chg pto_ato',
21917: p_param3 => p_x_line_rec.top_model_line_id,
21918: p_param2 => 'Y',
21919: p_param4 => p_x_line_rec.line_id,

Line 21924: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128

21920: p_param5 => p_x_line_rec.ato_line_id,
21921: x_return_status => x_return_status);
21922:
21923: OE_delayed_requests_Pvt.log_request
21924: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21925: p_entity_id => p_x_line_rec.top_model_line_id,
21926: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21927: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
21928: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

Line 21926: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

21922:
21923: OE_delayed_requests_Pvt.log_request
21924: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21925: p_entity_id => p_x_line_rec.top_model_line_id,
21926: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21927: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
21928: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
21929: x_return_status => x_return_status);
21930:

Line 21928: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,

21924: (p_entity_code => OE_GLOBALS.G_ENTITY_LINE, --Bug 14375128
21925: p_entity_id => p_x_line_rec.top_model_line_id,
21926: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
21927: p_requesting_entity_id => p_x_line_rec.top_model_line_id,
21928: p_request_type => OE_GLOBALS.G_CTO_NOTIFICATION,
21929: x_return_status => x_return_status);
21930:
21931: END IF;
21932:

Line 21996: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

21992:
21993: ------------------------ copy for model split -------------
21994:
21995: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id AND
21996: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
21997: p_x_line_rec.split_from_line_id is not null -- split
21998: THEN
21999:
22000: if l_debug_level > 0 then

Line 22024: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22020: oe_debug_pub.add('Logging a request after spllit
22021: to copy the configuration in SPC', 1);
22022: end if;
22023: OE_Delayed_Requests_Pvt.Log_Request(
22024: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22025: p_entity_id => p_x_line_rec.line_id,
22026: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22027: p_requesting_entity_id => p_x_line_rec.line_id,
22028: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,

Line 22026: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22022: end if;
22023: OE_Delayed_Requests_Pvt.Log_Request(
22024: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22025: p_entity_id => p_x_line_rec.line_id,
22026: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22027: p_requesting_entity_id => p_x_line_rec.line_id,
22028: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,
22029: p_param1 => l_config_header_id,
22030: p_param2 => l_config_rev_nbr,

Line 22028: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,

22024: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22025: p_entity_id => p_x_line_rec.line_id,
22026: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22027: p_requesting_entity_id => p_x_line_rec.line_id,
22028: p_request_type => OE_GLOBALS.G_COPY_CONFIGURATION,
22029: p_param1 => l_config_header_id,
22030: p_param2 => l_config_rev_nbr,
22031: p_param3 => p_x_line_rec.model_remnant_flag,
22032: p_param4 => l_configuration_id,

Line 22060: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

22056: END IF;
22057:
22058: ---------------------- deletes ----------------------------------
22059:
22060: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22061: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22062: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22063: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22064: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

Line 22061: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

22057:
22058: ---------------------- deletes ----------------------------------
22059:
22060: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22061: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22062: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22063: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22064: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
22065: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN

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

22058: ---------------------- deletes ----------------------------------
22059:
22060: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22061: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22062: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22063: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22064: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
22065: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN
22066:

Line 22064: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND

22060: IF(p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22061: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22062: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22063: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22064: p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE AND
22065: OE_CONFIG_PVT.OECFG_VALIDATE_CONFIG = 'Y' THEN
22066:
22067: IF l_model_open_flag = 'N' THEN
22068: FND_MESSAGE.Set_Name('ONT', 'OE_CONFIG_MODEL_CLOSED');

Line 22092: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22088: oe_debug_pub.add('Logging a request to validate configuration ', 1);
22089: end if;
22090:
22091: OE_delayed_requests_Pvt.log_request(
22092: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22093: p_entity_id => p_x_line_rec.top_model_line_id,
22094: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22095: p_requesting_entity_id => p_x_line_rec.line_id,
22096: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

Line 22094: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22090:
22091: OE_delayed_requests_Pvt.log_request(
22092: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22093: p_entity_id => p_x_line_rec.top_model_line_id,
22094: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22095: p_requesting_entity_id => p_x_line_rec.line_id,
22096: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
22097: x_return_status => x_return_status);
22098:

Line 22096: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

22092: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22093: p_entity_id => p_x_line_rec.top_model_line_id,
22094: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22095: p_requesting_entity_id => p_x_line_rec.line_id,
22096: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
22097: x_return_status => x_return_status);
22098:
22099: if l_debug_level > 0 then
22100: oe_debug_pub.add('Logging a request to delete option from oe/spc', 1);

Line 22104: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22100: oe_debug_pub.add('Logging a request to delete option from oe/spc', 1);
22101: end if;
22102:
22103: OE_Delayed_Requests_Pvt.Log_Request(
22104: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22105: p_entity_id => p_x_line_rec.top_model_line_id,
22106: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22107: p_requesting_entity_id => p_x_line_rec.line_id,
22108: p_request_unique_key1 => p_x_line_rec.line_id,

Line 22106: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22102:
22103: OE_Delayed_Requests_Pvt.Log_Request(
22104: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22105: p_entity_id => p_x_line_rec.top_model_line_id,
22106: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22107: p_requesting_entity_id => p_x_line_rec.line_id,
22108: p_request_unique_key1 => p_x_line_rec.line_id,
22109: p_request_type => OE_GLOBALS.G_DELETE_OPTION,
22110: p_param1 => p_x_line_rec.top_model_line_id,

Line 22109: p_request_type => OE_GLOBALS.G_DELETE_OPTION,

22105: p_entity_id => p_x_line_rec.top_model_line_id,
22106: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22107: p_requesting_entity_id => p_x_line_rec.line_id,
22108: p_request_unique_key1 => p_x_line_rec.line_id,
22109: p_request_type => OE_GLOBALS.G_DELETE_OPTION,
22110: p_param1 => p_x_line_rec.top_model_line_id,
22111: p_param2 => p_x_line_rec.component_code,
22112: p_param3 => p_x_line_rec.item_type_code,
22113: p_param9 => p_x_line_rec.configuration_id,

Line 22130: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND

22126: end if;
22127:
22128: l_flag := FALSE;
22129:
22130: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
22131: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
22132: p_x_line_rec.booked_flag = 'Y' THEN
22133: if l_debug_level > 0 then
22134: oe_debug_pub.add('setting flag to true for model', 1);

Line 22131: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND

22127:
22128: l_flag := FALSE;
22129:
22130: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
22131: p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
22132: p_x_line_rec.booked_flag = 'Y' THEN
22133: if l_debug_level > 0 then
22134: oe_debug_pub.add('setting flag to true for model', 1);
22135: end if;

Line 22139: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR

22135: end if;
22136: l_flag := TRUE;
22137: END IF;
22138:
22139: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22140: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22141: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22142: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22143: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

Line 22140: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

22136: l_flag := TRUE;
22137: END IF;
22138:
22139: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22140: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22141: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22142: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22143: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
22144: p_old_line_rec.ordered_quantity )

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

22137: END IF;
22138:
22139: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22140: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22141: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22142: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22143: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
22144: p_old_line_rec.ordered_quantity )
22145: THEN

Line 22143: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

22139: IF (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_OPTION OR
22140: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22141: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT AND
22142: p_x_line_rec.line_id <> p_x_line_rec.top_model_line_id)) AND
22143: NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
22144: p_old_line_rec.ordered_quantity )
22145: THEN
22146: if l_debug_level > 0 then
22147: oe_debug_pub.add('set flag to true'|| p_old_line_rec.ordered_quantity, 1);

Line 22154: NOT OE_GLOBALS.Equal(p_x_line_rec.config_rev_nbr,

22150: l_flag := TRUE;
22151: END IF;
22152:
22153: IF p_x_line_rec.line_id = p_x_line_rec.top_model_line_id AND
22154: NOT OE_GLOBALS.Equal(p_x_line_rec.config_rev_nbr,
22155: p_old_line_rec.config_rev_nbr)
22156: THEN
22157: if l_debug_level > 0 then
22158: oe_debug_pub.add('set flag to true, old rev '|| p_old_line_rec.config_rev_nbr, 1);

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

22174:
22175:
22176: -- in case of splits, we dont want to batch validate
22177:
22178: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
22179: p_x_line_rec.split_from_line_id is not null
22180: THEN
22181: if l_debug_level > 0 then
22182: oe_debug_pub.add('This is a new model after split', 1);

Line 22185: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

22181: if l_debug_level > 0 then
22182: oe_debug_pub.add('This is a new model after split', 1);
22183: end if;
22184:
22185: ELSIF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
22186: nvl(p_x_line_rec.split_action_code, 'X') = 'SPLIT'
22187: THEN
22188: if l_debug_level > 0 then
22189: oe_debug_pub.add('This is a parent split model', 1);

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

22215: RAISE FND_API.G_EXC_ERROR;
22216: END IF;
22217:
22218: -- 2917547 starts
22219: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_CREATE AND
22220: p_x_line_rec.ordered_quantity = 0 THEN
22221:
22222: IF p_x_line_rec.ordered_item IS NULL OR
22223: p_x_line_rec.ordered_item = fnd_api.g_miss_char THEN

Line 22241: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22237: RAISE FND_API.G_EXC_ERROR;
22238: END IF;
22239:
22240: OE_delayed_requests_Pvt.log_request(
22241: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22242: p_entity_id => p_x_line_rec.top_model_line_id,
22243: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22244: p_requesting_entity_id => p_x_line_rec.line_id,
22245: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

Line 22243: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22239:
22240: OE_delayed_requests_Pvt.log_request(
22241: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22242: p_entity_id => p_x_line_rec.top_model_line_id,
22243: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22244: p_requesting_entity_id => p_x_line_rec.line_id,
22245: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
22246: x_return_status => x_return_status);
22247:

Line 22245: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,

22241: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22242: p_entity_id => p_x_line_rec.top_model_line_id,
22243: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22244: p_requesting_entity_id => p_x_line_rec.line_id,
22245: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
22246: x_return_status => x_return_status);
22247:
22248: -- log only if operation is update and not for create
22249: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

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

22245: p_request_type => OE_GLOBALS.G_VALIDATE_CONFIGURATION,
22246: x_return_status => x_return_status);
22247:
22248: -- log only if operation is update and not for create
22249: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
22250: l_config_rev_change = 'N'
22251: AND NOT(OE_GENESIS_UTIL.G_INCOMING_FROM_DOO) -- Bug 16491708
22252: THEN
22253:

Line 22277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22273: (p_x_line_rec.item_type_code || p_x_line_rec.ordered_quantity, 1);
22274: end if;
22275:
22276: OE_Delayed_Requests_Pvt.Log_Request(
22277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22278: p_entity_id => p_x_line_rec.line_id,
22279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22280: p_requesting_entity_id => p_x_line_rec.line_id,
22281: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,

Line 22279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22275:
22276: OE_Delayed_Requests_Pvt.Log_Request(
22277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22278: p_entity_id => p_x_line_rec.line_id,
22279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22280: p_requesting_entity_id => p_x_line_rec.line_id,
22281: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,
22282: p_param1 => p_x_line_rec.top_model_line_id,
22283: p_param2 => p_x_line_rec.component_code,

Line 22281: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,

22277: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22278: p_entity_id => p_x_line_rec.line_id,
22279: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22280: p_requesting_entity_id => p_x_line_rec.line_id,
22281: p_request_type => OE_GLOBALS.G_UPDATE_OPTION,
22282: p_param1 => p_x_line_rec.top_model_line_id,
22283: p_param2 => p_x_line_rec.component_code,
22284: p_param3 => p_x_line_rec.item_type_code,
22285: p_param4 => p_old_line_rec.ordered_quantity,

Line 22400: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND

22396:
22397:
22398: IF OE_CONFIG_UTIL.G_CONFIG_UI_USED = 'N' AND
22399: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' AND
22400: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE AND
22401: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT'
22402: THEN
22403: -- 1. change in ordered qty of model/kit
22404: -- at subconfig cascade qty is actually in validate_config

Line 22409: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

22405:
22406: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id
22407: THEN
22408:
22409: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
22410: p_old_line_rec.ordered_quantity) AND
22411: OE_Config_Util.G_Config_UI_Used = 'N'
22412: THEN
22413: l_param1 := p_old_line_rec.ordered_quantity;

Line 22432: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND

22428:
22429: -- 2. change in project and task of model/ ato subconfig
22430:
22431: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id OR -- model/kit
22432: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND
22433: p_x_line_rec.line_id = p_x_line_rec.ato_line_id) -- ato subconfig
22434: THEN
22435:
22436: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,

Line 22436: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,

22432: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS AND
22433: p_x_line_rec.line_id = p_x_line_rec.ato_line_id) -- ato subconfig
22434: THEN
22435:
22436: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,
22437: p_old_line_rec.project_id)
22438: THEN
22439: l_param5 := p_x_line_rec.project_id;
22440: if l_debug_level > 0 then

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

22442: end if;
22443: l_cascade_changes := TRUE;
22444: END IF;
22445:
22446: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
22447: THEN
22448: l_param6 := p_x_line_rec.task_id;
22449: if l_debug_level > 0 then
22450: oe_debug_pub.add('model /ATO sub,task_id changed: '||l_param6,1);

Line 22459: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,

22455:
22456: -- 3. cascade change in ship_tolerance_above and ship_tolerance_above
22457: -- at the model level to all the options.
22458:
22459: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,
22460: p_old_line_rec.ship_tolerance_above)
22461: THEN
22462: l_param11 := p_x_line_rec.ship_tolerance_above;
22463: l_cascade_changes := TRUE;

Line 22466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,

22462: l_param11 := p_x_line_rec.ship_tolerance_above;
22463: l_cascade_changes := TRUE;
22464: END IF;
22465:
22466: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,
22467: p_old_line_rec.ship_tolerance_below)
22468: THEN
22469: l_param12 := p_x_line_rec.ship_tolerance_below;
22470: l_cascade_changes := TRUE;

Line 22483: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

22479: IF p_x_line_rec.top_model_line_id = p_x_line_rec.line_id AND
22480: nvl(p_x_line_rec.ship_model_complete_flag, 'N') = 'N' AND
22481: p_x_line_rec.ato_line_id IS NULL
22482: THEN
22483: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
22484: p_old_line_rec.ship_to_org_id)
22485: THEN
22486: l_param14 := p_x_line_rec.ship_to_org_id;
22487: l_cascade_changes := TRUE;

Line 22490: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

22486: l_param14 := p_x_line_rec.ship_to_org_id;
22487: l_cascade_changes := TRUE;
22488: END IF;
22489:
22490: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
22491: p_old_line_rec.request_date)
22492: THEN
22493: l_date_param1 := p_x_line_rec.request_date;
22494: l_cascade_changes := TRUE;

Line 22502: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND

22498:
22499:
22500: -- 5. change in shipped qty of ato model, specifically for top most ato.
22501:
22502: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
22503: p_x_line_rec.ato_line_id IS NOT NULL
22504: THEN
22505:
22506: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,

Line 22506: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,

22502: IF p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL AND
22503: p_x_line_rec.ato_line_id IS NOT NULL
22504: THEN
22505:
22506: IF NOT OE_GLOBALS.Equal(p_x_line_rec.shipped_quantity,
22507: p_old_line_rec.shipped_quantity)
22508: THEN
22509: l_param9 := to_char(p_x_line_rec.shipped_quantity);
22510: if l_debug_level > 0 then

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

22520:
22521: -- 6. cascade source_type for ATO configurations.
22522:
22523: IF p_x_line_rec.line_id = p_x_line_rec.ato_line_id AND
22524: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22525: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
22526: THEN
22527:
22528: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,

Line 22525: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )

22521: -- 6. cascade source_type for ATO configurations.
22522:
22523: IF p_x_line_rec.line_id = p_x_line_rec.ato_line_id AND
22524: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22525: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
22526: THEN
22527:
22528: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,
22529: p_old_line_rec.source_type_code)

Line 22528: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,

22524: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22525: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS )
22526: THEN
22527:
22528: IF NOT OE_GLOBALS.Equal(p_x_line_rec.source_type_code,
22529: p_old_line_rec.source_type_code)
22530: THEN
22531: l_param7 := p_x_line_rec.source_type_code;
22532: if l_debug_level > 0 then

Line 22544: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

22540:
22541: -- 7. Cascade change in freight_term_code
22542: -- added this code to fix the bug 2217336
22543:
22544: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22545: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22546: THEN
22547:
22548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,

Line 22545: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

22541: -- 7. Cascade change in freight_term_code
22542: -- added this code to fix the bug 2217336
22543:
22544: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22545: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22546: THEN
22547:
22548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,
22549: p_old_line_rec.freight_terms_code)

Line 22548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,

22544: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22545: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22546: THEN
22547:
22548: IF NOT OE_GLOBALS.Equal(p_x_line_rec.freight_terms_code,
22549: p_old_line_rec.freight_terms_code)
22550: THEN
22551: l_param16 := p_x_line_rec.freight_terms_code;
22552:

Line 22565: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR

22561: END IF;
22562:
22563: -- 8. Cascade change in promise date
22564:
22565: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22566: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22567: THEN
22568:
22569: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,

Line 22566: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )

22562:
22563: -- 8. Cascade change in promise date
22564:
22565: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22566: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22567: THEN
22568:
22569: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,
22570: p_old_line_rec.promise_date)

Line 22569: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,

22565: IF ( p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_MODEL OR
22566: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT )
22567: THEN
22568:
22569: IF NOT OE_GLOBALS.Equal(p_x_line_rec.promise_date,
22570: p_old_line_rec.promise_date)
22571: THEN
22572: l_date_param2 := p_x_line_rec.promise_date;
22573:

Line 22609: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22605: l_cancellation := 'Y';
22606: END IF;
22607:
22608: OE_delayed_requests_Pvt.log_request(
22609: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22610: p_entity_id => p_x_line_rec.line_id,
22611: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22612: p_requesting_entity_id => p_x_line_rec.line_id,
22613: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,

Line 22611: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22607:
22608: OE_delayed_requests_Pvt.log_request(
22609: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22610: p_entity_id => p_x_line_rec.line_id,
22611: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22612: p_requesting_entity_id => p_x_line_rec.line_id,
22613: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,
22614: p_param1 => l_param1, -- old old qty
22615: p_param2 => l_param2, -- new ord qty

Line 22613: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,

22609: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22610: p_entity_id => p_x_line_rec.line_id,
22611: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22612: p_requesting_entity_id => p_x_line_rec.line_id,
22613: p_request_type => OE_GLOBALS.G_CASCADE_CHANGES,
22614: p_param1 => l_param1, -- old old qty
22615: p_param2 => l_param2, -- new ord qty
22616: p_param3 => l_param3, -- chg reason
22617: p_param4 => l_param4, -- chg comment

Line 22653: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND

22649: -- if not done so, following if condition will always fail and cascading
22650: -- changed field values to child item lines will fail.
22651: -- (warehous field for 6678897)
22652:
22653: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
22654: ((p_x_line_rec.ato_line_id is not null AND
22655: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
22656: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
22657: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

Line 22655: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR

22651: -- (warehous field for 6678897)
22652:
22653: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
22654: ((p_x_line_rec.ato_line_id is not null AND
22655: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
22656: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
22657: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
22658: AND nvl(p_x_line_rec.split_action_code,'N') <> 'SPLIT' --6717302
22659: AND nvl(p_x_line_rec.split_by,'N') <> 'SYSTEM' --6717302

Line 22657: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE

22653: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' AND
22654: ((p_x_line_rec.ato_line_id is not null AND
22655: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD) OR
22656: (nvl(p_x_line_rec.ship_model_complete_flag,'N')='Y')) AND
22657: p_x_line_rec.operation = OE_GLOBALS.G_OPR_UPDATE
22658: AND nvl(p_x_line_rec.split_action_code,'N') <> 'SPLIT' --6717302
22659: AND nvl(p_x_line_rec.split_by,'N') <> 'SYSTEM' --6717302
22660: THEN
22661:

Line 22665: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_FROM_ORG_ID,

22661:
22662: IF p_x_line_rec.schedule_status_code is null THEN
22663:
22664: -- 1.
22665: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_FROM_ORG_ID,
22666: p_old_line_rec.SHIP_FROM_ORG_ID)
22667: THEN
22668: l_change_configuration := TRUE;
22669: END IF;

Line 22672: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID,

22668: l_change_configuration := TRUE;
22669: END IF;
22670:
22671: -- 2.
22672: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIP_TO_ORG_ID,
22673: p_old_line_rec.SHIP_TO_ORG_ID)
22674: THEN
22675: l_change_configuration := TRUE;
22676: END IF;

Line 22682: IF NOT OE_GLOBALS.Equal(p_x_line_rec.REQUEST_DATE,

22678: END IF;
22679:
22680: -- 3. note that this is logged even if scheduled.
22681:
22682: IF NOT OE_GLOBALS.Equal(p_x_line_rec.REQUEST_DATE,
22683: p_old_line_rec.REQUEST_DATE) AND
22684: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N'
22685: THEN
22686: l_change_configuration := TRUE;

Line 22689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPPING_METHOD_CODE,

22685: THEN
22686: l_change_configuration := TRUE;
22687: END IF;
22688:
22689: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPPING_METHOD_CODE,
22690: p_old_line_rec.SHIPPING_METHOD_CODE)
22691: THEN
22692: l_change_configuration := TRUE;
22693: END IF;

Line 22695: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPMENT_PRIORITY_CODE,

22691: THEN
22692: l_change_configuration := TRUE;
22693: END IF;
22694:
22695: IF NOT OE_GLOBALS.Equal(p_x_line_rec.SHIPMENT_PRIORITY_CODE,
22696: p_old_line_rec.SHIPMENT_PRIORITY_CODE)
22697: THEN
22698: l_change_configuration := TRUE;
22699: END IF;

Line 22701: IF NOT OE_GLOBALS.Equal(p_x_line_rec.DEMAND_CLASS_CODE,

22697: THEN
22698: l_change_configuration := TRUE;
22699: END IF;
22700:
22701: IF NOT OE_GLOBALS.Equal(p_x_line_rec.DEMAND_CLASS_CODE,
22702: p_old_line_rec.DEMAND_CLASS_CODE)
22703: THEN
22704: l_change_configuration := TRUE;
22705: END IF;

Line 22723: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22719: oe_debug_pub.add('logging a req. to chg config', 1);
22720: end if;
22721:
22722: OE_Delayed_Requests_Pvt.Log_Request(
22723: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22724: p_entity_id => l_entity_id,
22725: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22726: p_requesting_entity_id => p_x_line_rec.line_id,
22727: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,

Line 22725: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

22721:
22722: OE_Delayed_Requests_Pvt.Log_Request(
22723: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22724: p_entity_id => l_entity_id,
22725: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22726: p_requesting_entity_id => p_x_line_rec.line_id,
22727: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,
22728: p_param1 => p_x_line_rec.line_id,
22729: x_return_status => l_return_status);

Line 22727: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,

22723: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22724: p_entity_id => l_entity_id,
22725: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
22726: p_requesting_entity_id => p_x_line_rec.line_id,
22727: p_request_type => OE_GLOBALS.G_CHANGE_CONFIGURATION,
22728: p_param1 => p_x_line_rec.line_id,
22729: x_return_status => l_return_status);
22730:
22731: END IF;

Line 22745: AND item_type_code = OE_GLOBALS.G_ITEM_INCLUDED

22741: INTO l_num
22742: FROM oe_order_lines
22743: WHERE top_model_line_id = p_x_line_rec.top_model_line_id
22744: AND link_to_line_id = p_x_line_rec.line_id
22745: AND item_type_code = OE_GLOBALS.G_ITEM_INCLUDED
22746: AND rownum = 1;
22747:
22748: EXCEPTION
22749: WHEN NO_DATA_FOUND THEN

Line 22785: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND

22781: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).date_param1
22782: := FND_API.G_MISS_DATE;
22783: END IF;
22784:
22785: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
22786: p_x_line_rec.ato_line_id is null AND
22787: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
22788: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22789: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND

Line 22788: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR

22784:
22785: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
22786: p_x_line_rec.ato_line_id is null AND
22787: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
22788: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22789: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND
22790: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND
22791: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' -- not for model change
22792: THEN

Line 22789: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND

22785: IF p_x_line_rec.operation <> OE_GLOBALS.G_OPR_CREATE AND
22786: p_x_line_rec.ato_line_id is null AND
22787: p_x_line_rec.top_model_line_id <> p_x_line_rec.line_id AND
22788: (p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_CLASS OR
22789: p_x_line_rec.item_type_code = OE_GLOBALS.G_ITEM_KIT) AND
22790: nvl(p_x_line_rec.split_action_code, 'X') <> 'SPLIT' AND
22791: OE_CONFIG_UTIL.CASCADE_CHANGES_FLAG = 'N' -- not for model change
22792: THEN
22793: if l_debug_level > 0 then

Line 22797: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,

22793: if l_debug_level > 0 then
22794: oe_debug_pub.add('cascade class changes to included items', 1);
22795: end if;
22796:
22797: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ordered_quantity,
22798: p_old_line_rec.ordered_quantity) THEN
22799:
22800: IF OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param1 =
22801: FND_API.G_MISS_NUM THEN

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

22826: l_modify_included_items := TRUE;
22827:
22828: END IF;
22829:
22830: IF NOT OE_GLOBALS.Equal(p_x_line_rec.project_id,p_old_line_rec.project_id) THEN
22831: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param5
22832: := p_x_line_rec.project_id;
22833: if l_debug_level > 0 then
22834: oe_debug_pub.add('model/ATO subconfig,project changed: '||l_param5,1);

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

22836: l_modify_included_items := TRUE;
22837: END IF;
22838:
22839:
22840: IF NOT OE_GLOBALS.Equal(p_x_line_rec.task_id,p_old_line_rec.task_id)
22841: THEN
22842: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param6
22843: := p_x_line_rec.task_id;
22844: if l_debug_level > 0 then

Line 22851: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,

22847: l_modify_included_items := TRUE;
22848: END IF;
22849:
22850:
22851: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_above,
22852: p_old_line_rec.ship_tolerance_above)
22853: THEN
22854: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param7
22855: := p_x_line_rec.ship_tolerance_above;

Line 22859: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,

22855: := p_x_line_rec.ship_tolerance_above;
22856: l_modify_included_items := TRUE;
22857: END IF;
22858:
22859: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_tolerance_below,
22860: p_old_line_rec.ship_tolerance_below)
22861: THEN
22862: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param8
22863: := p_x_line_rec.ship_tolerance_below;

Line 22867: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN

22863: := p_x_line_rec.ship_tolerance_below;
22864: l_modify_included_items := TRUE;
22865: END IF;
22866:
22867: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN
22868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
22869: p_old_line_rec.ship_to_org_id)
22870: THEN
22871: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param9

Line 22868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,

22864: l_modify_included_items := TRUE;
22865: END IF;
22866:
22867: IF OE_GLOBALS.G_CHANGE_CFG_FLAG = 'Y' THEN
22868: IF NOT OE_GLOBALS.Equal(p_x_line_rec.ship_to_org_id,
22869: p_old_line_rec.ship_to_org_id)
22870: THEN
22871: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).param9
22872: := p_x_line_rec.ship_to_org_id;

Line 22876: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,

22872: := p_x_line_rec.ship_to_org_id;
22873: l_modify_included_items := TRUE;
22874: END IF;
22875:
22876: IF NOT OE_GLOBALS.Equal(p_x_line_rec.request_date,
22877: p_old_line_rec.request_date)
22878: THEN
22879: OE_Config_Pvt.OE_MODIFY_INC_ITEMS_TBL(l_num).date_param1
22880: := p_x_line_rec.request_date;

Line 22885: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN

22881: l_modify_included_items := TRUE;
22882: END IF;
22883: END IF;
22884:
22885: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE THEN
22886: l_modify_included_items := TRUE;
22887: END IF;
22888:
22889: END IF;

Line 23057: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,

23053: if l_debug_level > 0 then
23054: oe_debug_pub.add('Entering Log_Scheduling_Requests',1);
23055: oe_debug_pub.add('p_caller' || p_caller,1);
23056: end if;
23057: IF NOT OE_GLOBALS.Equal(p_x_line_rec.schedule_ship_date,
23058: p_old_line_rec.schedule_ship_date)
23059: THEN
23060: if l_debug_level > 0 then
23061: oe_debug_pub.add('Schedule shipdate is changed',1);

Line 23094: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,

23090: || to_char(p_x_line_rec.line_id) ,1);
23091: end if;
23092:
23093: OE_Delayed_Requests_Pvt.Log_Request(
23094: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23095: p_entity_id => p_x_line_rec.line_id,
23096: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23097: p_requesting_entity_id => p_x_line_rec.line_id,
23098: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

Line 23096: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,

23092:
23093: OE_Delayed_Requests_Pvt.Log_Request(
23094: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23095: p_entity_id => p_x_line_rec.line_id,
23096: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23097: p_requesting_entity_id => p_x_line_rec.line_id,
23098: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
23099: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
23100: p_param1 => FND_API.G_TRUE,

Line 23098: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,

23094: p_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23095: p_entity_id => p_x_line_rec.line_id,
23096: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23097: p_requesting_entity_id => p_x_line_rec.line_id,
23098: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
23099: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
23100: p_param1 => FND_API.G_TRUE,
23101: x_return_status => x_return_status);
23102:

Line 23099: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,

23095: p_entity_id => p_x_line_rec.line_id,
23096: p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE,
23097: p_requesting_entity_id => p_x_line_rec.line_id,
23098: p_request_type => OE_GLOBALS.G_UPDATE_SHIPPING,
23099: p_request_unique_key1 => OE_GLOBALS.G_OPR_UPDATE,
23100: p_param1 => FND_API.G_TRUE,
23101: x_return_status => x_return_status);
23102:
23103: END IF;

Line 23111: IF OE_GLOBALS.G_AUDIT_REASON_RQD_FLAG = 'Y'

23107: -- Begin Pre write.
23108:
23109: -- Start AuditTrail
23110:
23111: IF OE_GLOBALS.G_AUDIT_REASON_RQD_FLAG = 'Y'
23112: AND ( p_x_line_rec.change_reason IS NULL OR
23113: p_x_line_rec.change_reason = FND_API.G_MISS_CHAR)
23114: THEN
23115:

Line 23117: IF OE_GLOBALS.G_DEFAULT_REASON THEN

23113: p_x_line_rec.change_reason = FND_API.G_MISS_CHAR)
23114: THEN
23115:
23116: -- bug 3636884, defaulting reason from group API
23117: IF OE_GLOBALS.G_DEFAULT_REASON THEN
23118: if l_debug_level > 0 then
23119: oe_debug_pub.add('Defaulting Audit Reason for Order Line', 1);
23120: end if;
23121: p_x_line_rec.change_reason := 'SYSTEM';

Line 23140: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG

23136: IF p_caller = 'EXTERNAL' THEN
23137:
23138: IF ((p_x_line_rec.top_model_line_id is NOT NULL OR
23139: p_x_line_rec.ato_line_id is NOT NULL)) AND
23140: p_x_line_rec.item_type_code <> OE_GLOBALS.G_ITEM_CONFIG
23141: THEN
23142: if l_debug_level > 0 then
23143: oe_debug_pub.add('Before logging Log_CTO_Requests', 1);
23144: end if;

Line 23382: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

23378: END IF;
23379:
23380: /* Has one of the two quantities changed
23381: =======================================*/
23382: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
23383: ,p_old_ordered_quantity )) OR
23384: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
23385: ,p_old_ordered_quantity2)) OR
23386: (p_ordered_quantity IS NULL) OR

Line 23384: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2

23380: /* Has one of the two quantities changed
23381: =======================================*/
23382: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
23383: ,p_old_ordered_quantity )) OR
23384: (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
23385: ,p_old_ordered_quantity2)) OR
23386: (p_ordered_quantity IS NULL) OR
23387: (p_ordered_quantity2 IS NULL) THEN
23388:

Line 23402: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

23398: ELSE
23399: /* No calculation required
23400: ==================*/
23401: RETURN;
23402: END IF; -- IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
23403:
23404:
23405:
23406:

Line 23426: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity

23422: oe_debug_pub.add('OPM After Get_OPMUOM_from_appsUOM : apps_uom = ' || p_ordered_quantity_uom || 'opm_uom = ' || l_opm_uom );
23423: END IF; */
23424:
23425:
23426: IF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity
23427: ,p_old_ordered_quantity )) OR
23428: p_ordered_quantity2 IS NULL THEN
23429:
23430: /* Primary quantity has changed so recalculate secondary */

Line 23546: ELSIF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2

23542:
23543:
23544: END IF; -- IF (l_item_rec.secondary_default_ind in ('F','D')THEN
23545:
23546: ELSIF (NOT OE_GLOBALS.EQUAL(p_ordered_quantity2
23547: ,p_old_ordered_quantity2 )) THEN
23548: /* Secondary quantity has changed so recalculate primary */
23549:
23550:

Line 23717: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE

23713: -- BUG 2746595, send currency code as request_unique_key1 parameter to
23714: -- process release request. This is required as 2 distinct requests need to
23715: -- be logged for currency updates.
23716:
23717: IF p_x_line_rec.operation = OE_GLOBALS.G_OPR_DELETE
23718: THEN
23719:
23720: OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
23721:

Line 23726: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23722: -- For DELETES, log process releases request with new values as
23723: -- null or 0 so that quantity/amount cumulations see negative
23724: -- changes thus resulting in decrementing final released qty/amount
23725: OE_Delayed_Requests_Pvt.Log_Request
23726: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23727: ,p_entity_id => p_x_line_rec.line_id
23728: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23729: ,p_requesting_entity_id => p_x_line_rec.line_id
23730: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 23728: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23724: -- changes thus resulting in decrementing final released qty/amount
23725: OE_Delayed_Requests_Pvt.Log_Request
23726: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23727: ,p_entity_id => p_x_line_rec.line_id
23728: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23729: ,p_requesting_entity_id => p_x_line_rec.line_id
23730: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23731: -- Old values
23732: ,p_param1 => p_x_line_rec.blanket_number

Line 23730: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

23726: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23727: ,p_entity_id => p_x_line_rec.line_id
23728: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23729: ,p_requesting_entity_id => p_x_line_rec.line_id
23730: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23731: -- Old values
23732: ,p_param1 => p_x_line_rec.blanket_number
23733: ,p_param2 => p_x_line_rec.blanket_line_number
23734: ,p_param3 => p_x_line_rec.ordered_quantity

Line 23759: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23755: -- to validate that sum of quantities/amounts across all shipments
23756: -- in this line set are within the release min/max limits on blanket
23757: IF p_x_line_rec.line_set_id IS NOT NULL THEN
23758: OE_Delayed_Requests_Pvt.Log_Request
23759: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23760: ,p_entity_id => p_x_line_rec.line_set_id
23761: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23762: ,p_requesting_entity_id => p_x_line_rec.line_id
23763: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 23761: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23757: IF p_x_line_rec.line_set_id IS NOT NULL THEN
23758: OE_Delayed_Requests_Pvt.Log_Request
23759: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23760: ,p_entity_id => p_x_line_rec.line_set_id
23761: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23762: ,p_requesting_entity_id => p_x_line_rec.line_id
23763: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23764: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23765: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 23763: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

23759: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23760: ,p_entity_id => p_x_line_rec.line_set_id
23761: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23762: ,p_requesting_entity_id => p_x_line_rec.line_id
23763: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23764: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23765: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
23766: ,p_param1 =>
23767: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 23775: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code

23771:
23772: ELSIF (
23773: OE_Quote_Util.G_COMPLETE_NEG = 'Y'
23774: AND
23775: NOT OE_GLOBALS.EQUAL(p_x_line_rec.transaction_phase_code
23776: ,p_old_line_rec.transaction_phase_code)
23777: )
23778: THEN
23779:

Line 23791: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23787: -- total qty/amount of this line, as complete negotiation is
23788: -- running consumption logic for this order first time.
23789: -- Hence, send old parameter (param1-6) values as null.
23790: OE_Delayed_Requests_Pvt.Log_Request
23791: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23792: ,p_entity_id => p_x_line_rec.line_id
23793: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23794: ,p_requesting_entity_id => p_x_line_rec.line_id
23795: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 23793: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23789: -- Hence, send old parameter (param1-6) values as null.
23790: OE_Delayed_Requests_Pvt.Log_Request
23791: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23792: ,p_entity_id => p_x_line_rec.line_id
23793: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23794: ,p_requesting_entity_id => p_x_line_rec.line_id
23795: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23796: -- Old values
23797: ,p_param1 => null

Line 23795: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

23791: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23792: ,p_entity_id => p_x_line_rec.line_id
23793: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23794: ,p_requesting_entity_id => p_x_line_rec.line_id
23795: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23796: -- Old values
23797: ,p_param1 => null
23798: ,p_param2 => null
23799: ,p_param3 => null

Line 23825: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23821: IF p_x_line_rec.line_set_id IS NOT NULL THEN
23822:
23823: IF p_x_line_rec.blanket_number IS NOT NULL THEN
23824: OE_Delayed_Requests_Pvt.Log_Request
23825: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23826: ,p_entity_id => p_x_line_rec.line_set_id
23827: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23828: ,p_requesting_entity_id => p_x_line_rec.line_id
23829: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 23827: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23823: IF p_x_line_rec.blanket_number IS NOT NULL THEN
23824: OE_Delayed_Requests_Pvt.Log_Request
23825: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23826: ,p_entity_id => p_x_line_rec.line_set_id
23827: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23828: ,p_requesting_entity_id => p_x_line_rec.line_id
23829: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23830: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23831: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 23829: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

23825: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23826: ,p_entity_id => p_x_line_rec.line_set_id
23827: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23828: ,p_requesting_entity_id => p_x_line_rec.line_id
23829: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23830: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23831: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
23832: ,p_param1 =>
23833: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 23840: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number

23836: END IF;
23837:
23838: END IF; -- if line_set_id is not null
23839:
23840: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
23841: ,p_old_line_rec.blanket_number)
23842: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23843: ,p_old_line_rec.blanket_line_number)
23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

Line 23842: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number

23838: END IF; -- if line_set_id is not null
23839:
23840: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
23841: ,p_old_line_rec.blanket_number)
23842: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23843: ,p_old_line_rec.blanket_line_number)
23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
23845: ,p_old_line_rec.ordered_quantity)
23846: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price

Line 23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

23840: ELSIF (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
23841: ,p_old_line_rec.blanket_number)
23842: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23843: ,p_old_line_rec.blanket_line_number)
23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
23845: ,p_old_line_rec.ordered_quantity)
23846: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
23847: ,p_old_line_rec.unit_selling_price)
23848: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

Line 23846: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price

23842: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23843: ,p_old_line_rec.blanket_line_number)
23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
23845: ,p_old_line_rec.ordered_quantity)
23846: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
23847: ,p_old_line_rec.unit_selling_price)
23848: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
23849: ,p_old_line_rec.order_quantity_uom)
23850: )

Line 23848: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

23844: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
23845: ,p_old_line_rec.ordered_quantity)
23846: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.unit_selling_price
23847: ,p_old_line_rec.unit_selling_price)
23848: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
23849: ,p_old_line_rec.order_quantity_uom)
23850: )
23851: THEN
23852:

Line 23859: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23855:
23856: OE_Order_Cache.Load_Order_Header(p_x_line_rec.header_id);
23857:
23858: OE_Delayed_Requests_Pvt.Log_Request
23859: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23860: ,p_entity_id => p_x_line_rec.line_id
23861: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23862: ,p_requesting_entity_id => p_x_line_rec.line_id
23863: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

Line 23861: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23857:
23858: OE_Delayed_Requests_Pvt.Log_Request
23859: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23860: ,p_entity_id => p_x_line_rec.line_id
23861: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23862: ,p_requesting_entity_id => p_x_line_rec.line_id
23863: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23864: -- Old values
23865: ,p_param1 => p_old_line_rec.blanket_number

Line 23863: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE

23859: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23860: ,p_entity_id => p_x_line_rec.line_id
23861: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23862: ,p_requesting_entity_id => p_x_line_rec.line_id
23863: ,p_request_type => OE_GLOBALS.G_PROCESS_RELEASE
23864: -- Old values
23865: ,p_param1 => p_old_line_rec.blanket_number
23866: ,p_param2 => p_old_line_rec.blanket_line_number
23867: ,p_param3 => p_old_line_rec.ordered_quantity

Line 23893: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23889: IF p_x_line_rec.line_set_id IS NOT NULL THEN
23890:
23891: IF p_x_line_rec.blanket_number IS NOT NULL THEN
23892: OE_Delayed_Requests_Pvt.Log_Request
23893: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23894: ,p_entity_id => p_x_line_rec.line_set_id
23895: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23896: ,p_requesting_entity_id => p_x_line_rec.line_id
23897: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 23895: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23891: IF p_x_line_rec.blanket_number IS NOT NULL THEN
23892: OE_Delayed_Requests_Pvt.Log_Request
23893: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23894: ,p_entity_id => p_x_line_rec.line_set_id
23895: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23896: ,p_requesting_entity_id => p_x_line_rec.line_id
23897: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23898: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23899: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number

Line 23897: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

23893: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23894: ,p_entity_id => p_x_line_rec.line_set_id
23895: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23896: ,p_requesting_entity_id => p_x_line_rec.line_id
23897: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23898: ,p_request_unique_key1 => p_x_line_rec.blanket_number
23899: ,p_request_unique_key2 => p_x_line_rec.blanket_line_number
23900: ,p_param1 =>
23901: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 23909: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number

23905:
23906: -- If blanket number is being updated on the shipment, also
23907: -- need to run shipment validation for the old blanket reference
23908: IF p_old_line_rec.blanket_number IS NOT NULL
23909: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
23910: ,p_old_line_rec.blanket_number)
23911: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23912: ,p_old_line_rec.blanket_line_number)
23913: )

Line 23911: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number

23907: -- need to run shipment validation for the old blanket reference
23908: IF p_old_line_rec.blanket_number IS NOT NULL
23909: AND (NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_number
23910: ,p_old_line_rec.blanket_number)
23911: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.blanket_line_number
23912: ,p_old_line_rec.blanket_line_number)
23913: )
23914: THEN
23915: OE_Delayed_Requests_Pvt.Log_Request

Line 23916: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

23912: ,p_old_line_rec.blanket_line_number)
23913: )
23914: THEN
23915: OE_Delayed_Requests_Pvt.Log_Request
23916: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23917: ,p_entity_id => p_x_line_rec.line_set_id
23918: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23919: ,p_requesting_entity_id => p_x_line_rec.line_id
23920: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

Line 23918: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

23914: THEN
23915: OE_Delayed_Requests_Pvt.Log_Request
23916: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23917: ,p_entity_id => p_x_line_rec.line_set_id
23918: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23919: ,p_requesting_entity_id => p_x_line_rec.line_id
23920: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23921: ,p_request_unique_key1 => p_old_line_rec.blanket_number
23922: ,p_request_unique_key2 => p_old_line_rec.blanket_line_number

Line 23920: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS

23916: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
23917: ,p_entity_id => p_x_line_rec.line_set_id
23918: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
23919: ,p_requesting_entity_id => p_x_line_rec.line_id
23920: ,p_request_type => OE_GLOBALS.G_VALIDATE_RELEASE_SHIPMENTS
23921: ,p_request_unique_key1 => p_old_line_rec.blanket_number
23922: ,p_request_unique_key2 => p_old_line_rec.blanket_line_number
23923: ,p_param1 =>
23924: OE_Order_Cache.g_header_rec.transactional_curr_code

Line 24185: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions

24181: RAISE FND_API.G_EXC_ERROR;
24182: END IF;
24183:
24184:
24185: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
24186: ,p_old_line_rec.shipping_instructions)
24187: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
24188: ,p_old_line_rec.packing_instructions)
24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id

Line 24187: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions

24183:
24184:
24185: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
24186: ,p_old_line_rec.shipping_instructions)
24187: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
24188: ,p_old_line_rec.packing_instructions)
24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
24190: ,p_old_line_rec.ship_to_contact_id)
24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id

Line 24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id

24185: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_instructions
24186: ,p_old_line_rec.shipping_instructions)
24187: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
24188: ,p_old_line_rec.packing_instructions)
24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
24190: ,p_old_line_rec.ship_to_contact_id)
24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
24192: ,p_old_line_rec.deliver_to_org_id)
24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id

Line 24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id

24187: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.packing_instructions
24188: ,p_old_line_rec.packing_instructions)
24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
24190: ,p_old_line_rec.ship_to_contact_id)
24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
24192: ,p_old_line_rec.deliver_to_org_id)
24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
24194: ,p_old_line_rec.deliver_to_contact_id)
24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description

Line 24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id

24189: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_contact_id
24190: ,p_old_line_rec.ship_to_contact_id)
24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
24192: ,p_old_line_rec.deliver_to_org_id)
24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
24194: ,p_old_line_rec.deliver_to_contact_id)
24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
24196: ,p_old_line_rec.user_item_description)
24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

Line 24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description

24191: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_org_id
24192: ,p_old_line_rec.deliver_to_org_id)
24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
24194: ,p_old_line_rec.deliver_to_contact_id)
24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
24196: ,p_old_line_rec.user_item_description)
24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24198: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

Line 24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

24193: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.deliver_to_contact_id
24194: ,p_old_line_rec.deliver_to_contact_id)
24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
24196: ,p_old_line_rec.user_item_description)
24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24198: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24200: ,p_old_line_rec.customer_line_number)
24201: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

Line 24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

24195: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.user_item_description
24196: ,p_old_line_rec.user_item_description)
24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24198: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24200: ,p_old_line_rec.customer_line_number)
24201: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
24202: ,p_old_line_rec.customer_shipment_number) */
24203: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code

Line 24201: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

24197: /* OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24198: ,p_old_line_rec.cust_po_number) --commented for ER 6072870
24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24200: ,p_old_line_rec.customer_line_number)
24201: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
24202: ,p_old_line_rec.customer_shipment_number) */
24203: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code
24204: ,p_old_line_rec.shipping_method_code) THEN
24205:

Line 24203: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code

24199: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24200: ,p_old_line_rec.customer_line_number)
24201: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
24202: ,p_old_line_rec.customer_shipment_number) */
24203: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.shipping_method_code
24204: ,p_old_line_rec.shipping_method_code) THEN
24205:
24206: IF l_debug_level > 0 THEN
24207: OE_DEBUG_PUB.Add('Change in Reference Data Elements...', 2);

Line 24216: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number

24212:
24213: END IF;
24214: /* Added for ER 6072870*/
24215:
24216: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24217: ,p_old_line_rec.cust_po_number)
24218: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24219: ,p_old_line_rec.customer_line_number)
24220: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

Line 24218: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number

24214: /* Added for ER 6072870*/
24215:
24216: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24217: ,p_old_line_rec.cust_po_number)
24218: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24219: ,p_old_line_rec.customer_line_number)
24220: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
24221: ,p_old_line_rec.customer_shipment_number) THEN
24222: --{

Line 24220: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number

24216: if NOT OE_GLOBALS.EQUAL(p_x_line_rec.cust_po_number
24217: ,p_old_line_rec.cust_po_number)
24218: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_line_number
24219: ,p_old_line_rec.customer_line_number)
24220: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.customer_shipment_number
24221: ,p_old_line_rec.customer_shipment_number) THEN
24222: --{
24223: IF l_debug_level > 0 THEN
24224: OE_DEBUG_PUB.Add('Change in customer PO Reference Data Elements...', 2);

Line 24274: /* IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 - remove this as valid now for INVCONV

24270: END IF;
24271: --}
24272: END IF;
24273:
24274: /* IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2 - remove this as valid now for INVCONV
24275: ,p_old_line_rec.ordered_quantity2) THEN
24276:
24277: FND_MESSAGE.Set_Name('ONT','ONT_DS_OPM_QTY_CHANGED');
24278: OE_MSG_PUB.Add;

Line 24285: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

24281: OE_DEBUG_PUB.Add('Warning!! Secondary Qty Changed...', 2);
24282: END IF;
24283: END IF;
24284:
24285: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
24286: ,p_old_line_rec.ordered_quantity_uom2) THEN
24287:
24288: FND_MESSAGE.Set_Name('ONT','ONT_DS_OPM_UOM_CHANGED');
24289: OE_MSG_PUB.Add;

Line 24296: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

24292: OE_DEBUG_PUB.Add('Warning!! Secondary Qty UOM Changed...', 2);
24293: END IF;
24294: END IF;
24295:
24296: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
24297: ,p_old_line_rec.preferred_grade) THEN
24298:
24299: FND_MESSAGE.Set_Name('ONT', 'ONT_DS_OPM_GRADE_CHANGED');
24300: OE_MSG_PUB.Add;

Line 24309: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity

24305:
24306: END IF; */
24307:
24308:
24309: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
24310: ,p_old_line_rec.ordered_quantity)
24311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
24312: ,p_old_line_rec.order_quantity_uom)
24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

Line 24311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom

24307:
24308:
24309: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
24310: ,p_old_line_rec.ordered_quantity)
24311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
24312: ,p_old_line_rec.order_quantity_uom)
24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
24314: ,p_old_line_rec.ordered_quantity2)
24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

Line 24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2

24309: IF NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity
24310: ,p_old_line_rec.ordered_quantity)
24311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
24312: ,p_old_line_rec.order_quantity_uom)
24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
24314: ,p_old_line_rec.ordered_quantity2)
24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
24316: ,p_old_line_rec.ordered_quantity_uom2)
24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

Line 24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2

24311: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.order_quantity_uom
24312: ,p_old_line_rec.order_quantity_uom)
24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
24314: ,p_old_line_rec.ordered_quantity2)
24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
24316: ,p_old_line_rec.ordered_quantity_uom2)
24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
24318: ,p_old_line_rec.preferred_grade)
24319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

Line 24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade

24313: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity2
24314: ,p_old_line_rec.ordered_quantity2)
24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
24316: ,p_old_line_rec.ordered_quantity_uom2)
24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
24318: ,p_old_line_rec.preferred_grade)
24319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
24320: ,p_old_line_rec.schedule_ship_date)
24321: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

Line 24319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date

24315: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ordered_quantity_uom2
24316: ,p_old_line_rec.ordered_quantity_uom2)
24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
24318: ,p_old_line_rec.preferred_grade)
24319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
24320: ,p_old_line_rec.schedule_ship_date)
24321: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
24322: ,p_old_line_rec.ship_to_org_id)
24323: OR (l_ref_data_only ) -- Added for ER 6072870

Line 24321: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id

24317: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.preferred_grade
24318: ,p_old_line_rec.preferred_grade)
24319: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.schedule_ship_date
24320: ,p_old_line_rec.schedule_ship_date)
24321: OR NOT OE_GLOBALS.EQUAL(p_x_line_rec.ship_to_org_id
24322: ,p_old_line_rec.ship_to_org_id)
24323: OR (l_ref_data_only ) -- Added for ER 6072870
24324: OR (l_cust_po_attr_change and not l_ref_data_only and l_log_cust_po_change )
24325: OR p_x_line_rec.operation ='DELETE'

Line 24343: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL

24339: p_x_line_rec.line_id, 2);
24340: END IF;
24341:
24342: OE_Delayed_Requests_Pvt.Log_Request
24343: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
24344: ,p_entity_id => p_x_line_rec.line_id
24345: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
24346: ,p_requesting_entity_id => p_x_line_rec.line_id
24347: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS

Line 24345: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE

24341:
24342: OE_Delayed_Requests_Pvt.Log_Request
24343: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
24344: ,p_entity_id => p_x_line_rec.line_id
24345: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
24346: ,p_requesting_entity_id => p_x_line_rec.line_id
24347: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS
24348: ,p_param1 => p_old_line_rec.ordered_quantity
24349: ,p_param2 => p_old_line_rec.order_quantity_uom

Line 24347: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS

24343: (p_entity_code => OE_GLOBALS.G_ENTITY_ALL
24344: ,p_entity_id => p_x_line_rec.line_id
24345: ,p_requesting_entity_code => OE_GLOBALS.G_ENTITY_LINE
24346: ,p_requesting_entity_id => p_x_line_rec.line_id
24347: ,p_request_type => OE_GLOBALS.G_DROPSHIP_CMS
24348: ,p_param1 => p_old_line_rec.ordered_quantity
24349: ,p_param2 => p_old_line_rec.order_quantity_uom
24350: ,p_param3 => p_old_line_rec.ship_to_org_id
24351: ,p_param4 => p_old_line_rec.ordered_quantity2

Line 24492: ,OE_GLOBALS.G_WFI_LIN

24488: oe_debug_pub.add('Parent Line waiting to be invoiced, calling API to Invoice Parent ', 5);
24489: END IF;
24490:
24491: OE_Invoice_PUB.Interface_Line( p_link_to_line_id
24492: ,OE_GLOBALS.G_WFI_LIN
24493: ,l_result_out
24494: ,l_return_status);
24495:
24496: IF l_debug_level > 0 THEN

Line 24513: WF_ENGINE.CompleteActivityInternalName(OE_GLOBALS.G_WFI_LIN, p_link_to_line_id, 'INVOICING_WAIT_FOR_RFR', null);

24509: Set flow_status_code = 'INVOICED'
24510: Where line_id = p_link_to_line_id;
24511:
24512: BEGIN
24513: WF_ENGINE.CompleteActivityInternalName(OE_GLOBALS.G_WFI_LIN, p_link_to_line_id, 'INVOICING_WAIT_FOR_RFR', null);
24514: EXCEPTION
24515: WHEN OTHERS THEN
24516: oe_debug_pub.add(' Error in completing activity; SQL Message - '||SQLERRM, 5);
24517: END;

Line 24608: IF p_x_line_tbl(l_index).operation = OE_GLOBALS.G_OPR_UPDATE

24604:
24605: /* Below code is necessary to pass a value for the sold_to_org_id as value to id
24606: routines expects it */
24607:
24608: IF p_x_line_tbl(l_index).operation = OE_GLOBALS.G_OPR_UPDATE
24609: AND p_x_line_tbl(l_index).sold_to_org_id = FND_API.G_MISS_NUM THEN
24610:
24611: l_sold_to_org_id := p_x_line_tbl(l_index).sold_to_org_id;
24612:

Line 24624: ELSIF p_x_line_tbl(l_index).operation = OE_GLOBALS.G_OPR_CREATE

24620: WHEN OTHERS THEN
24621: NULL;
24622: END;
24623:
24624: ELSIF p_x_line_tbl(l_index).operation = OE_GLOBALS.G_OPR_CREATE
24625: AND p_x_line_tbl(l_index).sold_to_org_id = FND_API.G_MISS_NUM THEN
24626:
24627: IF OE_CUSTOMER_INFO_PVT.G_SOLD_TO_CUSTOMER_ID IS NOT NULL THEN
24628: l_sold_to_org_id := OE_CUSTOMER_INFO_PVT.G_SOLD_TO_CUSTOMER_ID;