main #7
@@ -454,16 +454,16 @@ class Fee(ModelSQL,ModelView):
|
|||||||
FeeLots = Pool().get('fee.lots')
|
FeeLots = Pool().get('fee.lots')
|
||||||
Lots = Pool().get('lot.lot')
|
Lots = Pool().get('lot.lot')
|
||||||
LotQt = Pool().get('lot.qt')
|
LotQt = Pool().get('lot.qt')
|
||||||
if fee.line:
|
# if fee.line:
|
||||||
for l in fee.line.lots:
|
# for l in fee.line.lots:
|
||||||
if (l.lot_type == 'virtual' and len(fee.line.lots)==1) or (l.lot_type == 'physic' and len(fee.line.lots)>1):
|
# if (l.lot_type == 'virtual' and len(fee.line.lots)==1) or (l.lot_type == 'physic' and len(fee.line.lots)>1):
|
||||||
fl = FeeLots()
|
# fl = FeeLots()
|
||||||
fl.fee = fee.id
|
# fl.fee = fee.id
|
||||||
fl.lot = l.id
|
# fl.lot = l.id
|
||||||
fl.line = l.line.id
|
# fl.line = l.line.id
|
||||||
FeeLots.save([fl])
|
# FeeLots.save([fl])
|
||||||
qt_line += l.get_current_quantity_converted()
|
# qt_line += l.get_current_quantity_converted()
|
||||||
unit = l.line.unit
|
# unit = l.line.unit
|
||||||
if fee.sale_line:
|
if fee.sale_line:
|
||||||
for l in fee.sale_line.lots:
|
for l in fee.sale_line.lots:
|
||||||
if (l.lot_type == 'virtual' and len(fee.sale_line.lots)==1) or (l.lot_type == 'physic' and len(fee.sale_line.lots)>1):
|
if (l.lot_type == 'virtual' and len(fee.sale_line.lots)==1) or (l.lot_type == 'physic' and len(fee.sale_line.lots)>1):
|
||||||
|
|||||||
Reference in New Issue
Block a user