Issue #24144:call postItemlocSeries which posts G/L
authorgaryhgohoos <gary@xtuple.com>
Mon, 14 Jul 2014 14:55:58 +0000 (10:55 -0400)
committergaryhgohoos <gary@xtuple.com>
Mon, 14 Jul 2014 14:55:58 +0000 (10:55 -0400)
foundation-database/public/functions/balanceitemsite.sql

index 8538760..3ae61d0 100644 (file)
@@ -35,10 +35,8 @@ BEGIN
   FROM itemsite
   WHERE (itemsite_id=pItemsiteid);
 
---  Post the invtrans records associated with the itemlocdist records
-  PERFORM postInvhist(itemlocdist_invhist_id)
-     FROM itemlocdist
-    WHERE(itemlocdist_series=_itemlocseries);
+--  Post the itemloc series which will postIntoTrialBalance and postInvHist
+  PERFORM postItemlocSeries(_itemlocseries);
 
 --  Kill the resultant distribution records
   DELETE FROM itemlocdist