355 |
ownOrganizationBlock.clear() |
ownOrganizationBlock.clear() |
356 |
ownOrganizationBlock.initQuery() |
ownOrganizationBlock.initQuery() |
357 |
ownOrganizationBlock.processQuery() |
ownOrganizationBlock.processQuery() |
358 |
print "iva condition" , str(ownOrganizationBlock.condIVAEntry) |
#print "iva condition" , str(ownOrganizationBlock.condIVAEntry) |
359 |
print "entity id", str(ownOrganizationBlock.ownOrganizationIdEntry) |
#print "entity id", str(ownOrganizationBlock.ownOrganizationIdEntry) |
360 |
tmpValuesDataSource.ownOrganizationId = str(ownOrganizationBlock.ownOrganizationIdEntry) |
tmpValuesDataSource.ownOrganizationId = str(ownOrganizationBlock.ownOrganizationIdEntry) |
361 |
tmpValuesDataSource.ownIVACond = str(ownOrganizationBlock.condIVAEntry) |
tmpValuesDataSource.ownIVACond = str(ownOrganizationBlock.condIVAEntry) |
362 |
tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp() |
tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp() |
363 |
|
callTrigger ('adminPeriodSet') |
364 |
</trigger> |
</trigger> |
365 |
|
|
366 |
<trigger name="changePriceWithIvaTrigger" type="NAMED"><![CDATA[ |
<trigger name="changePriceWithIvaTrigger" type="NAMED"><![CDATA[ |
464 |
|
|
465 |
</trigger> |
</trigger> |
466 |
|
|
467 |
<trigger name="commitTrigger" type="NAMED"> |
<trigger name="commitTrigger" type="NAMED"> |
468 |
import hack |
import hack |
469 |
|
if not str(ivaPeriodTmpBlock.periodoIdEntry): |
470 |
|
genericBox("Falta definir periodo de IVA en que se registra",["Aceptar"]) |
471 |
|
else: |
472 |
ownDocumentBlock.numberEntry = str(ownPosDocumentBlock.documentNumberEntry) |
ownDocumentBlock.numberEntry = str(ownPosDocumentBlock.documentNumberEntry) |
473 |
#cargo pos |
#cargo pos |
474 |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
ownDocumentBlock.ownPosEntityIdEntry = str(ownPosBlock.ownPosEntityIdEntry) |
482 |
from gnue.common.GDataObjects import ConnectionError as DBError |
from gnue.common.GDataObjects import ConnectionError as DBError |
483 |
try: |
try: |
484 |
postChangeAdvance = 0 |
postChangeAdvance = 0 |
485 |
|
ivaPeriodBlock.periodoIdEntry = str(ivaPeriodTmpBlock.periodoIdEntry) |
486 |
ownDocumentBlock.postChanges() |
ownDocumentBlock.postChanges() |
487 |
postChangeAdvance = 1 |
postChangeAdvance = 1 |
488 |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1) |
525 |
tmpValuesDataSource.priceWithIva = 0 |
tmpValuesDataSource.priceWithIva = 0 |
526 |
tmpValuesDataSource.endDocument = 0 |
tmpValuesDataSource.endDocument = 0 |
527 |
clear() |
clear() |
528 |
|
callTrigger ('adminPeriodSet') |
529 |
tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp() |
tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp() |
530 |
#setFocus(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
#setFocus(ownDocumentBlock.clientRecipientBox.clientCodeEntry) |
531 |
</trigger> |
</trigger> |
910 |
<!-- <entry x="64" y="2" readonly="" field="recipient" name="scoreEntry" --> |
<!-- <entry x="64" y="2" readonly="" field="recipient" name="scoreEntry" --> |
911 |
<!-- width="10" style="textlookup" foreign_key="clientDataSource._entity_data.id" --> |
<!-- width="10" style="textlookup" foreign_key="clientDataSource._entity_data.id" --> |
912 |
<!-- foreign_key_description="_client_data.score"/> --> |
<!-- foreign_key_description="_client_data.score"/> --> |
913 |
|
|
914 |
<label name="nameMVType1Label" text="Límite de Cta. Cte." x="75" y="1"/> |
<label name="nameMVType1Label" text="Límite de Cta. Cte." x="75" y="1"/> |
915 |
|
|
916 |
<entry x="75" y="2" readonly="" field="recipient" name="creditLimit1Entry" |
<entry x="75" y="2" readonly="" field="recipient" name="creditLimit1Entry" |
917 |
width="10" style="textlookup" foreign_key="tlCreditLimit1DataSource._entity_data.id" |
width="10" style="textlookup" foreign_key="tlCreditLimit1DataSource._entity_data.id" |
918 |
foreign_key_description="_credit_limit_data.credit_limit"/> |
foreign_key_description="_credit_limit_data.credit_limit"/> |
919 |
|
|
920 |
<label name="deudaLbl" text="| Deuda : " x="40" y="3"/> |
<label name="deudaLbl" text="| Deuda : " x="40" y="3"/> |
921 |
<entry name="deudaEntry" style="label" x="52" y="3" width="12" typecast="number" displaymask="%0.2f"/> |
<entry name="deudaEntry" style="label" x="52" y="3" width="12" typecast="number" displaymask="%0.2f"/> |
922 |
|
|
923 |
|
</box> |
924 |
|
<label text="remitos corresp.:" x="1" y="7"/> |
925 |
|
<entry field="related_to" name="relatedToEntry" x="18" y="7" width="60" /> |
926 |
|
|
927 |
|
<entry field="date" name="dateEntry" style="label" hidden="" typecast="date" |
928 |
|
rows="9" width="24" x="7" y="7"/> |
929 |
|
<entry field="number" name="numberEntry" style="label" hidden="" width="24" x="15" y="7"/> |
930 |
|
|
931 |
|
<label name="invoiceTypeLbl" text="Tipo" x="43" y="1" /> |
932 |
|
<entry name="invoiceTypeEntry" width="2" x="48" y="1"> |
933 |
|
<trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/> |
934 |
|
</entry> |
935 |
|
</block> |
936 |
|
|
937 |
|
<!-- Fecha del comprobante --> |
938 |
|
<block name="tmpBlock" datasource="tmpValuesDataSource" transparentBlock=""> |
939 |
|
<label name="dateLbl" text="Fecha" x="1" y="1" /> |
940 |
|
<label name="numberLabel" text="neb:'Número de '.$document_name.':'" x="52" y="1"/> |
941 |
|
<entry name="tmpDateEntry" typecast="date" |
942 |
|
width="14" x="7" y="1"/> |
943 |
|
</block> |
944 |
|
|
945 |
</box> |
<!-- ADMIN PERIOD --> |
946 |
<label text="remitos corresp.:" x="1" y="7"/> |
<!-- alta --> |
947 |
<entry field="related_to" name="relatedToEntry" x="18" y="7" width="60" /> |
<datasource name="ivaPeriodDatasource" database="papo" |
948 |
|
table="own_document_admin_period" |
949 |
<entry field="date" name="dateEntry" style="label" hidden="" typecast="date" |
detaillink="own_document_admin_period.own_document" master="ownDocumentDataSource" |
950 |
rows="9" width="24" x="7" y="7"/> |
masterlink="id" > |
951 |
<entry field="number" name="numberEntry" style="label" hidden="" width="24" x="15" y="7"/> |
</datasource> |
952 |
|
<!-- dropdown --> |
953 |
<label name="invoiceTypeLbl" text="Tipo" x="23" y="1" /> |
<datasource name="adminPeriodSetDataSource" database="papo" |
954 |
<entry name="invoiceTypeEntry" width="2" x="28" y="1"> |
table="admin_period" order_by="id desc"> |
955 |
<trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/> |
<condition> |
956 |
</entry> |
<and> |
957 |
</block> |
<eq> |
958 |
|
<cfield name="admin_period.admin_period_type"/> |
959 |
|
<cconst value="1" /> |
960 |
|
</eq> |
961 |
|
<eq> |
962 |
|
<cfield name="admin_period.closed"/> |
963 |
|
<cconst value="f" /> |
964 |
|
</eq> |
965 |
|
</and> |
966 |
|
</condition> |
967 |
|
</datasource> |
968 |
|
|
969 |
|
<trigger name="adminPeriodSet" type="NAMED"> |
970 |
|
#print "adminPeriodSetTrigger" |
971 |
|
adminPeriodSetResultSet = adminPeriodSetDataSource.createResultSet() |
972 |
|
adminPeriodSetResultSet.firstRecord() |
973 |
|
adminPeriodId = adminPeriodSetResultSet.current.getField("admin_period.id") |
974 |
|
adminPeriodName = adminPeriodSetResultSet.current.getField("admin_period.name") |
975 |
|
#print "adminPeriodId", adminPeriodId |
976 |
|
#print "adminPeriodName", adminPeriodName |
977 |
|
#asigno |
978 |
|
ivaPeriodTmpBlock.periodoIdEntry = adminPeriodId |
979 |
|
callTrigger ('admin_periodForId') |
980 |
|
</trigger> |
981 |
|
|
982 |
|
<block name="ivaPeriodTmpBlock" datasource="tmpValuesDataSource" transparentBlock=""> |
983 |
|
<!-- <block name="ivaPeriodBlock" datasource="ivaPeriodDatasource"> --> |
984 |
|
<label name="ivaPeriodLbl" text="Periodo" x="22" y="1" /> |
985 |
|
<lam:box lam:boxtype="h" x="30" y="1" width="10"> |
986 |
|
<neb:Sub neb:src="inlineSearch.nebc" |
987 |
|
table="admin_period" |
988 |
|
search_data_source="adminPeriodSetDataSource" |
989 |
|
target_field="own_document_admin_period.admin_period" |
990 |
|
target_block="ivaPeriodTmpBlock" |
991 |
|
object_select_form="productClassificationSelect.gfd" |
992 |
|
disable_object_form="1" |
993 |
|
block_name="periodoBlock" |
994 |
|
id_entry="periodoIdEntry" |
995 |
|
id_field="id" |
996 |
|
name_entry="periodoNameEntry" |
997 |
|
with_history="" |
998 |
|
use_code ="" |
999 |
|
rows="1" |
1000 |
|
/> |
1001 |
|
</lam:box> |
1002 |
|
</block> |
1003 |
|
|
1004 |
|
<block name="ivaPeriodBlock" datasource="ivaPeriodDatasource"> |
1005 |
|
<entry name="periodoIdEntry" field="own_document_admin_period.admin_period" x="0" y="0" hidden=""/> |
1006 |
|
</block> |
1007 |
|
<!-- /ADMIN PERIOD --> |
1008 |
|
|
1009 |
|
|
1010 |
|
<!-- </box> --> |
1011 |
|
<!-- <entry field="date" name="dateEntry" style="label" hidden="" typecast="date" --> |
1012 |
|
<!-- rows="9" width="24" x="7" y="7"/> --> |
1013 |
|
<!-- <entry field="number" name="numberEntry" style="label" hidden="" width="24" x="15" y="7"/> --> |
1014 |
|
|
1015 |
|
<!-- <label name="invoiceTypeLbl" text="Tipo" x="23" y="1" /> --> |
1016 |
|
<!-- <entry name="invoiceTypeEntry" width="2" x="28" y="1"> --> |
1017 |
|
<!-- <trigger type="PRE-FOCUSOUT" src="invoiceTypeValidation"/> --> |
1018 |
|
<!-- </entry> --> |
1019 |
|
<!-- </block> --> |
1020 |
|
<!-- >>>>>>> 1.5 --> |
1021 |
|
|
|
<!-- Fecha del comprobante --> |
|
|
<block name="tmpBlock" datasource="tmpValuesDataSource" transparentBlock=""> |
|
|
<label name="dateLbl" text="Fecha" x="1" y="1" /> |
|
|
<label name="numberLabel" text="neb:'Número de '.$document_name.':'" x="32" y="1"/> |
|
|
<entry name="tmpDateEntry" typecast="date" |
|
|
width="14" x="7" y="1"/> |
|
|
</block> |
|
1022 |
<neb:Sub neb:src="posDocument.nebc" documentType="ownDocumentBlock.typeEntry" |
<neb:Sub neb:src="posDocument.nebc" documentType="ownDocumentBlock.typeEntry" |
1023 |
ownPosBlock="ownPosBlock" stockByInvoice="stockByInvoice" |
ownPosBlock="ownPosBlock" stockByInvoice="stockByInvoice" |
1024 |
ownPosEntityIdEntry="ownPosEntityIdEntry" ownPosDocumentBlock="ownPosDocumentBlock" |
ownPosEntityIdEntry="ownPosEntityIdEntry" ownPosDocumentBlock="ownPosDocumentBlock" |
1025 |
documentNumberEntry="documentNumberEntry" documentNumberEntryX="65" documentNumberEntryY="1" |
documentNumberEntry="documentNumberEntry" documentNumberEntryX="85" documentNumberEntryY="1" |
1026 |
searchNextDocumentNumber="searchNextInvoiceNumber" |
searchNextDocumentNumber="searchNextInvoiceNumber" |
1027 |
ownStorehouseBlock ="ownStorehouseBlock" ownStorehouseIdEntry="ownStorehouseIdEntry" /> |
ownStorehouseBlock ="ownStorehouseBlock" ownStorehouseIdEntry="ownStorehouseIdEntry" /> |
1028 |
<neb:Block> if ($document_type_A == 4) {</neb:Block> |
<neb:Block> if ($document_type_A == 4) {</neb:Block> |