387 |
<datasource name="ownDocumentProceedingDataSource" database="papo" table="own_document_proceeding"/> |
<datasource name="ownDocumentProceedingDataSource" database="papo" table="own_document_proceeding"/> |
388 |
|
|
389 |
|
|
390 |
|
<trigger name="recalcTotalTrigger" type="NAMED"><![CDATA[ |
391 |
|
import hack |
392 |
|
totalBlock.totalEntry = hack.a2f(totalBlock.netoEntry)+hack.a2f(totalBlock.ivaEntry) |
393 |
|
payBlock.cashEntry = hack.a2f(totalBlock.totalEntry,2) |
394 |
|
]]></trigger> |
395 |
|
|
396 |
<!--=== TRIGGERS ===--> |
<!--=== TRIGGERS ===--> |
397 |
<trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[ |
<trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[ |
398 |
runForm('client.gfd') |
runForm('client.gfd') |
478 |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
currencyMovementBlock.proceedingEntry = str(proceedingBlock.idEntry) |
479 |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
currencyMovementBlock.movementTypeEntry = "" # Revisar com queda esto |
480 |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
currencyMovementBlock.currencyTypeEntry = str(currencyTypeBlock.currencyBox.idEntry) |
481 |
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2)) |
currencyMovementBlock.amountEntry = str(round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),2)) |
482 |
|
|
483 |
postChangeAdvance = 3 |
postChangeAdvance = 3 |
484 |
ownDocumentProceedingBlock.postChanges() |
ownDocumentProceedingBlock.postChanges() |
533 |
<trigger name="totalCalcTrigger" type="NAMED"> |
<trigger name="totalCalcTrigger" type="NAMED"> |
534 |
import hack |
import hack |
535 |
|
|
536 |
lQty = hack.a2f(ownItemBlock.qtyEntry,2) |
lQty = hack.a2f(ownItemBlock.qtyEntry,4) |
537 |
lBonus = hack.a2f(ownItemBlock.bonusEntry,2) |
lBonus = hack.a2f(ownItemBlock.bonusEntry,4) |
538 |
lDiscount = hack.a2f(ownItemBlock.discountEntry,2) |
lDiscount = hack.a2f(ownItemBlock.discountEntry,4) |
539 |
lUnitPrice = hack.a2f(ownItemBlock.unitPriceEntry,2) |
lUnitPrice = hack.a2f(ownItemBlock.unitPriceEntry,4) |
540 |
|
|
541 |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
542 |
|
|
543 |
sourceCode = str(tmpValuesDataSource.taxSourceCode) |
sourceCode = str(tmpValuesDataSource.taxSourceCode) |
544 |
ownIVACond = hack.a2f(tmpValuesDataSource.ownIVACond,2) |
ownIVACond = hack.a2f(tmpValuesDataSource.ownIVACond,4) |
545 |
alienIVACond = hack.a2f(tmpValuesDataSource.alienIVACond,2) |
alienIVACond = hack.a2f(tmpValuesDataSource.alienIVACond,4) |
546 |
amount = lItemPrice |
amount = lItemPrice |
547 |
taxPercent = hack.a2f(ownItemBlock.ivaEntry,2) |
taxPercent = hack.a2f(ownItemBlock.ivaEntry,4) |
548 |
|
|
549 |
exec(sourceCode) |
exec(sourceCode) |
550 |
|
|
551 |
ownItemBlock.taxAmountEntry = hack.a2f(graft(ownIVACond,alienIVACond,amount,taxPercent),2) |
ownItemBlock.taxAmountEntry = hack.a2f(graft(ownIVACond,alienIVACond,amount,taxPercent),4) |
552 |
ownItemBlock.itemNetoEntry = lItemPrice |
ownItemBlock.itemNetoEntry = lItemPrice |
553 |
ownItemBlock.itemTotalEntry = lItemPrice + hack.a2f(ownItemBlock.taxAmountEntry,2) |
ownItemBlock.itemTotalEntry = lItemPrice + hack.a2f(ownItemBlock.taxAmountEntry,2) |
554 |
|
|
558 |
lRecords = ownItemDataSource.getRecords() |
lRecords = ownItemDataSource.getRecords() |
559 |
for index in range(len(lRecords)): |
for index in range(len(lRecords)): |
560 |
lRecord = lRecords[index] |
lRecord = lRecords[index] |
561 |
lQty = hack.a2f(lRecord.getField("own_product_item.qty"),2) |
lQty = hack.a2f(lRecord.getField("own_product_item.qty"),4) |
562 |
#print "cantidad: ",lQty |
#print "cantidad: ",lQty |
563 |
lBonus = hack.a2f(lRecord.getField("own_item.bonus"),2) |
lBonus = hack.a2f(lRecord.getField("own_item.bonus"),4) |
564 |
lDiscount = hack.a2f(lRecord.getField("own_item.discount"),2) |
lDiscount = hack.a2f(lRecord.getField("own_item.discount"),4) |
565 |
lUnitPrice = hack.a2f(lRecord.getField("own_product_item.unit_price"),2) |
lUnitPrice = hack.a2f(lRecord.getField("own_product_item.unit_price"),4) |
566 |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
lItemPrice = round((lQty * lUnitPrice) - lBonus - lDiscount,2) |
567 |
lTNeto += lItemPrice |
lTNeto += lItemPrice |
568 |
lTTax += hack.a2f(lRecord.getField("own_item_tax.amount"),2) |
lTTax += hack.a2f(lRecord.getField("own_item_tax.amount"),4) |
569 |
|
|
570 |
ownDocumentBlock.netTotalEntry = str(round(lTNeto,2)) |
ownDocumentBlock.netTotalEntry = str(round(lTNeto,2)) |
571 |
totalBlock.netoEntry = str(round(lTNeto,2)) |
totalBlock.netoEntry = str(round(lTNeto,2)) |
591 |
currencyTypeBlock.newRecord() |
currencyTypeBlock.newRecord() |
592 |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
currencyTypeBlock.currencyBox.idEntry = rs.current.getField("_table") |
593 |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
currencyTypeBlock.currencyBox.nameEntry = rs.current.getField("name") |
594 |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),2) |
currencyTypeBlock.currencyBox.rateEntry = hack.a2f(rs.current.getField("rate"),4) |
595 |
monto = round(hack.a2f(payBlock.cashEntry,2) / hack.a2f(rs.current.getField("rate"),2),2) |
monto = round(hack.a2f(payBlock.cashEntry,4) / hack.a2f(rs.current.getField("rate"),4),4) |
596 |
currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format") |
currencyTypeBlock.currencyBox.formatEntry = rs.current.getField("format") |
597 |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
598 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
currencyTypeBlock.currencyBox.payEntry = 0.0 |
623 |
for recNum in range(rc): |
for recNum in range(rc): |
624 |
currencyTypeBlock.jumpRecord(recNum) |
currencyTypeBlock.jumpRecord(recNum) |
625 |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) > 0: |
626 |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry),2) |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,4) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),4) |
627 |
|
|
628 |
rc = currencyTypeBlock.getRecordCount() |
rc = currencyTypeBlock.getRecordCount() |
629 |
for recNum in range(rc): |
for recNum in range(rc): |
630 |
currencyTypeBlock.jumpRecord(recNum) |
currencyTypeBlock.jumpRecord(recNum) |
631 |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4) > 0: |
632 |
monto = round(total / hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2) |
monto = round(total / hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),4) |
633 |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
currencyTypeBlock.currencyBox.amountEntry = str(currencyTypeBlock.currencyBox.formatEntry) % monto |
634 |
currencyTypeBlock.jumpRecord(rn) |
currencyTypeBlock.jumpRecord(rn) |
635 |
]]></trigger> |
]]></trigger> |
696 |
rc = currencyTypeBlock.getRecordCount() |
rc = currencyTypeBlock.getRecordCount() |
697 |
for recNum in range(rc): |
for recNum in range(rc): |
698 |
currencyTypeBlock.jumpRecord(recNum) |
currencyTypeBlock.jumpRecord(recNum) |
699 |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2) > 0: |
if hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4) > 0: |
700 |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,2) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,2),2) |
total -= round(hack.a2f(currencyTypeBlock.currencyBox.payEntry,4) * hack.a2f(currencyTypeBlock.currencyBox.rateEntry,4),4) |
701 |
|
|
702 |
if round(total,2) != 0: |
if round(total,2) != 0: |
703 |
genericBox("El los montos no completan el total del documento\n",['Aceptar']) |
genericBox("El los montos no completan el total del documento\n",['Aceptar']) |
853 |
invoiceTotal = 0 |
invoiceTotal = 0 |
854 |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
currOwnDoc = productInvoiceResultSet.current.getField("own_document.id") |
855 |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
while productInvoiceResultSet.current.getField("own_document.id") == currOwnDoc and more: |
856 |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty"),2) |
lQty = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.qty"),4) |
857 |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.unit_price"),2) |
lUnitPrice = hack.a2f(productInvoiceResultSet.current.getField("own_product_item.unit_price"),4) |
858 |
lBonus = hack.a2f(productInvoiceResultSet.current.getField("own_item.bonus"),2) |
lBonus = hack.a2f(productInvoiceResultSet.current.getField("own_item.bonus"),4) |
859 |
lDiscount = hack.a2f(productInvoiceResultSet.current.getField("own_item.discount"),2) |
lDiscount = hack.a2f(productInvoiceResultSet.current.getField("own_item.discount"),4) |
860 |
item = round(lQty * lUnitPrice - lBonus - lDiscount,2) |
item = round(lQty * lUnitPrice - lBonus - lDiscount,2) |
861 |
#print "qty %d * unit_price %d - bonus %d - discount %d = %d " % (lQty, lUnitPrice, lBonus, lDiscount, lQty * lUnitPrice - lBonus - lDiscount) |
#print "qty %d * unit_price %d - bonus %d - discount %d = %d " % (lQty, lUnitPrice, lBonus, lDiscount, lQty * lUnitPrice - lBonus - lDiscount) |
862 |
itemTaxTotal = 0 |
itemTaxTotal = 0 |
863 |
currItem = productInvoiceResultSet.current.getField("own_item.id") |
currItem = productInvoiceResultSet.current.getField("own_item.id") |
864 |
while productInvoiceResultSet.current.getField("own_item.id") == currItem and more: |
while productInvoiceResultSet.current.getField("own_item.id") == currItem and more: |
865 |
itemTaxTotal += hack.a2f(productInvoiceResultSet.current.getField("own_item_tax.amount"),2) |
itemTaxTotal += hack.a2f(productInvoiceResultSet.current.getField("own_item_tax.amount"),4) |
866 |
more = productInvoiceResultSet.nextRecord() |
more = productInvoiceResultSet.nextRecord() |
867 |
invoiceTotal += round(item + itemTaxTotal,2) |
invoiceTotal += round(item + itemTaxTotal,2) |
868 |
# Calcula los impuestos del documento en si |
# Calcula los impuestos del documento en si |
869 |
odt_rs = ownDocumentTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
odt_rs = ownDocumentTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
870 |
odt_more = odt_rs.firstRecord() |
odt_more = odt_rs.firstRecord() |
871 |
while odt_more: |
while odt_more: |
872 |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount"),2) |
invoiceTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount"),4) |
873 |
odt_more = odt_rs.nextRecord() |
odt_more = odt_rs.nextRecord() |
874 |
spentTotal += invoiceTotal |
spentTotal += invoiceTotal |
875 |
|
|
882 |
creditNoteTotal = 0 |
creditNoteTotal = 0 |
883 |
currOwnDoc = productCreditNoteResultSet.current.getField("own_document.id") |
currOwnDoc = productCreditNoteResultSet.current.getField("own_document.id") |
884 |
while productCreditNoteResultSet.current.getField("own_document.id") == currOwnDoc and more: |
while productCreditNoteResultSet.current.getField("own_document.id") == currOwnDoc and more: |
885 |
lQty = hack.a2f(productCreditNoteResultSet.current.getField("own_product_item.qty"),2) |
lQty = hack.a2f(productCreditNoteResultSet.current.getField("own_product_item.qty"),4) |
886 |
lUnitPrice = hack.a2f(productCreditNoteResultSet.current.getField("own_product_item.unit_price"),2) |
lUnitPrice = hack.a2f(productCreditNoteResultSet.current.getField("own_product_item.unit_price"),4) |
887 |
lBonus = hack.a2f(productCreditNoteResultSet.current.getField("own_item.bonus"),2) |
lBonus = hack.a2f(productCreditNoteResultSet.current.getField("own_item.bonus"),4) |
888 |
lDiscount = hack.a2f(productCreditNoteResultSet.current.getField("own_item.discount"),2) |
lDiscount = hack.a2f(productCreditNoteResultSet.current.getField("own_item.discount"),4) |
889 |
item = round(lQty * lUnitPrice - lBonus - lDiscount,2) |
item = round(lQty * lUnitPrice - lBonus - lDiscount,2) |
890 |
#print "qty %d * unit_price %d - bonus %d - discount %d = %d " % (lQty, lUnitPrice, lBonus, lDiscount, lQty * lUnitPrice - lBonus - lDiscount) |
#print "qty %d * unit_price %d - bonus %d - discount %d = %d " % (lQty, lUnitPrice, lBonus, lDiscount, lQty * lUnitPrice - lBonus - lDiscount) |
891 |
itemTaxTotal = 0 |
itemTaxTotal = 0 |
892 |
currItem = productCreditNoteResultSet.current.getField("own_item.id") |
currItem = productCreditNoteResultSet.current.getField("own_item.id") |
893 |
while productCreditNoteResultSet.current.getField("own_item.id") == currItem and more: |
while productCreditNoteResultSet.current.getField("own_item.id") == currItem and more: |
894 |
itemTaxTotal += hack.a2f(productCreditNoteResultSet.current.getField("own_item_tax.amount"),2) |
itemTaxTotal += hack.a2f(productCreditNoteResultSet.current.getField("own_item_tax.amount"),4) |
895 |
more = productCreditNoteResultSet.nextRecord() |
more = productCreditNoteResultSet.nextRecord() |
896 |
creditNoteTotal += round(item + itemTaxTotal,2) |
creditNoteTotal += round(item + itemTaxTotal,2) |
897 |
# Calcula los impuestos del documento en si |
# Calcula los impuestos del documento en si |
898 |
odt_rs = ownDocumentTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
odt_rs = ownDocumentTaxTotDataSource.createResultSet({"own_document.id":currOwnDoc}) |
899 |
odt_more = odt_rs.firstRecord() |
odt_more = odt_rs.firstRecord() |
900 |
while odt_more: |
while odt_more: |
901 |
creditNoteTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount"),2) |
creditNoteTotal += hack.a2f(odt_rs.current.getField("own_document_tax.amount"),4) |
902 |
odt_more = odt_rs.nextRecord() |
odt_more = odt_rs.nextRecord() |
903 |
creditTotal += creditNoteTotal |
creditTotal += creditNoteTotal |
904 |
|
|
910 |
payTotal = 0 |
payTotal = 0 |
911 |
|
|
912 |
while more: |
while more: |
913 |
payTotal += hack.a2f(paidResultSet.current.getField("own_document_proceeding.amount"),2) |
payTotal += hack.a2f(paidResultSet.current.getField("own_document_proceeding.amount"),4) |
914 |
more = paidResultSet.nextRecord() |
more = paidResultSet.nextRecord() |
915 |
|
|
916 |
#print "invoiceTotal ", invoiceTotal |
#print "invoiceTotal ", invoiceTotal |
918 |
#print "payTotal ", payTotal |
#print "payTotal ", payTotal |
919 |
#print "creditTotal ", creditTotal |
#print "creditTotal ", creditTotal |
920 |
# Calculo del total adeudado |
# Calculo del total adeudado |
921 |
deudaTotal = round(spentTotal - payTotal - creditTotal - balance,2) |
deudaTotal = round(spentTotal - payTotal - creditTotal - balance,4) |
922 |
ownDocumentBlock.clientRecipientBox.deudaEntry = deudaTotal |
ownDocumentBlock.clientRecipientBox.deudaEntry = deudaTotal |
923 |
|
|
924 |
# ******** FALTA GRABAR EL BALANCE ************** |
# ******** FALTA GRABAR EL BALANCE ************** |
990 |
<!-- Fin de bloques destinados a la gestion del pago de la factura --> |
<!-- Fin de bloques destinados a la gestion del pago de la factura --> |
991 |
<block datasource="ownDocumentDataSource" name="ownDocumentBlock" restrictInsert=""> |
<block datasource="ownDocumentDataSource" name="ownDocumentBlock" restrictInsert=""> |
992 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
993 |
<entry field="net_total" hidden="" name="netTotalEntry" x="1" y="1"/> |
<!-- <entry field="net_total" hidden="" name="netTotalEntry" x="1" y="1"/> --> |
994 |
<entry field="tax_total" hidden="" name="taxTotalEntry" x="1" y="1"/> |
<!-- <entry field="tax_total" hidden="" name="taxTotalEntry" x="1" y="1"/> --> |
995 |
<entry field="due_date" hidden="" name="dueDateEntry" x="1" y="1"/> |
<entry field="due_date" hidden="" name="dueDateEntry" x="1" y="1"/> |
996 |
|
|
997 |
<label text="remitos corresp.:" x="1" y="7"/> |
<label text="remitos corresp.:" x="1" y="7"/> |
1035 |
width="10" style="textlookup" foreign_key="tlCreditLimit1DataSource._entity_data.id" |
width="10" style="textlookup" foreign_key="tlCreditLimit1DataSource._entity_data.id" |
1036 |
foreign_key_description="_credit_limit_data.credit_limit"/> |
foreign_key_description="_credit_limit_data.credit_limit"/> |
1037 |
|
|
1038 |
<label name="deudaLbl" text="| Deuda : " x="40" y="4"/> |
<label name="deudaLbl" text="| Deuda : " x="40" y="3"/> |
1039 |
<entry name="deudaEntry" style="label" x="52" y="4" width="12" typecast="number" displaymask="%0.2f"/> |
<entry name="deudaEntry" style="label" x="52" y="3" width="12" typecast="number" displaymask="%0.2f"/> |
1040 |
|
|
1041 |
</box> |
</box> |
1042 |
<entry field="date" name="dateEntry" style="label" hidden="" typecast="date" |
<entry field="date" name="dateEntry" style="label" hidden="" typecast="date" |
1258 |
ownItemBlock.prodNameSEntry = str(prodResultBlock.prodNameEntry) |
ownItemBlock.prodNameSEntry = str(prodResultBlock.prodNameEntry) |
1259 |
ownItemBlock.priceEntry = str(prodResultBlock.prodPriceEntry) |
ownItemBlock.priceEntry = str(prodResultBlock.prodPriceEntry) |
1260 |
|
|
1261 |
prodResultBlock.prodUnitPriceEntry = round(hack.a2f(prodResultBlock.prodUnitPriceEntry,2) * \ |
prodResultBlock.prodUnitPriceEntry = round(hack.a2f(prodResultBlock.prodUnitPriceEntry,4) * \ |
1262 |
hack.a2f(prodResultBlock.prodCurrencyRateEntry,2),2) |
hack.a2f(prodResultBlock.prodCurrencyRateEntry,4),4) |
1263 |
lItemPrice = round(hack.a2f(prodResultBlock.prodUnitPriceEntry,2)*hack.a2f(ownItemBlock.qtyEntry,2),2) |
lItemPrice = round(hack.a2f(prodResultBlock.prodUnitPriceEntry,4)*hack.a2f(ownItemBlock.qtyEntry,4),2) |
1264 |
ownItemBlock.taxAmountEntry = round((hack.a2f(prodResultBlock.prodIVATaxEntry,2)/100) * lItemPrice,2) |
ownItemBlock.taxAmountEntry = round((hack.a2f(prodResultBlock.prodIVATaxEntry,4)/100) * lItemPrice,4) |
1265 |
ownItemBlock.ivaEntry = hack.a2f(prodResultBlock.prodIVATaxEntry,2) |
ownItemBlock.ivaEntry = hack.a2f(prodResultBlock.prodIVATaxEntry,2) |
1266 |
ownItemBlock.unitPriceEntry = str(prodResultBlock.prodUnitPriceEntry) |
ownItemBlock.unitPriceEntry = str(prodResultBlock.prodUnitPriceEntry) |
1267 |
|
|
1291 |
<entry field="own_item.own_document" name="ownDocumentEntry" hidden="" x="1" y="1"/> |
<entry field="own_item.own_document" name="ownDocumentEntry" hidden="" x="1" y="1"/> |
1292 |
|
|
1293 |
<label name="qtyLbl" text="Cantidad" x="45" y="10"/> |
<label name="qtyLbl" text="Cantidad" x="45" y="10"/> |
1294 |
<entry field="own_product_item.qty" name="qtyEntry" rows="10" typecast="number" displaymask="%0.3f" width="11" x="45" y="11"> |
<entry field="own_product_item.qty" name="qtyEntry" rows="10" typecast="number" |
1295 |
|
displaymask="%0.4f" width="11" x="45" y="11"> |
1296 |
<trigger name="qtyEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger name="qtyEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1297 |
</entry> |
</entry> |
1298 |
|
|
1299 |
<label name="priceLbl" text="Precio" x="56" y="10"/> |
<label name="priceLbl" text="Precio" x="56" y="10"/> |
1300 |
<entry x="56" y="11" name="unitPriceEntry" field="own_product_item.unit_price" width="10" rows="10" typecast="number" displaymask="%0.2f"> |
<entry x="56" y="11" name="unitPriceEntry" field="own_product_item.unit_price" width="10" rows="10" |
1301 |
|
typecast="number" displaymask="%0.4f"> |
1302 |
<trigger name="unitPriceEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger name="unitPriceEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1303 |
</entry> |
</entry> |
1304 |
<entry x="1" y="14" readonly="" field="own_product_item.price" name="priceEntry" width="10" rows="5" hidden=""/> |
<entry x="1" y="14" readonly="" field="own_product_item.price" name="priceEntry" width="10" rows="5" hidden=""/> |
1305 |
<entry x="1" y="14" readonly="" field="own_item_tax.tax" name="taxTypeEntry" width="10" rows="5" default="1" hidden="" typecast="number" displaymask="%0.2f"/> |
<entry x="1" y="14" readonly="" field="own_item_tax.tax" name="taxTypeEntry" width="10" rows="5" default="1" hidden="" |
1306 |
<entry x="1" y="14" readonly="" field="own_item_tax.amount" name="taxAmountEntry" width="10" rows="5" hidden="" typecast="number" displaymask="%0.2f"/> |
typecast="number" displaymask="%0.2f"/> |
1307 |
|
<entry x="1" y="14" readonly="" field="own_item_tax.amount" name="taxAmountEntry" width="10" rows="5" hidden="" |
1308 |
|
typecast="number" displaymask="%0.2f"/> |
1309 |
|
|
1310 |
|
|
1311 |
<label name="ivaLbl" text="IVA" x="66" y="10"/> |
<label name="ivaLbl" text="IVA" x="66" y="10"/> |
1344 |
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" x="1" y="1" width="12"/> |
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" x="1" y="1" width="12"/> |
1345 |
</block> |
</block> |
1346 |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
<!-- Datasource que sirve para almacenar el resultado de la búsqueda --> |
1347 |
<block datasource="tmpValuesDataSource" name="totalBlock" restrictInsert=""> |
<block datasource="ownDocumentDataSource" name="totalBlock" restrictInsert=""> |
1348 |
<label text="Neto " x="55" y="21"/> |
<label text="Neto " x="55" y="21"/> |
1349 |
<entry name="netoEntry" style="label" readonly="" x="55" y="22" width="12" typecast="number" displaymask="%0.2f" |
<entry name="netoEntry" field="own_document.net_total" x="55" y="22" width="12" typecast="number" displaymask="%0.2f" |
1350 |
default="0.00"/> |
default="0.00"> |
1351 |
|
<trigger type="PRE-FOCUSOUT" src="recalcTotalTrigger"/> |
1352 |
|
</entry> |
1353 |
<label text="IVA " x="66" y="21"/> |
<label text="IVA " x="66" y="21"/> |
1354 |
<entry name="ivaEntry" style="label" readonly="" x="66" y="22" width="12" typecast="number" displaymask="%0.2f" |
<entry name="ivaEntry" field="own_document.tax_total" x="66" y="22" width="12" typecast="number" displaymask="%0.2f" |
1355 |
default="0.00"/> |
default="0.00"> |
1356 |
|
<trigger type="PRE-FOCUSOUT" src="recalcTotalTrigger"/> |
1357 |
|
</entry> |
1358 |
<label text="Total " x="82" y="21"/> |
<label text="Total " x="82" y="21"/> |
1359 |
<entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f" default="0.00"/> |
<entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f" |
1360 |
|
default="0.00"/> |
1361 |
<label text="emitir remito" x="38" y="22" /> |
<label text="emitir remito" x="38" y="22" /> |
1362 |
<entry name="printDespatchNote" x="51" y="22" style="checkbox"> |
<entry name="printDespatchNote" x="51" y="22" style="checkbox"> |
1363 |
<trigger type="PRE-FOCUSOUT" src="alertOfDespatchNoteTrigger"/> |
<trigger type="PRE-FOCUSOUT" src="alertOfDespatchNoteTrigger"/> |
1422 |
<entry name="nameEntry" field="name" style="label" rows="6" |
<entry name="nameEntry" field="name" style="label" rows="6" |
1423 |
x="1" y="2" width="6" readonly=""/> |
x="1" y="2" width="6" readonly=""/> |
1424 |
<entry name="rateEntry" field="rate" style="label" rows="6" typecast="number" |
<entry name="rateEntry" field="rate" style="label" rows="6" typecast="number" |
1425 |
displaymask="%4.2f" x="10" y="2" width="10" readonly=""/> |
displaymask="%0.4f" x="10" y="2" width="10" readonly=""/> |
1426 |
<entry name="amountEntry" field="amount" style="label" rows="6" |
<entry name="amountEntry" field="amount" style="label" rows="6" |
1427 |
x="21" y="2" width="20" readonly=""/> |
x="21" y="2" width="20" readonly=""/> |
1428 |
<entry name="payEntry" field="pay" rows="6" x="38" y="2" width="20" |
<entry name="payEntry" field="pay" rows="6" x="38" y="2" width="20" |
1429 |
typecast="number" displaymask="%10.2f"> |
typecast="number" displaymask="%0.4f"> |
1430 |
<trigger type="PRE-FOCUSOUT" src="currencyTypeTrigger"/> |
<trigger type="PRE-FOCUSOUT" src="currencyTypeTrigger"/> |
1431 |
</entry> |
</entry> |
1432 |
<scrollbar page="6" x="68" y="2" width="1" height="6"/> |
<scrollbar page="6" x="68" y="2" width="1" height="6"/> |