feat: 光子批次统计增加组合件信息4
This commit is contained in:
parent
94b0719f38
commit
c14229f6f5
|
@ -480,8 +480,9 @@ def main(batch: str, mgroup_obj=None):
|
|||
data["销售发货_日期"].append(item.mio.inout_date)
|
||||
if item.mio.mio_user:
|
||||
data['销售发货_仓库执行人'].append(item.mio.mio_user)
|
||||
mba = MaterialBatchA.objects.get(batch=batch, mb=item.mb)
|
||||
data['销售发货_count']+= item.count * mba.rate
|
||||
mbas = MaterialBatchA.objects.filter(batch=batch, mb=item.mb)
|
||||
for mba in mbas:
|
||||
data['销售发货_count']+= item.count * mba.rate
|
||||
|
||||
|
||||
if "销售发货_日期" in data:
|
||||
|
|
Loading…
Reference in New Issue