pgsql/x-fifo-invfifo-fill.sql
authorEdward <edward@roojs.com>
Tue, 11 Feb 2014 09:05:23 +0000 (17:05 +0800)
committerEdward <edward@roojs.com>
Tue, 11 Feb 2014 09:05:23 +0000 (17:05 +0800)
pgsql/x-fifo-invfifo-fill.sql

index a0c7016..ceccde7 100644 (file)
@@ -6,46 +6,6 @@
 -- only updates the qty's etc..
 
 
-
-
-CREATE OR REPLACE FUNCTION invfifo_fill_all(integer, integer)
-    RETURNS  boolean
-AS $BODY$
-DECLARE    
-    i_location_id  ALIAS FOR $1;
-    i_itemsite_id  ALIAS FOR $2;
- BEGIN   
-     
-    PERFORM  invfifo_fill(invdetail_id,true) FROM (
-                    SELECT
-                            invdetail_id
-                        FROM
-                            invdetailview
-       
-                        WHERE
-                            invdetail_location_id = i_location_id
-                            AND
-                            invhist_itemsite_id = i_itemsite_id
-                        ORDER BY
-                            invhist_transdate ASC,
-                            invdetail_id ASC
-                        
-                    ) x;
-    RETURN true;
-   END;
-$BODY$
-  LANGUAGE plpgsql VOLATILE
-  COST 100;
-  
-ALTER FUNCTION   invfifo_fill_all(integer, integer)
-  OWNER TO admin;
-          
-
-
-
-
-
-
 CREATE OR REPLACE FUNCTION invfifo_fill(integer)
     RETURNS  boolean