1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
|
2 |
<form width="107" height="21" title="Facturación a Clientes"> |
<form width="107" height="21" title="Facturación a Clientes"> |
3 |
<neb:Block> |
<neb:Block> |
4 |
use PAPO; |
use PAPO; |
599 |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
600 |
|
|
601 |
proceedingBlock.clear() |
proceedingBlock.clear() |
|
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
|
602 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
603 |
|
|
|
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
|
|
|
|
ownDocumentProceedingBlock.clear() |
|
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
|
|
ownDocumentProceedingBlock.amountEntry = str(payBlock.cashEntry) |
|
|
|
|
|
rc = currencyTypeBlock.getRecordCount() |
|
|
for recNum in range(rc): |
|
|
currencyTypeBlock.jumpRecord(recNum) |
|
|
if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0: |
|
|
if not currencyMovementBlock.getCurrentRecord().isEmpty(): |
|
|
currencyMovementBlock.newRecord() |
|
|
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
|
|
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
|
|
currencyMovementBlock.amountEntry = str(hack.a2f(currencyTypeBlock.currencyBox.payEntry) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry)) |
|
|
|
|
|
# Antes de Multimoneda |
|
|
#currencyMovementBlock.clear() |
|
|
#currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
#currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
|
|
#currencyMovementBlock.currencyTypeEntry = "1" |
|
|
#currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
|
604 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
605 |
try: |
try: |
606 |
postChangeAdvance = 0 |
postChangeAdvance = 0 |
609 |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
610 |
postChangeAdvance = 2 |
postChangeAdvance = 2 |
611 |
proceedingBlock.postChanges() |
proceedingBlock.postChanges() |
612 |
|
|
613 |
|
ownDocumentProceedingBlock.clear() |
614 |
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
615 |
|
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
616 |
|
ownDocumentProceedingBlock.amountEntry = str(payBlock.cashEntry) |
617 |
|
|
618 |
|
rc = currencyTypeBlock.getRecordCount() |
619 |
|
for recNum in range(rc): |
620 |
|
currencyTypeBlock.jumpRecord(recNum) |
621 |
|
if hack.a2f(currencyTypeBlock.currencyBox.payEntry) > 0: |
622 |
|
if not currencyMovementBlock.getCurrentRecord().isEmpty(): |
623 |
|
currencyMovementBlock.newRecord() |
624 |
|
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
625 |
|
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
626 |
|
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
627 |
|
currencyMovementBlock.amountEntry = str(hack.a2f(currencyTypeBlock.currencyBox.payEntry) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry)) |
628 |
|
|
629 |
|
# Antes de Multimoneda |
630 |
|
#currencyMovementBlock.clear() |
631 |
|
#currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
632 |
|
#currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
633 |
|
#currencyMovementBlock.currencyTypeEntry = "1" |
634 |
|
#currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
635 |
|
|
636 |
postChangeAdvance = 3 |
postChangeAdvance = 3 |
637 |
ownDocumentProceedingBlock.postChanges() |
ownDocumentProceedingBlock.postChanges() |
638 |
postChangeAdvance = 4 |
postChangeAdvance = 4 |