Skip to content

Commit

Permalink
[FIX]关于批次号的收货的bug osbzr#1887:入库单生成退货单时不该传入lot_id
Browse files Browse the repository at this point in the history
  • Loading branch information
floraXiao committed Jul 30, 2018
1 parent 54079d1 commit f5c3782
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions buy/models/buy_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,6 @@ def buy_to_return(self):
'discount_amount': line.discount_amount,
'type': 'out'
}
if line.goods_id.using_batch:
dic.update({'lot_id': line.id})
receipt_line.append(dic)
if len(receipt_line) == 0:
raise UserError(u'该订单已全部退货!')
Expand Down

0 comments on commit f5c3782

Please sign in to comment.