|
有感:我目前正在做进口料件的核销工作
各位:
小弟目前正在做免税进口料件的核销工作(e-custom).公司规定material and item 在做编号时就要有进出口之分,所以区分进口、内购料件,外销、内销商品比较容易区分。目前遇到这样一个问题:海关要求我们提供外销商品的bom单耗情况,并且能够区分bom的有效时段,如大家所知,由于eco或mn,目前Oracle erp不能够提供以前出货产品的bom情况,系统里只保最新的bom单耗情况,如果用最新的bom会导致成品耗用料情况不准确。在没有办法的情况下,只好根据每一笔出货批次号(from which lotnumber),写了一个很滥的package(见附件)求出每一笔出货的item的bom单耗(实际上是平均bom)。其基本做法如下:
出货的item is picked from lotnumber, that is the jobname,这样展开其对应的job,而job are from component(push) and assembly(asembly pull),we know the quantity issued to this job,and know the percentage that 出货数量/job 完成数量(f_percent)),从而得到这笔出货用料情况:f_percent*issured quantiry;
同样对于job的assembly 来说,we know which job and picked quantity it from,同样展开其对应的assembly job,得到耗用情况(component and assembly),根据其上一层的比例情况(父比例)及assembly job的料件比例情况得到。
就这样一直展下去,就可以得到出货item的用料情况,即item_bom,只不过需注意出货item所占job的好用比例情况。
虽然得到了job-bom,担忧以下问题还没有解决:
1。有时候,出货item is picked from lot+number,eg:lot9997788,this lot9997788 是由于返修或代加工等情况,不能确定其实际的用料情况。没有办法展开job.
以上问题及package请各位多多执教 。 |
|