140 |
<cfield name="alien_document.id"/> |
<cfield name="alien_document.id"/> |
141 |
<cfield name="alien_document_proceeding.alien_document"/> |
<cfield name="alien_document_proceeding.alien_document"/> |
142 |
</eq> |
</eq> |
143 |
|
<and> |
144 |
|
<or> |
145 |
|
<eq> |
146 |
|
<cfield name="own_document.own_document_type"/> |
147 |
|
<cconst value="2"/> |
148 |
|
</eq> |
149 |
|
<eq> |
150 |
|
<cfield name="own_document.own_document_type"/> |
151 |
|
<cconst value="5"/> |
152 |
|
</eq> |
153 |
|
</or> |
154 |
|
</and> |
155 |
|
</and> |
156 |
</and> |
</and> |
157 |
</condition> |
</condition> |
158 |
</datasource> |
</datasource> |
182 |
<trigger name="searchTrigger" type="NAMED"><![CDATA[ |
<trigger name="searchTrigger" type="NAMED"><![CDATA[ |
183 |
|
|
184 |
total = 0.0 |
total = 0.0 |
|
print "hasta aca" |
|
185 |
if str(alienDocumentSearchBlock.providerSearchBox.providerSEntry): |
if str(alienDocumentSearchBlock.providerSearchBox.providerSEntry): |
186 |
import gnue.common.GConditions as GConditions |
import gnue.common.GConditions as GConditions |
187 |
import hack |
import hack |
318 |
currencyMovementBlock.processRollback() |
currencyMovementBlock.processRollback() |
319 |
alienDocumentProceedingBlock.processRollback() |
alienDocumentProceedingBlock.processRollback() |
320 |
|
|
321 |
alienDocumentBlock.idEntry.autofillBySequence('alien_document_id_seq') |
alienDocumentSearchBlock.providerSearchBox.dateEntry = alienDocumentDataSource.getTimeStamp() |
322 |
alienDocumentBlock.typeEntry = "6" |
alienDocumentSearchBlock.providerSearchBox.idEntry.autofillBySequence('alien_document_id_seq') |
323 |
|
alienDocumentSearchBlock.providerSearchBox.typeEntry = "6" |
324 |
|
|
325 |
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq') |
326 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
331 |
currencyMovementBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.totalEntry) |
currencyMovementBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.totalEntry) |
332 |
|
|
333 |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
alienDocumentProceedingBlock.proceedingEntry = str(proceedingBlock.idEntry) |
334 |
alienDocumentProceedingBlock.alienDocumentEntry = str(alienDocumentBlock.idEntry) |
alienDocumentProceedingBlock.alienDocumentEntry = str(alienDocumentSearchBlock.providerSearchBox.idEntry) |
335 |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayedBlock.invoiceBox.totalEntry) |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.totalEntry) |
336 |
|
|
337 |
rc = invoiceToPayBlock.getRecordCount() |
rc = invoiceToPayBlock.getRecordCount() |
338 |
for recNum in range(rc): |
for recNum in range(rc): |
343 |
alienDocumentProceedingBlock.alienDocumentEntry = str(invoiceToPayBlock.invoiceBox.idEntry) |
alienDocumentProceedingBlock.alienDocumentEntry = str(invoiceToPayBlock.invoiceBox.idEntry) |
344 |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.payEntry) |
alienDocumentProceedingBlock.amountEntry = str(invoiceToPayBlock.invoiceBox.payEntry) |
345 |
|
|
346 |
alienDocumentBlock.commit() |
alienDocumentSearchBlock.commit() |
347 |
callTrigger('cancelTrigger') |
callTrigger('cancelTrigger') |
|
alienDocumentBlock.clientRecipientBox.dateEntry = alienDocumentDataSource.getTimeStamp() |
|
348 |
|
|
349 |
]]></trigger> |
]]></trigger> |
350 |
|
|
351 |
<page name="Búsqueda de Facturas de Proveedor"> |
<page name="Búsqueda de Facturas de Proveedor"> |
352 |
|
|
353 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<block datasource="alienDocumentDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
354 |
|
|
355 |
<box height="4" label="Proveedores" |
<box height="4" label="Proveedores" |
356 |
name="providerSearchBox" width="70" x="1" y="0"> |
name="providerSearchBox" width="70" x="1" y="0"> |
357 |
|
|
358 |
|
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
359 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
360 |
|
|
361 |
<entry x="1" y="1" field="alien_document.sender" name="providerSEntry" |
<entry x="1" y="1" field="alien_document.sender" name="providerSEntry" |
362 |
width="40" style="dropdown" foreign_key="providerDataSource.entity.id" |
width="40" style="dropdown" foreign_key="providerDataSource.entity.id" |
363 |
foreign_key_description="_entity_data.name" > |
foreign_key_description="_entity_data.name" > |
364 |
</entry> |
</entry> |
365 |
|
<entry field="date" hidden="" name="dateEntry" style="label" readonly="" typecast="date" |
366 |
|
rows="1" width="24" x="7" y="7"/> |
367 |
|
|
368 |
<button x="50" y="1" trigger="searchTrigger" width="16" label="Buscar" |
<button x="50" y="1" trigger="searchTrigger" width="16" label="Buscar" |
369 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |