Fixed: Update purchase failed when date was changed

Signed-off-by: Amritanshu <tanshu@gmail.com>
This commit is contained in:
Amritanshu 2013-11-26 12:55:27 +05:30
parent 1498e46302
commit 7ec55eb0aa
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def purchase_update_inventory(voucher, newInventories):
tax = round(Decimal(i['Tax']), 5)
if voucher.date != item.batch.name:
item.batch.name = voucher.date
if voucher.date < item.batch.date:
if voucher.date < item.batch.name:
# TODO: check for issued products which might have been in a back date
pass
item.rate = rate