Project

General

Profile

Tasks #7606

Total Cost Showing Zero for Stock items

Added by Rijas P over 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Urgent
Start date:
09/23/2022
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

Please see the attached sheet items with Stock but Cost and total Cost is Showing Zero. Please update the Cost value.


Files

No cost items.xlsx (16.2 KB) No cost items.xlsx Rijas P, 09/23/2022 06:38 PM

History

#1

Updated by Mohamed Suhail over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Rijas P wrote:

Please see the attached sheet items with Stock but Cost and total Cost is Showing Zero. Please update the Cost value.

I have set tax exclusive purchase price as cost for all items under category "Repack" where the cost was 0 before

euro=# update m_cost mc set currentcostprice=aa.cprice from (select mp.m_product_id,mp.name,productcost(mp.m_product_id,NULL),round(bompricestd(mp.m_product_id,1000002,0,0,NULL)/1.05,4) cprice,tqty,rqty from m_product mp left join lateral (select coalesce(sum(movementqty),0) tqty,m_product_id,sum(case when movementtype in ('V+') then movementqty else 0 end) rqty from m_transaction where m_product_id=mp.m_product_id group by 2) as aa on 1=1 where mp.m_product_category_id=1015302 and productcost(mp.m_product_id,NULL)=0 and round(bompricestd(mp.m_product_id,1000002,0,0,NULL)/1.05,4) is not null) as aa where aa.m_product_id=mc.m_product_id and mc.currentcostprice=0 and mc.m_costelement_id in (1010018,1000000,1000001);
UPDATE 393

#2

Updated by Rijas P over 2 years ago

  • Status changed from Resolved to Closed

Found updated

#3

Updated by SHAIJAL EDAVANA 8 months ago

  • Tracker changed from Bug to Tasks
  • Project changed from Euro Novelties to Temp Projects
  • Category deleted (Others)

Also available in: Atom PDF