503 |
cache="15" order_by="_product_data.canonical_name"> |
cache="15" order_by="_product_data.canonical_name"> |
504 |
<condition> |
<condition> |
505 |
<and> |
<and> |
|
<null> |
|
|
<cfield name="_product_data._end_t"/> |
|
|
</null> |
|
506 |
<!-- pega product con product_code --> |
<!-- pega product con product_code --> |
507 |
<eq> |
<eq> |
508 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
513 |
<cfield name="_product_code_data.product_code_type"/> |
<cfield name="_product_code_data.product_code_type"/> |
514 |
<cconst value="1"/> |
<cconst value="1"/> |
515 |
</eq> |
</eq> |
|
<!-- descarta códigos de producto muertos --> |
|
|
<null> |
|
|
<cfield name="_product_code_data._end_t"/> |
|
|
</null> |
|
516 |
<!-- pega product con product_tax --> |
<!-- pega product con product_tax --> |
517 |
<eq> |
<eq> |
518 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
519 |
<cfield name="_product_tax_data.product"/> |
<cfield name="_product_tax_data.product"/> |
520 |
</eq> |
</eq> |
521 |
<!-- descarta product_taxes muertos --> |
<!-- descarta product_taxes muertos --> |
522 |
<null> |
<!-- <null> --> |
523 |
<cfield name="_product_tax_data._end_t"/> |
<!-- <cfield name="_product_tax_data._end_t"/> --> |
524 |
</null> |
<!-- </null> --> |
525 |
|
<!-- Revisar porque tiene que paremetrizar por fecha --> |
526 |
<!-- solamente 'IVA' (id 1) --> |
<!-- solamente 'IVA' (id 1) --> |
527 |
<eq> |
<eq> |
528 |
<cfield name="_product_tax_data.tax"/> |
<cfield name="_product_tax_data.tax"/> |
537 |
cache="15" order_by="_product_data.canonical_name"> |
cache="15" order_by="_product_data.canonical_name"> |
538 |
<condition> |
<condition> |
539 |
<and> |
<and> |
|
<null> |
|
|
<cfield name="_product_data._end_t"/> |
|
|
</null> |
|
540 |
<!-- pega product con product_code --> |
<!-- pega product con product_code --> |
541 |
<eq> |
<eq> |
542 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
547 |
<cfield name="_product_code_data.product_code_type"/> |
<cfield name="_product_code_data.product_code_type"/> |
548 |
<cconst value="1"/> |
<cconst value="1"/> |
549 |
</eq> |
</eq> |
|
<!-- descarta códigos de producto muertos --> |
|
|
<null> |
|
|
<cfield name="_product_code_data._end_t"/> |
|
|
</null> |
|
550 |
<!-- pega product con product_tax --> |
<!-- pega product con product_tax --> |
551 |
<eq> |
<eq> |
552 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
553 |
<cfield name="_product_tax_data.product"/> |
<cfield name="_product_tax_data.product"/> |
554 |
</eq> |
</eq> |
555 |
<!-- descarta product_taxes muertos --> |
<!-- descarta product_taxes muertos --> |
556 |
<null> |
<!-- <null> --> |
557 |
<cfield name="_product_tax_data._end_t"/> |
<!-- <cfield name="_product_tax_data._end_t"/> --> |
558 |
</null> |
<!-- </null> --> |
559 |
|
<!-- Revisar porque tiene que paremetrizar por fecha --> |
560 |
<!-- solamente 'IVA' (id 1) --> |
<!-- solamente 'IVA' (id 1) --> |
561 |
<eq> |
<eq> |
562 |
<cfield name="_product_tax_data.tax"/> |
<cfield name="_product_tax_data.tax"/> |
830 |
</trigger> |
</trigger> |
831 |
|
|
832 |
<trigger name="deleteTrigger" type="NAMED"> |
<trigger name="deleteTrigger" type="NAMED"> |
833 |
lAlienDocId = str(alienDocumentBlock.idEntry) |
lAlienDocId = str(alienDocumentShowBlock.idEntry) |
834 |
|
alienDocumentProceedingShowBlock.initQuery() |
835 |
|
alienDocumentProceedingShowBlock.alienDocumentEntry = lAlienDocId |
836 |
|
alienDocumentProceedingShowBlock.processQuery() |
837 |
alienItemToUpdBlock.initQuery() |
alienItemToUpdBlock.initQuery() |
838 |
alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
839 |
alienItemToUpdBlock.processQuery() |
alienItemToUpdBlock.processQuery() |
840 |
|
|
841 |
lRecordCount = alienItemToUpdBlock.getRecordCount() |
lRecordCount = alienItemToUpdBlock.getRecordCount() |
842 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
843 |
alienItemToUpdBlock.jumpRecord(recNum) |
alienItemToUpdBlock.jumpRecord(recNum) |
845 |
alienItemToUpdBlock.processRollback() |
alienItemToUpdBlock.processRollback() |
846 |
lRecordCount = alienItemBlock.getRecordCount() |
lRecordCount = alienItemBlock.getRecordCount() |
847 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
848 |
alienItemBlock.jumpRecord(recNum) |
alienItemShowBlock.jumpRecord(recNum) |
849 |
alienItemBlock.deleteRecord() |
alienItemShowBlock.deleteRecord() |
850 |
alienItemBlock.commit() |
alienItemBlock.commit() |
851 |
alienDocumentBlock.deleteRecord() |
alienDocumentProceedingShowBlock.deleteRecord() |
852 |
alienDocumentBlock.commit() |
alienDocumentShowBlock.deleteRecord() |
853 |
alienDocumentBlock.processRollback() |
alienDocumentShowBlock.commit() |
854 |
|
alienDocumentShowBlock.processRollback() |
855 |
|
|
856 |
totalBlock.totalEntry = "0.00" |
totalBlock.totalEntry = "0.00" |
857 |
payBlock.cashEntry = "0.00" |
payBlock.cashEntry = "0.00" |
1298 |
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
1299 |
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
1300 |
</block> |
</block> |
1301 |
|
|
1302 |
|
<!-- Este bloque esta repetido, pero con otro nombre, porque para borrar debe hacer commit en este primero --> |
1303 |
|
<block name="alienDocumentProceedingShowBlock" datasource="alienDocumentProceedingDataSource" transparentBlock=""> |
1304 |
|
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
1305 |
|
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
1306 |
|
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/> |
1307 |
|
</block> |
1308 |
|
|
1309 |
<block datasource="alienDocumentShowDataSource" name="alienDocumentShowBlock" > |
<block datasource="alienDocumentShowDataSource" name="alienDocumentShowBlock" > |
1310 |
|
|
1311 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
1427 |
</block> |
</block> |
1428 |
|
|
1429 |
<block datasource="nil" name="tmpBlock"> |
<block datasource="nil" name="tmpBlock"> |
1430 |
<button x="100" y="100" trigger="okTrigger" width="10" label="Ok" |
<button x="51" y="24" trigger="deleteTrigger" width="10" label="Borrar" |
1431 |
name="deleteBtn" height="1"/> |
name="deleteBtn" height="1"/> |
1432 |
|
|
1433 |
|
<!-- <button x="100" y="100" trigger="okTrigger" width="10" label="Ok" --> |
1434 |
|
<!-- name="deleteBtn" height="1"/> --> |
1435 |
|
|
1436 |
</block> |
</block> |
1437 |
</page> |
</page> |
1438 |
|
|
1677 |
name="commitBtn" height="1"/> |
name="commitBtn" height="1"/> |
1678 |
<button x="60" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" |
<button x="60" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" |
1679 |
name="rollbackBtn" height="1"/> |
name="rollbackBtn" height="1"/> |
|
<button x="71" y="1" trigger="deleteTrigger" width="10" label="Borrar" |
|
|
name="deleteBtn" height="1"/> |
|
1680 |
|
|
1681 |
</block> |
</block> |
1682 |
</box> |
</box> |