50 |
</and> |
</and> |
51 |
</condition> |
</condition> |
52 |
</datasource> |
</datasource> |
53 |
<!-- tax profile --> |
<!-- tax profile --> |
54 |
<datasource name="entityTaxProfileDataSource" database="papo" |
<datasource name="entityTaxProfileDataSource" database="papo" |
55 |
detaillink="_persona_tax_profile_data.persona" master="organizationDataSource" |
detaillink="_persona_tax_profile_data.persona" master="organizationDataSource" |
56 |
masterlink="entity.id" table="persona_tax_profile, _persona_tax_profile_data" historytable="_persona_tax_profile_data"> |
masterlink="entity.id" table="persona_tax_profile, _persona_tax_profile_data" historytable="_persona_tax_profile_data"> |
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
<!-- triggers --> |
<!-- triggers --> |
130 |
|
|
131 |
<trigger name="commitTrigger" type="NAMED"><![CDATA[ |
<trigger name="commitTrigger" type="NAMED"><![CDATA[ |
|
print 'commitTrigger' |
|
132 |
if not entityUID_CUIT_Block.getCurrentRecord().isInserted(): |
if not entityUID_CUIT_Block.getCurrentRecord().isInserted(): |
133 |
entityUID_CUIT_Block.newRecord() |
entityUID_CUIT_Block.newRecord() |
134 |
# 1 es CUIT |
# 1 es CUIT |
135 |
entityUID_CUIT_Block.uid_CUIT_TypeEntry = 1 |
entityUID_CUIT_Block.uid_CUIT_TypeEntry = 1 |
136 |
if not entityUID_IB_Block.getCurrentRecord().isInserted(): |
if not entityUID_IB_Block.getCurrentRecord().isInserted(): |
137 |
entityUID_IB_Block.newRecord() |
entityUID_IB_Block.newRecord() |
138 |
# 2 es Ingresos Brutos |
# 2 es Ingresos Brutos |
139 |
entityUID_IB_Block.uid_IB_TypeEntry = 2 |
entityUID_IB_Block.uid_IB_TypeEntry = 2 |
140 |
|
|
141 |
|
from gnue.common.GDataObjects import ConnectionError as DBError |
142 |
|
|
143 |
try: |
try: |
144 |
organizationBlock.postChanges() |
organizationBlock.postChanges() |
145 |
commitConnection() |
commitConnection() |
146 |
except DBError, err: |
except DBError, err: |
147 |
rollbackConnection() |
rollbackConnection() |
148 |
genericBox("Hay problemas para grabar los datos de la organización\n"+str(err),['Aceptar']) |
genericBox("Hay problemas para grabar los datos de la organización\n"+str(err),['Aceptar']) |
|
|
|
149 |
]]></trigger> |
]]></trigger> |
150 |
<trigger name="organizationRollbackTrigger" type="NAMED"><![CDATA[ |
<trigger name="organizationRollbackTrigger" type="NAMED"><![CDATA[ |
|
import hack |
|
151 |
organizationBlock.reset() |
organizationBlock.reset() |
152 |
]]></trigger> |
]]></trigger> |
153 |
|
|
154 |
<!-- Gestión --> |
<!-- Gestión --> |
155 |
<page name="Gestión"> |
<page name="Gestión"> |
156 |
<block name="organizationBlock" datasource="organizationDataSource" restrictInsert="y" transparentBlock="y"> |
<block name="organizationBlock" datasource="organizationDataSource" restrictInsert="y" transparentBlock="y"> |
165 |
x="1" y="10" width="25" height="7"/> |
x="1" y="10" width="25" height="7"/> |
166 |
|
|
167 |
|
|
168 |
<button x="1" y="19" trigger="commitTrigger" width="9" label="Aceptar" name="organizationCommitBtn" height="1"/> |
<button x="1" y="19" trigger="commitTrigger" width="9" label="Aceptar" name="organizationCommitBtn" height="1"/> |
169 |
<button x="21" y="19" trigger="organizationRollbackTrigger" width="9" label="Cancelar" name="organizationRollbackBtn" height="1"/> |
<button x="21" y="19" trigger="organizationRollbackTrigger" width="9" label="Cancelar" name="organizationRollbackBtn" height="1"/> |
170 |
</block> |
</block> |
171 |
<!-- categoria de iva --> |
<!-- categoria de iva --> |
172 |
<block name="entityTaxProfileBlock" datasource="entityTaxProfileDataSource" |
<block name="entityTaxProfileBlock" datasource="entityTaxProfileDataSource" |
173 |
restrictInsert="y" transparentBlock="y"> |
restrictInsert="y" transparentBlock="y"> |
174 |
<label text="Categoría en IVA" |
<label text="Categoría en IVA" |
205 |
x="33" y="14" width="24"/> |
x="33" y="14" width="24"/> |
206 |
</block> |
</block> |
207 |
</page> |
</page> |
208 |
</form> |
</form> |
|
|
|