368 |
alienDocumentProceedingBlock.processRollback() |
alienDocumentProceedingBlock.processRollback() |
369 |
alienDocumentBlock.newRecord() |
alienDocumentBlock.newRecord() |
370 |
|
|
371 |
totalBlock.totalEntry = "" |
|
|
payBlock.cashEntry = "" |
|
|
payBlock.ctaCteEntry = "" |
|
372 |
</trigger> |
</trigger> |
373 |
|
|
374 |
<trigger name="deleteTrigger" type="NAMED"> |
<trigger name="deleteTrigger" type="NAMED"> |
390 |
alienDocumentBlock.commit() |
alienDocumentBlock.commit() |
391 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
392 |
|
|
393 |
totalBlock.totalEntry = "" |
totalBlock.totalEntry = "0.00" |
394 |
payBlock.cashEntry = "" |
payBlock.cashEntry = "0.00" |
395 |
payBlock.ctaCteEntry = "" |
payBlock.ctaCteEntry = "0.00" |
396 |
</trigger> |
</trigger> |
397 |
|
|
398 |
<trigger name="quitTrigger" type="NAMED"> |
<trigger name="quitTrigger" type="NAMED"> |
418 |
sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
419 |
totalBlock.totalEntry = str(sum) |
totalBlock.totalEntry = str(sum) |
420 |
payBlock.cashEntry = str(sum) |
payBlock.cashEntry = str(sum) |
421 |
payBlock.ctaCteEntry = "" |
payBlock.ctaCteEntry = "0.00" |
422 |
</trigger> |
</trigger> |
423 |
|
|
424 |
<trigger name="newSearchTrigger" type="NAMED"> |
<trigger name="newSearchTrigger" type="NAMED"> |
479 |
<page name="Búsqueda de Facturas de Proveedor"> |
<page name="Búsqueda de Facturas de Proveedor"> |
480 |
<trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> |
<trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> |
481 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="10" label="Factura de Productos de Proveedor" |
482 |
name="invoiceSearchBox" width="82" x="0" y="0"> |
name="invoiceSearchBox" width="84" x="0" y="0"> |
483 |
|
|
484 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
485 |
|
|
527 |
</box> |
</box> |
528 |
|
|
529 |
<box height="14" label="Facturas encontradas" name="searchResultBox" |
<box height="14" label="Facturas encontradas" name="searchResultBox" |
530 |
width="82" x="0" y="9"> |
width="84" x="0" y="9"> |
531 |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
532 |
|
|
533 |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
572 |
<page name="Factura de Proveedor"> |
<page name="Factura de Proveedor"> |
573 |
<trigger type="PRE-FOCUSIN" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSIN" src="totalCalcTrigger" /> |
574 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="10" label="Factura de Productos de Proveedor" |
575 |
name="invoiceHeaderBox" width="82" x="0" y="0"> |
name="invoiceHeaderBox" width="84" x="0" y="0"> |
576 |
|
|
577 |
<!-- Estos bloques son para la gestion del pago de la factura --> |
<!-- Estos bloques son para la gestion del pago de la factura --> |
578 |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
631 |
<label name="bundlesLbl" text="Bultos" x="69" y="6" /> |
<label name="bundlesLbl" text="Bultos" x="69" y="6" /> |
632 |
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="7"/> |
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="7"/> |
633 |
|
|
|
<button x="65" y="1" trigger="commitTrigger" width="14" label="Aceptar" |
|
|
name="commitBtn" height="1"/> |
|
|
<button x="65" y="2" trigger="rollbackTrigger" width="14" label="Deshacer" |
|
|
name="rollbackBtn" height="1"/> |
|
|
<button x="65" y="3" trigger="deleteTrigger" width="14" label="Borrar" |
|
|
name="deleteBtn" height="1"/> |
|
634 |
</block> |
</block> |
635 |
</box> |
</box> |
636 |
|
|
637 |
<box height="11" label="Productos a facturar" name="invoiceItemBox" |
<box height="11" label="Productos a facturar" name="invoiceItemBox" |
638 |
width="82" x="0" y="9"> |
width="84" x="0" y="9"> |
639 |
<!-- for looking up taxes --> |
<!-- for looking up taxes --> |
640 |
<block name="lookUpTaxBlock" datasource="lookUpTaxDataSource"> |
<block name="lookUpTaxBlock" datasource="lookUpTaxDataSource"> |
641 |
<entry name="searchThisProductEntry" field="product.id" hidden="" |
<entry name="searchThisProductEntry" field="product.id" hidden="" |
689 |
</block> |
</block> |
690 |
<block datasource="nil" name="totalBlock"> |
<block datasource="nil" name="totalBlock"> |
691 |
<label name="totalLbl" text="Total" x="29" y="8"/> |
<label name="totalLbl" text="Total" x="29" y="8"/> |
692 |
<entry name="totalEntry" readonly="" x="36" y="8" width="12"/> |
<entry name="totalEntry" readonly="" x="36" y="8" width="12" default="0.00"/> |
693 |
</block> |
</block> |
694 |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
695 |
<entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/> |
<entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/> |
716 |
</block> |
</block> |
717 |
</box> |
</box> |
718 |
<box height="4" label="Pago de la factura" name="payBox" |
<box height="4" label="Pago de la factura" name="payBox" |
719 |
width="82" x="0" y="19"> |
width="84" x="0" y="19"> |
720 |
<block datasource="payDataSource" name="payBlock"> |
<block datasource="payDataSource" name="payBlock"> |
721 |
<label text="Efectivo : " x="1" y="1"/> |
<label text="Efectivo : " x="1" y="1"/> |
722 |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f"> |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
723 |
<trigger type="Pre-Focusout"> |
<trigger type="Pre-Focusout"> |
724 |
import hack |
import hack |
725 |
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) |
726 |
</trigger> |
</trigger> |
727 |
</entry> |
</entry> |
728 |
<label text="Cta. Cte. : " x="24" y="1"/> |
<label text="Cta. Cte. : " x="24" y="1"/> |
729 |
<entry name="ctaCteEntry" x="36" y="1" width="12" typecast="number" displaymask="%0.2f"> |
<entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
730 |
<trigger type="Pre-Focusout"> |
<trigger type="Pre-Focusout"> |
731 |
import hack |
import hack |
732 |
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) |
733 |
</trigger> |
</trigger> |
734 |
</entry> |
</entry> |
735 |
|
<button x="49" y="1" trigger="commitTrigger" width="10" label="Aceptar" |
736 |
|
name="commitBtn" height="1"/> |
737 |
|
<button x="60" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" |
738 |
|
name="rollbackBtn" height="1"/> |
739 |
|
<button x="71" y="1" trigger="deleteTrigger" width="10" label="Borrar" |
740 |
|
name="deleteBtn" height="1"/> |
741 |
|
|
742 |
</block> |
</block> |
743 |
</box> |
</box> |
744 |
</page> |
</page> |