1 PACKAGE PO_UOM_SV2 AUTHID CURRENT_USER as
2 /* $Header: RCVTXUOS.pls 115.3 2003/07/07 20:35:26 prpeters ship $*
3 /*===========================================================================
4 PACKAGE NAME: PO_UOM_SV2
5
6 DESCRIPTION:
7
8 CLIENT/SERVER: Server
9
10 LIBRARY NAME
11
12 OWNER:
13
14 PROCEDURE NAMES: convert_quantity()
15 convert_inv_cost()
16 ===========================================================================*/
17 /*===========================================================================
18 FUNCTION NAME: convert_inv_cost()
19
20 DESCRIPTION: If the current unit of measure differs from the
21 primary UOM for an inventory sourced line, this
22 procedure will round the inventory cost (based
23 on the primary UOM in the source organization).
24 The rounding is based on the uom conversion for the
25 item, current, and primary UOMs.
26
27 RETURN TYPE: BOOLEAN
28
29 CHANGE HISTORY: LBROADBE April 6, 1996 Created
30 ===========================================================================*/
31 function convert_inv_cost(x_item_id in number,
32 x_current_uom in varchar2,
33 x_primary_uom in varchar2,
34 x_primary_inv_cost in number,
35 x_result_price in out NOCOPY number) return boolean;
36
37 /*===========================================================================
38 FUNCTION NAME: convert_quantity()
39
40 DESCRIPTION: This is the server-side component of the client-side
41 round_line_quantity function used to handle unit of
42 issue conversion for inventory-sourced requisition
43 lines. This function returns TRUE if the calling
44 function should proceed with the conversion, and
45 FALSE if it is not required or possible.
46
47 RETURN TYPE: BOOLEAN
48
49 CHANGE HISTORY: LBROADBE 11-15-95 Created
50 ===========================================================================*/
51 function convert_quantity(x_item_id in number,
52 x_source_org_id in number,
53 x_order_quantity in number,
54 x_order_uom in varchar2,
55 x_result_quantity in out NOCOPY number,
56 x_rounding_factor in out NOCOPY number,
57 x_unit_of_issue in out NOCOPY varchar2,
58 x_error_type in out NOCOPY varchar2) return boolean;
59
60 /*===========================================================================
61 PROCEDURE NAME: reqimport_convert_uom_qty()
62
63 DESCRIPTION: Bug#2470849, This procedure is called from Reqimport
64 and it converts the uom to the unit_of_issue of the
65 Source uom and also rounds the quantity depending
66 on the rounding factor.
67
68 RETURN TYPE:
69
70 CHANGE HISTORY: PRPETERS 07/02/03 Created
71 ===========================================================================*/
72 PROCEDURE reqimport_convert_uom_qty(x_request_id in number );
73
74 END PO_UOM_SV2;