From d0042dfab5e35ef9503c7c70f0c8023cfde03e9b Mon Sep 17 00:00:00 2001 From: garyhgohoos Date: Mon, 19 May 2014 17:06:44 -0400 Subject: [PATCH] Issue #23571:fix value posted to inventory --- foundation-database/public/functions/postcreditmemo.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundation-database/public/functions/postcreditmemo.sql b/foundation-database/public/functions/postcreditmemo.sql index ef0ee1982..268bdee9d 100644 --- a/foundation-database/public/functions/postcreditmemo.sql +++ b/foundation-database/public/functions/postcreditmemo.sql @@ -444,7 +444,7 @@ BEGIN ('Credit Return ' || _r.item_number), costcat_asset_accnt_id, getPrjAccntId(_r.cmhead_prj_id, resolveCOSAccount(itemsite_id, _r.cust_id, _r.saletype_id, _r.shipzone_id)), - _itemlocSeries, _glDate, _r.std_cost) INTO _invhistid + _itemlocSeries, _glDate, (_r.std_cost * _r.qty)) INTO _invhistid FROM itemsite, costcat WHERE ((itemsite_costcat_id=costcat_id) AND (itemsite_id=_r.itemsite_id)); -- 2.39.2