12 |
<datasource name="tmpSearchDataSource" cache="1"/> |
<datasource name="tmpSearchDataSource" cache="1"/> |
13 |
|
|
14 |
<datasource name="contactDataSource" database="papo" |
<datasource name="contactDataSource" database="papo" |
15 |
table="entity, alienentity, contact" order_by="entity.name"> |
table="entity, _entity_data, alien_entity, _alien_entity_data,contact, _contact_data" |
16 |
|
order_by="_entity_data.name"> |
17 |
<condition> |
<condition> |
18 |
<and> |
<and> |
19 |
<eq> |
<eq> |
20 |
<cfield name="entity.id"/> |
<cfield name="entity.id"/> |
21 |
<cfield name="alienentity.entity"/> |
<cfield name="_entity_data._table"/> |
22 |
</eq> |
</eq> |
23 |
<eq> |
<eq> |
24 |
<cfield name="alienentity.id"/> |
<cfield name="alien_entity.id"/> |
25 |
<cfield name="contact.alien_entity"/> |
<cfield name="_alien_entity_data._table"/> |
26 |
|
</eq> |
27 |
|
<eq> |
28 |
|
<cfield name="contact.id"/> |
29 |
|
<cfield name="_contact_data._table"/> |
30 |
|
</eq> |
31 |
|
<eq> |
32 |
|
<cfield name="entity.id"/> |
33 |
|
<cfield name="_alien_entity_data.entity"/> |
34 |
|
</eq> |
35 |
|
<eq> |
36 |
|
<cfield name="alien_entity.id"/> |
37 |
|
<cfield name="_contact_data.alien_entity"/> |
38 |
</eq> |
</eq> |
39 |
<null> |
<null> |
40 |
<cfield name="entity.end_t"/> |
<cfield name="_entity_data._end_t"/> |
41 |
|
</null> |
42 |
|
<null> |
43 |
|
<cfield name="_alien_entity_data._end_t"/> |
44 |
|
</null> |
45 |
|
<null> |
46 |
|
<cfield name="_contact_data._end_t"/> |
47 |
</null> |
</null> |
48 |
</and> |
</and> |
49 |
</condition> |
</condition> |
50 |
</datasource> |
</datasource> |
51 |
|
|
52 |
<datasource name="receivedDataSource" database="papo" |
<datasource name="receivedDataSource" database="papo" |
53 |
table="entity, ownentity, employee" order_by="entity.name"> |
table="entity, _entity_data, own_entity, _own_entity_data, employee, _employee_data" order_by="_entity_data.name"> |
54 |
<condition> |
<condition> |
55 |
<and> |
<and> |
56 |
<eq> |
<eq> |
57 |
<cfield name="entity.id"/> |
<cfield name="entity.id"/> |
58 |
<cfield name="ownentity.entity"/> |
<cfield name="_entity_data._table"/> |
59 |
|
</eq> |
60 |
|
<eq> |
61 |
|
<cfield name="own_entity.id"/> |
62 |
|
<cfield name="_own_entity_data._table"/> |
63 |
</eq> |
</eq> |
64 |
<eq> |
<eq> |
65 |
<cfield name="ownentity.id"/> |
<cfield name="employee.id"/> |
66 |
<cfield name="employee.own_entity"/> |
<cfield name="_employee_data._table"/> |
67 |
|
</eq> |
68 |
|
<eq> |
69 |
|
<cfield name="entity.id"/> |
70 |
|
<cfield name="_own_entity_data.entity"/> |
71 |
|
</eq> |
72 |
|
<eq> |
73 |
|
<cfield name="own_entity.id"/> |
74 |
|
<cfield name="_employee_data.own_entity"/> |
75 |
</eq> |
</eq> |
76 |
<null> |
<null> |
77 |
<cfield name="entity.end_t"/> |
<cfield name="_entity_data._end_t"/> |
78 |
|
</null> |
79 |
|
<null> |
80 |
|
<cfield name="_own_entity_data._end_t"/> |
81 |
|
</null> |
82 |
|
<null> |
83 |
|
<cfield name="_employee_data._end_t"/> |
84 |
</null> |
</null> |
85 |
</and> |
</and> |
86 |
</condition> |
</condition> |
87 |
</datasource> |
</datasource> |
88 |
|
|
89 |
<datasource name="providerDataSource" database="papo" |
<datasource name="providerDataSource" database="papo" |
90 |
table="entity, alienentity, persona, provider" order_by="entity.name"> |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
91 |
|
order_by="_entity_data.name"> |
92 |
<condition> |
<condition> |
93 |
<and> |
<and> |
94 |
<eq> |
<eq> |
95 |
<cfield name="entity.id"/> |
<cfield name="entity.id"/> |
96 |
<cfield name="alienentity.entity"/> |
<cfield name="_entity_data._table"/> |
97 |
|
</eq> |
98 |
|
<eq> |
99 |
|
<cfield name="alien_entity.id"/> |
100 |
|
<cfield name="_alien_entity_data._table"/> |
101 |
|
</eq> |
102 |
|
<eq> |
103 |
|
<cfield name="persona.id"/> |
104 |
|
<cfield name="_persona_data._table"/> |
105 |
|
</eq> |
106 |
|
<eq> |
107 |
|
<cfield name="provider.id"/> |
108 |
|
<cfield name="_provider_data._table"/> |
109 |
|
</eq> |
110 |
|
<eq> |
111 |
|
<cfield name="entity.id"/> |
112 |
|
<cfield name="_alien_entity_data.entity"/> |
113 |
</eq> |
</eq> |
114 |
<eq> |
<eq> |
115 |
<cfield name="alienentity.id"/> |
<cfield name="alien_entity.id"/> |
116 |
<cfield name="persona.alien_entity"/> |
<cfield name="_persona_data.alien_entity"/> |
117 |
</eq> |
</eq> |
118 |
<eq> |
<eq> |
119 |
<cfield name="persona.id"/> |
<cfield name="persona.id"/> |
120 |
<cfield name="provider.persona"/> |
<cfield name="_provider_data.persona"/> |
121 |
</eq> |
</eq> |
122 |
<null> |
<null> |
123 |
<cfield name="entity.end_t"/> |
<cfield name="_entity_data._end_t"/> |
124 |
|
</null> |
125 |
|
<null> |
126 |
|
<cfield name="_alien_entity_data._end_t"/> |
127 |
|
</null> |
128 |
|
<null> |
129 |
|
<cfield name="_persona_data._end_t"/> |
130 |
|
</null> |
131 |
|
<null> |
132 |
|
<cfield name="_provider_data._end_t"/> |
133 |
</null> |
</null> |
134 |
</and> |
</and> |
135 |
</condition> |
</condition> |
136 |
</datasource> |
</datasource> |
137 |
|
|
138 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
139 |
table="entity, alienentity, persona, provider" order_by="entity.name"> |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
140 |
|
order_by="_entity_data.name"> |
141 |
<condition> |
<condition> |
142 |
<and> |
<and> |
143 |
<eq> |
<eq> |
144 |
<cfield name="entity.id"/> |
<cfield name="entity.id"/> |
145 |
<cfield name="alienentity.entity"/> |
<cfield name="_entity_data._table"/> |
146 |
|
</eq> |
147 |
|
<eq> |
148 |
|
<cfield name="alien_entity.id"/> |
149 |
|
<cfield name="_alien_entity_data._table"/> |
150 |
|
</eq> |
151 |
|
<eq> |
152 |
|
<cfield name="persona.id"/> |
153 |
|
<cfield name="_persona_data._table"/> |
154 |
|
</eq> |
155 |
|
<eq> |
156 |
|
<cfield name="provider.id"/> |
157 |
|
<cfield name="_provider_data._table"/> |
158 |
|
</eq> |
159 |
|
<eq> |
160 |
|
<cfield name="entity.id"/> |
161 |
|
<cfield name="_alien_entity_data.entity"/> |
162 |
</eq> |
</eq> |
163 |
<eq> |
<eq> |
164 |
<cfield name="alienentity.id"/> |
<cfield name="alien_entity.id"/> |
165 |
<cfield name="persona.alien_entity"/> |
<cfield name="_persona_data.alien_entity"/> |
166 |
</eq> |
</eq> |
167 |
<eq> |
<eq> |
168 |
<cfield name="persona.id"/> |
<cfield name="persona.id"/> |
169 |
<cfield name="provider.persona"/> |
<cfield name="_provider_data.persona"/> |
170 |
</eq> |
</eq> |
171 |
<null> |
<null> |
172 |
<cfield name="entity.end_t"/> |
<cfield name="_entity_data._end_t"/> |
173 |
|
</null> |
174 |
|
<null> |
175 |
|
<cfield name="_alien_entity_data._end_t"/> |
176 |
|
</null> |
177 |
|
<null> |
178 |
|
<cfield name="_persona_data._end_t"/> |
179 |
|
</null> |
180 |
|
<null> |
181 |
|
<cfield name="_provider_data._end_t"/> |
182 |
</null> |
</null> |
183 |
</and> |
</and> |
184 |
</condition> |
</condition> |
185 |
</datasource> |
</datasource> |
186 |
|
|
187 |
<datasource name="productDataSource" database="papo" table="product" |
<datasource name="productDataSource" database="papo" table="_product_data" |
188 |
order_by="name"> |
order_by="canonical_name"> |
189 |
|
<condition> |
190 |
|
<null> |
191 |
|
<cfield name="_product_data._end_t"/> |
192 |
|
</null> |
193 |
|
</condition> |
194 |
</datasource> |
</datasource> |
195 |
|
|
196 |
<datasource database="papo" name="alienDocumentDataSource" table="aliendocument" |
<datasource database="papo" name="resultAlienDocumentDataSource" table="alien_document" |
197 |
|
order_by="date" /> |
198 |
|
|
199 |
|
<datasource database="papo" name="alienDocumentDataSource" table="alien_document" |
200 |
order_by="date" /> |
order_by="date" /> |
201 |
|
|
202 |
<datasource database="papo" detaillink="alienitem.alien_document" |
<datasource database="papo" detaillink="alien_item.alien_document" |
203 |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
204 |
table="alienitem, alienproditem"> |
table="alien_item, alien_product_item"> |
205 |
<condition> |
<condition> |
206 |
<and> |
<and> |
207 |
<eq> |
<eq> |
208 |
<cfield name="alienitem.id"/> |
<cfield name="alien_item.id"/> |
209 |
<cfield name="alienproditem.alien_item"/> |
<cfield name="alien_product_item.alien_item"/> |
210 |
</eq> |
</eq> |
211 |
</and> |
</and> |
212 |
</condition> |
</condition> |
213 |
</datasource> |
</datasource> |
214 |
|
|
215 |
<datasource database="papo" name="alienItemDataSourceToUpd" |
<datasource database="papo" name="alienItemDataSourceToUpd" |
216 |
table="alienitem, alienproditem, productstore"> |
table="alien_item, alien_product_item, _product_store_data"> |
217 |
<condition> |
<condition> |
218 |
<and> |
<and> |
219 |
<eq> |
<eq> |
220 |
<cfield name="alienitem.id"/> |
<cfield name="alien_item.id"/> |
221 |
<cfield name="alienproditem.alien_item"/> |
<cfield name="alien_product_item.alien_item"/> |
222 |
</eq> |
</eq> |
223 |
<eq> |
<eq> |
224 |
<cfield name="alienproditem.product"/> |
<cfield name="alien_product_item.product"/> |
225 |
<cfield name="productstore.product"/> |
<cfield name="_product_store_data.product"/> |
226 |
</eq> |
</eq> |
227 |
|
<null> |
228 |
|
<cfield name="_product_store_data._end_t"/> |
229 |
|
</null> |
230 |
</and> |
</and> |
231 |
</condition> |
</condition> |
232 |
</datasource> |
</datasource> |
233 |
|
|
234 |
|
<trigger name="toDayTrigger" type="NAMED"> |
235 |
|
alienDocumentBlock.dateEntry = alienDocumentDataSource.getTimeStamp() |
236 |
|
</trigger> |
237 |
|
|
238 |
<trigger name="commitTrigger" type="NAMED"> |
<trigger name="commitTrigger" type="NAMED"> |
239 |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.qtyEntry) > 0: |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.qtyEntry) > 0: |
240 |
alienDocumentBlock.commit() |
alienDocumentBlock.commit() |
241 |
lAlienDocId = str(alienDocumentBlock.idEntry) |
lAlienDocId = str(alienDocumentBlock.idEntry) |
242 |
setFocus(alienDocumentBlock.dateEntry) |
setFocus(alienDocumentBlock.dateEntry) |
243 |
alienItemToUpdBlock.initQuery() |
alienItemToUpdBlock.initQuery() |
244 |
alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
245 |
alienItemToUpdBlock.processQuery() |
alienItemToUpdBlock.processQuery() |
246 |
lRecordCount = alienItemToUpdBlock.getRecordCount() |
lRecordCount = alienItemToUpdBlock.getRecordCount() |
247 |
for recNum in range(lRecordCount): |
for recNum in range(lRecordCount): |
248 |
alienItemToUpdBlock.jumpRecord(recNum) |
alienItemToUpdBlock.jumpRecord(recNum) |
249 |
alienItemToUpdBlock.levelEntry.atomicModify(lambda x:x+round(float(str(alienItemToUpdBlock.qtyEntry)),4)) |
alienItemToUpdBlock.levelEntry.atomicModify(lambda x:x+round(float(str(alienItemToUpdBlock.qtyEntry)),4)) |
250 |
alienItemToUpdBlock.processRollback() |
alienItemToUpdBlock.processRollback() |
251 |
else: |
else: |
252 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
253 |
|
|
254 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
255 |
alienItemBlock.processRollback() |
alienItemBlock.processRollback() |
256 |
searchResultBlock.processRollback() |
resultBlock.processRollback() |
257 |
alienDocumentBlock.newRecord() |
alienDocumentBlock.newRecord() |
258 |
import mx.DateTime |
totalBlock.total = "" |
|
alienDocumentBlock.dateEntry = mx.DateTime.localtime() |
|
|
totalBlock.total = "" |
|
259 |
</trigger> |
</trigger> |
260 |
|
|
261 |
<trigger name="rollbackTrigger" type="NAMED"> |
<trigger name="rollbackTrigger" type="NAMED"> |
262 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
263 |
totalBlock.total = "" |
totalBlock.total = "" |
264 |
</trigger> |
</trigger> |
265 |
|
|
266 |
<trigger name="deleteTrigger" type="NAMED"> |
<trigger name="deleteTrigger" type="NAMED"> |
267 |
lRecordCount = alienItemBlock.getRecordCount() |
lAlienDocId = str(alienDocumentBlock.idEntry) |
268 |
for recNum in range(lRecordCount): |
alienItemToUpdBlock.initQuery() |
269 |
alienItemBlock.jumpRecord(recNum) |
alienItemToUpdBlock.alienDocumentToUpdEntry = lAlienDocId |
270 |
alienItemBlock.deleteRecord() |
alienItemToUpdBlock.processQuery() |
271 |
alienItemBlock.commit() |
lRecordCount = alienItemToUpdBlock.getRecordCount() |
272 |
alienDocumentBlock.deleteRecord() |
for recNum in range(lRecordCount): |
273 |
alienDocumentBlock.commit() |
alienItemToUpdBlock.jumpRecord(recNum) |
274 |
alienDocumentBlock.processRollback() |
alienItemToUpdBlock.levelEntry.atomicModify(lambda x:x-round(float(str(alienItemToUpdBlock.qtyEntry)),4)) |
275 |
totalBlock.total = "" |
alienItemToUpdBlock.processRollback() |
276 |
|
lRecordCount = alienItemBlock.getRecordCount() |
277 |
|
for recNum in range(lRecordCount): |
278 |
|
alienItemBlock.jumpRecord(recNum) |
279 |
|
alienItemBlock.deleteRecord() |
280 |
|
alienItemBlock.commit() |
281 |
|
alienDocumentBlock.deleteRecord() |
282 |
|
alienDocumentBlock.commit() |
283 |
|
alienDocumentBlock.processRollback() |
284 |
|
|
285 |
|
totalBlock.total = "" |
286 |
</trigger> |
</trigger> |
287 |
|
|
288 |
<trigger name="quitTrigger" type="NAMED"> |
<trigger name="quitTrigger" type="NAMED"> |
289 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.processRollback() |
290 |
self.exit() |
self.exit() |
291 |
</trigger> |
</trigger> |
292 |
|
|
293 |
<trigger name="totalCalcTrigger" type="NAMED"> |
<trigger name="totalCalcTrigger" type="NAMED"> |
294 |
sum = 0 |
import hack |
295 |
lRecords = alienItemDataSource.getRecords() |
|
296 |
for index in range(len(lRecords)): |
sum = 0 |
297 |
lRecord = lRecords[index] |
lRecords = alienItemDataSource.getRecords() |
298 |
lQty = eval(str(lRecord.getField("alienproditem.qty"))) |
for index in range(len(lRecords)): |
299 |
#print "cantidad:",lQty |
lRecord = lRecords[index] |
300 |
lBonus = eval(str(lRecord.getField("alienitem.bonus"))) |
lQty = hack.a2f(lRecord.getField("alien_product_item.qty")) |
301 |
lDiscount = eval(str(lRecord.getField("alienitem.discount"))) |
lBonus = hack.a2f(lRecord.getField("alien_item.bonus")) |
302 |
lUnitPrice = eval(str(lRecord.getField("alienproditem.unit_price"))) |
lDiscount = hack.a2f(lRecord.getField("alien_item.discount")) |
303 |
if (lUnitPrice == None): |
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price")) |
304 |
lUnitPrice = 0 |
sum = sum + (lQty * lUnitPrice) - lBonus - lDiscount |
305 |
lRecord.setField("alienitem.unit_price",0.00) |
totalBlock.total = str(sum) |
|
if (lQty == None): |
|
|
lQty = 1 |
|
|
lRecord.setField("alienproditem.qty",1) |
|
|
if (lBonus == None): |
|
|
lBonus = 0 |
|
|
lRecord.setField("alienitem.bonus",0.00) |
|
|
if (lDiscount == None): |
|
|
lDiscount = 0 |
|
|
lRecord.setField("alienitem.discount",0.00) |
|
|
sum = sum + (lQty * lUnitPrice) - lBonus - lDiscount |
|
|
totalBlock.total = str(sum) |
|
306 |
</trigger> |
</trigger> |
307 |
|
|
308 |
<trigger name="newSearchTrigger" type="NAMED"> |
<trigger name="newSearchTrigger" type="NAMED"> |
309 |
searchResultBlock.processRollback() |
alienDocumentSearchBlock.processRollback() |
|
searchResultBlock.initQuery() |
|
|
searchResultBlock.typeREntry = "2" |
|
310 |
</trigger> |
</trigger> |
311 |
|
|
312 |
<trigger name="searchTrigger" type="NAMED"> |
<trigger name="searchTrigger" type="NAMED"> |
313 |
searchResultBlock.providerREntry = str(alienDocumentSearchBlock.providerSEntry) |
resultBlock.processRollback() |
314 |
searchResultBlock.transportREntry = str(alienDocumentSearchBlock.transportSEntry) |
resultBlock.initQuery() |
315 |
searchResultBlock.salesPersonREntry = str(alienDocumentSearchBlock.salesPersonSEntry) |
resultBlock.typeREntry = "2" |
316 |
searchResultBlock.receivedREntry = str(alienDocumentSearchBlock.receivedSEntry) |
resultBlock.providerREntry = str(alienDocumentSearchBlock.providerSEntry) |
317 |
searchResultBlock.numberREntry = str(alienDocumentSearchBlock.numberSEntry) |
resultBlock.transportREntry = str(alienDocumentSearchBlock.transportSEntry) |
318 |
searchResultBlock.dateREntry = str(alienDocumentSearchBlock.dateSEntry) |
resultBlock.salesPersonREntry = str(alienDocumentSearchBlock.salesPersonSEntry) |
319 |
searchResultBlock.guideNumerREntry = str(alienDocumentSearchBlock.guideNumerSEntry) |
resultBlock.receivedREntry = str(alienDocumentSearchBlock.receivedSEntry) |
320 |
searchResultBlock.bundlesREntry = str(alienDocumentSearchBlock.bundlesSEntry) |
resultBlock.numberREntry = str(alienDocumentSearchBlock.numberSEntry)+"%" |
321 |
|
resultBlock.dateREntry = str(alienDocumentSearchBlock.dateSEntry) |
322 |
searchResultBlock.processQuery() |
resultBlock.guideNumerREntry = str(alienDocumentSearchBlock.guideNumerSEntry) |
323 |
|
resultBlock.bundlesREntry = str(alienDocumentSearchBlock.bundlesSEntry) |
324 |
|
|
325 |
|
resultBlock.processQuery() |
326 |
|
</trigger> |
327 |
|
|
328 |
|
<trigger name="resultFocusOutTrigger" type="NAMED"> |
329 |
|
alienDocumentBlock.processRollback() |
330 |
|
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
331 |
|
alienDocumentBlock.initQuery() |
332 |
|
alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry) |
333 |
|
alienDocumentBlock.processQuery() |
334 |
</trigger> |
</trigger> |
335 |
|
|
336 |
<page name="Búsqueda de Facturas de Proveedor"> |
<page name="Búsqueda de Facturas de Proveedor"> |
337 |
|
<trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> |
338 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="10" label="Factura de Productos de Proveedor" |
339 |
name="invoiceSearchBox" width="82" x="0" y="0"> |
name="invoiceSearchBox" width="82" x="0" y="0"> |
340 |
|
|
341 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock"> |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
342 |
|
|
343 |
<entry field="type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
344 |
|
|
345 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
346 |
<entry x="1" y="2" field="aliendocument.sender" name="providerSEntry" |
<entry x="1" y="2" field="alien_document.sender" name="providerSEntry" |
347 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
348 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
349 |
</entry> |
</entry> |
350 |
|
|
351 |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
352 |
<entry x="27" y="2" field="aliendocument.transport" name="transportSEntry" |
<entry x="27" y="2" field="alien_document.transport" name="transportSEntry" |
353 |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
354 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
355 |
</entry> |
</entry> |
356 |
|
|
357 |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
358 |
<entry x="1" y="4" field="aliendocument.salesperson" name="salesPersonSEntry" |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonSEntry" |
359 |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
360 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
361 |
</entry> |
</entry> |
362 |
|
|
363 |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
364 |
<entry x="27" y="4" field="aliendocument.received_by" name="receivedSEntry" |
<entry x="27" y="4" field="alien_document.received_by" name="receivedSEntry" |
365 |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
366 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
367 |
</entry> |
</entry> |
368 |
|
|
369 |
<label name="numberLbl" text="Número" x="1" y="6" /> |
<label name="numberLbl" text="Número" x="1" y="6" /> |
376 |
<label name="bundlesLbl" text="Bultos" x="66" y="6" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="6" /> |
377 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="7"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="7"/> |
378 |
|
|
379 |
<button x="63" y="2" trigger="newSearchTrigger" width="16" label="Nueva Búsqueda" |
<button x="63" y="2" trigger="searchTrigger" width="16" label="Buscar" |
|
name="newSearchBtn" height="1"/> |
|
|
<button x="63" y="3" trigger="searchTrigger" width="16" label="Buscar" |
|
380 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
381 |
<button x="63" y="4" trigger="quitTrigger" width="16" label="Salir" |
<button x="63" y="3" trigger="newSearchTrigger" width="16" label="Cancelar" |
382 |
name="quitBtn" height="1"/> |
name="newSearchBtn" height="1"/> |
|
|
|
383 |
</block> |
</block> |
384 |
</box> |
</box> |
385 |
|
|
386 |
<box height="11" label="Facturas encontradas" name="searchResultBox" |
<box height="11" label="Facturas encontradas" name="searchResultBox" |
387 |
width="82" x="0" y="9"> |
width="82" x="0" y="9"> |
388 |
<block datasource="alienDocumentDataSource" name="searchResultBlock"> |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
389 |
|
|
390 |
<entry field="type" hidden="" name="typeREntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
391 |
|
|
392 |
<entry x="1" y="1" field="aliendocument.sender" name="providerREntry" |
<entry field="alien_document_type" hidden="" name="typeREntry" x="1" y="1"/> |
393 |
|
|
394 |
|
<entry x="1" y="1" field="sender" name="providerREntry" |
395 |
width="25" hidden=""/> |
width="25" hidden=""/> |
396 |
|
|
397 |
<entry x="27" y="2" field="aliendocument.transport" name="transportREntry" |
<entry x="27" y="2" field="transport" name="transportREntry" |
398 |
width="25" hidden=""/> |
width="25" hidden=""/> |
399 |
|
|
400 |
<entry x="1" y="4" field="aliendocument.salesperson" name="salesPersonREntry" |
<entry x="1" y="4" field="salesperson" name="salesPersonREntry" |
401 |
width="25" hidden=""/> |
width="25" hidden=""/> |
402 |
|
|
403 |
<entry x="27" y="4" field="aliendocument.received_by" name="receivedREntry" |
<entry x="27" y="4" field="received_by" name="receivedREntry" |
404 |
width="25" hidden=""/> |
width="25" hidden=""/> |
405 |
|
|
406 |
<entry field="number" name="numberREntry" hidden="" width="20" x="1" y="7"/> |
<entry field="number" name="numberREntry" hidden="" width="20" x="1" y="7"/> |
426 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="10" label="Factura de Productos de Proveedor" |
427 |
name="invoiceHeaderBox" width="82" x="0" y="0"> |
name="invoiceHeaderBox" width="82" x="0" y="0"> |
428 |
|
|
429 |
<block datasource="alienDocumentDataSource" name="alienDocumentBlock"> |
<block datasource="alienDocumentDataSource" name="alienDocumentBlock" restrictInsert=""> |
430 |
<trigger name="t" type="Pre-Insert"> |
<trigger name="t" type="Pre-Insert"> |
431 |
alienDocumentBlock.idEntry.autofillBySequence('aliendocument_id_seq') |
alienDocumentBlock.idEntry.autofillBySequence('alien_document_id_seq') |
432 |
alienDocumentBlock.typeEntry = "2" |
alienDocumentBlock.typeEntry = "2" |
433 |
</trigger> |
</trigger> |
434 |
|
|
435 |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
436 |
<entry field="type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
437 |
|
|
438 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
439 |
<entry x="1" y="2" field="aliendocument.sender" name="providerEntry" |
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" |
440 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
441 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
442 |
</entry> |
</entry> |
443 |
|
|
444 |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
445 |
<entry x="27" y="2" field="aliendocument.transport" name="transportEntry" |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" |
446 |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
447 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
448 |
</entry> |
</entry> |
449 |
|
|
450 |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
451 |
<entry x="1" y="4" field="aliendocument.salesperson" name="salesPersonEntry" |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonEntry" |
452 |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
453 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
454 |
</entry> |
</entry> |
455 |
|
|
456 |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
457 |
<entry x="27" y="4" field="aliendocument.received_by" name="receivedEntry" |
<entry x="27" y="4" field="alien_document.received_by" name="receivedEntry" |
458 |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
459 |
foreign_key_description="entity.name" > |
foreign_key_description="_entity_data.name" > |
460 |
</entry> |
</entry> |
461 |
|
|
462 |
<label name="numberLbl" text="Número" x="1" y="6" /> |
<label name="numberLbl" text="Número" x="1" y="6" /> |
463 |
<entry field="number" name="numberEntry" width="20" x="1" y="7"/> |
<entry field="number" name="numberEntry" width="20" x="1" y="7"/> |
464 |
|
|
465 |
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
466 |
<entry field="date" name="dateEntry" typecast="date" |
<entry field="date" name="dateEntry" typecast="date" |
467 |
rows="1" width="22" x="22" y="7"/> |
rows="1" width="22" x="22" y="7"/> |
468 |
<label name="guideNumberLbl" text="Número de guía" x="45" y="6" /> |
|
469 |
<entry field="guide_number" name="guideNumerEntry" width="20" x="45" y="7"/> |
<button x="44" y="7" trigger="toDayTrigger" width="3" label="." |
470 |
<label name="bundlesLbl" text="Bultos" x="66" y="6" /> |
name="dateBtn" height="1"/> |
471 |
<entry field="bundles" name="bundlesEntry" width="10" x="66" y="7"/> |
|
472 |
|
<label name="guideNumberLbl" text="Número de guía" x="48" y="6" /> |
473 |
|
<entry field="guide_number" name="guideNumerEntry" width="20" x="48" y="7"/> |
474 |
|
|
475 |
|
<label name="bundlesLbl" text="Bultos" x="69" y="6" /> |
476 |
|
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="7"/> |
477 |
|
|
478 |
<button x="65" y="1" trigger="commitTrigger" width="14" label="Aceptar" |
<button x="65" y="1" trigger="commitTrigger" width="14" label="Aceptar" |
479 |
name="commitBtn" height="1"/> |
name="commitBtn" height="1"/> |
481 |
name="rollbackBtn" height="1"/> |
name="rollbackBtn" height="1"/> |
482 |
<button x="65" y="3" trigger="deleteTrigger" width="14" label="Borrar" |
<button x="65" y="3" trigger="deleteTrigger" width="14" label="Borrar" |
483 |
name="deleteBtn" height="1"/> |
name="deleteBtn" height="1"/> |
|
<button x="65" y="4" trigger="quitTrigger" width="14" label="Salir" |
|
|
name="quitBtn" height="1"/> |
|
484 |
</block> |
</block> |
485 |
</box> |
</box> |
486 |
|
|
488 |
width="82" x="0" y="9"> |
width="82" x="0" y="9"> |
489 |
<block datasource="alienItemDataSource" name="alienItemBlock"> |
<block datasource="alienItemDataSource" name="alienItemBlock"> |
490 |
|
|
491 |
<entry field="alienitem.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
492 |
|
|
493 |
<label name="qtyLbl" text="Cantidad" x="2" y="1"/> |
<label name="qtyLbl" text="Cantidad" x="2" y="1"/> |
494 |
<entry field="alienproditem.qty" value="0" name="qtyEntry" rows="5" typecast="number" width="12" x="2" y="2"> |
<entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="5" typecast="number" width="12" x="2" y="2"> |
495 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
496 |
</entry> |
</entry> |
497 |
<label name="productLbl" text="Producto" x="15" y="1"/> |
<label name="productLbl" text="Producto" x="15" y="1"/> |
498 |
<entry x="15" y="2" field="alienproditem.product" name="productEntry" |
<entry x="15" y="2" field="alien_product_item.product" name="productEntry" |
499 |
width="20" rows="5" style="dropdown" foreign_key="productDataSource.id" |
width="20" rows="5" style="dropdown" foreign_key="productDataSource.id" |
500 |
foreign_key_description="name"> |
foreign_key_description="canonical_name"> |
501 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
502 |
</entry> |
</entry> |
503 |
<label name="priceLbl" text="Precio" x="36" y="1"/> |
<label name="priceLbl" text="Precio" x="36" y="1"/> |
504 |
<entry x="36" y="2" field="alienproditem.unit_price" name="unitPriceEntry" |
<entry x="36" y="2" field="alien_product_item.unit_price" name="unitPriceEntry" |
505 |
width="10" rows="5"> |
width="10" rows="5"> |
506 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
507 |
</entry> |
</entry> |
508 |
<label name="discountLbl" text="Descuento" x="47" y="1"/> |
<label name="discountLbl" text="Descuento" x="47" y="1"/> |
509 |
<entry field="alienitem.discount" name="discountEntry" value="0" typecast="number" |
<entry field="alien_item.discount" name="discountEntry" value="0" typecast="number" |
510 |
rows="5" width="12" x="47" y="2"> |
rows="5" width="12" x="47" y="2"> |
511 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
512 |
</entry> |
</entry> |
513 |
<label name="bonusLbl" text="Bonificación" x="60" y="1"/> |
<label name="bonusLbl" text="Bonificación" x="60" y="1"/> |
514 |
<entry field="alienitem.bonus" name="bonusEntry" value="0" typecast="number" |
<entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" |
515 |
rows="5" width="12" x="60" y="2"> |
rows="5" width="12" x="60" y="2"> |
516 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
517 |
</entry> |
</entry> |
523 |
<entry name="total" readonly="" x="36" y="8" width="12"/> |
<entry name="total" readonly="" x="36" y="8" width="12"/> |
524 |
</block> |
</block> |
525 |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
526 |
<entry name="alienDocumentToUpdEntry" field="alienitem.alien_document" hidden="" x="1" y="109" width="10"/> |
<entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/> |
527 |
<entry name="prodIdEntry" field="alienproditem.product" hidden="" x="11" y="109" width="10"/> |
<entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/> |
528 |
<entry name="qtyEntry" field="alienproditem.qty" hidden="" x="22" y="109" width="10"/> |
<entry name="qtyEntry" field="alien_product_item.qty" hidden="" x="22" y="109" width="10"/> |
529 |
<entry name="levelEntry" field="productstore.level" hidden="" x="33" y="109" width="10"/> |
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
530 |
|
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
531 |
|
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
532 |
|
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
533 |
|
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
534 |
|
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
535 |
</block> |
</block> |
536 |
</box> |
</box> |
537 |
</page> |
</page> |