160 |
|
|
161 |
# busco entity_relation |
# busco entity_relation |
162 |
entityRelationBlock.initQuery() |
entityRelationBlock.initQuery() |
163 |
entityRelationBlock.entityRelationToEntry = str(ownPosBlock.ownPosEntityIdEntry) |
entityRelationBlock.entityRelationToEntry = str(masterBlock.branchIdEntry) |
164 |
entityRelationBlock.entityRelationFromEntry = str(masterBlock.branchIdEntry) |
entityRelationBlock.entityRelationFromEntry = str(ownPosBlock.ownPosEntityIdEntry) |
165 |
entityRelationBlock.processQuery() |
entityRelationBlock.processQuery() |
166 |
|
|
167 |
# busco relation_types |
# busco relation_types |
204 |
ownPosBlock.postChanges () |
ownPosBlock.postChanges () |
205 |
commitState= 2 |
commitState= 2 |
206 |
# cargo la entity_relation y el id del branch al que pertenece |
# cargo la entity_relation y el id del branch al que pertenece |
207 |
entityRelationBlock.entityRelationFromEntry = str(masterBlock.branchIdEntry) |
entityRelationBlock.entityRelationFromEntry = str(ownPosBlock.ownPosEntityIdEntry) |
208 |
entityRelationBlock.entityRelationToEntry = str(ownPosBlock.ownPosEntityIdEntry) |
entityRelationBlock.entityRelationToEntry = str(masterBlock.branchIdEntry) |
209 |
entityRelationBlock.postChanges() |
entityRelationBlock.postChanges() |
210 |
#print "numero de entity relation:" |
#print "numero de entity relation:" |
211 |
#print str(entityRelationBlock.entityRelationIdEntry) |
#print str(entityRelationBlock.entityRelationIdEntry) |
216 |
relationTypesBlock.postChanges () |
relationTypesBlock.postChanges () |
217 |
# cargo la entity_relation y el id del storehouse asociado |
# cargo la entity_relation y el id del storehouse asociado |
218 |
entityRelationBlock.newRecord() |
entityRelationBlock.newRecord() |
219 |
entityRelationBlock.entityRelationFromEntry = str(ownStorehouseBlock.ownStorehouseIdEntry) |
entityRelationBlock.entityRelationFromEntry = str(ownPosBlock.ownPosEntityIdEntry) |
220 |
entityRelationBlock.entityRelationToEntry = str(ownPosBlock.ownPosEntityIdEntry) |
entityRelationBlock.entityRelationToEntry = str(ownStorehouseBlock.ownStorehouseIdEntry) |
221 |
#entityRelationBlock.entityRelationIdEntry.autofillBySequence('entity_relation_id_seq') |
#entityRelationBlock.entityRelationIdEntry.autofillBySequence('entity_relation_id_seq') |
222 |
entityRelationBlock.postChanges() |
entityRelationBlock.postChanges() |
223 |
#print "numero de entity relation:" |
#print "numero de entity relation:" |
322 |
<!--busqueda de storehouse --> |
<!--busqueda de storehouse --> |
323 |
<block name="ownStorehouseBlock" datasource="ownStorehowseResultDataSource" > |
<block name="ownStorehouseBlock" datasource="ownStorehowseResultDataSource" > |
324 |
<entry name="ownStorehouseIdEntry" |
<entry name="ownStorehouseIdEntry" |
325 |
field="_entity_relation_data.entity_to" x="70" hidden="" y="5" /> |
field="_entity_relation_data.entity_from" x="70" hidden="" y="5" /> |
326 |
<entry name="ownBranchIdEntry" |
<entry name="ownBranchIdEntry" |
327 |
field="_entity_relation_data.entity_from" x="70" hidden="" y="6" /> |
field="_entity_relation_data.entity_to" x="70" hidden="" y="6" /> |
328 |
</block> |
</block> |
329 |
<!--/busqueda de storehouse --> |
<!--/busqueda de storehouse --> |
330 |
</page> |
</page> |