1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
<!DOCTYPE form SYSTEM "gnue-forms.dtd"> |
|
2 |
|
|
3 |
<form width="107" height="24" title="Notas de Crédito a Clientes"> |
<form width="107" height="24" title="Notas de Crédito a Clientes"> |
4 |
<datasource name="tmpValuesDataSource" cache="1"/> |
<datasource name="tmpValuesDataSource" cache="1"/> |
306 |
if len(ownDocumentBlock.dateEntry) == 0: |
if len(ownDocumentBlock.dateEntry) == 0: |
307 |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
ownDocumentBlock.dateEntry = ownDocumentDataSource.getTimeStamp() |
308 |
|
|
|
proceedingBlock.clear() |
|
|
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
|
|
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
|
|
|
|
|
ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq') |
|
|
|
|
|
ownDocumentProceedingBlock.clear() |
|
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
|
|
ownDocumentProceedingBlock.amountEntry = 0 |
|
|
|
|
309 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
310 |
try: |
try: |
311 |
postChangeAdvance = 0 |
postChangeAdvance = 0 |
314 |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
315 |
postChangeAdvance = 2 |
postChangeAdvance = 2 |
316 |
proceedingBlock.postChanges() |
proceedingBlock.postChanges() |
317 |
|
|
318 |
|
proceedingBlock.clear() |
319 |
|
|
320 |
|
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
321 |
|
|
322 |
|
ownDocumentProceedingBlock.clear() |
323 |
|
ownDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
324 |
|
ownDocumentProceedingBlock.ownDocumentEntry = str(ownDocumentBlock.idEntry) |
325 |
|
ownDocumentProceedingBlock.amountEntry = 0 |
326 |
|
|
327 |
postChangeAdvance = 3 |
postChangeAdvance = 3 |
328 |
ownDocumentProceedingBlock.postChanges() |
ownDocumentProceedingBlock.postChanges() |
329 |
postChangeAdvance = 4 |
postChangeAdvance = 4 |