minor fix kardex

This commit is contained in:
Elvis 2023-11-21 08:46:02 -05:00
parent 8882d17288
commit 81b446a8db
2 changed files with 1 additions and 4 deletions

Binary file not shown.

View file

@ -994,10 +994,8 @@ class WarehouseKardexReport(Report):
party = ''
number = ''
add_item = False
print(row[6], 'origen')
if row[6] == 'sale.line':
party, number, list_price, qty_output = sale_lines_dict[int(row[7])]
print(number, qty_output)
balance -= qty_output
add_item = True
elif row[6] == 'purchase.line':
@ -1007,8 +1005,7 @@ class WarehouseKardexReport(Report):
add_item = True
else:
move = StockMove(row[8])
if move and (move.from_location.type == 'lost_found' or move.from_location.type == 'customer'):
print('tambien entro al if')
if move and (move.from_location.type == 'lost_found' or move.from_location.type == 'customer' or move.from_location.type == 'supplier'):
qty_input = row[9]
balance += qty_input
add_item = True