437: IF (cr_rec.secondary_quantity IS NULL OR
438: l_secondary_default_ind = 'F')
439: THEN
440:
441: cr_rec.secondary_quantity := INV_CONVERT.inv_um_convert(
442: item_id => cr_rec.item_id,
443: precision => 6,
444: from_quantity => cr_rec.quantity,
445: from_unit => NULL,
479: --for fixed type items do the conversion and update interface table.
480: ELSE
481: l_progress := '040';
482:
483: IF INV_CONVERT.within_deviation(
484: p_organization_id => cr_rec.destination_organization_id ,
485: p_inventory_item_id => cr_rec.item_id,
486: p_lot_number => null ,
487: p_precision => 6 ,
512: IF (l_rtn_status <> FND_API.G_RET_STS_SUCCESS) THEN
513: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
514: END IF;
515: l_progress := '060';
516: END IF; /*NOT INV_CONVERT.within_deviation( */
517: END IF; /*cr_rec.secondary_quantity IS NULL*/
518: --Since item is not dual um controlled update all secondary attributes to NULL
519: /*ELSIF l_tracking_qty_ind = 'P' THEN
520: UPDATE po_requisitions_interface
544: IF l_tracking_qty_ind_s = 'PS' THEN
545:
546: IF l_item_um2_s <> l_item_um2 THEN
547:
548: l_sec_qty_source := INV_CONVERT.inv_um_convert(
549: item_id => cr_rec.item_id,
550: precision => 6,
551: from_quantity => cr_rec.secondary_quantity,
552: from_unit => l_item_um2 ,
566: l_sec_qty_source := cr_rec.secondary_quantity;
567: l_unit_of_measure_s := cr_rec.secondary_unit_of_measure;
568: END IF;
569:
570: IF INV_CONVERT.within_deviation(
571: p_organization_id => cr_rec.source_organization_id ,
572: p_inventory_item_id => cr_rec.item_id,
573: p_lot_number => null ,
574: p_precision => 6 ,
601:
602: IF (l_rtn_status <> FND_API.G_RET_STS_SUCCESS) THEN
603: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
604: END IF;
605: END IF; /*NOT INV_CONVERT.within_deviation( */
606: END IF; /*l_tracking_qty_ind_s = 'PS'*/
607: END IF; /*cr_rec.source_type_code = 'INVENTORY'*/
608:
609: l_progress := '110';