Fixed: Update purchase failed when date was changed
Signed-off-by: Amritanshu <tanshu@gmail.com>
This commit is contained in:
parent
1498e46302
commit
7ec55eb0aa
|
@ -105,7 +105,7 @@ def purchase_update_inventory(voucher, newInventories):
|
||||||
tax = round(Decimal(i['Tax']), 5)
|
tax = round(Decimal(i['Tax']), 5)
|
||||||
if voucher.date != item.batch.name:
|
if voucher.date != item.batch.name:
|
||||||
item.batch.name = voucher.date
|
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
|
# TODO: check for issued products which might have been in a back date
|
||||||
pass
|
pass
|
||||||
item.rate = rate
|
item.rate = rate
|
||||||
|
|
Loading…
Reference in New Issue