4 |
<!-- end_timestamp (timestamp) --> |
<!-- end_timestamp (timestamp) --> |
5 |
<!-- observations (text) --> |
<!-- observations (text) --> |
6 |
|
|
7 |
<form tabbed="top" width="107" height="24" title="Carga de Facturas de Proveedores"> |
<form tabbed="top" width="107" height="25" title="Carga de Facturas de Proveedores"> |
8 |
<neb:Block> |
<neb:Block> |
9 |
use PAPO; |
use PAPO; |
10 |
my $uniqed=0; |
my $uniqed=0; |
546 |
</condition> |
</condition> |
547 |
</datasource> |
</datasource> |
548 |
|
|
549 |
|
<datasource name="alienOtherTaxDataSource" database="papo" |
550 |
|
detaillink="alien_document_tax.alien_document" master="alienDocumentDataSource" |
551 |
|
masterlink="id" table="alien_document_tax"> |
552 |
|
<condition> |
553 |
|
<eq> |
554 |
|
<cfield name="alien_document_tax.tax"/> |
555 |
|
<cconst value="3"/> |
556 |
|
</eq> |
557 |
|
</condition> |
558 |
|
</datasource> |
559 |
|
|
560 |
|
<datasource name="alienIvaTaxDataSource" database="papo" |
561 |
|
detaillink="alien_document_tax.alien_document" master="alienDocumentDataSource" |
562 |
|
masterlink="id" table="alien_document_tax"> |
563 |
|
<condition> |
564 |
|
<eq> |
565 |
|
<cfield name="alien_document_tax.tax"/> |
566 |
|
<cconst value="1"/> |
567 |
|
</eq> |
568 |
|
</condition> |
569 |
|
</datasource> |
570 |
|
|
571 |
|
<datasource name="alienIvaTaxItemDataSource" database="papo" |
572 |
|
table="alien_item_tax"> |
573 |
|
</datasource> |
574 |
|
|
575 |
|
<datasource name="alienIvaNITaxDataSource" database="papo" |
576 |
|
detaillink="alien_document_tax.alien_document" master="alienDocumentDataSource" |
577 |
|
masterlink="id" table="alien_document_tax"> |
578 |
|
<condition> |
579 |
|
<eq> |
580 |
|
<cfield name="alien_document_tax.tax"/> |
581 |
|
<cconst value="2"/> |
582 |
|
</eq> |
583 |
|
</condition> |
584 |
|
</datasource> |
585 |
|
|
586 |
<!-- <datasource database="papo" name="alienDocumentShowDataSource" --> |
<!-- <datasource database="papo" name="alienDocumentShowDataSource" --> |
587 |
<!-- table="alien_document, _entity_data as provider, _entity_data as transport" --> |
<!-- table="alien_document, _entity_data as provider, _entity_data as transport" --> |
588 |
<!-- order_by="date"> --> |
<!-- order_by="date"> --> |
635 |
</condition> |
</condition> |
636 |
</datasource> |
</datasource> |
637 |
|
|
638 |
|
<datasource name="alienOtherTaxShowDataSource" database="papo" |
639 |
|
detaillink="alien_document_tax.alien_document" master="alienDocumentShowDataSource" |
640 |
|
masterlink="id" table="alien_document_tax"> |
641 |
|
<condition> |
642 |
|
<eq> |
643 |
|
<cfield name="alien_document_tax.tax"/> |
644 |
|
<cconst value="3"/> |
645 |
|
</eq> |
646 |
|
</condition> |
647 |
|
</datasource> |
648 |
|
|
649 |
<datasource database="papo" name="alienDocumentProviderShowDataSource" |
<datasource database="papo" name="alienDocumentProviderShowDataSource" |
650 |
table="alien_document, _entity_data as provider" detaillink="alien_document.id" |
table="alien_document, _entity_data as provider" detaillink="alien_document.id" |
651 |
master="alienDocumentShowDataSource" masterlink="id" |
master="alienDocumentShowDataSource" masterlink="id" |
782 |
</datasource> |
</datasource> |
783 |
|
|
784 |
<trigger name="startUp" type="On-Startup"> |
<trigger name="startUp" type="On-Startup"> |
785 |
|
tmpValuesDataSource.discountPercent = 0 |
786 |
|
|
787 |
ownOrganizationBlock.clear() |
ownOrganizationBlock.clear() |
788 |
ownOrganizationBlock.initQuery() |
ownOrganizationBlock.initQuery() |
789 |
ownOrganizationBlock.processQuery() |
ownOrganizationBlock.processQuery() |
884 |
alienDocumentBlock.ownEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
alienDocumentBlock.ownEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
885 |
alienDocumentBlock.postChanges() |
alienDocumentBlock.postChanges() |
886 |
|
|
887 |
|
otherTaxBlock.postChanges() |
888 |
|
|
889 |
postChangeAdvance = 1 |
postChangeAdvance = 1 |
890 |
proceedingBlock.clear() |
proceedingBlock.clear() |
891 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
905 |
currencyMovementBlock.jumpRecord(recNum) |
currencyMovementBlock.jumpRecord(recNum) |
906 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
907 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
|
# currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
|
|
# currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
|
|
# currencyMovementBlock.currencyTypeEntry = "1" |
|
|
# currencyMovementBlock.amountEntry = str(payBlock.cashEntry) |
|
908 |
currencyMovementBlock.postChanges() |
currencyMovementBlock.postChanges() |
909 |
|
|
910 |
postChangeAdvance = 4 |
postChangeAdvance = 4 |
912 |
tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry) |
tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry) |
913 |
callTrigger('stockAddTrigger') |
callTrigger('stockAddTrigger') |
914 |
|
|
|
#stock |
|
|
#lAlienDocId = str(alienDocumentBlock.idEntry) |
|
|
#setFocus(alienDocumentBlock.dateEntry) |
|
|
#alienItemToUpdBlock.initQuery() |
|
|
#alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
|
|
#storehouse |
|
|
#alienItemToUpdBlock.storehouseEntry = str(ownStorehouseBlock.ownStorehouseIdEntry) |
|
|
#/storehouse |
|
|
#alienItemToUpdBlock.processQuery() |
|
|
#lRecordCount = alienItemToUpdBlock.getRecordCount() |
|
|
#for recNum in range(lRecordCount): |
|
|
# alienItemToUpdBlock.jumpRecord(recNum) |
|
|
# alienItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x+round(float(str(alienItemToUpdBlock.qtyEntry)),4)) |
|
|
#alienItemToUpdBlock.clear() |
|
915 |
|
|
916 |
commitConnection() |
commitConnection() |
917 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
931 |
genericBox(message+"\n"+str(err),['Aceptar']) |
genericBox(message+"\n"+str(err),['Aceptar']) |
932 |
#else: |
#else: |
933 |
# alienDocumentBlock.clear() |
# alienDocumentBlock.clear() |
934 |
|
tmpValuesDataSource.discountPercent = 0 |
935 |
</trigger> |
</trigger> |
936 |
|
|
937 |
<trigger name="rollbackTrigger" type="NAMED"> |
<trigger name="rollbackTrigger" type="NAMED"> |
939 |
callTrigger('searchOwnPosData') |
callTrigger('searchOwnPosData') |
940 |
#alienDocumentBlock.newRecord() |
#alienDocumentBlock.newRecord() |
941 |
|
|
942 |
|
tmpValuesDataSource.discountPercent = 0 |
943 |
</trigger> |
</trigger> |
944 |
|
|
945 |
<trigger name="deleteTrigger" type="NAMED"> |
<trigger name="deleteTrigger" type="NAMED"> |
965 |
|
|
966 |
tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry) |
tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry) |
967 |
callTrigger('stockSubstractTrigger') |
callTrigger('stockSubstractTrigger') |
|
#alienItemToUpdBlock.initQuery() |
|
|
#alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
|
|
#alienItemToUpdBlock.processQuery() |
|
|
#postChangeAdvance = 2 |
|
|
#lRecordCount = alienItemToUpdBlock.getRecordCount() |
|
|
#for recNum in range(lRecordCount): |
|
|
# alienItemToUpdBlock.jumpRecord(recNum) |
|
|
# alienItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(alienItemToUpdBlock.qtyEntry)),4)) |
|
|
#alienItemToUpdBlock.clear() |
|
968 |
|
|
969 |
lRecordCount = alienItemShowBlock.getRecordCount() |
lRecordCount = alienItemShowBlock.getRecordCount() |
970 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
1027 |
|
|
1028 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1029 |
|
|
1030 |
totalShowBlock.totalEntry = str(hack.a2f(totalShowBlock.netoEntry,2)+hack.a2f(totalShowBlock.ivaEntry,2)) |
totalShowBlock.totalEntry = hack.a2f(totalShowBlock.netoEntry,2)+hack.a2f(totalShowBlock.exemptNetoEntry,2)+ \ |
1031 |
|
hack.a2f(totalShowBlock.ivaEntry,2)+hack.a2f(otherTaxShowBlock.otherTaxAmountEntry,2) |
1032 |
else: |
else: |
1033 |
totalShowBlock.totalEntry = "0.00" |
totalShowBlock.clear() |
1034 |
</trigger> |
</trigger> |
1035 |
|
|
1036 |
<trigger name="totalCalcTrigger" type="NAMED"> |
<trigger name="discountCalcTrigger" type="NAMED"><![CDATA[ |
1037 |
import hack |
import hack |
1038 |
|
|
1039 |
|
if hack.a2f(str(alienDocumentBlock.discountPercentEntry),4) != round(tmpValuesDataSource.discountPercent,4): |
1040 |
|
callTrigger('totalCalcTrigger') |
1041 |
|
|
1042 |
|
tmpValuesDataSource.discountPercent = hack.a2f(str(alienDocumentBlock.discountPercentEntry),2) |
1043 |
|
]]></trigger> |
1044 |
|
|
1045 |
#alienItemBlock.taxAmountEntry = hack.a2f(alienItemBlock.unitPriceEntry) * \ |
<trigger name="totalCalcTrigger" type="NAMED"> |
1046 |
# hack.a2f(alienItemBlock.qtyEntry) * (hack.a2f(alienItemBlock.taxPercentEntry)/100) |
import hack |
1047 |
|
|
1048 |
lQty = hack.a2f(alienItemBlock.qtyEntry,2) |
lQty = hack.a2f(alienItemBlock.qtyEntry,4) |
1049 |
lBonus = hack.a2f(alienItemBlock.bonusEntry,2) |
lBonus = hack.a2f(alienItemBlock.bonusEntry,4) |
1050 |
lDiscount = hack.a2f(alienItemBlock.discountEntry,2) |
lDiscount = hack.a2f(alienItemBlock.discountEntry,4) |
1051 |
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,2) |
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4) |
1052 |
|
|
1053 |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
lItemPrice = round(((lQty * lUnitPrice) - lBonus - lDiscount) * (1 - hack.a2f(alienDocumentBlock.discountPercentEntry,4)/100),2) |
1054 |
|
|
|
alienItemBlock.taxAmountEntry = round((lItemPrice * hack.a2f(alienItemBlock.taxPercentEntry,2)/100),2) |
|
1055 |
alienItemBlock.itemNetoEntry = lItemPrice |
alienItemBlock.itemNetoEntry = lItemPrice |
1056 |
|
alienItemBlock.taxAmountEntry = round((lItemPrice * hack.a2f(alienItemBlock.taxPercentEntry,2)/100),2) |
1057 |
alienItemBlock.itemTotalEntry = round(lItemPrice + hack.a2f(alienItemBlock.taxAmountEntry,2),2) |
alienItemBlock.itemTotalEntry = round(lItemPrice + hack.a2f(alienItemBlock.taxAmountEntry,2),2) |
1058 |
|
|
1059 |
lTNeto = 0 |
lTNeto = 0 |
1060 |
|
lTExemptNeto = 0 |
1061 |
lTTax = 0 |
lTTax = 0 |
1062 |
|
|
1063 |
sum = 0 |
sum = 0 |
1064 |
lRecords = alienItemDataSource.getRecords() |
lRecords = alienItemDataSource.getRecords() |
1065 |
for index in range(len(lRecords)): |
for index in range(len(lRecords)): |
1066 |
lRecord = lRecords[index] |
lRecord = lRecords[index] |
1067 |
lQty = hack.a2f(lRecord.getField("alien_product_item.qty"),2) |
lQty = hack.a2f(lRecord.getField("alien_product_item.qty"),4) |
1068 |
lBonus = hack.a2f(lRecord.getField("alien_item.bonus"),2) |
lBonus = hack.a2f(lRecord.getField("alien_item.bonus"),4) |
1069 |
lDiscount = hack.a2f(lRecord.getField("alien_item.discount"),2) |
lDiscount = hack.a2f(lRecord.getField("alien_item.discount"),4) |
1070 |
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price"),2) |
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price"),4) |
1071 |
#lTax = hack.a2f(lRecord.getField("alien_item_tax.amount")) |
#lTax = hack.a2f(lRecord.getField("alien_item_tax.amount")) |
1072 |
|
|
1073 |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
lItemPrice = round(((lQty * lUnitPrice) - lBonus - lDiscount) * \ |
1074 |
lTNeto += round(lItemPrice,2) |
(1 - hack.a2f(alienDocumentBlock.discountPercentEntry,4)/100),2) |
1075 |
|
|
1076 |
|
alienItemBlock.jumpRecord(index) |
1077 |
|
alienItemBlock.itemNetoEntry = lItemPrice |
1078 |
|
alienItemBlock.taxAmountEntry = round((lItemPrice * hack.a2f(alienItemBlock.taxPercentEntry,)/100),2) |
1079 |
|
alienItemBlock.itemTotalEntry = round(lItemPrice + hack.a2f(alienItemBlock.taxAmountEntry,2),2) |
1080 |
|
|
1081 |
lTTax += hack.a2f(lRecord.getField("alien_item_tax.amount"),2) |
lTTax += hack.a2f(lRecord.getField("alien_item_tax.amount"),2) |
1082 |
|
if hack.a2f(lRecord.getField("alien_item_tax.amount"),2) == 0.00: |
1083 |
|
lTExemptNeto += round(lItemPrice,2) |
1084 |
|
else: |
1085 |
|
lTNeto += round(lItemPrice,2) |
1086 |
|
|
1087 |
#sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
#sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
1088 |
|
|
1089 |
alienDocumentBlock.netTotalEntry = str(round(lTNeto,2)) |
alienDocumentBlock.exemptNetTotalEntry = round(lTExemptNeto,2) |
1090 |
alienDocumentBlock.taxTotalEntry = str(round(lTTax,2)) |
alienDocumentBlock.netTotalEntry = round(lTNeto,2) |
1091 |
alienDocumentBlock.totalEntry = str(round(lTNeto+lTTax,2)) |
alienDocumentBlock.taxTotalEntry = round(lTTax,2) |
1092 |
payBlock.cashEntry = str(round(lTNeto+lTTax,2)) |
alienDocumentBlock.totalEntry = round(lTNeto+lTExemptNeto+lTTax+hack.a2f(otherTaxBlock.otherTaxAmountEntry,2),2) |
1093 |
|
payBlock.cashEntry = hack.a2f(alienDocumentBlock.totalEntry,2) |
1094 |
|
|
1095 |
#totalBlock.totalEntry = str(sum) |
#totalBlock.totalEntry = str(sum) |
1096 |
#payBlock.cashEntry = str(sum) |
#payBlock.cashEntry = str(sum) |
1317 |
|
|
1318 |
<trigger name="totalChanged" type="NAMED"> |
<trigger name="totalChanged" type="NAMED"> |
1319 |
import hack |
import hack |
1320 |
alienDocumentBlock.totalEntry = str(round(hack.a2f(alienDocumentBlock.netTotalEntry,2) \ |
alienDocumentBlock.totalEntry = hack.a2f(alienDocumentBlock.netTotalEntry,2) + \ |
1321 |
+ hack.a2f(alienDocumentBlock.taxTotalEntry,2),2)) |
hack.a2f(alienDocumentBlock.exemptNetTotalEntry,2) + \ |
1322 |
|
hack.a2f(otherTaxBlock.otherTaxAmountEntry,2) + \ |
1323 |
|
hack.a2f(alienDocumentBlock.taxTotalEntry,2) |
1324 |
payBlock.cashEntry = str(hack.a2f(alienDocumentBlock.totalEntry,2)) |
payBlock.cashEntry = str(hack.a2f(alienDocumentBlock.totalEntry,2)) |
1325 |
|
payBlock.ctaCteEntry = 0.00 |
1326 |
</trigger> |
</trigger> |
1327 |
|
|
1328 |
<trigger name="providerMultiCurrencyTrigger" type="NAMED"> |
<trigger name="providerMultiCurrencyTrigger" type="NAMED"> |
1584 |
<entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/> |
<entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/> |
1585 |
|
|
1586 |
<label name="qtyLbl" text="Cantidad" x="43" y="13"/> |
<label name="qtyLbl" text="Cantidad" x="43" y="13"/> |
1587 |
<entry field="alien_product_item.qty" name="qtyEntry" rows="7" typecast="number" displaymask="%0.3f" width="12" x="43" y="14" style="label" readonly=""> |
<entry field="alien_product_item.qty" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="43" y="14" style="label" readonly=""> |
1588 |
</entry> |
</entry> |
1589 |
|
|
1590 |
<label name="priceLbl" text="Precio" x="55" y="13"/> |
<label name="priceLbl" text="Precio" x="55" y="13"/> |
1591 |
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.2f" |
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f" |
1592 |
width="10" rows="7" style="label" readonly=""> |
width="10" rows="7" style="label" readonly=""> |
1593 |
</entry> |
</entry> |
1594 |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
1619 |
x="103" y="14" width="1" height="7"/> |
x="103" y="14" width="1" height="7"/> |
1620 |
|
|
1621 |
</block> |
</block> |
1622 |
|
<block name="otherTaxShowBlock" datasource="alienOtherTaxShowDataSource" restrictInsert=""> |
1623 |
|
<label name="otherTaxLbl" text="Otros Impuestos" x="47" y="21"/> |
1624 |
|
<entry name="otherTaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" style="label"> |
1625 |
|
</entry> |
1626 |
|
<entry name="otherTaxTaxedAmountEntry" field="alien_document_tax.taxed_amount" readonly="" x="47" y="22" width="12" |
1627 |
|
hidden="" default="0.00" > |
1628 |
|
</entry> |
1629 |
|
</block> |
1630 |
|
|
1631 |
<block datasource="alienDocumentShowDataSource" name="totalShowBlock"> |
<block datasource="alienDocumentShowDataSource" name="totalShowBlock"> |
1632 |
<label name="totalLbl" text="Neto" x="55" y="21"/> |
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
1633 |
<entry name="netoEntry" field="alien_document.net_total" readonly="" style="label" x="55" y="22" width="12" default="0.00"/> |
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
1634 |
|
<entry name="discountPercentEntry" field="discount_percent" style="label" typecast="number" displaymask="%0.2f" |
1635 |
|
width="10" x="27" y="22"> |
1636 |
|
</entry> |
1637 |
|
<label name="totalLbl" text="Neto excento de IVA" x="54" y="23"/> |
1638 |
|
<entry name="exemptNetoEntry" field="alien_document.exempt_net_total" style="label" x="76" y="23" width="12" |
1639 |
|
default="0.00"/> |
1640 |
|
<label name="totalLbl" text="Neto" x="76" y="21"/> |
1641 |
|
<entry name="netoEntry" field="alien_document.net_total" readonly="" style="label" x="76" y="22" width="12" default="0.00"/> |
1642 |
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
1643 |
<entry name="ivaEntry" field="alien_document.tax_total" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
<entry name="ivaEntry" field="alien_document.tax_total" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
1644 |
<label name="totalLbl" text="Total" x="82" y="21"/> |
<label name="totalLbl" text="Total" x="87" y="21"/> |
1645 |
<entry name="totalEntry" readonly="" style="label" x="82" y="22" width="12" default="0.00"/> |
<entry name="totalEntry" readonly="" style="label" x="87" y="22" width="12" default="0.00"/> |
1646 |
</block> |
</block> |
1647 |
|
|
1648 |
<block datasource="nil" name="tmpBlock"> |
<block datasource="nil" name="tmpBlock"> |
1657 |
|
|
1658 |
<!-- Página de carga de facturas --> |
<!-- Página de carga de facturas --> |
1659 |
<page name="Factura de Proveedor (Alta)"> |
<page name="Factura de Proveedor (Alta)"> |
|
<!-- <trigger type="PRE-FOCUSIN" name="preFocusInPage3"> --> |
|
|
<!-- </trigger> --> |
|
|
<!-- <box height="12" label="Factura de Productos de Proveedor" --> |
|
|
<!-- name="invoiceHeaderBox" width="107" x="0" y="0"> --> |
|
1660 |
|
|
1661 |
<!-- Estos bloques son para la gestion del pago de la factura --> |
<!-- Estos bloques son para la gestion del pago de la factura --> |
1662 |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
1669 |
searchOwnPosData="searchOwnPosData" |
searchOwnPosData="searchOwnPosData" |
1670 |
ownStorehouseBlock ="ownStorehouseBlock" ownStorehouseIdEntry="ownStorehouseIdEntry" /> |
ownStorehouseBlock ="ownStorehouseBlock" ownStorehouseIdEntry="ownStorehouseIdEntry" /> |
1671 |
<block datasource="alienDocumentDataSource" name="alienDocumentBlock" restrictInsert="t"> |
<block datasource="alienDocumentDataSource" name="alienDocumentBlock" restrictInsert="t"> |
|
<!-- <trigger name="t" type="Pre-Insert"> --> |
|
|
<!-- alienDocumentBlock.idEntry.autofillBySequence('alien_document_id_seq') --> |
|
|
<!-- alienDocumentBlock.typeEntry = "2" --> |
|
|
<!-- </trigger> --> |
|
1672 |
|
|
1673 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
1674 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1776 |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
1777 |
<entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/> |
<entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/> |
1778 |
|
|
1779 |
|
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
1780 |
|
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
1781 |
|
<entry name="discountPercentEntry" field="discount_percent" default="0.00" typecast="number" displaymask="%0.2f" |
1782 |
|
width="10" x="27" y="22"> |
1783 |
|
<trigger type="PRE-FOCUSOUT" src="discountCalcTrigger" /> |
1784 |
|
</entry> |
1785 |
|
|
1786 |
<label name="totalLbl" text="Neto" x="76" y="21"/> |
<label name="totalLbl" text="Neto" x="76" y="21"/> |
1787 |
<entry name="netTotalEntry" field="net_total" x="76" y="22" width="11" default="0.00"> |
<entry name="netTotalEntry" field="net_total" x="76" y="22" width="11" default="0.00"> |
1788 |
<trigger type="Pre-Focusout" src="totalChanged"/> |
<trigger type="Pre-Focusout" src="totalChanged"/> |
1789 |
</entry> |
</entry> |
1790 |
|
|
1791 |
|
<label name="totalLbl" text="Neto excento de IVA" x="54" y="23"/> |
1792 |
|
<entry name="exemptNetTotalEntry" field="exempt_net_total" x="76" y="23" width="11" default="0.00"> |
1793 |
|
<trigger type="Pre-Focusout" src="totalChanged"/> |
1794 |
|
</entry> |
1795 |
|
|
1796 |
<label name="ivaLbl" text="IVA" x="64" y="21"/> |
<label name="ivaLbl" text="IVA" x="64" y="21"/> |
1797 |
<entry name="taxTotalEntry" field="tax_total" x="64" y="22" width="11" default="0.00"> |
<entry name="taxTotalEntry" field="tax_total" x="64" y="22" width="11" default="0.00"> |
1798 |
<trigger type="Pre-Focusout" src="totalChanged"/> |
<trigger type="Pre-Focusout" src="totalChanged"/> |
1801 |
<entry name="totalEntry" readonly="" style="label" x="87" y="22" width="12" default="0.00"/> |
<entry name="totalEntry" readonly="" style="label" x="87" y="22" width="12" default="0.00"/> |
1802 |
|
|
1803 |
</block> |
</block> |
1804 |
|
|
1805 |
|
<block name="otherTaxBlock" datasource="alienOtherTaxDataSource" restrictInsert=""> |
1806 |
|
<label name="otherTaxLbl" text="Otros Impuestos" x="47" y="21"/> |
1807 |
|
<entry name="otherTaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" default="0.00"> |
1808 |
|
<trigger type="Pre-Focusout" src="totalChanged"/> |
1809 |
|
</entry> |
1810 |
|
<entry name="otherTaxTaxedAmountEntry" field="alien_document_tax.taxed_amount" readonly="" x="47" y="22" width="12" |
1811 |
|
hidden="" default="0.00"/> |
1812 |
|
<entry name="otherTaxIdEntry" field="alien_document_tax.tax" readonly="" x="47" y="22" width="12" hidden="" default="3"/> |
1813 |
|
</block> |
1814 |
|
|
1815 |
|
<!-- \/\/\/\/ Estos bloques los hice con la idea de grabar los totales --> |
1816 |
|
|
1817 |
|
<!-- <block name="alienIvaTaxBlock" datasource="alienIvaTaxDataSource" restrictInsert=""> --> |
1818 |
|
<!-- <entry name="alienIvaTaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" hidden=""/> --> |
1819 |
|
<!-- <entry name="alienIvaTaxedAmountEntry" field="alien_document_tax.taxed_amount" x="47" y="22" width="12" hidden=""/> --> |
1820 |
|
<!-- </block> --> |
1821 |
|
<!-- <block name="alienIvaNITaxBlock" datasource="alienIvaNITaxDataSource" restrictInsert=""> --> |
1822 |
|
<!-- <entry name="alienIvaNITaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" hidden=""/> --> |
1823 |
|
<!-- <entry name="alienIvaNITaxedAmountEntry" field="alien_document_tax.taxed_amount" x="47" y="22" width="12" hidden=""/> --> |
1824 |
|
<!-- </block> --> |
1825 |
|
|
1826 |
|
<!-- /\/\/\/\ Fin de bloques que hice con la idea de grabar los totales --> |
1827 |
|
|
1828 |
<!-- </box> --> |
<!-- </box> --> |
1829 |
|
|
1830 |
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
1857 |
<button name="productSearchButton" trigger="productSearchTrigger" label="Buscar" width="7" height="7" x="35" y="14"/> |
<button name="productSearchButton" trigger="productSearchTrigger" label="Buscar" width="7" height="7" x="35" y="14"/> |
1858 |
|
|
1859 |
<label name="qtyLbl" text="Cantidad" x="42" y="13"/> |
<label name="qtyLbl" text="Cantidad" x="42" y="13"/> |
1860 |
<entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="7" typecast="number" displaymask="%0.3f" width="12" x="42" y="14"> |
<entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="7" typecast="number" displaymask="%0.4f" width="12" x="42" y="14"> |
1861 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1862 |
</entry> |
</entry> |
1863 |
|
|
1872 |
<!-- <trigger type="PRE-FOCUSOUT" src="lookUpTax"/> --> |
<!-- <trigger type="PRE-FOCUSOUT" src="lookUpTax"/> --> |
1873 |
<!-- </entry> --> |
<!-- </entry> --> |
1874 |
<label name="priceLbl" text="Precio" x="54" y="13"/> |
<label name="priceLbl" text="Precio" x="54" y="13"/> |
1875 |
<entry x="54" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.2f" |
<entry x="54" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f" |
1876 |
width="10" rows="7"> |
width="10" rows="7"> |
1877 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1878 |
</entry> |
</entry> |
1889 |
rows="7" width="6" x="69" y="14" default="0"> |
rows="7" width="6" x="69" y="14" default="0"> |
1890 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1891 |
</entry> |
</entry> |
1892 |
|
<entry name="totalDiscountEntry" typecast="number" rows="7" width="10" x="69" y="14" default="0.00" hidden="t"> |
1893 |
|
</entry> |
1894 |
|
|
1895 |
<label name="itemNetoLbl" text="Neto " x="76" y="13"/> |
<label name="itemNetoLbl" text="Neto " x="76" y="13"/> |
1896 |
<entry name="itemNetoEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
<entry name="itemNetoEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
1911 |
<scrollbar page="5" |
<scrollbar page="5" |
1912 |
x="104" y="14" width="1" height="7"/> |
x="104" y="14" width="1" height="7"/> |
1913 |
</block> |
</block> |
1914 |
|
|
1915 |
<!-- <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> --> |
<!-- <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> --> |
1916 |
<!-- <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"/> --> |
1917 |
<!-- <entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/> --> |
<!-- <entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/> --> |
1942 |
<!-- </box> --> |
<!-- </box> --> |
1943 |
|
|
1944 |
<box height="4" label="Pago de la factura" name="payBox" |
<box height="4" label="Pago de la factura" name="payBox" |
1945 |
width="107" x="0" y="23"> |
width="107" x="0" y="24"> |
1946 |
<block datasource="payDataSource" name="payBlock"> |
<block datasource="payDataSource" name="payBlock"> |
1947 |
<label text="Efectivo : " x="1" y="1"/> |
<label text="Efectivo : " x="1" y="1"/> |
1948 |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |