1 |
<neb:Vars> |
<neb:Vars> |
2 |
$document_name => '' |
$document_name => '' |
3 |
|
$document => '' |
4 |
|
#invoice tax expenses credit_note |
5 |
|
$alien_entity_name => 'Proveedor' |
6 |
|
#proveedor fisco |
7 |
|
$alien_entity_table => 'provider' |
8 |
|
#provider fisco |
9 |
|
$alien_entity_type => '8' |
10 |
|
$tax_document => '' |
11 |
$document_type_A => '' |
$document_type_A => '' |
12 |
$document_type_B => '' |
$document_type_B => '' |
13 |
$document_type_C => '' |
$document_type_C => '' |
14 |
|
$itemizable_sys_account => '' |
15 |
$stock_alta => '' |
$stock_alta => '' |
16 |
$stock_borrado => '' |
$stock_borrado => '' |
17 |
</neb:Vars> |
</neb:Vars> |
18 |
|
<neb:Vars> |
19 |
<neb:Inline>$document_type_A</neb:Inline> |
$title => $document_name.'de Proveedor' |
20 |
<neb:Inline>$document_type_B</neb:Inline> |
$transport => '1' |
21 |
<neb:Inline>$document_type_C</neb:Inline> |
$bundles => '1' |
22 |
|
$dto => '1' |
23 |
|
$ctacte => '1' |
24 |
|
</neb:Vars> |
25 |
|
|
26 |
<datasource name="nil" cache="1"/> |
<datasource name="nil" cache="1"/> |
27 |
<datasource name="payDataSource" cache="1"/> |
<datasource name="payDataSource" cache="1"/> |
175 |
</condition> |
</condition> |
176 |
</datasource> |
</datasource> |
177 |
|
|
178 |
<datasource name="providerSearchDataSource" database="papo" |
<!-- if provider --> |
179 |
table="_entity_data, _alien_entity_data, _persona_data, _persona_tax_profile_data, _tax_profile_data, |
<datasource name="neb:$alien_entity_table.'SearchDataSource'" database="papo" |
180 |
_provider_data, entity_type_uid_conf, |
table="neb:($alien_entity_table eq 'provider')?'_entity_data, |
181 |
_entity_uid_data" order_by="_entity_data.name"> |
_alien_entity_data, |
182 |
|
_persona_data, |
183 |
|
_persona_tax_profile_data, |
184 |
|
_tax_profile_data, |
185 |
|
_'.$alien_entity_table.'_data, |
186 |
|
entity_type_uid_conf, |
187 |
|
_entity_uid_data':' _entity_data, |
188 |
|
_alien_entity_data, |
189 |
|
_persona_data, |
190 |
|
_'.$alien_entity_table.'_data, |
191 |
|
entity_type_uid_conf, |
192 |
|
_entity_uid_data'" |
193 |
|
order_by="_entity_data.name"> |
194 |
<condition> |
<condition> |
195 |
<and> |
<and> |
196 |
<eq> |
<eq> |
203 |
</eq> |
</eq> |
204 |
<eq> |
<eq> |
205 |
<cfield name="_persona_data._table"/> |
<cfield name="_persona_data._table"/> |
206 |
<cfield name="_provider_data.persona"/> |
<cfield name="neb:'_'.$alien_entity_table.'_data.persona'"/> |
207 |
</eq> |
</eq> |
208 |
<eq> |
<eq> |
209 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
210 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
211 |
</eq> |
</eq> |
212 |
|
<neb:Block> if ($alien_entity_table eq "provider") {</neb:Block> |
213 |
<eq> |
<eq> |
214 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data._table"/> |
215 |
<cfield name="_persona_tax_profile_data.persona"/> |
<cfield name="_persona_tax_profile_data.persona"/> |
222 |
<cconst value="1"/> <!-- Corresponde al tipo de impuesto IVA --> |
<cconst value="1"/> <!-- Corresponde al tipo de impuesto IVA --> |
223 |
<cfield name="_tax_profile_data.tax"/> |
<cfield name="_tax_profile_data.tax"/> |
224 |
</eq> |
</eq> |
225 |
|
<null> |
226 |
|
<cfield name="_tax_profile_data._end_t"/> |
227 |
|
</null> |
228 |
|
<null> |
229 |
|
<cfield name="_persona_tax_profile_data._end_t"/> |
230 |
|
</null> |
231 |
|
<neb:Block> }</neb:Block> |
232 |
<eq> |
<eq> |
233 |
<cconst value="8"/> |
<cconst value="neb:$alien_entity_type"/> |
234 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
235 |
</eq> |
</eq> |
236 |
<eq> |
<eq> |
247 |
<cfield name="_persona_data._end_t"/> |
<cfield name="_persona_data._end_t"/> |
248 |
</null> |
</null> |
249 |
<null> |
<null> |
250 |
<cfield name="_provider_data._end_t"/> |
<cfield name="neb:'_'.$alien_entity_table.'_data._end_t'"/> |
251 |
</null> |
</null> |
252 |
<null> |
<null> |
253 |
<cfield name="_entity_uid_data._end_t"/> |
<cfield name="_entity_uid_data._end_t"/> |
254 |
</null> |
</null> |
255 |
<null> |
|
|
<cfield name="_tax_profile_data._end_t"/> |
|
|
</null> |
|
|
<null> |
|
|
<cfield name="_persona_tax_profile_data._end_t"/> |
|
|
</null> |
|
256 |
</and> |
</and> |
257 |
</condition> |
</condition> |
258 |
</datasource> |
</datasource> |
259 |
|
|
260 |
<datasource name="providerUIDDataSource" database="papo" |
<datasource name="neb:$alien_entity_table.'UIDDataSource'" database="papo" |
261 |
table="_entity_data, entity_type_uid_conf, _entity_uid_data" cache="1"> |
table="_entity_data, entity_type_uid_conf, _entity_uid_data" cache="1"> |
262 |
<condition> |
<condition> |
263 |
<and> |
<and> |
266 |
<cfield name="_entity_uid_data.entity"/> |
<cfield name="_entity_uid_data.entity"/> |
267 |
</eq> |
</eq> |
268 |
<eq> |
<eq> |
269 |
<cconst value="8"/> |
<cconst value="neb:$alien_entity_type"/> |
270 |
<cfield name="entity_type_uid_conf.entity_type"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
271 |
</eq> |
</eq> |
272 |
<eq> |
<eq> |
283 |
</condition> |
</condition> |
284 |
</datasource> |
</datasource> |
285 |
|
|
286 |
<datasource name="providerNameDataSource" database="papo" |
<datasource name="neb:$alien_entity_table.'NameDataSource'" database="papo" |
287 |
table="_entity_data"> |
table="_entity_data"> |
288 |
<conditions> |
<conditions> |
289 |
<null> |
<null> |
380 |
datasource usado para la búsqueda |
datasource usado para la búsqueda |
381 |
--> |
--> |
382 |
<datasource name="productSearchDataSource" database="papo" |
<datasource name="productSearchDataSource" database="papo" |
383 |
table=" _product_data, _product_code_data, _product_tax_data" |
table="neb:($alien_entity_table eq 'provider')?'_product_data, _product_code_data, _product_tax_data':'_product_data, _product_code_data'" |
384 |
cache="15" order_by="_product_data.canonical_name"> |
cache="15" order_by="_product_data.canonical_name"> |
385 |
<condition> |
<condition> |
386 |
<and> |
<and> |
387 |
<null> |
<null> |
388 |
<cfield name="_product_data._end_t"/> |
<cfield name="_product_data._end_t"/> |
389 |
</null> |
</null> |
390 |
<!-- pega product con product_code --> |
<!-- pega product con product_code --> |
391 |
<eq> |
<eq> |
392 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
393 |
<cfield name="_product_code_data.product"/> |
<cfield name="_product_code_data.product"/> |
394 |
</eq> |
</eq> |
395 |
<!-- solamente códigos internos (id 1) --> |
<!-- solamente códigos internos (id 1) --> |
396 |
<eq> |
<eq> |
397 |
<cfield name="_product_code_data.product_code_type"/> |
<cfield name="_product_code_data.product_code_type"/> |
398 |
<cconst value="1"/> |
<cconst value="1"/> |
399 |
</eq> |
</eq> |
400 |
<!-- descarta códigos de producto muertos --> |
<!-- descarta códigos de producto muertos --> |
401 |
<null> |
<null> |
402 |
<cfield name="_product_code_data._end_t"/> |
<cfield name="_product_code_data._end_t"/> |
403 |
</null> |
</null> |
404 |
<!-- pega product con product_tax --> |
<neb:Block> if ($document ne "tax") {</neb:Block> |
405 |
<eq> |
<!-- pega product con product_tax --> |
406 |
<cfield name="_product_data._table"/> |
<eq> |
407 |
<cfield name="_product_tax_data.product"/> |
<cfield name="_product_data._table"/> |
408 |
</eq> |
<cfield name="_product_tax_data.product"/> |
409 |
<!-- descarta product_taxes muertos --> |
</eq> |
410 |
<null> |
<!-- descarta product_taxes muertos --> |
411 |
<cfield name="_product_tax_data._end_t"/> |
<null> |
412 |
</null> |
<cfield name="_product_tax_data._end_t"/> |
413 |
<!-- solamente 'IVA' (id 1) --> |
</null> |
414 |
|
<!-- solamente 'IVA' (id 1) --> |
415 |
<eq> |
<eq> |
416 |
<cfield name="_product_tax_data.tax"/> |
<cfield name="_product_tax_data.tax"/> |
417 |
<cconst value="1"/> |
<cconst value="1"/> |
418 |
</eq> |
</eq> |
419 |
</and> |
<neb:Block>}</neb:Block> |
420 |
</condition> |
<!-- los que tienen cuenta contable correspondiente a la |
421 |
|
naturaleza del documento--> |
422 |
|
<eq> |
423 |
|
<cfield name="_product_data.account_plan"/> |
424 |
|
<cfield name="_account_plan_data._table"/> |
425 |
|
</eq> |
426 |
|
<like> |
427 |
|
<cfield name="_account_plan_data.code"/> |
428 |
|
<cfield name="_sys_account2account_plan_data.code"/> |
429 |
|
</like> |
430 |
|
<eq> |
431 |
|
<cfield name="_sys_account2account_plan_data.id"/> |
432 |
|
<cconst value="neb:$itemizable_sys_account"/> |
433 |
|
</eq> |
434 |
|
<null> |
435 |
|
<cfield name="_sys_account2account_plan_data._end_t"/> |
436 |
|
</null> |
437 |
|
</and> |
438 |
|
</condition> |
439 |
</datasource> |
</datasource> |
440 |
|
|
|
<datasource name="productUIDDataSource" database="papo" |
|
|
table=" _product_data, _product_code_data, _product_tax_data" |
|
|
cache="15" order_by="_product_data.canonical_name"> |
|
|
<condition> |
|
|
<and> |
|
|
<!-- pega product con product_code --> |
|
|
<eq> |
|
|
<cfield name="_product_data._table"/> |
|
|
<cfield name="_product_code_data.product"/> |
|
|
</eq> |
|
|
<!-- solamente códigos internos (id 1) --> |
|
|
<eq> |
|
|
<cfield name="_product_code_data.product_code_type"/> |
|
|
<cconst value="1"/> |
|
|
</eq> |
|
|
<!-- pega product con product_tax --> |
|
|
<eq> |
|
|
<cfield name="_product_data._table"/> |
|
|
<cfield name="_product_tax_data.product"/> |
|
|
</eq> |
|
|
<!-- descarta product_taxes muertos --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_product_tax_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- Revisar porque tiene que paremetrizar por fecha --> |
|
|
<!-- solamente 'IVA' (id 1) --> |
|
|
<eq> |
|
|
<cfield name="_product_tax_data.tax"/> |
|
|
<cconst value="1"/> |
|
|
</eq> |
|
|
</and> |
|
|
</condition> |
|
|
</datasource> |
|
441 |
|
|
442 |
<datasource name="productNameDataSource" database="papo" |
<datasource name="productNameDataSource" database="papo" |
443 |
table=" _product_data, _product_code_data, _product_tax_data" |
table=" _product_data, _product_code_data" |
444 |
cache="15" order_by="_product_data.canonical_name"> |
cache="15" order_by="_product_data.canonical_name"> |
445 |
<condition> |
<condition> |
446 |
<and> |
<and> |
455 |
<cconst value="1"/> |
<cconst value="1"/> |
456 |
</eq> |
</eq> |
457 |
<!-- pega product con product_tax --> |
<!-- pega product con product_tax --> |
|
<eq> |
|
|
<cfield name="_product_data._table"/> |
|
|
<cfield name="_product_tax_data.product"/> |
|
|
</eq> |
|
|
<!-- descarta product_taxes muertos --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_product_tax_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- Revisar porque tiene que paremetrizar por fecha --> |
|
|
<!-- solamente 'IVA' (id 1) --> |
|
|
<eq> |
|
|
<cfield name="_product_tax_data.tax"/> |
|
|
<cconst value="1"/> |
|
|
</eq> |
|
458 |
</and> |
</and> |
459 |
</condition> |
</condition> |
460 |
</datasource> |
</datasource> |
469 |
<cfield name="_product_data._table"/> |
<cfield name="_product_data._table"/> |
470 |
<cfield name="_product_tax_data.product"/> |
<cfield name="_product_tax_data.product"/> |
471 |
</eq> |
</eq> |
|
<!-- <or> --> |
|
|
<!-- find the client state in that time --> |
|
|
<!-- <between> --> |
|
|
<!-- <cparam name="invoiceDate"/> --> |
|
|
<!-- <cfield name="_product_tax_data._start_t"/> --> |
|
|
<!-- <cfield name="_product_tax_data._end_t"/> --> |
|
|
<!-- </between> --> |
|
|
<!-- or is it the current one? --> |
|
|
<!-- <and> --> |
|
|
<!-- <ge> --> |
|
|
<!-- <cparam name="invoiceDate"/> --> |
|
|
<!-- <cfield name="_product_tax_data._start_t"/> --> |
|
|
<!-- </ge> --> |
|
|
<!-- <null> --> |
|
|
<!-- <cfield name="_product_tax_data._end_t"/> --> |
|
|
<!-- </null> --> |
|
|
<!-- </and> --> |
|
|
<!-- </or> --> |
|
|
<!-- solamente 'IVA' (id 1) --> |
|
472 |
<eq> |
<eq> |
473 |
<cfield name="_product_tax_data.tax"/> |
<cfield name="_product_tax_data.tax"/> |
474 |
<cconst value="1"/> |
<cconst value="1"/> |
521 |
</joinconditions> |
</joinconditions> |
522 |
<condition> |
<condition> |
523 |
<and> |
<and> |
524 |
|
<eq> |
525 |
|
<cfield name="alien_document.alien_document_type"/> |
526 |
|
<cconst value="neb:$document_type_A"/> |
527 |
|
</eq> |
528 |
<or> |
<or> |
529 |
<eq> |
<eq> |
530 |
<cfield name="alien_document.alien_document_type"/> |
<cfield name="alien_document.alien_document_type"/> |
677 |
</condition> |
</condition> |
678 |
</datasource> |
</datasource> |
679 |
|
|
680 |
|
<!-- ver que pasa con tax --> |
681 |
<datasource database="papo" detaillink="alien_item.alien_document" |
<datasource database="papo" detaillink="alien_item.alien_document" |
682 |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
683 |
table="alien_item, alien_product_item, alien_item_tax"> |
table="neb:($document eq 'tax')?'alien_item, alien_product_item':'alien_item, alien_product_item, alien_item_tax'"> |
684 |
<condition> |
<condition> |
685 |
<and> |
<and> |
686 |
<eq> |
<eq> |
687 |
<cfield name="alien_item.id"/> |
<cfield name="alien_item.id"/> |
688 |
<cfield name="alien_product_item.alien_item"/> |
<cfield name="alien_product_item.alien_item"/> |
689 |
</eq> |
</eq> |
690 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
691 |
<eq> |
<eq> |
692 |
<cfield name="alien_item.id"/> |
<cfield name="alien_item.id"/> |
693 |
<cfield name="alien_item_tax.alien_item"/> |
<cfield name="alien_item_tax.alien_item"/> |
696 |
<cfield name="alien_item_tax.tax"/> |
<cfield name="alien_item_tax.tax"/> |
697 |
<cconst value="1"/> |
<cconst value="1"/> |
698 |
</eq> |
</eq> |
699 |
|
<neb:Block>}</neb:Block> |
700 |
</and> |
</and> |
701 |
</condition> |
</condition> |
702 |
</datasource> |
</datasource> |
703 |
|
|
704 |
<datasource database="papo" name="alienItemShowDataSource" |
<datasource database="papo" name="alienItemShowDataSource" |
705 |
table="alien_item, alien_product_item, alien_item_tax"> |
table="neb:($document eq 'tax')?'alien_item, alien_product_item':'alien_item, alien_product_item, alien_item_tax'"> |
706 |
<condition> |
<condition> |
707 |
<and> |
<and> |
708 |
<eq> |
<eq> |
709 |
<cfield name="alien_item.id"/> |
<cfield name="alien_item.id"/> |
710 |
<cfield name="alien_product_item.alien_item"/> |
<cfield name="alien_product_item.alien_item"/> |
711 |
</eq> |
</eq> |
712 |
<eq> |
<neb:Block> if ($document ne "tax") {</neb:Block> |
713 |
<cfield name="alien_item.id"/> |
<eq> |
714 |
<cfield name="alien_item_tax.alien_item"/> |
<cfield name="alien_item.id"/> |
715 |
</eq> |
<cfield name="alien_item_tax.alien_item"/> |
716 |
<eq> |
</eq> |
717 |
<cfield name="alien_item_tax.tax"/> |
<eq> |
718 |
<cconst value="1"/> |
<cfield name="alien_item_tax.tax"/> |
719 |
</eq> |
<cconst value="1"/> |
720 |
|
</eq> |
721 |
|
<neb:Block>}</neb:Block> |
722 |
</and> |
</and> |
723 |
</condition> |
</condition> |
724 |
</datasource> |
</datasource> |
901 |
genericBox("Falta el número del comprobante",["Aceptar"]) |
genericBox("Falta el número del comprobante",["Aceptar"]) |
902 |
elif not str(alienDocumentBlock.dateEntry): |
elif not str(alienDocumentBlock.dateEntry): |
903 |
genericBox("Falta la fecha del comprobante",["Aceptar"]) |
genericBox("Falta la fecha del comprobante",["Aceptar"]) |
904 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
905 |
elif not str(alienDocumentBlock.invoiceTypeEntry): |
elif not str(alienDocumentBlock.invoiceTypeEntry): |
906 |
genericBox("Falta el tipo del comprobante",["Aceptar"]) |
genericBox("Falta el tipo del comprobante",["Aceptar"]) |
907 |
|
<neb:Block>}</neb:Block> |
908 |
else: |
else: |
909 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
910 |
try: |
try: |
911 |
import hack |
import hack |
912 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
913 |
alienIvaTaxBlock.alienIvaTaxAmountEntry = hack.a2f(alienDocumentBlock.ivaTotalEntry,2) |
alienIvaTaxBlock.alienIvaTaxAmountEntry = hack.a2f(alienDocumentBlock.ivaTotalEntry,2) |
914 |
alienIvaTaxBlock.alienIvaTaxedAmountEntry = hack.a2f(alienDocumentBlock.netTotalEntry,2) |
alienIvaTaxBlock.alienIvaTaxedAmountEntry = hack.a2f(alienDocumentBlock.netTotalEntry,2) |
915 |
|
<neb:Block>}else{</neb:Block> |
916 |
|
#tipo de impuestos(el cargado en a) |
917 |
|
alienDocumentBlock.typeEntry = <neb:Inline>'"'.$document_type_A.'"'</neb:Inline> |
918 |
|
<neb:Block>}</neb:Block> |
919 |
postChangeAdvance = 0 |
postChangeAdvance = 0 |
920 |
alienDocumentBlock.ownEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
alienDocumentBlock.ownEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
921 |
alienDocumentBlock.postChanges() |
alienDocumentBlock.postChanges() |
922 |
|
|
923 |
|
|
924 |
postChangeAdvance = 1 |
postChangeAdvance = 1 |
925 |
proceedingBlock.clear() |
proceedingBlock.clear() |
926 |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp() |
945 |
postChangeAdvance = 4 |
postChangeAdvance = 4 |
946 |
|
|
947 |
tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry) |
tmpValuesDataSource.idEntry = str(alienDocumentBlock.idEntry) |
948 |
|
<neb:Block> if ($stock_alta) {</neb:Block> |
949 |
callTrigger('<neb:Inline>$stock_alta</neb:Inline>') |
callTrigger('<neb:Inline>$stock_alta</neb:Inline>') |
950 |
|
<neb:Block>} </neb:Block> |
|
|
|
951 |
commitConnection() |
commitConnection() |
952 |
callTrigger('rollbackTrigger') |
callTrigger('rollbackTrigger') |
953 |
except DBError, err: |
except DBError, err: |
1000 |
currencyMovementBlock.postChanges() |
currencyMovementBlock.postChanges() |
1001 |
|
|
1002 |
tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry) |
tmpValuesDataSource.idEntry = str(alienDocumentShowBlock.idEntry) |
1003 |
callTrigger('<neb:Inline>$stock_alta</neb:Inline>') |
<neb:Block> if ($stock_borrado) {</neb:Block> |
1004 |
|
callTrigger('<neb:Inline>$stock_borrado</neb:Inline>') |
1005 |
|
<neb:Block>}</neb:Block> |
1006 |
|
|
1007 |
lRecordCount = alienItemShowBlock.getRecordCount() |
lRecordCount = alienItemShowBlock.getRecordCount() |
1008 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
1009 |
alienItemShowBlock.jumpRecord(recNum) |
alienItemShowBlock.jumpRecord(recNum) |
1010 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1011 |
alienItemTaxShowBlock.initQuery() |
alienItemTaxShowBlock.initQuery() |
1012 |
alienItemTaxShowBlock.alienItemEntry = str(alienItemShowBlock.idEntry) |
alienItemTaxShowBlock.alienItemEntry = str(alienItemShowBlock.idEntry) |
1013 |
alienItemTaxShowBlock.processQuery() |
alienItemTaxShowBlock.processQuery() |
1016 |
alienItemTaxShowBlock.jumpRecord(taxRecNum) |
alienItemTaxShowBlock.jumpRecord(taxRecNum) |
1017 |
alienItemTaxShowBlock.deleteRecord() |
alienItemTaxShowBlock.deleteRecord() |
1018 |
alienItemTaxShowBlock.postChanges() |
alienItemTaxShowBlock.postChanges() |
1019 |
|
<neb:Block>}</neb:Block> |
1020 |
alienItemDeleteBlock.initQuery() |
alienItemDeleteBlock.initQuery() |
1021 |
alienItemDeleteBlock.idEntry = str(alienItemShowBlock.idEntry) |
alienItemDeleteBlock.idEntry = str(alienItemShowBlock.idEntry) |
1022 |
alienItemDeleteBlock.processQuery() |
alienItemDeleteBlock.processQuery() |
1026 |
alienItemShowBlock.clear() |
alienItemShowBlock.clear() |
1027 |
|
|
1028 |
postChangeAdvance = 4 |
postChangeAdvance = 4 |
1029 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1030 |
alienDocumentTaxShowBlock.initQuery() |
alienDocumentTaxShowBlock.initQuery() |
1031 |
# ese "%" es mono con escopeta !!!!!!!!! |
# ese "%" es mono con escopeta !!!!!!!!! |
1032 |
#alienDocumentTaxShowBlock.alienDocumentEntry = tmpValuesDataSource.idEntry+"%" |
#alienDocumentTaxShowBlock.alienDocumentEntry = tmpValuesDataSource.idEntry+"%" |
1038 |
alienDocumentTaxShowBlock.jumpRecord(recNum) |
alienDocumentTaxShowBlock.jumpRecord(recNum) |
1039 |
alienDocumentTaxShowBlock.deleteRecord() |
alienDocumentTaxShowBlock.deleteRecord() |
1040 |
alienDocumentTaxShowBlock.postChanges() |
alienDocumentTaxShowBlock.postChanges() |
1041 |
|
<neb:Block>}</neb:Block> |
1042 |
postChangeAdvance = 5 |
postChangeAdvance = 5 |
1043 |
alienDocumentShowBlock.deleteRecord() |
alienDocumentShowBlock.deleteRecord() |
1044 |
alienDocumentShowBlock.postChanges() |
alienDocumentShowBlock.postChanges() |
1053 |
|
|
1054 |
|
|
1055 |
totalShowBlock.clear() |
totalShowBlock.clear() |
1056 |
|
resultBlock.clear() |
1057 |
</trigger> |
</trigger> |
1058 |
|
|
1059 |
<trigger name="quitTrigger" type="NAMED"> |
<trigger name="quitTrigger" type="NAMED"> |
1083 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1084 |
for index in range(recordCount): |
for index in range(recordCount): |
1085 |
alienItemShowBlock.jumpRecord(index) |
alienItemShowBlock.jumpRecord(index) |
1086 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1087 |
try: |
try: |
1088 |
alienItemShowBlock.taxPercentEntry = hack.a2f(alienItemShowBlock.taxAmountEntry,2) / \ |
alienItemShowBlock.taxPercentEntry = hack.a2f(alienItemShowBlock.taxAmountEntry,2) / \ |
1089 |
hack.a2f(alienItemShowBlock.unitPriceEntry,2) / \ |
hack.a2f(alienItemShowBlock.unitPriceEntry,2) / \ |
1090 |
hack.a2f(alienItemShowBlock.qtyEntry,2) * 100 |
hack.a2f(alienItemShowBlock.qtyEntry,2) * 100 |
1091 |
except: |
except: |
1092 |
pass |
pass |
1093 |
|
<neb:Block>}</neb:Block> |
1094 |
alienItemShowBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1095 |
|
|
1096 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1097 |
#sumo otros impuestos |
#sumo otros impuestos |
1098 |
dTTax = 0.0 |
dTTax = 0.0 |
1099 |
lRecords = alienOtherTaxShowDataSource.getRecords() |
lRecords = alienOtherTaxShowDataSource.getRecords() |
1103 |
otherTaxShowTotalBlock.otherTaxTotalEntry = dTTax |
otherTaxShowTotalBlock.otherTaxTotalEntry = dTTax |
1104 |
totalShowBlock.totalEntry = hack.a2f(totalShowBlock.netoEntry,2) + \ |
totalShowBlock.totalEntry = hack.a2f(totalShowBlock.netoEntry,2) + \ |
1105 |
hack.a2f(ivaTotalShowBlock.ivaEntry,2)+hack.a2f(otherTaxShowTotalBlock.otherTaxTotalEntry,2) |
hack.a2f(ivaTotalShowBlock.ivaEntry,2)+hack.a2f(otherTaxShowTotalBlock.otherTaxTotalEntry,2) |
1106 |
|
<neb:Block>}else{</neb:Block> |
1107 |
|
totalShowBlock.totalEntry = hack.a2f(totalShowBlock.netoEntry,2) |
1108 |
|
<neb:Block>}</neb:Block> |
1109 |
|
|
1110 |
|
|
1111 |
|
|
1124 |
|
|
1125 |
<trigger name="totalCalcTrigger" type="NAMED"> |
<trigger name="totalCalcTrigger" type="NAMED"> |
1126 |
import hack |
import hack |
1127 |
|
print "total calc trigger" |
1128 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1129 |
lQty = hack.a2f(alienItemBlock.qtyEntry,4) |
lQty = hack.a2f(alienItemBlock.qtyEntry,4) |
1130 |
lBonus = hack.a2f(alienItemBlock.bonusEntry,4) |
lBonus = hack.a2f(alienItemBlock.bonusEntry,4) |
1131 |
lDiscount = hack.a2f(alienItemBlock.discountEntry,4) |
lDiscount = hack.a2f(alienItemBlock.discountEntry,4) |
1132 |
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4) |
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4) |
1133 |
|
|
1134 |
lItemPrice = round(((lQty * lUnitPrice) - lBonus - lDiscount) * (1 - hack.a2f(alienDocumentBlock.discountPercentEntry,4)/100),2) |
lItemPrice = round(((lQty * lUnitPrice) - lBonus - lDiscount) * (1 - hack.a2f(alienDocumentBlock.discountPercentEntry,4)/100),2) |
1135 |
|
|
1136 |
alienItemBlock.itemNetoEntry = lItemPrice |
alienItemBlock.itemNetoEntry = lItemPrice |
1193 |
#totalBlock.totalEntry = str(sum) |
#totalBlock.totalEntry = str(sum) |
1194 |
#payBlock.cashEntry = str(sum) |
#payBlock.cashEntry = str(sum) |
1195 |
payBlock.ctaCteEntry = "0.00" |
payBlock.ctaCteEntry = "0.00" |
1196 |
|
<neb:Block>} else {</neb:Block> |
1197 |
|
|
1198 |
|
lQty = hack.a2f(alienItemBlock.qtyEntry,4) |
1199 |
|
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry,4) |
1200 |
|
lItemPrice = round((lQty * lUnitPrice),2) |
1201 |
|
alienItemBlock.itemNetoEntry = lItemPrice |
1202 |
|
alienItemBlock.itemTotalEntry = lItemPrice |
1203 |
|
sum = 0 |
1204 |
|
lTNeto = 0 |
1205 |
|
lRecords = alienItemDataSource.getRecords() |
1206 |
|
for index in range(len(lRecords)): |
1207 |
|
lRecord = lRecords[index] |
1208 |
|
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price"),4) |
1209 |
|
lQty = hack.a2f(lRecord.getField("alien_product_item.qty"),4) |
1210 |
|
lItemPrice = round((lQty * lUnitPrice),2) |
1211 |
|
lTNeto += round(lItemPrice,2) |
1212 |
|
alienDocumentBlock.totalEntry = lTNeto |
1213 |
|
payBlock.cashEntry = lTNeto |
1214 |
|
alienDocumentBlock.netTotalEntry = round(lTNeto,2) |
1215 |
|
<neb:Block>}</neb:Block> |
1216 |
</trigger> |
</trigger> |
1217 |
|
|
1218 |
<trigger name="newSearchTrigger" type="NAMED"> |
<trigger name="newSearchTrigger" type="NAMED"> |
1232 |
like = GConditions.GClike(tmpAnd) |
like = GConditions.GClike(tmpAnd) |
1233 |
GConditions.GCField(like,"provider._table") |
GConditions.GCField(like,"provider._table") |
1234 |
GConditions.GCConst(like,str(alienDocumentSearchBlock.providerSEntry)) |
GConditions.GCConst(like,str(alienDocumentSearchBlock.providerSEntry)) |
1235 |
|
<neb:Block> if ($transport ne "") {</neb:Block> |
1236 |
if hack.emptyEntry(alienDocumentSearchBlock.transportSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.transportSEntry): |
1237 |
like1 = GConditions.GClike(tmpAnd) |
like1 = GConditions.GClike(tmpAnd) |
1238 |
GConditions.GCField(like1,"transport._table") |
GConditions.GCField(like1,"transport._table") |
1239 |
GConditions.GCConst(like1,str(alienDocumentSearchBlock.transportSEntry)) |
GConditions.GCConst(like1,str(alienDocumentSearchBlock.transportSEntry)) |
1240 |
|
<neb:Block>}</neb:Block> |
1241 |
if hack.emptyEntry(alienDocumentSearchBlock.numberSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.numberSEntry): |
1242 |
like2 = GConditions.GClike(tmpAnd) |
like2 = GConditions.GClike(tmpAnd) |
1243 |
GConditions.GCField(like2,"number") |
GConditions.GCField(like2,"number") |
1248 |
GConditions.GCField(like3,"guide_number") |
GConditions.GCField(like3,"guide_number") |
1249 |
GConditions.GCConst(like3,str(alienDocumentSearchBlock.guideNumerSEntry)+" %") |
GConditions.GCConst(like3,str(alienDocumentSearchBlock.guideNumerSEntry)+" %") |
1250 |
|
|
1251 |
|
<neb:Block> if ($bundles) {</neb:Block> |
1252 |
if hack.emptyEntry(alienDocumentSearchBlock.bundlesSEntry): |
if hack.emptyEntry(alienDocumentSearchBlock.bundlesSEntry): |
1253 |
like4 = GConditions.GClike(tmpAnd) |
like4 = GConditions.GClike(tmpAnd) |
1254 |
GConditions.GCField(like4,"bundles") |
GConditions.GCField(like4,"bundles") |
1255 |
GConditions.GCConst(like4,str(alienDocumentSearchBlock.bundlesSEntry)) |
GConditions.GCConst(like4,str(alienDocumentSearchBlock.bundlesSEntry)) |
1256 |
|
<neb:Block>}</neb:Block> |
1257 |
|
|
1258 |
if alienDocumentSearchBlock.dateSEntry and str(alienDocumentSearchBlock.dateSEntry): |
if alienDocumentSearchBlock.dateSEntry and str(alienDocumentSearchBlock.dateSEntry): |
1259 |
endTime = hack.addNDaysToDate(alienDocumentSearchBlock.dateSEntry) |
endTime = hack.addNDaysToDate(alienDocumentSearchBlock.dateSEntry) |
1260 |
|
|
1269 |
resultAlienDocumentDataSource.createResultSet(searchCond) |
resultAlienDocumentDataSource.createResultSet(searchCond) |
1270 |
except GConditions.ConditionError: |
except GConditions.ConditionError: |
1271 |
resultAlienDocumentDataSource.createResultSet() |
resultAlienDocumentDataSource.createResultSet() |
1272 |
|
resultBlock.firstRecord() |
1273 |
</trigger> |
</trigger> |
1274 |
|
|
1275 |
<trigger name="notImplementedSearchTrigger" type="NAMED"> |
<trigger name="notImplementedSearchTrigger" type="NAMED"> |
1330 |
alienDocumentBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry) |
alienDocumentBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry) |
1331 |
alienDocumentBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry) |
alienDocumentBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry) |
1332 |
alienDocumentBlock.providerEntry = str(providerResultBlock.idEntry) |
alienDocumentBlock.providerEntry = str(providerResultBlock.idEntry) |
1333 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1334 |
clientIvaTaxProfile = int(str(tmpValuesDataSource.ownIVACond)) |
clientIvaTaxProfile = int(str(tmpValuesDataSource.ownIVACond)) |
|
print "client IVA ",clientIvaTaxProfile |
|
1335 |
providerIvaTaxProfile = int(str(providerResultBlock.providerIvaTaxProfileEntry)) |
providerIvaTaxProfile = int(str(providerResultBlock.providerIvaTaxProfileEntry)) |
|
print "providerIvaTaxProfile", providerIvaTaxProfile |
|
1336 |
alienDocumentBlock.invoiceTypeEntry = hack.calcInvoiceType(clientIvaTaxProfile, providerIvaTaxProfile) |
alienDocumentBlock.invoiceTypeEntry = hack.calcInvoiceType(clientIvaTaxProfile, providerIvaTaxProfile) |
1337 |
callTrigger('invoiceTypeValidation') |
callTrigger('invoiceTypeValidation') |
1338 |
|
<neb:Block>}</neb:Block> |
1339 |
</trigger> |
</trigger> |
1340 |
|
|
1341 |
<trigger name="transportSearchPage1Trigger" type="NAMED"> |
<trigger name="transportSearchPage1Trigger" type="NAMED"> |
1417 |
alienItemBlock.productCodeEntry = str(productResultBlock.prodCodeEntry) |
alienItemBlock.productCodeEntry = str(productResultBlock.prodCodeEntry) |
1418 |
alienItemBlock.productNameEntry = str(productResultBlock.prodNameEntry) |
alienItemBlock.productNameEntry = str(productResultBlock.prodNameEntry) |
1419 |
alienItemBlock.productEntry = str(productResultBlock.prodIdEntry) |
alienItemBlock.productEntry = str(productResultBlock.prodIdEntry) |
1420 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1421 |
alienItemBlock.taxPercentEntry = str(productResultBlock.prodIVATaxEntry) |
alienItemBlock.taxPercentEntry = str(productResultBlock.prodIVATaxEntry) |
1422 |
|
<neb:Block>}</neb:Block> |
1423 |
</trigger> |
</trigger> |
1424 |
|
|
1425 |
<trigger name="productDeleteTrigger" type="NAMED"> |
<trigger name="productDeleteTrigger" type="NAMED"> |
1495 |
|
|
1496 |
if hack.a2f(payBlock.cashEntry,2) != 0.0: |
if hack.a2f(payBlock.cashEntry,2) != 0.0: |
1497 |
tmpAmountBlock.cashAmountEntry = hack.a2f(payBlock.cashEntry,2) |
tmpAmountBlock.cashAmountEntry = hack.a2f(payBlock.cashEntry,2) |
1498 |
|
<neb:Block> if ($ctacte) {</neb:Block> |
1499 |
tmpAmountBlock.ctaCteAmountEntry = hack.a2f(payBlock.ctaCteEntry,2) |
tmpAmountBlock.ctaCteAmountEntry = hack.a2f(payBlock.ctaCteEntry,2) |
1500 |
|
<neb:Block>}</neb:Block> |
1501 |
currencyMovementBlock.clear() |
currencyMovementBlock.clear() |
1502 |
|
|
1503 |
def callback (returnValue): |
def callback (returnValue): |
1509 |
|
|
1510 |
</trigger> |
</trigger> |
1511 |
|
|
1512 |
<page name="neb:'Búsqueda de '.$document_name.' de Proveedor'"> |
<page name="neb:'Búsqueda de '.$title"> |
1513 |
<!-- <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> --> |
<!-- <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> --> |
1514 |
<box height="12" label="neb:$document_name.' de Productos de Proveedor'" |
<box height="12" label="neb:$title" |
1515 |
name="invoiceSearchBox" width="107" x="0" y="0"> |
name="invoiceSearchBox" width="107" x="0" y="0"> |
1516 |
|
|
1517 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
1518 |
|
|
1519 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1520 |
|
|
1521 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="neb:$alien_entity_name" x="1" y="1" /> |
1522 |
<entry x="1" y="2" name="providerCodeSEntry" width="20"> |
<entry x="1" y="2" name="providerCodeSEntry" width="20"> |
1523 |
<options> |
<options> |
1524 |
<option name="tip" value="Insertar el Código"/> |
<option name="tip" value="Insertar el Código"/> |
1533 |
<button x="36" y="3" trigger="providerSearchPage1Trigger" width="7" label="Buscar" |
<button x="36" y="3" trigger="providerSearchPage1Trigger" width="7" label="Buscar" |
1534 |
name="providerSearchPage1Btn" height="1"/> |
name="providerSearchPage1Btn" height="1"/> |
1535 |
|
|
1536 |
|
<neb:Block> if ($transport ne "") {</neb:Block> |
1537 |
|
|
1538 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1539 |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
1549 |
<entry x="57" y="3" name="transportSEntry" width="25" hidden=""/> |
<entry x="57" y="3" name="transportSEntry" width="25" hidden=""/> |
1550 |
<button x="91" y="3" trigger="transportSearchPage1Trigger" width="7" label="Buscar" |
<button x="91" y="3" trigger="transportSearchPage1Trigger" width="7" label="Buscar" |
1551 |
name="transportSearchPage1Btn" height="1"/> |
name="transportSearchPage1Btn" height="1"/> |
1552 |
|
<neb:Block>}</neb:Block> |
1553 |
|
|
1554 |
<!-- <label name="salesPersonLbl" text="Vendedor" x="1" y="4" /> --> |
<!-- <label name="salesPersonLbl" text="Vendedor" x="1" y="4" /> --> |
1555 |
<!-- <entry x="1" y="5" name="salesPersonCodeSEntry" width="20"> --> |
<!-- <entry x="1" y="5" name="salesPersonCodeSEntry" width="20"> --> |
1599 |
rows="1" width="22" x="22" y="9"/> |
rows="1" width="22" x="22" y="9"/> |
1600 |
<label name="guideNumberLbl" text="Número de guía" x="45" y="8" /> |
<label name="guideNumberLbl" text="Número de guía" x="45" y="8" /> |
1601 |
<entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="9"/> |
<entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="9"/> |
1602 |
|
|
1603 |
|
<neb:Block> if ($bundles) {</neb:Block> |
1604 |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
1605 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
1606 |
|
<neb:Block>}</neb:Block> |
1607 |
|
|
1608 |
<button x="77" y="9" trigger="searchTrigger" width="10" label="Buscar" |
<button x="77" y="9" trigger="searchTrigger" width="10" label="Buscar" |
1609 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
1614 |
|
|
1615 |
<box height="14" label="neb:$document_name.'s encontradas'" name="searchResultBox" |
<box height="14" label="neb:$document_name.'s encontradas'" name="searchResultBox" |
1616 |
width="107" x="0" y="11"> |
width="107" x="0" y="11"> |
1617 |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
<block datasource="resultAlienDocumentDataSource" |
1618 |
|
name="resultBlock" restrictInsert="y"> |
1619 |
|
|
1620 |
<entry field="alien_document.id" hidden="" name="idREntry" x="1" y="1"/> |
<entry field="alien_document.id" hidden="" name="idREntry" x="1" y="1"/> |
1621 |
|
|
1623 |
|
|
1624 |
<entry x="1" y="1" field="alien_document.sender" name="providerREntry" |
<entry x="1" y="1" field="alien_document.sender" name="providerREntry" |
1625 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1626 |
|
|
1627 |
<entry x="27" y="2" field="alien_document.transport" name="transportREntry" |
<entry x="27" y="2" field="alien_document.transport" name="transportREntry" |
1628 |
width="25" hidden=""/> |
width="25" hidden=""/> |
1629 |
|
|
1642 |
|
|
1643 |
<entry field="alien_document.bundles" name="bundlesREntry" width="10" x="66" y="7" hidden="" /> |
<entry field="alien_document.bundles" name="bundlesREntry" width="10" x="66" y="7" hidden="" /> |
1644 |
|
|
1645 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1646 |
<label name="resNumberLbl" text="Tipo" x="1" y="1" /> |
<label name="resNumberLbl" text="Tipo" x="1" y="1" /> |
1647 |
<entry field="_document_type_data.code" name="resCodeEntry" width="6" x="1" y="2" rows="9"/> |
<entry field="_document_type_data.code" name="resCodeEntry" width="6" x="1" y="2" rows="9"/> |
1648 |
|
<neb:Block>}</neb:Block> |
1649 |
<label name="resNumberLbl" text="Número" x="8" y="1" /> |
<label name="resNumberLbl" text="Número" x="8" y="1" /> |
1650 |
<entry field="alien_document.number" name="resNumberEntry" width="20" x="8" y="2" rows="9"/> |
<entry field="alien_document.number" name="resNumberEntry" width="20" x="8" y="2" rows="9"/> |
1651 |
<label name="resDateLbl" text="Fecha" x="29" y="1" /> |
<label name="resDateLbl" text="Fecha" x="29" y="1" /> |
1657 |
</page> |
</page> |
1658 |
|
|
1659 |
<!-- Página de Consulta/borrado de facturas --> |
<!-- Página de Consulta/borrado de facturas --> |
1660 |
<page name="neb:$document_name.' de Proveedor (Consulta/borrado)'"> |
<page name="neb:$title.'(Consulta/borrado)'"> |
1661 |
|
|
1662 |
<trigger type="PRE-FOCUSIN" src="resultFocusOutTrigger" /> |
<trigger type="PRE-FOCUSIN" src="resultFocusOutTrigger" /> |
1663 |
<trigger type="PRE-FOCUSIN" src="bringInvoiceTypeShowTrigger" /> |
<trigger type="PRE-FOCUSIN" src="bringInvoiceTypeShowTrigger" /> |
1664 |
<trigger type="PRE-FOCUSIN" src="totalCalcShowTrigger" /> |
<trigger type="PRE-FOCUSIN" src="totalCalcShowTrigger" /> |
1665 |
<box height="12" label="neb:$document_name.' de Productos de Proveedor'" |
<box height="12" label="neb:$title" |
1666 |
name="invoiceHeaderBox" width="107" x="0" y="0"> |
name="invoiceHeaderBox" width="107" x="0" y="0"> |
1667 |
|
|
1668 |
<!-- Estos bloques son para la gestion del pago de la factura --> |
<!-- Estos bloques son para la gestion del pago de la factura --> |
1693 |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
1694 |
<entry field="alien_document.date" name="dateEntry" typecast="date" |
<entry field="alien_document.date" name="dateEntry" typecast="date" |
1695 |
rows="1" width="22" x="22" y="9" style="label"/> |
rows="1" width="22" x="22" y="9" style="label"/> |
1696 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1697 |
<label name="invoiceTypeLbl" text="Tipo" x="48" y="8" /> |
<label name="invoiceTypeLbl" text="Tipo" x="48" y="8" /> |
1698 |
<entry name="invoiceTypeEntry" width="4" x="48" y="9" readonly="t" style="label"/> |
<entry name="invoiceTypeEntry" width="4" x="48" y="9" readonly="t" style="label"/> |
1699 |
|
<neb:Block>}</neb:Block> |
1700 |
<label name="guideNumberLbl" text="Número de guía" x="53" y="8" /> |
<label name="guideNumberLbl" text="Número de guía" x="53" y="8" /> |
1701 |
<entry field="alien_document.guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/> |
<entry field="alien_document.guide_number" name="guideNumerEntry" width="20" x="53" y="9" style="label"/> |
1702 |
|
<neb:Block> if ($bundles) {</neb:Block> |
1703 |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
<label name="bundlesLbl" text="Bultos" x="74" y="8" /> |
1704 |
<entry field="alien_document.bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/> |
<entry field="alien_document.bundles" name="bundlesEntry" width="10" x="74" y="9" style="label"/> |
1705 |
|
<neb:Block>}</neb:Block> |
1706 |
</block> |
</block> |
1707 |
|
|
1708 |
<block datasource="alienDocumentProviderShowDataSource" name="alienDocumentProviderShowBlock" restrictInsert="t"> |
<block datasource="alienDocumentProviderShowDataSource" name="alienDocumentProviderShowBlock" restrictInsert="t"> |
1709 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="neb:$alien_entity_name" x="1" y="1" /> |
1710 |
<entry x="1" y="2" field="provider._table" name="providerCodeSEntry" readonly="" |
<entry x="1" y="2" field="provider._table" name="providerCodeSEntry" readonly="" |
1711 |
width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data._table" |
width="20" style="textlookup" foreign_key="neb:$alien_entity_table.'UIDDataSource._entity_data._table'" |
1712 |
foreign_key_description="_entity_uid_data.uid" > |
foreign_key_description="_entity_uid_data.uid" > |
1713 |
</entry> |
</entry> |
1714 |
<entry x="1" y="3" field="provider._table" name="providerNameSEntry" readonly="" |
<entry x="1" y="3" field="provider._table" name="providerNameSEntry" readonly="" |
1715 |
width="35" style="textlookup" foreign_key="providerNameDataSource._table" |
width="35" style="textlookup" foreign_key="neb:$alien_entity_table.'NameDataSource._table'" |
1716 |
foreign_key_description="name" > |
foreign_key_description="name" > |
1717 |
</entry> |
</entry> |
1718 |
|
|
1719 |
</block> |
</block> |
1720 |
|
<neb:Block> if ($transport ne "") {</neb:Block> |
1721 |
<block datasource="alienDocumentTransportShowDataSource" name="alienDocumentTransportShowBlock" restrictInsert="t"> |
<block datasource="alienDocumentTransportShowDataSource" name="alienDocumentTransportShowBlock" restrictInsert="t"> |
1722 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1723 |
<entry x="56" y="2" field="transport._table" name="transportCodeSEntry" readonly="" |
<entry x="56" y="2" field="transport._table" name="transportCodeSEntry" readonly="" |
1729 |
foreign_key_description="name" > |
foreign_key_description="name" > |
1730 |
</entry> |
</entry> |
1731 |
</block> |
</block> |
1732 |
|
<neb:Block>}</neb:Block> |
1733 |
</box> |
</box> |
1734 |
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
1735 |
<!-- width="107" x="0" y="11"> --> |
<!-- width="107" x="0" y="11"> --> |
1740 |
<!-- <entry name="foundTaxEntry" field="_product_tax_data.amount" hidden="" --> |
<!-- <entry name="foundTaxEntry" field="_product_tax_data.amount" hidden="" --> |
1741 |
<!-- x="1" y="1"/> --> |
<!-- x="1" y="1"/> --> |
1742 |
<!-- </block> --> |
<!-- </block> --> |
1743 |
|
|
1744 |
|
|
1745 |
<block datasource="alienItemTaxShowDataSource" name="alienItemTaxShowBlock" restrictInsert="t"> |
<block datasource="alienItemTaxShowDataSource" name="alienItemTaxShowBlock" restrictInsert="t"> |
1746 |
<entry field="alien_item_tax.alien_item" name="alienItemEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item_tax.alien_item" name="alienItemEntry" hidden="" x="1" y="1"/> |
1747 |
</block> |
</block> |
1748 |
<block datasource="alienItemDeleteDataSource" name="alienItemDeleteBlock" restrictInsert="t"> |
|
1749 |
|
<block datasource="alienItemDeleteDataSource" name="alienItemDeleteBlock" restrictInsert="t"> |
1750 |
<entry field="alien_item.id" name="idEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item.id" name="idEntry" hidden="" x="1" y="1"/> |
1751 |
</block> |
</block> |
1752 |
|
|
1753 |
<block datasource="alienItemShowDataSource" name="alienItemShowBlock" restrictInsert="t"> |
<block datasource="alienItemShowDataSource" name="alienItemShowBlock" restrictInsert="t"> |
1754 |
<entry field="alien_item.id" name="idEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item.id" name="idEntry" hidden="" x="1" y="1"/> |
1755 |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
1778 |
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f" |
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.4f" |
1779 |
width="10" rows="7" style="label" readonly=""> |
width="10" rows="7" style="label" readonly=""> |
1780 |
</entry> |
</entry> |
1781 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1782 |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
1783 |
<entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f"/> |
<entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f"/> |
1784 |
<!-- <entry x="65" y="14" field="alien_product_item.product" name="taxPercentEntry" readonly="" --> |
<!-- <entry x="65" y="14" field="alien_product_item.product" name="taxPercentEntry" readonly="" --> |
1787 |
<!-- </entry> --> |
<!-- </entry> --> |
1788 |
|
|
1789 |
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
1790 |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" |
1791 |
|
name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
1792 |
|
<neb:Block>}</neb:Block> |
1793 |
|
<neb:Block> if ($dto) {</neb:Block> |
1794 |
<label name="discountLbl" text="Descuento" x="71" y="13"/> |
<label name="discountLbl" text="Descuento" x="71" y="13"/> |
1795 |
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
1796 |
rows="7" width="10" x="71" y="14" default="0" style="label" readonly=""> |
rows="7" width="10" x="71" y="14" default="0" style="label" readonly=""> |
1805 |
rows="7" width="12" x="66" y="4" default="0" hidden=""> |
rows="7" width="12" x="66" y="4" default="0" hidden=""> |
1806 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1807 |
</entry> |
</entry> |
1808 |
|
<neb:Block>}</neb:Block> |
1809 |
<scrollbar page="5" |
<scrollbar page="5" |
1810 |
x="103" y="14" width="1" height="7"/> |
x="103" y="14" width="1" height="7"/> |
1811 |
|
|
1812 |
</block> |
</block> |
1813 |
|
|
1814 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1815 |
<!-- OTROS IMPUESTOS SHOW --> |
<!-- OTROS IMPUESTOS SHOW --> |
1816 |
<!-- datasources de búsqueda y borrado --> |
<!-- datasources de búsqueda y borrado --> |
1817 |
<datasource database="papo" name="alienDocumentTaxShowDataSource" |
<datasource database="papo" name="alienDocumentTaxShowDataSource" |
1855 |
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
1856 |
</block> |
</block> |
1857 |
|
|
1858 |
|
<neb:Block>}</neb:Block> |
1859 |
|
|
1860 |
<!-- /OTROS IMPUESTOS SHOW --> |
<!-- /OTROS IMPUESTOS SHOW --> |
1861 |
|
|
1862 |
|
|
1863 |
|
|
1864 |
<block datasource="alienDocumentShowDataSource" name="totalShowBlock"> |
<block datasource="alienDocumentShowDataSource" name="totalShowBlock"> |
1865 |
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
<neb:Block> if ($dto) {</neb:Block> |
1866 |
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
1867 |
<entry name="discountPercentEntry" field="discount_percent" style="label" typecast="number" displaymask="%0.2f" |
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
1868 |
width="10" x="27" y="22"> |
<entry name="discountPercentEntry" field="discount_percent" style="label" typecast="number" displaymask="%0.2f" |
1869 |
</entry> |
width="10" x="27" y="22"> |
1870 |
|
</entry> |
1871 |
|
<neb:Block>}</neb:Block> |
1872 |
<!-- <label name="totalLbl" text="Neto excento de IVA" x="54" y="23"/> --> |
<!-- <label name="totalLbl" text="Neto excento de IVA" x="54" y="23"/> --> |
1873 |
<!-- <entry name="exemptNetoEntry" style="label" x="76" y="23" width="12" --> |
<!-- <entry name="exemptNetoEntry" style="label" x="76" y="23" width="12" --> |
1874 |
<!-- default="0.00"/> --> |
<!-- default="0.00"/> --> |
1877 |
<label name="totalLbl" text="Total" x="87" y="21"/> |
<label name="totalLbl" text="Total" x="87" y="21"/> |
1878 |
<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"/> |
1879 |
</block> |
</block> |
1880 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
1881 |
<block datasource="alienDocumentIvaShowDataSource" name="ivaTotalShowBlock"> |
<block datasource="alienDocumentIvaShowDataSource" name="ivaTotalShowBlock"> |
1882 |
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
1883 |
<entry name="ivaEntry" field="alien_document_tax.amount" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
<entry name="ivaEntry" field="alien_document_tax.amount" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
1884 |
</block> |
</block> |
1885 |
|
<neb:Block>}</neb:Block> |
1886 |
<block datasource="nil" name="tmpBlock"> |
<block datasource="nil" name="tmpBlock"> |
1887 |
<button x="51" y="24" trigger="deleteTrigger" width="10" label="Borrar" |
<button x="51" y="24" trigger="deleteTrigger" width="10" label="Borrar" |
1888 |
name="deleteBtn" height="1"/> |
name="deleteBtn" height="1"/> |
1896 |
<!-- Página de CARGA DE FACTURAS --> |
<!-- Página de CARGA DE FACTURAS --> |
1897 |
|
|
1898 |
|
|
1899 |
<page name="neb:$document_name.' de Proveedor (Alta)'"> |
<page name="neb:$title.' (Alta)'"> |
1900 |
<lam:box lam:boxtype="v" height="17"> |
<lam:box lam:boxtype="v" height="17"> |
1901 |
<!-- Estos bloques son para la gestion del pago de la factura --> |
<!-- Estos bloques son para la gestion del pago de la factura --> |
1902 |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
1915 |
<!-- cargo el own-pos entity id --> |
<!-- cargo el own-pos entity id --> |
1916 |
<entry field="own_entity" hidden="" name="ownEntityIdEntry" x="1" y="1"/> |
<entry field="own_entity" hidden="" name="ownEntityIdEntry" x="1" y="1"/> |
1917 |
<!-- /cargo el own-pos entity id --> |
<!-- /cargo el own-pos entity id --> |
1918 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="neb:$alien_entity_name" x="1" y="1" /> |
1919 |
<!-- <entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" --> |
<!-- <entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" --> |
1920 |
<!-- width="20" style="externalsearch" foreign_key="providerExternalSearchDataSource._entity_data.id" --> |
<!-- width="20" style="externalsearch" foreign_key="providerExternalSearchDataSource._entity_data.id" --> |
1921 |
<!-- foreign_key_description="_entity_uid_data.uid" > --> |
<!-- foreign_key_description="_entity_uid_data.uid" > --> |
1940 |
|
|
1941 |
|
|
1942 |
<!-- /busqueda del proveedor --> |
<!-- /busqueda del proveedor --> |
1943 |
|
<neb:Block> if ($transport ne "") {</neb:Block> |
1944 |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1945 |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
1946 |
<options> |
<options> |
1955 |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |
1956 |
<button x="91" y="3" trigger="transportSearchPage2Trigger" width="7" label="Buscar" |
<button x="91" y="3" trigger="transportSearchPage2Trigger" width="7" label="Buscar" |
1957 |
name="transportSearchPage2Btn" height="1"/> |
name="transportSearchPage2Btn" height="1"/> |
1958 |
|
<neb:Block>}</neb:Block> |
1959 |
|
|
1960 |
<!-- <button x="53" y="2" trigger="providerTrigger" width="3" label="..." --> |
<!-- <button x="53" y="2" trigger="providerTrigger" width="3" label="..." --> |
1961 |
<!-- name="providerBtn" height="1"/> --> |
<!-- name="providerBtn" height="1"/> --> |
2014 |
|
|
2015 |
<button x="44" y="6" trigger="toDayTrigger" width="4" label="hoy" |
<button x="44" y="6" trigger="toDayTrigger" width="4" label="hoy" |
2016 |
name="dateBtn" height="1"/> |
name="dateBtn" height="1"/> |
2017 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
2018 |
<label name="invoiceTypeLbl" text="Tipo" x="48" y="5" /> |
<label name="invoiceTypeLbl" text="Tipo" x="48" y="5" /> |
2019 |
<entry name="invoiceTypeEntry" width="4" x="48" y="6"> |
<entry name="invoiceTypeEntry" width="4" x="48" y="6"> |
2020 |
<trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/> |
<trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/> |
2021 |
</entry> |
</entry> |
2022 |
|
<neb:Block>}</neb:Block> |
2023 |
<label name="guideNumberLbl" text="Número de guía" x="53" y="5" /> |
<label name="guideNumberLbl" text="Número de guía" x="53" y="5" /> |
2024 |
<entry field="guide_number" name="guideNumerEntry" width="20" x="53" y="6"/> |
<entry field="guide_number" name="guideNumerEntry" width="20" x="53" y="6"/> |
2025 |
|
|
2026 |
|
<neb:Block> if ($bundles) {</neb:Block> |
2027 |
<label name="bundlesLbl" text="Bultos" x="74" y="5" /> |
<label name="bundlesLbl" text="Bultos" x="74" y="5" /> |
2028 |
<entry field="bundles" name="bundlesEntry" width="10" x="74" y="6"/> |
<entry field="bundles" name="bundlesEntry" width="10" x="74" y="6"/> |
2029 |
|
<neb:Block>}</neb:Block> |
2030 |
|
<neb:Block> if ($dto) {</neb:Block> |
2031 |
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
<label name="totalDiscountLbl" text="Descuento sobre el Total: " x="1" y="22"/> |
2032 |
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
<label name="discountPercentLbl" text="Porcentaje" x="27" y="21"/> |
2033 |
<entry name="discountPercentEntry" field="discount_percent" default="0.00" typecast="number" displaymask="%0.2f" |
<entry name="discountPercentEntry" field="discount_percent" default="0.00" typecast="number" displaymask="%0.2f" |
2034 |
width="10" x="27" y="22"> |
width="10" x="27" y="22"> |
2035 |
<trigger type="PRE-FOCUSOUT" src="discountCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="discountCalcTrigger" /> |
2036 |
</entry> |
</entry> |
2037 |
|
<neb:Block>}</neb:Block> |
2038 |
<label name="totalLbl" text="Neto" x="76" y="21"/> |
<label name="totalLbl" text="Neto" x="76" y="21"/> |
2039 |
<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"> |
2040 |
<trigger type="Pre-Focusout" src="totalChanged"/> |
<trigger type="Pre-Focusout" src="totalChanged"/> |
2044 |
<!-- <entry name="exemptNetTotalEntry" x="76" y="23" width="11" default="0.00"> --> |
<!-- <entry name="exemptNetTotalEntry" x="76" y="23" width="11" default="0.00"> --> |
2045 |
<!-- <trigger type="Pre-Focusout" src="totalChanged"/> --> |
<!-- <trigger type="Pre-Focusout" src="totalChanged"/> --> |
2046 |
<!-- </entry> --> |
<!-- </entry> --> |
2047 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
2048 |
<label name="ivaLbl" text="IVA" x="64" y="21"/> |
<label name="ivaLbl" text="IVA" x="64" y="21"/> |
2049 |
<entry name="ivaTotalEntry" x="64" y="22" width="11" default="0.00"> |
<entry name="ivaTotalEntry" x="64" y="22" width="11" default="0.00"> |
2050 |
<trigger type="Pre-Focusout" src="totalChanged"/> |
<trigger type="Pre-Focusout" src="totalChanged"/> |
2053 |
</entry> |
</entry> |
2054 |
<label name="totalLbl" text="Total" x="87" y="21"/> |
<label name="totalLbl" text="Total" x="87" y="21"/> |
2055 |
<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"/> |
2056 |
|
<neb:Block>}</neb:Block> |
2057 |
</block> |
</block> |
2058 |
|
|
2059 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
2060 |
<block name="alienIvaTaxBlock" datasource="alienIvaTaxDataSource" restrictInsert=""> |
<block name="alienIvaTaxBlock" datasource="alienIvaTaxDataSource" restrictInsert=""> |
2061 |
<entry name="alienIvaTaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" hidden=""/> |
<entry name="alienIvaTaxAmountEntry" field="alien_document_tax.amount" x="47" y="22" width="12" hidden=""/> |
2062 |
<entry name="alienIvaTaxedAmountEntry" field="alien_document_tax.taxed_amount" x="47" y="22" width="12" hidden=""/> |
<entry name="alienIvaTaxedAmountEntry" field="alien_document_tax.taxed_amount" x="47" y="22" width="12" hidden=""/> |
2063 |
<entry name="alienTaxIdEntry" field="alien_document_tax.tax" readonly="" x="47" y="22" width="12" hidden="" default="1"/> |
<entry name="alienTaxIdEntry" field="alien_document_tax.tax" readonly="" x="47" y="22" width="12" hidden="" default="1"/> |
2064 |
</block> |
</block> |
2065 |
|
<neb:Block>}</neb:Block> |
2066 |
|
|
2067 |
<!-- \/\/\/\/ Estos bloques los hice con la idea de grabar los totales --> |
<!-- \/\/\/\/ Estos bloques los hice con la idea de grabar los totales --> |
2068 |
|
|
2127 |
width="10" rows="7"> |
width="10" rows="7"> |
2128 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
2129 |
</entry> |
</entry> |
2130 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
2131 |
<label name="taxLbl" text="IVA" x="64" y="8" /> |
<label name="taxLbl" text="IVA" x="64" y="8" /> |
2132 |
<entry x="64" y="9" name="taxPercentEntry" width="5" rows="7" typecast="number" displaymask="%0.2f"> |
<entry x="64" y="9" name="taxPercentEntry" width="5" rows="7" typecast="number" displaymask="%0.2f"> |
2133 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
2135 |
|
|
2136 |
<entry x="65" y="9" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
<entry x="65" y="9" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
2137 |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
2138 |
|
<neb:Block>}</neb:Block> |
2139 |
|
<neb:Block> if ($dto) {</neb:Block> |
2140 |
<label text="Dto." x="69" y="8"/> |
<label text="Dto." x="69" y="8"/> |
2141 |
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
2142 |
rows="7" width="6" x="69" y="9" default="0"> |
rows="7" width="6" x="69" y="9" default="0"> |
2144 |
</entry> |
</entry> |
2145 |
<entry name="totalDiscountEntry" typecast="number" rows="7" width="10" x="69" y="9" default="0.00" hidden="t"> |
<entry name="totalDiscountEntry" typecast="number" rows="7" width="10" x="69" y="9" default="0.00" hidden="t"> |
2146 |
</entry> |
</entry> |
2147 |
|
<neb:Block>}</neb:Block> |
2148 |
<label name="itemNetoLbl" text="Neto " x="76" y="8"/> |
<label name="itemNetoLbl" text="Neto " x="76" y="8"/> |
2149 |
<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" |
2150 |
rows="7" width="10" x="76" y="9"> |
rows="7" width="10" x="76" y="9"> |
2169 |
|
|
2170 |
|
|
2171 |
<!-- OTROS IMPUESTOS --> |
<!-- OTROS IMPUESTOS --> |
2172 |
|
<neb:Block> if ($document ne "tax") {</neb:Block> |
2173 |
<!-- alta --> |
<!-- alta --> |
2174 |
<datasource name="documentTaxesDataSource" database="papo" |
<datasource name="documentTaxesDataSource" database="papo" |
2175 |
detaillink="alien_document_tax.alien_document" master="alienDocumentDataSource" |
detaillink="alien_document_tax.alien_document" master="alienDocumentDataSource" |
2217 |
</entry> |
</entry> |
2218 |
<scrollbar page="3" x="36" y="18" width="1" height="3"/> |
<scrollbar page="3" x="36" y="18" width="1" height="3"/> |
2219 |
</block> |
</block> |
2220 |
|
<neb:Block>}</neb:Block> |
2221 |
<!-- /OTROS IMPUESTOS --> |
<!-- /OTROS IMPUESTOS --> |
2222 |
|
|
2223 |
|
|
2250 |
</block> |
</block> |
2251 |
<!-- </box> --> |
<!-- </box> --> |
2252 |
|
|
2253 |
<box height="4" label="neb:'Pago de la '.$document_name" name="payBox" |
<box height="4" label="neb:'Pago de '.$document_name" name="payBox" |
2254 |
width="107" x="0" y="24"> |
width="107" x="0" y="24"> |
2255 |
<block datasource="payDataSource" name="payBlock"> |
<block datasource="payDataSource" name="payBlock"> |
2256 |
<label text="Efectivo : " x="1" y="1"/> |
<label text="Efectivo : " x="1" y="1"/> |
2257 |
<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" |
2258 |
|
typecast="number" displaymask="%0.2f" default="0.00"> |
2259 |
|
<neb:Block> if ($ctacte) {</neb:Block> |
2260 |
<trigger type="Pre-Focusout"> |
<trigger type="Pre-Focusout"> |
2261 |
import hack |
import hack |
2262 |
payBlock.ctaCteEntry = str(round(hack.a2f(alienDocumentBlock.totalEntry,2) - hack.a2f(payBlock.cashEntry,2),2)) |
payBlock.ctaCteEntry = str(round(hack.a2f(alienDocumentBlock.totalEntry,2) - hack.a2f(payBlock.cashEntry,2),2)) |
2263 |
</trigger> |
</trigger> |
2264 |
</entry> |
</entry> |
2265 |
|
|
2266 |
<label text="Cta. Cte. : " x="24" y="1"/> |
<label text="Cta. Cte. : " x="24" y="1"/> |
2267 |
<entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
<entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
2268 |
<trigger type="Pre-Focusout"> |
|
2269 |
|
<trigger type="Pre-Focusout"> |
2270 |
import hack |
import hack |
2271 |
payBlock.cashEntry = str(round(hack.a2f(alienDocumentBlock.totalEntry,2) - hack.a2f(payBlock.ctaCteEntry,2),2)) |
payBlock.cashEntry = str(round(hack.a2f(alienDocumentBlock.totalEntry,2) - hack.a2f(payBlock.ctaCteEntry,2),2)) |
2272 |
</trigger> |
</trigger> |
2273 |
|
<neb:Block>}</neb:Block> |
2274 |
</entry> |
</entry> |
2275 |
|
|
2276 |
<button x="49" y="1" trigger="providerMultiCurrencyTrigger" width="10" label="Aceptar" |
<button x="49" y="1" trigger="providerMultiCurrencyTrigger" width="10" label="Aceptar" |
2280 |
|
|
2281 |
</block> |
</block> |
2282 |
</box> |
</box> |
2283 |
<block name="providerResultBlock" datasource="providerSearchDataSource"> |
<block name="providerResultBlock" datasource="neb:$alien_entity_table.'SearchDataSource'"> |
2284 |
<entry name="tableEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
<entry name="tableEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
2285 |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
2286 |
<entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
<entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
2287 |
<entry name="providerNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
<entry name="providerNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
2288 |
<entry name="providerIvaTaxProfileEntry" field="_persona_tax_profile_data.tax_profile" x="1" y="1" width="12" hidden=""/> |
<neb:Block> if ($document ne "tax") {</neb:Block> |
2289 |
|
<entry name="providerIvaTaxProfileEntry" |
2290 |
|
field="_persona_tax_profile_data.tax_profile" x="1" y="1" |
2291 |
|
width="12" hidden=""/> |
2292 |
|
<neb:Block>}</neb:Block> |
2293 |
</block> |
</block> |
2294 |
<block name="transportResultBlock" datasource="providerSearchDataSource"> |
<block name="transportResultBlock" datasource="neb:$alien_entity_table.'SearchDataSource'"> |
2295 |
<entry name="idEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
<entry name="idEntry" field="_entity_data._table" hidden="" x="1" y="1" width="12"/> |
2296 |
<entry name="transportCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
<entry name="transportCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
2297 |
<entry name="transportNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
<entry name="transportNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
2302 |
<entry name="prodIdEntry" field="_product_data.id" x="15" y="1" width="5" rows="2" hidden=""/> |
<entry name="prodIdEntry" field="_product_data.id" x="15" y="1" width="5" rows="2" hidden=""/> |
2303 |
<entry name="prodCodeEntry" field="_product_code_data.code" x="20" y="1" width="10" rows="2" hidden=""/> |
<entry name="prodCodeEntry" field="_product_code_data.code" x="20" y="1" width="10" rows="2" hidden=""/> |
2304 |
<entry name="prodCodeTypeEntry" field="_product_code_data.product_code_type" x="30" y="1" width="5" rows="2" hidden=""/> |
<entry name="prodCodeTypeEntry" field="_product_code_data.product_code_type" x="30" y="1" width="5" rows="2" hidden=""/> |
2305 |
<entry name="prodIVATaxEntry" field="_product_tax_data.amount" x="50" y="1" width="20" rows="2" hidden=""/> |
<neb:Block> if ($document ne "tax") {</neb:Block> |
2306 |
|
<entry name="prodIVATaxEntry" field="_product_tax_data.amount" |
2307 |
|
x="50" y="1" width="20" rows="2" hidden=""/> |
2308 |
|
<neb:Block>}</neb:Block> |
2309 |
</block> |
</block> |
2310 |
<block name="currentSearchIdBlock" datasource="currentSearchIdDataSource"> |
<block name="currentSearchIdBlock" datasource="currentSearchIdDataSource"> |
2311 |
<entry name="searchId" hidden="" x="1" y="1" width="12"/> |
<entry name="searchId" hidden="" x="1" y="1" width="12"/> |