mirror of
https://bitbucket.org/presik/trytonpsk-stock_co.git
synced 2023-12-14 05:43:05 +01:00
minor fix kardex
This commit is contained in:
parent
8882d17288
commit
81b446a8db
2 changed files with 1 additions and 4 deletions
BIN
kardex.fods
BIN
kardex.fods
Binary file not shown.
5
stock.py
5
stock.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue