Changeset 1034
- Timestamp:
- 07/22/10 18:22:55 (7 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/promogest/modules/Inventario/ui/GestioneInventario.py
r935 r1034 48 48 49 49 RicercaComplessaArticoli.__init__(self) 50 51 50 52 self.anno = int(Environment.workingYear) 51 53 self.annoScorso= int(Environment.workingYear) -1 54 55 52 56 # modifiche all'interfaccia originaria 53 57 self.getTopLevel().set_title('Promogest - Gestione inventario ' + str(self.annoScorso)) … … 297 301 } 298 302 self._ricerca.filterDict= self.filterDict 299 if "PromoWear" in Environment.modulesList:300 AnagraficaArticoliPromoWearExpand.refresh(self._ricerca)303 # if "PromoWear" in Environment.modulesList: 304 # AnagraficaArticoliPromoWearExpand.refresh(self._ricerca) 301 305 302 306 self.filter.numRecords = Inventario().count(anno=self.annoScorso, … … 322 326 offset=self.filter.offset, 323 327 filterDict=self.filterDict) 324 self.inventariati_filtrati_tutti = Inventario().select( orderBy=self.filter.orderBy,328 self.inventariati_filtrati_tutti = Inventario().select( 325 329 anno=self.annoScorso, 326 330 idMagazzino=self.idMagazzino, … … 331 335 val_negativo =self.val_negativo, 332 336 batchSize =None, 333 filterDict=self.filterDict) 337 filterDict=self.filterDict 338 ) 334 339 model.clear() 335 340 … … 509 514 if response == gtk.RESPONSE_YES: 510 515 for i in self.inventariati_filtrati_tutti: 516 print i.anno, i.quantita 511 517 i.quantita = 0 512 518 Environment.session.add(i) 513 519 Environment.session.commit() 520 self.refresh() 514 521 self.fineElaborazione() 515 522 … … 593 600 idArticolo=r.id_articolo) 594 601 r.quantita = giace 595 r.data_aggiornamento = datetime.datetime.today().date() 602 if giace >0: 603 r.data_aggiornamento = datetime.datetime.today().date() 596 604 Environment.params['session'].add(r) 597 605 Environment.params['session'].commit()
