Changeset 874
- Timestamp:
- 03/12/10 12:12:38 (5 months ago)
- Location:
- trunk/core/promogest/modules/VenditaDettaglio
- Files:
-
- 2 modified
-
gui/_scontrini_emessi_elements.glade (modified) (2 diffs)
-
ui/GestioneScontrini.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/promogest/modules/VenditaDettaglio/gui/_scontrini_emessi_elements.glade
r658 r874 6 6 <object class="GtkTable" id="scontrini_filter_table"> 7 7 <property name="visible">True</property> 8 <property name="n_rows"> 3</property>8 <property name="n_rows">5</property> 9 9 <property name="n_columns">2</property> 10 10 <property name="row_spacing">3</property> … … 113 113 </packing> 114 114 </child> 115 <child> 116 <object class="GtkLabel" id="mag_label"> 117 <property name="visible">True</property> 118 <property name="label" translatable="yes">Mag/P.V.</property> 119 </object> 120 <packing> 121 <property name="top_attach">3</property> 122 <property name="bottom_attach">4</property> 123 <property name="x_options">GTK_FILL</property> 124 </packing> 125 </child> 126 <child> 127 <object class="GtkLabel" id="pos_label"> 128 <property name="visible">True</property> 129 <property name="xpad">3</property> 130 <property name="label" translatable="yes">Punto cassa</property> 131 </object> 132 <packing> 133 <property name="top_attach">4</property> 134 <property name="bottom_attach">5</property> 135 <property name="x_options">GTK_FILL</property> 136 </packing> 137 </child> 138 <child> 139 <object class="GtkComboBox" id="id_magazzino_filter_combobox"> 140 <property name="width_request">200</property> 141 <property name="visible">True</property> 142 </object> 143 <packing> 144 <property name="left_attach">1</property> 145 <property name="right_attach">2</property> 146 <property name="top_attach">3</property> 147 <property name="bottom_attach">4</property> 148 <property name="x_options">GTK_SHRINK | GTK_FILL</property> 149 <property name="y_options"></property> 150 </packing> 151 </child> 152 <child> 153 <object class="GtkComboBox" id="id_pos_filter_combobox"> 154 <property name="width_request">200</property> 155 <property name="visible">True</property> 156 </object> 157 <packing> 158 <property name="left_attach">1</property> 159 <property name="right_attach">2</property> 160 <property name="top_attach">4</property> 161 <property name="bottom_attach">5</property> 162 <property name="x_options">GTK_SHRINK | GTK_FILL</property> 163 <property name="y_options"></property> 164 </packing> 165 </child> 115 166 </object> 116 167 </interface> -
trunk/core/promogest/modules/VenditaDettaglio/ui/GestioneScontrini.py
r865 r874 23 23 from promogest.ui.utils import * 24 24 from promogest.ui import utils 25 from promogest.modules.VenditaDettaglio.ui.VenditaDettaglioUtils import fillComboboxPos 25 26 26 27 from promogest.lib.HtmlHandler import createHtmlObj, renderTemplate, renderHTML … … 146 147 else: 147 148 self.filters.a_data_filter_entry.set_text(self_aData) 149 fillComboboxMagazzini(self.filters.id_magazzino_filter_combobox) 150 if hasattr(Environment.conf.VenditaDettaglio, "magazzino"): 151 findComboboxRowFromStr(self.filters.id_magazzino_filter_combobox, Environment.conf.VenditaDettaglio.magazzino,2) 152 fillComboboxPos(self.filters.id_pos_filter_combobox) 153 if hasattr(Environment.conf.VenditaDettaglio, "puntocassa"): 154 findComboboxRowFromStr(self.filters.id_pos_filter_combobox, Environment.conf.VenditaDettaglio.puntocassa,2) 155 148 156 149 157 self.refreshHtml() … … 153 161 # Annullamento filtro 154 162 self.filters.id_articolo_filter_customcombobox.set_active(0) 163 if hasattr(Environment.conf.VenditaDettaglio, "magazzino"): 164 findComboboxRowFromStr(self.filters.id_magazzino_filter_combobox, Environment.conf.VenditaDettaglio.magazzino,2) 165 if hasattr(Environment.conf.VenditaDettaglio, "puntocassa"): 166 findComboboxRowFromStr(self.filters.id_pos_filter_combobox, Environment.conf.VenditaDettaglio.puntocassa,2) 167 155 168 self.filters.da_data_filter_entry.setNow() 156 169 self.filters.a_data_filter_entry.setNow() … … 163 176 daData = stringToDate(self.filters.da_data_filter_entry.get_text()) 164 177 aData = stringToDateBumped(self.filters.a_data_filter_entry.get_text()) 178 idPuntoCassa = findIdFromCombobox(self.filters.id_pos_filter_combobox) 179 idMagazzino = findIdFromCombobox(self.filters.id_magazzino_filter_combobox) 180 165 181 self.filterss.numRecords = TestataScontrino().count(idArticolo=idArticolo, 166 182 daData=daData, 167 aData=aData) 183 aData=aData, 184 idMagazzino = idMagazzino, 185 idPuntoCassa = idPuntoCassa) 168 186 self.filterss._refreshPageCount() 169 187 … … 172 190 daData=daData, 173 191 aData=aData, 192 idMagazzino = idMagazzino, 193 idPuntoCassa = idPuntoCassa, 174 194 offset=self.filterss.offset, 175 195 batchSize=self.filterss.batchSize)
