226 |
|
|
227 |
<datasource name="invoiceToPayedDataSource" cache="1"/> |
<datasource name="invoiceToPayedDataSource" cache="1"/> |
228 |
|
|
|
<datasource name="tmpClientDataSource" cache="1"/> |
|
|
|
|
229 |
<trigger type="NAMED" name="showInvoiceToPayTrigger"><![CDATA[ |
<trigger type="NAMED" name="showInvoiceToPayTrigger"><![CDATA[ |
230 |
|
|
231 |
callTrigger('startWaitingModeTrigger') |
callTrigger('startWaitingModeTrigger') |
323 |
rc = tmpInvToPayedBlock.getRecordCount() |
rc = tmpInvToPayedBlock.getRecordCount() |
324 |
for recNum in range(rc): |
for recNum in range(rc): |
325 |
tmpInvToPayedBlock.jumpRecord(recNum) |
tmpInvToPayedBlock.jumpRecord(recNum) |
326 |
if tmpInvToPayedBlock.idEntry == rs.current.getField("own_document_proceeding.own_document"): |
if hack.a2f(tmpInvToPayedBlock.idEntry) == hack.a2f(rs.current.getField("own_document_proceeding.own_document")): |
327 |
tmpInvToPayedBlock.payedEntry = str( |
tmpInvToPayedBlock.payedEntry = str( |
328 |
hack.a2f(tmpInvToPayedBlock.payedEntry) + \ |
hack.a2f(tmpInvToPayedBlock.payedEntry) + \ |
329 |
hack.a2f(rs.current.getField("own_document_proceeding.amount") ) ) |
hack.a2f(rs.current.getField("own_document_proceeding.amount") ) ) |
364 |
|
|
365 |
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
<trigger type="NAMED" name="acceptTrigger"><![CDATA[ |
366 |
import hack |
import hack |
367 |
|
import string |
368 |
|
import printing |
369 |
|
|
370 |
proceedingBlock.processRollback() |
proceedingBlock.processRollback() |
371 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.processRollback() |
387 |
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
388 |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
389 |
|
|
390 |
|
table = [] |
391 |
|
line = "\n\nRecibos a Clientes\n\n\n" |
392 |
|
table.append(line) |
393 |
|
|
394 |
|
|
395 |
|
line = "Fecha : " + printing.printField(proceedingBlock.dateEntry,20) |
396 |
|
line += " Codigo : " + printing.printField(ownDocumentBlock.clientRecipientBox.clientCodeEntry,10) |
397 |
|
line += " Nombre : " + printing.printField(ownDocumentBlock.clientRecipientBox.clientNameEntry,30) |
398 |
|
table.append(line) |
399 |
|
|
400 |
|
line = "| " + printing.printTitle("Numero",14) + " | " |
401 |
|
line += printing.printTitle("Fecha",20) + " | " |
402 |
|
line += printing.printTitle("Monto",20) + " | " |
403 |
|
line += printing.printTitle("Pagado",20) + " |" |
404 |
|
lineLen = len(line) |
405 |
|
table.append(line) |
406 |
|
|
407 |
|
line = "" |
408 |
|
for idx in range(lineLen): |
409 |
|
line += "-" |
410 |
|
table.append(line) |
411 |
|
|
412 |
rc = invoiceToPayedBlock.getRecordCount() |
rc = invoiceToPayedBlock.getRecordCount() |
413 |
for recNum in range(rc): |
for recNum in range(rc): |
414 |
invoiceToPayedBlock.jumpRecord(recNum) |
invoiceToPayedBlock.jumpRecord(recNum) |
417 |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
418 |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
ownDocumentProceedingBlock.ownDocumentEntry = str(invoiceToPayedBlock.invoiceBox.idEntry) |
419 |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
ownDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.payEntry) |
420 |
|
line = "| " |
421 |
|
line += printing.printField(invoiceToPayedBlock.invoiceBox.numberEntry,14,'r') + " | " |
422 |
|
line += printing.printField(invoiceToPayedBlock.invoiceBox.dateEntry,20,'r') + " | " |
423 |
|
line += printing.printField(invoiceToPayedBlock.invoiceBox.amountEntry,20,'r') + " | " |
424 |
|
line += printing.printField(invoiceToPayedBlock.invoiceBox.payEntry,20,'r') + " |" |
425 |
|
table.append(line) |
426 |
|
|
427 |
|
line = " " |
428 |
|
line += printing.printField(" ",14) + " " |
429 |
|
line += printing.printField(" ",20) + " " |
430 |
|
line += printing.printTitle(" ",20) + " | " |
431 |
|
line += printing.printField(invoiceToPayedBlock.invoiceBox.totalEntry,20,'r') + " | " |
432 |
|
table.append(line) |
433 |
|
|
434 |
ownDocumentBlock.commit() |
ownDocumentBlock.commit() |
435 |
callTrigger('cancelTrigger') |
callTrigger('cancelTrigger') |
436 |
|
printing.previewPrint(table) |
437 |
|
|
438 |
]]></trigger> |
]]></trigger> |
439 |
|
|
518 |
<entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
<entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/> |
519 |
</block> |
</block> |
520 |
|
|
521 |
<block datasource="tmpClientDataSource" name="ownDocumentBlock"> |
<block datasource="ownDocumentDataSource" name="ownDocumentBlock"> |
522 |
|
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
523 |
|
<entry field="own_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
524 |
<box height="5" label="Datos del Cliente" name="clientRecipientBox" width="85" x="0" y="0"> |
<box height="5" label="Datos del Cliente" name="clientRecipientBox" width="85" x="0" y="0"> |
525 |
|
|
526 |
<entry x="1" y="1" name="clientEntry" width="30" hidden=""/> |
<entry x="1" y="1" field="recipient" name="clientEntry" width="30" hidden=""/> |
527 |
<entry x="1" y="1" name="clientCodeEntry" width="20"/> |
<entry x="1" y="1" name="clientCodeEntry" width="20"/> |
528 |
<entry x="21" y="1" name="clientNameEntry" width="35"/> |
<entry x="21" y="1" name="clientNameEntry" width="35"/> |
529 |
|
|