267 |
line = "\n\nListado de Productos\n\n\n" |
line = "\n\nListado de Productos\n\n\n" |
268 |
table.append(line) |
table.append(line) |
269 |
|
|
270 |
line = " | "+printTitle("Código",15)+" | " |
line = " | "+printTitle("Código",13)+" | " |
271 |
line += printTitle("Nombre",40)+" | " |
line += printTitle("Nombre",48)+" | " |
272 |
line += printTitle("Stock",15)+" | " |
line += printTitle("Stock",8)+" | " |
273 |
lineLen = len(line) |
lineLen = len(line) |
274 |
table.append(line) |
table.append(line) |
275 |
line = "" |
line = "" |
281 |
more = productResulSet.firstRecord(); |
more = productResulSet.firstRecord(); |
282 |
|
|
283 |
while more: |
while more: |
284 |
line = " | "+printField(productResulSet.current.getField("_product_code_data.code"),15,'r')+" | " |
line = " | "+printField(productResulSet.current.getField("_product_code_data.code"),13,'l')+" | " |
285 |
line += printField(productResulSet.current.getField("_product_data.canonical_name"),40,'l')+" | " |
line += printField(productResulSet.current.getField("_product_data.canonical_name"),48,'l')+" | " |
286 |
line += printField(productResulSet.current.getField("_product_store_data.level"),15,'r')+" | " |
line += printField("%0.2f" % productResulSet.current.getField("_product_store_data.level"),8,'r')+" | " |
287 |
table.append(line) |
table.append(line) |
288 |
|
|
289 |
more = productResulSet.nextRecord() |
more = productResulSet.nextRecord() |