Fixed: Update purchase failed when date was changed
Signed-off-by: Amritanshu <tanshu@gmail.com>
This commit is contained in:
1 parent
1498e46302
commit
7ec55eb0aa
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user