506 |
clientBlock.deleteRecord() |
clientBlock.deleteRecord() |
507 |
clientBlock.commit() |
clientBlock.commit() |
508 |
|
|
509 |
for block in [ clientBlock, clientCodeBlock, clientTaxProfileBlock ]: |
for block in [ clientBlock, clientCodeBlock, clientTaxProfileBlock, creditLimit1Block ]: |
510 |
block.processRollback () |
block.processRollback () |
511 |
]]></trigger> |
]]></trigger> |
512 |
|
|
513 |
<trigger name="clientRollbackTrigger" type="NAMED"><![CDATA[ |
<trigger name="clientRollbackTrigger" type="NAMED"><![CDATA[ |
514 |
print "here-here" |
print "here-here" |
515 |
import hack |
import hack |
516 |
|
hack.rollback(clientTaxProfileBlock) |
517 |
|
hack.rollback(creditLimit1Block) |
518 |
|
hack.rollback(clientUID_IB_Block) |
519 |
|
hack.rollback(clientUID_CUIT_Block) |
520 |
hack.rollback(clientBlock) |
hack.rollback(clientBlock) |
521 |
]]></trigger> |
]]></trigger> |
522 |
|
|
541 |
]]></trigger> |
]]></trigger> |
542 |
|
|
543 |
|
|
|
<trigger name="creditLimitRollbackTrigger" type="NAMED"><![CDATA[ |
|
|
# why this is different from the others? |
|
|
creditLimit1Block.processRollback(1) |
|
|
]]></trigger> |
|
|
|
|
|
<trigger name="uidRollbackTrigger" type="NAMED"><![CDATA[ |
|
|
from hack import rollback |
|
|
|
|
|
rollback(clientUID_IB_Block) |
|
|
rollback(clientUID_CUIT_Block) |
|
|
rollback(clientTaxProfileBlock) |
|
|
]]></trigger> |
|
|
|
|
544 |
<!-- impresión --> |
<!-- impresión --> |
545 |
|
|
546 |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
<trigger name="printTrigger" type="NAMED"><![CDATA[ |
966 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
967 |
<trigger type="Pre-Focusout" src="askForChangesTrigger"/> |
<trigger type="Pre-Focusout" src="askForChangesTrigger"/> |
968 |
<box label="Datos" |
<box label="Datos" |
969 |
x="0" y="0" height="23" width="64"> |
x="0" y="0" height="22" width="82"> |
970 |
<block name="clientCodeBlock" datasource="entityUID_Code_DataSource" |
<block name="clientCodeBlock" datasource="entityUID_Code_DataSource" |
971 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
972 |
<label text="Código de cliente" |
<label text="Código de cliente" |
1004 |
<!-- <entry name="scoreEntry" field="_client_data.score" typecast="number" default="0" --> |
<!-- <entry name="scoreEntry" field="_client_data.score" typecast="number" default="0" --> |
1005 |
<!-- x="1" y="6" width="10"/> --> |
<!-- x="1" y="6" width="10"/> --> |
1006 |
<label text="Lista de precios asociada " |
<label text="Lista de precios asociada " |
1007 |
x="1" y="7"/> |
x="1" y="5"/> |
1008 |
<entry name="priceTypeEntry" field="_client_data.price_type" |
<entry name="priceTypeEntry" field="_client_data.price_type" |
1009 |
x="1" y="1" hidden="y"/> |
x="1" y="1" hidden="y"/> |
1010 |
<entry name="priceTypeNameEntry" |
<entry name="priceTypeNameEntry" |
1011 |
x="1" y="8" width="35"/> |
x="1" y="6" width="35"/> |
1012 |
<button x="37" y="8" width="10" trigger="searchPriceTypeTrigger" |
<button x="37" y="6" width="10" trigger="searchPriceTypeTrigger" |
1013 |
label="Buscar" name="priceTypeBtn" height="1"> |
label="Buscar" name="priceTypeBtn" height="1"> |
1014 |
|
|
1015 |
<!-- new_schema_begin --> |
<!-- new_schema_begin --> |
1056 |
]]></trigger> |
]]></trigger> |
1057 |
<!-- new_schema_end --> |
<!-- new_schema_end --> |
1058 |
</button> |
</button> |
1059 |
<button x="49" y="8" width="5" trigger="callPriceTypeTrigger" |
<button x="49" y="6" width="5" trigger="callPriceTypeTrigger" |
1060 |
label=" ... " name="priceTypeBtn" height="1"> |
label=" ... " name="priceTypeBtn" height="1"> |
1061 |
<trigger type="NAMED" name="callPriceTypeTrigger"> |
<trigger type="NAMED" name="callPriceTypeTrigger"> |
1062 |
runForm('priceType.gfd') |
runForm('priceType.gfd') |
1065 |
<label text="Observaciones" |
<label text="Observaciones" |
1066 |
x="1" y="9"/> |
x="1" y="9"/> |
1067 |
<entry name="obs" field="_entity_data.observations" |
<entry name="obs" field="_entity_data.observations" |
1068 |
x="1" y="10" width="25" height="5"/> |
x="1" y="10" width="25" height="7"/> |
1069 |
|
</block> |
1070 |
|
|
1071 |
|
<block name="creditLimit1Block" |
1072 |
|
datasource="creditLimit1DataSource" restrictInsert="y" transparentBlock="y"> |
1073 |
|
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" |
1074 |
|
x="1" y="1" width="14"/> |
1075 |
|
<label text="Límite de Crédito:" |
1076 |
|
x="1" y="8"/> |
1077 |
|
<entry name="creditLimitEntry" field="_credit_limit_data.credit_limit" |
1078 |
|
x="20" y="8" width="14"/> |
1079 |
</block> |
</block> |
1080 |
|
|
1081 |
<block name="clientTaxProfileBlock" datasource="clientTaxProfileDataSource" |
<block name="clientTaxProfileBlock" datasource="clientTaxProfileDataSource" |
1082 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
1083 |
<label text="Categoría en IVA" |
<label text="Categoría en IVA" |
1084 |
x="1" y="15"/> |
x="33" y="9"/> |
1085 |
<entry x="1" y="16" field="_persona_tax_profile_data.tax_profile" |
<entry x="33" y="10" field="_persona_tax_profile_data.tax_profile" |
1086 |
name="taxProfileEntry" |
name="taxProfileEntry" |
1087 |
width="35" style="dropdown" foreign_key="taxProfileDataSource._table" |
width="35" style="dropdown" foreign_key="taxProfileDataSource._table" |
1088 |
foreign_key_description="profile" /> |
foreign_key_description="profile" /> |
1089 |
</block> |
</block> |
1090 |
|
|
1091 |
|
<block name="clientUID_CUIT_Block" datasource="entityUID_CUIT_DataSource" |
1092 |
|
restrictInsert="y" transparentBlock="y"> |
1093 |
|
<label text="Número de CUIT" |
1094 |
|
x="33" y="11"/> |
1095 |
|
<entry name="uidEntry" field="_entity_uid_data.uid" |
1096 |
|
x="33" y="12" width="24"> |
1097 |
|
<trigger type="PRE-FOCUSOUT"><![CDATA[ |
1098 |
|
from cuit import validate |
1099 |
|
|
1100 |
|
if not validate (str(clientUID_CUIT_Block.uidEntry)): |
1101 |
|
form.genericBox ('El CUIT es inválido', ['Aceptar']) |
1102 |
|
]]></trigger> |
1103 |
|
</entry> |
1104 |
|
</block> |
1105 |
|
|
1106 |
|
<block name="clientUID_IB_Block" datasource="entityUID_IB_DataSource" |
1107 |
|
restrictInsert="y" transparentBlock="y"> |
1108 |
|
<label text="Número de Ingresos Brutos" |
1109 |
|
x="33" y="13"/> |
1110 |
|
<entry name="uidEntry" field="_entity_uid_data.uid" |
1111 |
|
x="33" y="14" width="24"/> |
1112 |
|
</block> |
1113 |
|
|
1114 |
<block name="buttonBlock" datasource="focusDataSource" |
<block name="buttonBlock" datasource="focusDataSource" |
1115 |
transparentBlock="y"> |
transparentBlock="y"> |
1116 |
<button x="1" y="19" trigger="commitTrigger" width="9" label="Aceptar" |
<button x="1" y="19" trigger="commitTrigger" width="9" label="Aceptar" |
1132 |
</page> |
</page> |
1133 |
|
|
1134 |
|
|
|
|
|
|
<page name="Límites crédito"> |
|
|
<trigger type="Pre-Focusout" src="askForChangesTrigger"/> |
|
|
<box label="Límites de Crédito" |
|
|
x="0" y="0" height="5" width="64"> |
|
|
<block name="clientCreditLimitBlock" datasource="clientDataSource"> |
|
|
<label text="Nombre o Razón Social" |
|
|
x="1" y="1"/> |
|
|
<entry name="name" field="_entity_data.name" readonly="" |
|
|
x="1" y="2" width="40"/> |
|
|
</block> |
|
|
</box> |
|
|
<box label="Tipos de límite Crédito" |
|
|
x="0" y="5" height="15" width="64"> |
|
|
<block name="creditLimit1Block" |
|
|
datasource="creditLimit1DataSource" restrictInsert=""> |
|
|
<entry name="movementTypeEntry" field="_credit_limit_data.movement_type" hidden="" |
|
|
x="1" y="1" width="14"/> |
|
|
<entry x="1" y="3" field="_credit_limit_data.movement_type" |
|
|
name="movementTypeEntry" |
|
|
width="24" style="textlookup" readonly="" foreign_key="movementTypeDataSource.id" |
|
|
foreign_key_description="name" /> |
|
|
<entry name="creditLimitEntry" field="_credit_limit_data.credit_limit" |
|
|
x="26" y="3" width="14"/> |
|
|
<button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" |
|
|
name="creditLimitCommitBtn" height="1"/> |
|
|
<button x="11" y="12" trigger="creditLimitRollbackTrigger" width="9" label="Cancelar" |
|
|
name="creditLimitRollbackBtn" height="1"/> |
|
|
</block> |
|
|
</box> |
|
|
</page> |
|
|
<page name="Datos Impositivos"> |
|
|
<trigger type="Pre-Focusout" src="askForChangesTrigger"/> |
|
|
<box label="Datos Impositivos" |
|
|
x="0" y="0" height="5" width="64"> |
|
|
<block name="clientCreditLimitBlock" datasource="clientDataSource"> |
|
|
<label text="Nombre o Razón Social" |
|
|
x="1" y="1"/> |
|
|
<entry name="name" field="_entity_data.name" readonly="" |
|
|
x="1" y="2" width="40"/> |
|
|
</block> |
|
|
</box> |
|
|
<box label="" |
|
|
x="0" y="5" height="15" width="64"> |
|
|
<block name="clientUID_CUIT_Block" datasource="entityUID_CUIT_DataSource" |
|
|
restrictInsert="y" transparentBlock="y"> |
|
|
<entry x="1" y="1" field="_entity_uid_data.entity_uid_type" |
|
|
name="uid_CUIT_TypeEntry" |
|
|
width="19" style="textlookup" readonly="" foreign_key="entityUIDTypeDataSource.id" |
|
|
foreign_key_description="name"/> |
|
|
<entry name="uidEntry" field="_entity_uid_data.uid" |
|
|
x="20" y="1" width="24"> |
|
|
<trigger type="PRE-FOCUSOUT"><![CDATA[ |
|
|
from cuit import validate |
|
|
|
|
|
if not validate (str(clientUID_CUIT_Block.uidEntry)): |
|
|
form.genericBox ('El CUIT es inválido', ['Aceptar']) |
|
|
]]></trigger> |
|
|
</entry> |
|
|
</block> |
|
|
<block name="clientUID_IB_Block" datasource="entityUID_IB_DataSource" |
|
|
restrictInsert="y" transparentBlock="y"> |
|
|
<entry x="1" y="2" field="_entity_uid_data.entity_uid_type" |
|
|
name="uid_IB_TypeEntry" |
|
|
width="19" style="textlookup" readonly="" foreign_key="entityUIDTypeDataSource.id" |
|
|
foreign_key_description="name" /> |
|
|
<entry name="uidEntry" field="_entity_uid_data.uid" |
|
|
x="20" y="2" width="24"/> |
|
|
</block> |
|
|
<block name="clientTaxProfileBlock" datasource="clientTaxProfileDataSource" |
|
|
restrictInsert="y" transparentBlock="y"> |
|
|
<label text="Categoría en IVA" |
|
|
x="1" y="4"/> |
|
|
<entry x="1" y="5" field="_persona_tax_profile_data.tax_profile" |
|
|
name="taxProfileEntry" |
|
|
width="35" style="dropdown" foreign_key="taxProfileDataSource._table" |
|
|
foreign_key_description="profile" /> |
|
|
</block> |
|
|
<button x="1" y="12" trigger="commitTrigger" width="9" label="Aceptar" |
|
|
name="uidCommitBtn" height="1"/> |
|
|
<button x="11" y="12" trigger="uidRollbackTrigger" width="9" label="Cancelar" |
|
|
name="uidRollbackBtn" height="1"/> |
|
|
</box> |
|
|
</page> |
|
|
|
|
1135 |
<!-- direcciones --> |
<!-- direcciones --> |
1136 |
<page name="Direcciones"> |
<page name="Direcciones"> |
1137 |
<trigger type="Pre-Focusin" src="addressTypeNameSearchTrigger"/> |
<trigger type="Pre-Focusin" src="addressTypeNameSearchTrigger"/> |