From: garyhgohoos Date: Mon, 14 Jul 2014 14:55:58 +0000 (-0400) Subject: Issue #24144:call postItemlocSeries which posts G/L X-Git-Tag: v4.6.0-beta~7^2^2 X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=ed244221e01981722b721cb461fa8fb38ec8a7d0;p=xtuple Issue #24144:call postItemlocSeries which posts G/L --- diff --git a/foundation-database/public/functions/balanceitemsite.sql b/foundation-database/public/functions/balanceitemsite.sql index 853876054..3ae61d0d2 100644 --- a/foundation-database/public/functions/balanceitemsite.sql +++ b/foundation-database/public/functions/balanceitemsite.sql @@ -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