544 |
]]></trigger> |
]]></trigger> |
545 |
|
|
546 |
<trigger name="clientRollbackTrigger" type="NAMED"><![CDATA[ |
<trigger name="clientRollbackTrigger" type="NAMED"><![CDATA[ |
|
#import hack |
|
|
#clientTaxProfileBlock.reset() |
|
|
#creditLimit1Block.reset() |
|
|
#clientCodeBlock.reset() |
|
|
#clientUID_IB_Block.reset() |
|
|
#clientUID_CUIT_Block.reset() |
|
|
#clientBlock.reset() |
|
547 |
reset() |
reset() |
548 |
callTrigger('clientPageFocusInTrigger') |
callTrigger('clientPageFocusInTrigger') |
549 |
]]></trigger> |
]]></trigger> |
753 |
|
|
754 |
|
|
755 |
<trigger type="NAMED" name="clientPageFocusInTrigger"><![CDATA[ |
<trigger type="NAMED" name="clientPageFocusInTrigger"><![CDATA[ |
756 |
if str(clientResultBlock.clientIdREntry)!='': |
import hack |
757 |
# this is needed for updating some fields, like price_type there below |
if hack.emptyEntry(clientBlock.clientIdEntry): |
758 |
if str(clientBlock.priceTypeEntry)!='': |
callTrigger ('account_planForId') |
759 |
# look for the name... |
callTrigger ('price_typeForId') |
|
searchingPriceTypeBlock.clear() |
|
|
searchingPriceTypeBlock.initQuery () |
|
|
searchingPriceTypeBlock.idEntry= str(clientBlock.priceTypeEntry) |
|
|
searchingPriceTypeBlock.processQuery () |
|
|
|
|
|
# ... and show it |
|
|
clientBlock.priceTypeNameEntry= str(searchingPriceTypeBlock.nameEntry) |
|
|
else: |
|
|
clientBlock.priceTypeNameEntry= '' |
|
760 |
]]></trigger> |
]]></trigger> |
761 |
|
|
762 |
<trigger type="NAMED" name="showClientPriceTypeTrigger"><![CDATA[ |
<trigger type="NAMED" name="showClientPriceTypeTrigger"><![CDATA[ |
1012 |
|
|
1013 |
<page name="Gestión"> |
<page name="Gestión"> |
1014 |
<!-- new_schema_begin --> |
<!-- new_schema_begin --> |
1015 |
|
|
1016 |
<block name="searchingPriceTypeBlock" datasource="priceTypeDataSource"> |
<block name="searchingPriceTypeBlock" datasource="priceTypeDataSource"> |
1017 |
<entry name="idEntry" field="_table" |
<entry name="idEntry" field="_table" |
1018 |
x="1" y="1" hidden="y"/> |
x="1" y="1" hidden="y"/> |
1026 |
x="0" y="0" height="22" width="82"> |
x="0" y="0" height="22" width="82"> |
1027 |
<block name="clientCodeBlock" datasource="entityUID_Code_DataSource" |
<block name="clientCodeBlock" datasource="entityUID_Code_DataSource" |
1028 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
1029 |
<label text="Código de cliente" |
<lam:box lam:boxtype="h"> |
1030 |
x="1" y="1"/> |
<label text="Código de cliente"/> |
1031 |
|
</lam:box> |
1032 |
<!-- 3 es Codigo interno --> |
<!-- 3 es Codigo interno --> |
1033 |
<entry name="clientCodeType" field="_entity_uid_data.entity_uid_type" default="3" |
<entry name="clientCodeType" field="_entity_uid_data.entity_uid_type" default="3" |
1034 |
x="1" y="1" hidden="y"/> |
x="1" y="1" hidden="y"/> |
1035 |
<entry name="clientCodeEntry" field="_entity_uid_data.uid" |
<lam:box lam:boxtype="h"> |
1036 |
x="1" y="2" width="12"/> |
<entry name="clientCodeEntry" field="_entity_uid_data.uid" width="12"/> |
1037 |
|
</lam:box> |
1038 |
</block> |
</block> |
1039 |
|
|
1040 |
<!-- abm --> |
<!-- abm --> |
1054 |
<!-- <entry name="clientEntityTypeEntry" field="_entity_data.entity_type" hidden="y" --> |
<!-- <entry name="clientEntityTypeEntry" field="_entity_data.entity_type" hidden="y" --> |
1055 |
<!-- x="1" y="1" width="20"/> --> |
<!-- x="1" y="1" width="20"/> --> |
1056 |
<!-- /modified database --> |
<!-- /modified database --> |
1057 |
<label text="Nombre o Razón Social" |
<lam:box lam:boxtype="h"> |
1058 |
x="1" y="3"/> |
<label text="Nombre o Razón Social"/> |
1059 |
<entry name="nameEntry" field="_entity_data.name" |
</lam:box> |
1060 |
x="1" y="4" width="40"/> |
<lam:box lam:boxtype="h"> |
1061 |
|
<entry name="nameEntry" field="_entity_data.name" width="40"/> |
1062 |
|
</lam:box> |
1063 |
<!-- <label text="Puntaje" --> |
<!-- <label text="Puntaje" --> |
1064 |
<!-- x="1" y="5"/> --> |
<!-- x="1" y="5"/> --> |
1065 |
<!-- <entry name="scoreEntry" field="_client_data.score" typecast="number" default="0" --> |
<!-- <entry name="scoreEntry" field="_client_data.score" typecast="number" default="0" --> |
1066 |
<!-- x="1" y="6" width="10"/> --> |
<!-- x="1" y="6" width="10"/> --> |
|
<label text="Lista de precios asociada " |
|
|
x="1" y="5"/> |
|
1067 |
<entry name="priceTypeEntry" field="_client_data.price_type" |
<entry name="priceTypeEntry" field="_client_data.price_type" |
1068 |
x="1" y="1" hidden="y"/> |
x="1" y="1" hidden="y"/> |
1069 |
<entry name="priceTypeNameEntry" |
<lam:box lam:boxtype="h"> |
1070 |
x="1" y="6" width="35"/> |
<neb:Sub neb:src="inlineSearch.nebc" label="Lista de precios" |
1071 |
<button x="37" y="6" width="10" trigger="searchPriceTypeTrigger" |
table="price_type" target_field="_client_data.price_type" target_block="clientBlock" |
1072 |
label="Buscar" name="priceTypeBtn" height="1"> |
use_code="0" object_select_form="priceTypeSelect.gfd"/> |
1073 |
|
<lam:box width="1"/> |
1074 |
<!-- new_schema_begin --> |
</lam:box> |
1075 |
<trigger type="NAMED" name="searchPriceTypeTrigger"><![CDATA[ |
|
1076 |
def setPriceType (recNo): |
<lam:box lam:boxtype="h"> |
1077 |
if recNo>=0: |
<neb:Sub neb:src="inlineSearch.nebc" label="Cuenta contable" |
1078 |
searchingPriceTypeBlock.jumpRecord (recNo) |
table="account_plan" target_field="_entity_data.account_plan" target_block="clientBlock" |
1079 |
clientBlock.priceTypeEntry= str(searchingPriceTypeBlock.idEntry) |
code_field="code" code_width="16" object_select_form="accountPlanSelect.gfd" object_form="accountPlan.gfd"/> |
1080 |
clientBlock.priceTypeNameEntry= str(searchingPriceTypeBlock.nameEntry) |
<lam:box width="1"/> |
1081 |
|
</lam:box> |
1082 |
try: |
<lam:box lam:boxtype="h"> |
1083 |
# gnue version <= 0.4 |
<label text="Observaciones"/> |
1084 |
from gnue.forms.GFEvent import GFEvent |
</lam:box> |
1085 |
except ImportError: |
<lam:box lam:boxtype="h"> |
|
# gnue version >= 0.5 |
|
|
from gnue.common.events.Event import Event as GFEvent |
|
|
|
|
|
# busy clock |
|
|
self._object.dispatchEvent(GFEvent('beginWAIT')) |
|
|
setStatusText('buscando...') |
|
|
|
|
|
# look for the name... |
|
|
searchingPriceTypeBlock.clear() |
|
|
searchingPriceTypeBlock.initQuery () |
|
|
searchingPriceTypeBlock.nameEntry= str(clientBlock.priceTypeNameEntry)+'%' |
|
|
searchingPriceTypeBlock.processQuery () |
|
|
|
|
|
# are there too much results? |
|
|
resultCount= searchingPriceTypeBlock.getRecordCount () |
|
|
if resultCount>1: |
|
|
# do the select-man |
|
|
runForm ('priceTypeSelect.gfd', { |
|
|
'data': searchingPriceTypeBlock, |
|
|
'callback': setPriceType |
|
|
}) |
|
|
setStatusText('Aceptar') |
|
|
elif resultCount==1: |
|
|
setPriceType (0) |
|
|
setStatusText('Aceptar') |
|
|
else: |
|
|
setStatusText(' no se encontraron registros') |
|
|
|
|
|
self._object.dispatchEvent(GFEvent('endWAIT')) |
|
|
]]></trigger> |
|
|
<!-- new_schema_end --> |
|
|
</button> |
|
|
<button x="49" y="6" width="5" trigger="callPriceTypeTrigger" |
|
|
label=" ... " name="priceTypeBtn" height="1"> |
|
|
<trigger type="NAMED" name="callPriceTypeTrigger"> |
|
|
runForm('priceType.gfd') |
|
|
</trigger> |
|
|
</button> |
|
|
<label text="Observaciones" x="1" y="9"/> |
|
1086 |
<entry name="obs" field="_entity_data.observations" |
<entry name="obs" field="_entity_data.observations" |
1087 |
x="1" y="10" width="25" height="7"/> |
width="25" height="7"/> |
1088 |
|
</lam:box> |
1089 |
</block> |
</block> |
1090 |
|
|
1091 |
<block name="creditLimit1Block" |
<block name="creditLimit1Block" |
1092 |
datasource="creditLimit1DataSource" restrictInsert="y" transparentBlock="y"> |
datasource="creditLimit1DataSource" restrictInsert="y" transparentBlock="y"> |
1093 |
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" |
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" |
1094 |
x="1" y="1" width="14"/> |
x="1" y="1" width="14"/> |
1095 |
<label text="Límite de Crédito:" |
<lam:box lam:boxtype="h"> |
1096 |
x="1" y="7"/> |
<label text="Límite de Crédito:"/> |
1097 |
<entry name="creditLimitEntry" field="_credit_limit_data.credit_limit" |
<entry name="creditLimitEntry" field="_credit_limit_data.credit_limit" width="14"/> |
1098 |
x="1" y="8" width="14"/> |
</lam:box> |
1099 |
|
<lam:box lam:boxtype="h"> |
1100 |
<label text="Categoría en IVA" x="33" y="9"/> |
<label text="Categoría en IVA" x="33" y="9"/> |
1101 |
|
</lam:box> |
1102 |
</block> |
</block> |
1103 |
<neb:Sub neb:src="taxProfile.nebc" |
<neb:Sub neb:src="taxProfile.nebc" |
1104 |
datasourceMater="clientDataSource" |
datasourceMater="clientDataSource" |
1117 |
|
|
1118 |
<block name="clientUID_CUIT_Block" datasource="entityUID_CUIT_DataSource" |
<block name="clientUID_CUIT_Block" datasource="entityUID_CUIT_DataSource" |
1119 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
1120 |
|
<lam:box lam:boxtype="h"> |
1121 |
<label text="Número de CUIT" |
<label text="Número de CUIT" |
1122 |
x="33" y="11"/> |
x="33" y="11"/> |
1123 |
|
</lam:box> |
1124 |
|
<lam:box lam:boxtype="h"> |
1125 |
<entry x="1" y="1" field="_entity_uid_data.entity_uid_type" |
<entry x="1" y="1" field="_entity_uid_data.entity_uid_type" |
1126 |
name="uid_CUIT_TypeEntry" hidden=""/> |
name="uid_CUIT_TypeEntry" hidden=""/> |
1127 |
<entry name="uidEntry" field="_entity_uid_data.uid" |
<entry name="uidEntry" field="_entity_uid_data.uid" |
1132 |
form.genericBox ('El CUIT es inválido', ['Aceptar']) |
form.genericBox ('El CUIT es inválido', ['Aceptar']) |
1133 |
</trigger> |
</trigger> |
1134 |
</entry> |
</entry> |
1135 |
|
</lam:box> |
1136 |
</block> |
</block> |
1137 |
|
|
1138 |
<block name="clientUID_IB_Block" datasource="entityUID_IB_DataSource" |
<block name="clientUID_IB_Block" datasource="entityUID_IB_DataSource" |
1139 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
1140 |
|
<lam:box lam:boxtype="h"> |
1141 |
<label text="Número de Ingresos Brutos" |
<label text="Número de Ingresos Brutos" |
1142 |
x="33" y="13"/> |
x="33" y="13"/> |
1143 |
|
</lam:box> |
1144 |
|
<lam:box lam:boxtype="h"> |
1145 |
<entry x="1" y="1" field="_entity_uid_data.entity_uid_type" |
<entry x="1" y="1" field="_entity_uid_data.entity_uid_type" |
1146 |
name="uid_IB_TypeEntry" hidden=""/> |
name="uid_IB_TypeEntry" hidden=""/> |
1147 |
<entry name="uidEntry" field="_entity_uid_data.uid" |
<entry name="uidEntry" field="_entity_uid_data.uid" |
1148 |
x="33" y="14" width="24"/> |
x="33" y="14" width="24"/> |
1149 |
|
</lam:box> |
1150 |
</block> |
</block> |
1151 |
|
|
1152 |
<block name="buttonBlock" datasource="focusDataSource" |
<block name="buttonBlock" datasource="focusDataSource" |