5 |
|
|
6 |
<datasource name="tmpSearchDataSource" cache="1"/> |
<datasource name="tmpSearchDataSource" cache="1"/> |
7 |
|
|
|
<datasource name="tmpProviderDataSource" cache="1"/> |
|
|
|
|
8 |
<datasource name="tmpInvToPayDataSource" cache="1"/> |
<datasource name="tmpInvToPayDataSource" cache="1"/> |
9 |
|
|
10 |
<datasource name="invoiceToPayDataSource" cache="1"/> |
<datasource name="invoiceToPayDataSource" cache="1"/> |
261 |
|
|
262 |
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
263 |
import hack |
import hack |
264 |
|
import string |
265 |
|
import printing |
266 |
|
|
267 |
proceedingBlock.processRollback() |
proceedingBlock.processRollback() |
268 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.processRollback() |
284 |
alienDocumentProceedingBlock.alienDocumentEntry = str(alienDocumentSearchBlock.providerSearchBox.idEntry) |
alienDocumentProceedingBlock.alienDocumentEntry = str(alienDocumentSearchBlock.providerSearchBox.idEntry) |
285 |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.totalEntry) |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.totalEntry) |
286 |
|
|
287 |
|
|
288 |
|
table = [] |
289 |
|
line = "\n\nOrdenes de Pago a Proveedores\n\n\n" |
290 |
|
table.append(line) |
291 |
|
|
292 |
|
|
293 |
|
line = "Fecha : " + printing.printField(proceedingBlock.dateEntry,20) |
294 |
|
line += " Codigo : " + printing.printField(alienDocumentSearchBlock.providerSearchBox.providerCodeEntry,10) |
295 |
|
line += " Nombre : " + printing.printField(alienDocumentSearchBlock.providerSearchBox.providerNameEntry,30) |
296 |
|
table.append(line) |
297 |
|
|
298 |
|
line = "| " + printing.printTitle("Numero",14) + " | " |
299 |
|
line += printing.printTitle("Fecha",20) + " | " |
300 |
|
line += printing.printTitle("Monto",20) + " | " |
301 |
|
line += printing.printTitle("Pagado",20) + " |" |
302 |
|
lineLen = len(line) |
303 |
|
table.append(line) |
304 |
|
|
305 |
|
line = "" |
306 |
|
for idx in range(lineLen): |
307 |
|
line += "-" |
308 |
|
table.append(line) |
309 |
|
|
310 |
rc = invoiceToPayBlock.getRecordCount() |
rc = invoiceToPayBlock.getRecordCount() |
311 |
for recNum in range(rc): |
for recNum in range(rc): |
312 |
invoiceToPayBlock.jumpRecord(recNum) |
invoiceToPayBlock.jumpRecord(recNum) |
315 |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
316 |
alienDocumentProceedingBlock.alienDocumentEntry = str(invoiceToPayBlock.invoiceBox.idEntry) |
alienDocumentProceedingBlock.alienDocumentEntry = str(invoiceToPayBlock.invoiceBox.idEntry) |
317 |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.payEntry) |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.payEntry) |
318 |
|
line = "| " |
319 |
|
line += printing.printField(invoiceToPayBlock.invoiceBox.numberEntry,14,'r') + " | " |
320 |
|
line += printing.printField(invoiceToPayBlock.invoiceBox.dateEntry,20,'r') + " | " |
321 |
|
line += printing.printField(invoiceToPayBlock.invoiceBox.amountEntry,20,'r') + " | " |
322 |
|
line += printing.printField(invoiceToPayBlock.invoiceBox.payEntry,20,'r') + " |" |
323 |
|
table.append(line) |
324 |
|
|
325 |
|
line = " " |
326 |
|
line += printing.printField(" ",14) + " " |
327 |
|
line += printing.printField(" ",20) + " " |
328 |
|
line += printing.printTitle(" ",20) + " | " |
329 |
|
line += printing.printField(invoiceToPayBlock.invoiceBox.totalEntry,20,'r') + " | " |
330 |
|
table.append(line) |
331 |
|
|
332 |
alienDocumentSearchBlock.commit() |
alienDocumentSearchBlock.commit() |
333 |
callTrigger('cancelTrigger') |
callTrigger('cancelTrigger') |
334 |
|
printing.previewPrint(table) |
335 |
|
|
336 |
]]></trigger> |
]]></trigger> |
337 |
|
|
398 |
<entry name="providerNameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
<entry name="providerNameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
399 |
</block> |
</block> |
400 |
|
|
401 |
<block datasource="tmpProviderDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<block datasource="alienDocumentDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
402 |
|
|
403 |
<box height="5" label="Proveedores" |
<box height="5" label="Proveedores" |
404 |
name="providerSearchBox" width="85" x="1" y="0"> |
name="providerSearchBox" width="85" x="1" y="0"> |
406 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
407 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
408 |
|
|
409 |
<entry x="1" y="1" name="providerEntry" width="30" hidden=""/> |
<entry x="1" y="1" field="sender" name="providerEntry" width="30" hidden=""/> |
410 |
<entry x="1" y="1" name="providerCodeEntry" width="20"/> |
<entry x="1" y="1" name="providerCodeEntry" width="20"/> |
411 |
<entry x="21" y="1" name="providerNameEntry" width="35"/> |
<entry x="21" y="1" name="providerNameEntry" width="35"/> |
412 |
<entry hidden="" name="dateEntry" style="label" readonly="" typecast="date" |
<entry field="date" hidden="" name="dateEntry" style="label" readonly="" typecast="date" |
413 |
rows="1" width="24" x="7" y="7"/> |
rows="1" width="24" x="7" y="7"/> |
414 |
|
|
415 |
<button name="providerSearchButton" trigger="providerSearchTrigger" label="Buscar" |
<button name="providerSearchButton" trigger="providerSearchTrigger" label="Buscar" |