6 |
<!-- end_timestamp (timestamp) --> |
<!-- end_timestamp (timestamp) --> |
7 |
<!-- observations (text) --> |
<!-- observations (text) --> |
8 |
|
|
9 |
<form tabbed="top" width="85" height="21" title="Carga de Facturas de Proveedores"> |
<form tabbed="top" width="107" height="24" title="Carga de Facturas de Proveedores"> |
10 |
|
|
11 |
<datasource name="nil" cache="1"/> |
<datasource name="nil" cache="1"/> |
12 |
<datasource name="payDataSource" cache="1"/> |
<datasource name="payDataSource" cache="1"/> |
13 |
<datasource name="tmpSearchDataSource" cache="1"/> |
<datasource name="tmpSearchDataSource" cache="1"/> |
14 |
|
<datasource name="currentSearchIdDataSource" cache="1"/> |
15 |
|
|
16 |
<!-- Origen de datos que sirve para dar de alta procedimientos de pago (en este caso de la factura) --> |
<!-- Origen de datos que sirve para dar de alta procedimientos de pago (en este caso de la factura) --> |
17 |
<datasource name="proceedingDataSource" database="papo" table="proceeding"/> |
<datasource name="proceedingDataSource" database="papo" table="proceeding"/> |
105 |
</condition> |
</condition> |
106 |
</datasource> |
</datasource> |
107 |
|
|
108 |
<datasource name="providerDataSource" database="papo" |
<datasource name="providerSearchDataSource" database="papo" |
109 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, |
110 |
order_by="_entity_data.name"> |
_entity_uid_data" order_by="_entity_data.name"> |
111 |
<condition> |
<condition> |
112 |
<and> |
<and> |
113 |
<eq> |
<eq> |
114 |
<cfield name="entity.id"/> |
<cfield name="_entity_data._table"/> |
115 |
<cfield name="_entity_data._table"/> |
<cfield name="_alien_entity_data.entity"/> |
116 |
</eq> |
</eq> |
117 |
<eq> |
<eq> |
118 |
<cfield name="alien_entity.id"/> |
<cfield name="_alien_entity_data._table"/> |
119 |
<cfield name="_alien_entity_data._table"/> |
<cfield name="_persona_data.alien_entity"/> |
120 |
</eq> |
</eq> |
121 |
<eq> |
<eq> |
122 |
<cfield name="persona.id"/> |
<cfield name="_persona_data._table"/> |
123 |
<cfield name="_persona_data._table"/> |
<cfield name="_provider_data.persona"/> |
124 |
</eq> |
</eq> |
125 |
<eq> |
<eq> |
126 |
<cfield name="provider.id"/> |
<cfield name="_entity_data._table"/> |
127 |
<cfield name="_provider_data._table"/> |
<cfield name="_entity_uid_data.entity"/> |
128 |
</eq> |
</eq> |
129 |
<eq> |
<eq> |
130 |
<cfield name="entity.id"/> |
<cfield name="_entity_uid_data.entity_uid_type"/> |
131 |
<cfield name="_alien_entity_data.entity"/> |
<cfield name="_entity_uid_type_data._table"/> |
132 |
</eq> |
</eq> |
133 |
<eq> |
<eq> |
134 |
<cfield name="alien_entity.id"/> |
<cconst value="8"/> |
135 |
<cfield name="_persona_data.alien_entity"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
136 |
</eq> |
</eq> |
137 |
<eq> |
<eq> |
138 |
<cfield name="persona.id"/> |
<cfield name="_entity_type_data._table"/> |
139 |
<cfield name="_provider_data.persona"/> |
<cfield name="entity_type_uid_conf.entity_type"/> |
140 |
</eq> |
</eq> |
141 |
|
<eq> |
142 |
|
<cfield name="_entity_uid_type_data._table"/> |
143 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
144 |
|
</eq> |
145 |
<null> |
<null> |
146 |
<cfield name="_entity_data._end_t"/> |
<cfield name="_entity_data._end_t"/> |
147 |
</null> |
</null> |
154 |
<null> |
<null> |
155 |
<cfield name="_provider_data._end_t"/> |
<cfield name="_provider_data._end_t"/> |
156 |
</null> |
</null> |
157 |
|
<null> |
158 |
|
<cfield name="_entity_uid_data._end_t"/> |
159 |
|
</null> |
160 |
|
<null> |
161 |
|
<cfield name="_entity_type_data._end_t"/> |
162 |
|
</null> |
163 |
</and> |
</and> |
164 |
</condition> |
</condition> |
165 |
</datasource> |
</datasource> |
166 |
|
|
167 |
|
<datasource name="providerUIDDataSource" database="papo" |
168 |
|
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, |
169 |
|
_entity_uid_data" order_by="_entity_data.name"> |
170 |
|
<condition> |
171 |
|
<and> |
172 |
|
<eq> |
173 |
|
<cfield name="_entity_data._table"/> |
174 |
|
<cfield name="_alien_entity_data.entity"/> |
175 |
|
</eq> |
176 |
|
<eq> |
177 |
|
<cfield name="_alien_entity_data._table"/> |
178 |
|
<cfield name="_persona_data.alien_entity"/> |
179 |
|
</eq> |
180 |
|
<eq> |
181 |
|
<cfield name="_persona_data._table"/> |
182 |
|
<cfield name="_provider_data.persona"/> |
183 |
|
</eq> |
184 |
|
<eq> |
185 |
|
<cfield name="_entity_data._table"/> |
186 |
|
<cfield name="_entity_uid_data.entity"/> |
187 |
|
</eq> |
188 |
|
<eq> |
189 |
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
190 |
|
<cfield name="_entity_uid_type_data._table"/> |
191 |
|
</eq> |
192 |
|
<eq> |
193 |
|
<cconst value="8"/> |
194 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
195 |
|
</eq> |
196 |
|
<eq> |
197 |
|
<cfield name="_entity_type_data._table"/> |
198 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
199 |
|
</eq> |
200 |
|
<eq> |
201 |
|
<cfield name="_entity_uid_type_data._table"/> |
202 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
203 |
|
</eq> |
204 |
|
<null> |
205 |
|
<cfield name="_entity_data._end_t"/> |
206 |
|
</null> |
207 |
|
<null> |
208 |
|
<cfield name="_alien_entity_data._end_t"/> |
209 |
|
</null> |
210 |
|
<null> |
211 |
|
<cfield name="_persona_data._end_t"/> |
212 |
|
</null> |
213 |
|
<null> |
214 |
|
<cfield name="_provider_data._end_t"/> |
215 |
|
</null> |
216 |
|
<null> |
217 |
|
<cfield name="_entity_uid_data._end_t"/> |
218 |
|
</null> |
219 |
|
<null> |
220 |
|
<cfield name="_entity_type_data._end_t"/> |
221 |
|
</null> |
222 |
|
</and> |
223 |
|
</condition> |
224 |
|
</datasource> |
225 |
|
|
226 |
|
<datasource name="providerNameDataSource" database="papo" |
227 |
|
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, |
228 |
|
_entity_uid_data" order_by="_entity_data.name"> |
229 |
|
<condition> |
230 |
|
<and> |
231 |
|
<eq> |
232 |
|
<cfield name="_entity_data._table"/> |
233 |
|
<cfield name="_alien_entity_data.entity"/> |
234 |
|
</eq> |
235 |
|
<eq> |
236 |
|
<cfield name="_alien_entity_data._table"/> |
237 |
|
<cfield name="_persona_data.alien_entity"/> |
238 |
|
</eq> |
239 |
|
<eq> |
240 |
|
<cfield name="_persona_data._table"/> |
241 |
|
<cfield name="_provider_data.persona"/> |
242 |
|
</eq> |
243 |
|
<eq> |
244 |
|
<cfield name="_entity_data._table"/> |
245 |
|
<cfield name="_entity_uid_data.entity"/> |
246 |
|
</eq> |
247 |
|
<eq> |
248 |
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
249 |
|
<cfield name="_entity_uid_type_data._table"/> |
250 |
|
</eq> |
251 |
|
<eq> |
252 |
|
<cconst value="8"/> |
253 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
254 |
|
</eq> |
255 |
|
<eq> |
256 |
|
<cfield name="_entity_type_data._table"/> |
257 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
258 |
|
</eq> |
259 |
|
<eq> |
260 |
|
<cfield name="_entity_uid_type_data._table"/> |
261 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
262 |
|
</eq> |
263 |
|
<null> |
264 |
|
<cfield name="_entity_data._end_t"/> |
265 |
|
</null> |
266 |
|
<null> |
267 |
|
<cfield name="_alien_entity_data._end_t"/> |
268 |
|
</null> |
269 |
|
<null> |
270 |
|
<cfield name="_persona_data._end_t"/> |
271 |
|
</null> |
272 |
|
<null> |
273 |
|
<cfield name="_provider_data._end_t"/> |
274 |
|
</null> |
275 |
|
<null> |
276 |
|
<cfield name="_entity_uid_data._end_t"/> |
277 |
|
</null> |
278 |
|
<null> |
279 |
|
<cfield name="_entity_type_data._end_t"/> |
280 |
|
</null> |
281 |
|
</and> |
282 |
|
</condition> |
283 |
|
</datasource> |
284 |
|
|
285 |
|
<datasource name="transportUIDDataSource" database="papo" |
286 |
|
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, |
287 |
|
_entity_uid_data" order_by="_entity_data.name"> |
288 |
|
<condition> |
289 |
|
<and> |
290 |
|
<eq> |
291 |
|
<cfield name="_entity_data._table"/> |
292 |
|
<cfield name="_alien_entity_data.entity"/> |
293 |
|
</eq> |
294 |
|
<eq> |
295 |
|
<cfield name="_alien_entity_data._table"/> |
296 |
|
<cfield name="_persona_data.alien_entity"/> |
297 |
|
</eq> |
298 |
|
<eq> |
299 |
|
<cfield name="_persona_data._table"/> |
300 |
|
<cfield name="_provider_data.persona"/> |
301 |
|
</eq> |
302 |
|
<eq> |
303 |
|
<cfield name="_entity_data._table"/> |
304 |
|
<cfield name="_entity_uid_data.entity"/> |
305 |
|
</eq> |
306 |
|
<eq> |
307 |
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
308 |
|
<cfield name="_entity_uid_type_data._table"/> |
309 |
|
</eq> |
310 |
|
<eq> |
311 |
|
<cconst value="8"/> |
312 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
313 |
|
</eq> |
314 |
|
<eq> |
315 |
|
<cfield name="_entity_type_data._table"/> |
316 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
317 |
|
</eq> |
318 |
|
<eq> |
319 |
|
<cfield name="_entity_uid_type_data._table"/> |
320 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
321 |
|
</eq> |
322 |
|
<null> |
323 |
|
<cfield name="_entity_data._end_t"/> |
324 |
|
</null> |
325 |
|
<null> |
326 |
|
<cfield name="_alien_entity_data._end_t"/> |
327 |
|
</null> |
328 |
|
<null> |
329 |
|
<cfield name="_persona_data._end_t"/> |
330 |
|
</null> |
331 |
|
<null> |
332 |
|
<cfield name="_provider_data._end_t"/> |
333 |
|
</null> |
334 |
|
<null> |
335 |
|
<cfield name="_entity_uid_data._end_t"/> |
336 |
|
</null> |
337 |
|
<null> |
338 |
|
<cfield name="_entity_type_data._end_t"/> |
339 |
|
</null> |
340 |
|
</and> |
341 |
|
</condition> |
342 |
|
</datasource> |
343 |
|
|
344 |
|
<datasource name="transportNameDataSource" database="papo" |
345 |
|
table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, |
346 |
|
_entity_uid_data" order_by="_entity_data.name"> |
347 |
|
<condition> |
348 |
|
<and> |
349 |
|
<eq> |
350 |
|
<cfield name="_entity_data._table"/> |
351 |
|
<cfield name="_alien_entity_data.entity"/> |
352 |
|
</eq> |
353 |
|
<eq> |
354 |
|
<cfield name="_alien_entity_data._table"/> |
355 |
|
<cfield name="_persona_data.alien_entity"/> |
356 |
|
</eq> |
357 |
|
<eq> |
358 |
|
<cfield name="_persona_data._table"/> |
359 |
|
<cfield name="_provider_data.persona"/> |
360 |
|
</eq> |
361 |
|
<eq> |
362 |
|
<cfield name="_entity_data._table"/> |
363 |
|
<cfield name="_entity_uid_data.entity"/> |
364 |
|
</eq> |
365 |
|
<eq> |
366 |
|
<cfield name="_entity_uid_data.entity_uid_type"/> |
367 |
|
<cfield name="_entity_uid_type_data._table"/> |
368 |
|
</eq> |
369 |
|
<eq> |
370 |
|
<cconst value="8"/> |
371 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
372 |
|
</eq> |
373 |
|
<eq> |
374 |
|
<cfield name="_entity_type_data._table"/> |
375 |
|
<cfield name="entity_type_uid_conf.entity_type"/> |
376 |
|
</eq> |
377 |
|
<eq> |
378 |
|
<cfield name="_entity_uid_type_data._table"/> |
379 |
|
<cfield name="entity_type_uid_conf.entity_uid_type"/> |
380 |
|
</eq> |
381 |
|
<null> |
382 |
|
<cfield name="_entity_data._end_t"/> |
383 |
|
</null> |
384 |
|
<null> |
385 |
|
<cfield name="_alien_entity_data._end_t"/> |
386 |
|
</null> |
387 |
|
<null> |
388 |
|
<cfield name="_persona_data._end_t"/> |
389 |
|
</null> |
390 |
|
<null> |
391 |
|
<cfield name="_provider_data._end_t"/> |
392 |
|
</null> |
393 |
|
<null> |
394 |
|
<cfield name="_entity_uid_data._end_t"/> |
395 |
|
</null> |
396 |
|
<null> |
397 |
|
<cfield name="_entity_type_data._end_t"/> |
398 |
|
</null> |
399 |
|
</and> |
400 |
|
</condition> |
401 |
|
</datasource> |
402 |
|
|
403 |
|
<!-- <datasource name="providerExternalSearchDataSource" database="papo" --> |
404 |
|
<!-- table="_entity_data, _alien_entity_data, _persona_data, _provider_data, entity_type_uid_conf, _entity_uid_type_data, --> |
405 |
|
<!-- _entity_uid_data" order_by="_entity_data.name"> --> |
406 |
|
<!-- <condition> --> |
407 |
|
<!-- <and> --> |
408 |
|
<!-- <eq> --> |
409 |
|
<!-- <cfield name="_entity_data._table"/> --> |
410 |
|
<!-- <cfield name="_alien_entity_data.entity"/> --> |
411 |
|
<!-- </eq> --> |
412 |
|
<!-- <eq> --> |
413 |
|
<!-- <cfield name="_alien_entity_data._table"/> --> |
414 |
|
<!-- <cfield name="_persona_data.alien_entity"/> --> |
415 |
|
<!-- </eq> --> |
416 |
|
<!-- <eq> --> |
417 |
|
<!-- <cfield name="_persona_data._table"/> --> |
418 |
|
<!-- <cfield name="_provider_data.persona"/> --> |
419 |
|
<!-- </eq> --> |
420 |
|
<!-- <eq> --> |
421 |
|
<!-- <cfield name="_entity_data._table"/> --> |
422 |
|
<!-- <cfield name="_entity_uid_data.entity"/> --> |
423 |
|
<!-- </eq> --> |
424 |
|
<!-- <eq> --> |
425 |
|
<!-- <cfield name="_entity_uid_data.entity_uid_type"/> --> |
426 |
|
<!-- <cfield name="_entity_uid_type_data.id"/> --> |
427 |
|
<!-- </eq> --> |
428 |
|
<!-- <eq> --> |
429 |
|
<!-- <cconst value="8"/> --> |
430 |
|
<!-- <cfield name="entity_type_uid_conf.entity_type"/> --> |
431 |
|
<!-- </eq> --> |
432 |
|
<!-- <eq> --> |
433 |
|
<!-- <cfield name="_entity_type_data._table"/> --> |
434 |
|
<!-- <cfield name="entity_type_uid_conf.entity_type"/> --> |
435 |
|
<!-- </eq> --> |
436 |
|
<!-- <eq> --> |
437 |
|
<!-- <cfield name="_entity_uid_type_data._table"/> --> |
438 |
|
<!-- <cfield name="entity_type_uid_conf.entity_uid_type"/> --> |
439 |
|
<!-- </eq> --> |
440 |
|
<!-- <null> --> |
441 |
|
<!-- <cfield name="_entity_data._end_t"/> --> |
442 |
|
<!-- </null> --> |
443 |
|
<!-- <null> --> |
444 |
|
<!-- <cfield name="_alien_entity_data._end_t"/> --> |
445 |
|
<!-- </null> --> |
446 |
|
<!-- <null> --> |
447 |
|
<!-- <cfield name="_persona_data._end_t"/> --> |
448 |
|
<!-- </null> --> |
449 |
|
<!-- <null> --> |
450 |
|
<!-- <cfield name="_provider_data._end_t"/> --> |
451 |
|
<!-- </null> --> |
452 |
|
<!-- <null> --> |
453 |
|
<!-- <cfield name="_entity_uid_data._end_t"/> --> |
454 |
|
<!-- </null> --> |
455 |
|
<!-- <null> --> |
456 |
|
<!-- <cfield name="_entity_type_data._end_t"/> --> |
457 |
|
<!-- </null> --> |
458 |
|
<!-- </and> --> |
459 |
|
<!-- </condition> --> |
460 |
|
<!-- </datasource> --> |
461 |
|
|
462 |
<datasource name="transportDataSource" database="papo" |
<datasource name="transportDataSource" database="papo" |
463 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, provider, _provider_data" |
464 |
order_by="_entity_data.name"> |
order_by="_entity_data.name"> |
508 |
</condition> |
</condition> |
509 |
</datasource> |
</datasource> |
510 |
|
|
511 |
|
<!-- |
512 |
|
datasource usado para la búsqueda |
513 |
|
--> |
514 |
|
<datasource name="productSearchDataSource" database="papo" |
515 |
|
table=" _product_data, _product_code_data, _product_tax_data" |
516 |
|
cache="15" order_by="_product_data.canonical_name"> |
517 |
|
<condition> |
518 |
|
<and> |
519 |
|
<null> |
520 |
|
<cfield name="_product_data._end_t"/> |
521 |
|
</null> |
522 |
|
<!-- pega product con product_code --> |
523 |
|
<eq> |
524 |
|
<cfield name="_product_data._table"/> |
525 |
|
<cfield name="_product_code_data.product"/> |
526 |
|
</eq> |
527 |
|
<!-- solamente códigos internos (id 1) --> |
528 |
|
<eq> |
529 |
|
<cfield name="_product_code_data.product_code_type"/> |
530 |
|
<cconst value="1"/> |
531 |
|
</eq> |
532 |
|
<!-- descarta códigos de producto muertos --> |
533 |
|
<null> |
534 |
|
<cfield name="_product_code_data._end_t"/> |
535 |
|
</null> |
536 |
|
<!-- pega product con product_tax --> |
537 |
|
<eq> |
538 |
|
<cfield name="_product_data._table"/> |
539 |
|
<cfield name="_product_tax_data.product"/> |
540 |
|
</eq> |
541 |
|
<!-- descarta product_taxes muertos --> |
542 |
|
<null> |
543 |
|
<cfield name="_product_tax_data._end_t"/> |
544 |
|
</null> |
545 |
|
<!-- solamente 'IVA' (id 1) --> |
546 |
|
<eq> |
547 |
|
<cfield name="_product_tax_data.tax"/> |
548 |
|
<cconst value="1"/> |
549 |
|
</eq> |
550 |
|
</and> |
551 |
|
</condition> |
552 |
|
</datasource> |
553 |
|
|
554 |
|
<datasource name="productUIDDataSource" database="papo" |
555 |
|
table=" _product_data, _product_code_data, _product_tax_data" |
556 |
|
cache="15" order_by="_product_data.canonical_name"> |
557 |
|
<condition> |
558 |
|
<and> |
559 |
|
<null> |
560 |
|
<cfield name="_product_data._end_t"/> |
561 |
|
</null> |
562 |
|
<!-- pega product con product_code --> |
563 |
|
<eq> |
564 |
|
<cfield name="_product_data._table"/> |
565 |
|
<cfield name="_product_code_data.product"/> |
566 |
|
</eq> |
567 |
|
<!-- solamente códigos internos (id 1) --> |
568 |
|
<eq> |
569 |
|
<cfield name="_product_code_data.product_code_type"/> |
570 |
|
<cconst value="1"/> |
571 |
|
</eq> |
572 |
|
<!-- descarta códigos de producto muertos --> |
573 |
|
<null> |
574 |
|
<cfield name="_product_code_data._end_t"/> |
575 |
|
</null> |
576 |
|
<!-- pega product con product_tax --> |
577 |
|
<eq> |
578 |
|
<cfield name="_product_data._table"/> |
579 |
|
<cfield name="_product_tax_data.product"/> |
580 |
|
</eq> |
581 |
|
<!-- descarta product_taxes muertos --> |
582 |
|
<null> |
583 |
|
<cfield name="_product_tax_data._end_t"/> |
584 |
|
</null> |
585 |
|
<!-- solamente 'IVA' (id 1) --> |
586 |
|
<eq> |
587 |
|
<cfield name="_product_tax_data.tax"/> |
588 |
|
<cconst value="1"/> |
589 |
|
</eq> |
590 |
|
</and> |
591 |
|
</condition> |
592 |
|
</datasource> |
593 |
|
|
594 |
|
<datasource name="productNameDataSource" database="papo" |
595 |
|
table=" _product_data, _product_code_data, _product_tax_data" |
596 |
|
cache="15" order_by="_product_data.canonical_name"> |
597 |
|
<condition> |
598 |
|
<and> |
599 |
|
<null> |
600 |
|
<cfield name="_product_data._end_t"/> |
601 |
|
</null> |
602 |
|
<!-- pega product con product_code --> |
603 |
|
<eq> |
604 |
|
<cfield name="_product_data._table"/> |
605 |
|
<cfield name="_product_code_data.product"/> |
606 |
|
</eq> |
607 |
|
<!-- solamente códigos internos (id 1) --> |
608 |
|
<eq> |
609 |
|
<cfield name="_product_code_data.product_code_type"/> |
610 |
|
<cconst value="1"/> |
611 |
|
</eq> |
612 |
|
<!-- descarta códigos de producto muertos --> |
613 |
|
<null> |
614 |
|
<cfield name="_product_code_data._end_t"/> |
615 |
|
</null> |
616 |
|
<!-- pega product con product_tax --> |
617 |
|
<eq> |
618 |
|
<cfield name="_product_data._table"/> |
619 |
|
<cfield name="_product_tax_data.product"/> |
620 |
|
</eq> |
621 |
|
<!-- descarta product_taxes muertos --> |
622 |
|
<null> |
623 |
|
<cfield name="_product_tax_data._end_t"/> |
624 |
|
</null> |
625 |
|
<!-- solamente 'IVA' (id 1) --> |
626 |
|
<eq> |
627 |
|
<cfield name="_product_tax_data.tax"/> |
628 |
|
<cconst value="1"/> |
629 |
|
</eq> |
630 |
|
</and> |
631 |
|
</condition> |
632 |
|
</datasource> |
633 |
|
|
634 |
|
<datasource name="productTaxDataSource" database="papo" |
635 |
|
table=" _product_data, _product_tax_data" |
636 |
|
cache="15" order_by="_product_data.canonical_name"> |
637 |
|
<condition> |
638 |
|
<and> |
639 |
|
<!-- <null> --> |
640 |
|
<!-- <cfield name="_product_data._end_t"/> --> |
641 |
|
<!-- </null> --> |
642 |
|
<!-- pega product con product_tax --> |
643 |
|
<eq> |
644 |
|
<cfield name="_product_data._table"/> |
645 |
|
<cfield name="_product_tax_data.product"/> |
646 |
|
</eq> |
647 |
|
<!-- descarta product_taxes muertos --> |
648 |
|
<!-- <null> --> |
649 |
|
<!-- <cfield name="_product_tax_data._end_t"/> --> |
650 |
|
<!-- </null> --> |
651 |
|
<!-- solamente 'IVA' (id 1) --> |
652 |
|
<eq> |
653 |
|
<cfield name="_product_tax_data.tax"/> |
654 |
|
<cconst value="1"/> |
655 |
|
</eq> |
656 |
|
</and> |
657 |
|
</condition> |
658 |
|
</datasource> |
659 |
|
|
660 |
<datasource name="productDataSource" database="papo" table="_product_data" |
<datasource name="productDataSource" database="papo" table="_product_data" |
661 |
order_by="canonical_name"> |
order_by="canonical_name"> |
662 |
<condition> |
<condition> |
679 |
</condition> |
</condition> |
680 |
</datasource> |
</datasource> |
681 |
|
|
682 |
|
<datasource database="papo" name="alienDocumentShowDataSource" table="alien_document" |
683 |
|
order_by="date"> |
684 |
|
<condition> |
685 |
|
<eq> |
686 |
|
<cfield name="alien_document.alien_document_type"/> |
687 |
|
<cconst value="2"/> |
688 |
|
</eq> |
689 |
|
</condition> |
690 |
|
</datasource> |
691 |
|
|
692 |
<datasource database="papo" detaillink="alien_item.alien_document" |
<datasource database="papo" detaillink="alien_item.alien_document" |
693 |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
master="alienDocumentDataSource" masterlink="id" name="alienItemDataSource" |
694 |
table="alien_item, alien_product_item, alien_item_tax"> |
table="alien_item, alien_product_item, alien_item_tax"> |
710 |
</condition> |
</condition> |
711 |
</datasource> |
</datasource> |
712 |
|
|
713 |
|
<datasource database="papo" detaillink="alien_item.alien_document" |
714 |
|
master="alienDocumentShowDataSource" masterlink="id" name="alienItemShowDataSource" |
715 |
|
table="alien_item, alien_product_item, alien_item_tax"> |
716 |
|
<condition> |
717 |
|
<and> |
718 |
|
<eq> |
719 |
|
<cfield name="alien_item.id"/> |
720 |
|
<cfield name="alien_product_item.alien_item"/> |
721 |
|
</eq> |
722 |
|
<eq> |
723 |
|
<cfield name="alien_item.id"/> |
724 |
|
<cfield name="alien_item_tax.alien_item"/> |
725 |
|
</eq> |
726 |
|
<eq> |
727 |
|
<cfield name="alien_item_tax.tax"/> |
728 |
|
<cconst value="1"/> |
729 |
|
</eq> |
730 |
|
</and> |
731 |
|
</condition> |
732 |
|
</datasource> |
733 |
|
|
734 |
<datasource database="papo" name="alienItemDataSourceToUpd" |
<datasource database="papo" name="alienItemDataSourceToUpd" |
735 |
table="alien_item, alien_product_item, _product_store_data"> |
table="alien_item, alien_product_item, _product_store_data"> |
736 |
<condition> |
<condition> |
794 |
</and> |
</and> |
795 |
</condition> |
</condition> |
796 |
</datasource> |
</datasource> |
797 |
|
|
798 |
|
<trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[ |
799 |
|
setStatusText("Procesando ...") |
800 |
|
try: |
801 |
|
# gnue version <= 0.4 |
802 |
|
from gnue.forms.GFEvent import GFEvent |
803 |
|
except ImportError: |
804 |
|
# gnue version >= 0.5 |
805 |
|
from gnue.common.events.Event import Event as GFEvent |
806 |
|
|
807 |
|
# busy clock |
808 |
|
self._object.dispatchEvent(GFEvent('beginWAIT')) |
809 |
|
]]></trigger> |
810 |
|
|
811 |
|
<trigger name="endWaitingModeTrigger" type="NAMED"><![CDATA[ |
812 |
|
try: |
813 |
|
# gnue version <= 0.4 |
814 |
|
from gnue.forms.GFEvent import GFEvent |
815 |
|
except ImportError: |
816 |
|
# gnue version >= 0.5 |
817 |
|
from gnue.common.events.Event import Event as GFEvent |
818 |
|
|
819 |
|
self._object.dispatchEvent(GFEvent('endWAIT')) |
820 |
|
setStatusText("Listo") |
821 |
|
]]></trigger> |
822 |
|
|
823 |
<trigger name="toDayTrigger" type="NAMED"> |
<trigger name="toDayTrigger" type="NAMED"> |
824 |
alienDocumentBlock.dateEntry = alienDocumentDataSource.getTimeStamp() |
alienDocumentBlock.dateEntry = alienDocumentDataSource.getTimeStamp() |
826 |
|
|
827 |
<trigger name="commitTrigger" type="NAMED"> |
<trigger name="commitTrigger" type="NAMED"> |
828 |
if not alienDocumentBlock.getCurrentRecord().isInserted(): |
if not alienDocumentBlock.getCurrentRecord().isInserted(): |
829 |
genericBox("No se puede grabar modificaciones",["Ok"]) |
genericBox("No se puede grabar modificaciones",["Aceptar"]) |
830 |
elif not str(alienDocumentBlock.numberEntry): |
elif not str(alienDocumentBlock.numberEntry): |
831 |
genericBox("Falta el número del comprobante",["Ok"]) |
genericBox("Falta el número del comprobante",["Aceptar"]) |
832 |
elif not str(alienDocumentBlock.dateEntry): |
elif not str(alienDocumentBlock.dateEntry): |
833 |
genericBox("Falta la fecha del comprobante",["Ok"]) |
genericBox("Falta la fecha del comprobante",["Aceptar"]) |
834 |
else: |
else: |
835 |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.qtyEntry) > 0 and len(alienItemBlock.productEntry) > 0: |
if alienItemBlock.getRecordCount() > 0 and len(alienItemBlock.qtyEntry) > 0 and len(alienItemBlock.productEntry) > 0: |
836 |
proceedingBlock.processRollback() |
proceedingBlock.processRollback() |
871 |
</trigger> |
</trigger> |
872 |
|
|
873 |
<trigger name="rollbackTrigger" type="NAMED"> |
<trigger name="rollbackTrigger" type="NAMED"> |
874 |
alienItemBlock.productEntry.allowedValues() |
for block in form._object._blockList: |
875 |
proceedingBlock.processRollback() |
block.processRollback () |
876 |
alienDocumentBlock.processRollback() |
alienDocumentBlock.newRecord() |
|
alienItemBlock.processRollback() |
|
|
currencyMovementBlock.processRollback() |
|
|
alienDocumentProceedingBlock.processRollback() |
|
|
alienDocumentBlock.newRecord() |
|
877 |
|
|
878 |
|
|
879 |
</trigger> |
</trigger> |
907 |
self.exit() |
self.exit() |
908 |
</trigger> |
</trigger> |
909 |
|
|
910 |
|
<trigger name="totalCalcShowTrigger" type="NAMED"> |
911 |
|
import hack |
912 |
|
|
913 |
|
|
914 |
|
lTNeto = 0 |
915 |
|
lTTax = 0 |
916 |
|
|
917 |
|
sum = 0 |
918 |
|
lRecords = alienItemShowDataSource.getRecords() |
919 |
|
for index in range(len(lRecords)): |
920 |
|
lRecord = lRecords[index] |
921 |
|
lQty = hack.a2f(lRecord.getField("alien_product_item.qty")) |
922 |
|
lBonus = hack.a2f(lRecord.getField("alien_item.bonus")) |
923 |
|
lDiscount = hack.a2f(lRecord.getField("alien_item.discount")) |
924 |
|
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price")) |
925 |
|
#lTax = hack.a2f(lRecord.getField("alien_item_tax.amount")) |
926 |
|
|
927 |
|
lItemPrice = (lQty * lUnitPrice) - lBonus - lDiscount |
928 |
|
lTNeto += lItemPrice |
929 |
|
lTTax += hack.a2f(lRecord.getField("alien_item_tax.amount")) |
930 |
|
|
931 |
|
#sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
932 |
|
|
933 |
|
totalShowBlock.netoEntry = str(lTNeto) |
934 |
|
totalShowBlock.ivaEntry = str(lTTax) |
935 |
|
totalShowBlock.totalEntry = str(lTNeto+lTTax) |
936 |
|
#payBlock.cashEntry = str(lTNeto+lTTax) |
937 |
|
|
938 |
|
#totalBlock.totalEntry = str(sum) |
939 |
|
#payBlock.cashEntry = str(sum) |
940 |
|
#payBlock.ctaCteEntry = "0.00" |
941 |
|
</trigger> |
942 |
|
|
943 |
<trigger name="totalCalcTrigger" type="NAMED"> |
<trigger name="totalCalcTrigger" type="NAMED"> |
944 |
import hack |
import hack |
945 |
|
|
946 |
alienItemBlock.taxAmountEntry = hack.a2f(alienItemBlock.unitPriceEntry) * \ |
#alienItemBlock.taxAmountEntry = hack.a2f(alienItemBlock.unitPriceEntry) * \ |
947 |
hack.a2f(alienItemBlock.qtyEntry) * (hack.a2f(alienItemBlock.taxPercentEntry)/100) |
# hack.a2f(alienItemBlock.qtyEntry) * (hack.a2f(alienItemBlock.taxPercentEntry)/100) |
948 |
|
|
949 |
|
lQty = hack.a2f(alienItemBlock.qtyEntry) |
950 |
|
lBonus = hack.a2f(alienItemBlock.bonusEntry) |
951 |
|
lDiscount = hack.a2f(alienItemBlock.discountEntry) |
952 |
|
lUnitPrice = hack.a2f(alienItemBlock.unitPriceEntry) |
953 |
|
|
954 |
|
lItemPrice = (lQty * lUnitPrice) - lBonus - lDiscount |
955 |
|
|
956 |
|
alienItemBlock.taxAmountEntry = lItemPrice * hack.a2f(alienItemBlock.taxPercentEntry)/100 |
957 |
|
alienItemBlock.itemTotalEntry = lItemPrice + hack.a2f(alienItemBlock.taxAmountEntry) |
958 |
|
|
959 |
|
lTNeto = 0 |
960 |
|
lTTax = 0 |
961 |
|
|
962 |
sum = 0 |
sum = 0 |
963 |
lRecords = alienItemDataSource.getRecords() |
lRecords = alienItemDataSource.getRecords() |
967 |
lBonus = hack.a2f(lRecord.getField("alien_item.bonus")) |
lBonus = hack.a2f(lRecord.getField("alien_item.bonus")) |
968 |
lDiscount = hack.a2f(lRecord.getField("alien_item.discount")) |
lDiscount = hack.a2f(lRecord.getField("alien_item.discount")) |
969 |
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price")) |
lUnitPrice = hack.a2f(lRecord.getField("alien_product_item.unit_price")) |
970 |
lTax = hack.a2f(lRecord.getField("alien_item_tax.amount")) |
#lTax = hack.a2f(lRecord.getField("alien_item_tax.amount")) |
971 |
sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
|
972 |
totalBlock.totalEntry = str(sum) |
lItemPrice = (lQty * lUnitPrice) - lBonus - lDiscount |
973 |
payBlock.cashEntry = str(sum) |
lTNeto += lItemPrice |
974 |
|
lTTax += hack.a2f(lRecord.getField("alien_item_tax.amount")) |
975 |
|
|
976 |
|
#sum += lQty * lUnitPrice + lTax - lBonus - lDiscount |
977 |
|
|
978 |
|
totalBlock.netoEntry = str(lTNeto) |
979 |
|
totalBlock.ivaEntry = str(lTTax) |
980 |
|
totalBlock.totalEntry = str(lTNeto+lTTax) |
981 |
|
payBlock.cashEntry = str(lTNeto+lTTax) |
982 |
|
|
983 |
|
#totalBlock.totalEntry = str(sum) |
984 |
|
#payBlock.cashEntry = str(sum) |
985 |
payBlock.ctaCteEntry = "0.00" |
payBlock.ctaCteEntry = "0.00" |
986 |
</trigger> |
</trigger> |
987 |
|
|
1005 |
resultBlock.processQuery() |
resultBlock.processQuery() |
1006 |
</trigger> |
</trigger> |
1007 |
|
|
1008 |
|
<trigger name="notImplementedSearchTrigger" type="NAMED"> |
1009 |
|
genericBox("No implementado",["Aceptar"]) |
1010 |
|
</trigger> |
1011 |
|
|
1012 |
|
<trigger name="providerSearchPage1Trigger" type="NAMED"> |
1013 |
|
currentSearchIdBlock.searchId = "1" |
1014 |
|
callTrigger('providerSearchTrigger') |
1015 |
|
</trigger> |
1016 |
|
|
1017 |
|
<trigger name="providerSearchPage2Trigger" type="NAMED"> |
1018 |
|
currentSearchIdBlock.searchId = "2" |
1019 |
|
callTrigger('providerSearchTrigger') |
1020 |
|
</trigger> |
1021 |
|
|
1022 |
|
<trigger name="providerSearchTrigger" type="NAMED"> |
1023 |
|
if str(currentSearchIdBlock.searchId) == "1": |
1024 |
|
codeToSearch = str(alienDocumentSearchBlock.providerCodeSEntry) |
1025 |
|
nameToSearch = str(alienDocumentSearchBlock.providerNameSEntry) |
1026 |
|
else: |
1027 |
|
codeToSearch = str(alienDocumentBlock.providerCodeSEntry) |
1028 |
|
nameToSearch = str(alienDocumentBlock.providerNameSEntry) |
1029 |
|
|
1030 |
|
callTrigger('startWaitingModeTrigger') |
1031 |
|
providerResultBlock.processRollback(1) |
1032 |
|
providerResultBlock.initQuery() |
1033 |
|
providerResultBlock.providerCodeEntry = codeToSearch+"%" |
1034 |
|
providerResultBlock.providerNameEntry = nameToSearch+"%" |
1035 |
|
providerResultBlock.processQuery() |
1036 |
|
callTrigger('endWaitingModeTrigger') |
1037 |
|
|
1038 |
|
recordCount = providerResultBlock.getRecordCount() |
1039 |
|
if recordCount > 1: |
1040 |
|
def callback (returnValue): |
1041 |
|
global block |
1042 |
|
if returnValue >= 0: |
1043 |
|
providerResultBlock.jumpRecord(returnValue) |
1044 |
|
callTrigger('afterProviderSearchTrigger') |
1045 |
|
|
1046 |
|
runForm ('providerSelect.gfd', {'data': providerResultBlock, 'callback': callback}) |
1047 |
|
elif recordCount == 1: |
1048 |
|
providerResultBlock.jumpRecord(0) |
1049 |
|
callTrigger('afterProviderSearchTrigger') |
1050 |
|
|
1051 |
|
</trigger> |
1052 |
|
|
1053 |
|
<trigger name="afterProviderSearchTrigger" type="NAMED"> |
1054 |
|
if str(currentSearchIdBlock.searchId) == "1": |
1055 |
|
alienDocumentSearchBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry) |
1056 |
|
alienDocumentSearchBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry) |
1057 |
|
alienDocumentSearchBlock.providerSEntry = str(providerResultBlock.idEntry) |
1058 |
|
else: |
1059 |
|
alienDocumentBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry) |
1060 |
|
alienDocumentBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry) |
1061 |
|
alienDocumentBlock.providerEntry = str(providerResultBlock.idEntry) |
1062 |
|
</trigger> |
1063 |
|
|
1064 |
|
<trigger name="transportSearchPage1Trigger" type="NAMED"> |
1065 |
|
currentSearchIdBlock.searchId = "1" |
1066 |
|
callTrigger('transportSearchTrigger') |
1067 |
|
</trigger> |
1068 |
|
|
1069 |
|
<trigger name="transportSearchPage2Trigger" type="NAMED"> |
1070 |
|
currentSearchIdBlock.searchId = "2" |
1071 |
|
callTrigger('transportSearchTrigger') |
1072 |
|
</trigger> |
1073 |
|
|
1074 |
|
<trigger name="transportSearchTrigger" type="NAMED"> |
1075 |
|
if str(currentSearchIdBlock.searchId) == "1": |
1076 |
|
codeToSearch = str(alienDocumentSearchBlock.transportCodeSEntry) |
1077 |
|
nameToSearch = str(alienDocumentSearchBlock.transportNameSEntry) |
1078 |
|
else: |
1079 |
|
codeToSearch = str(alienDocumentBlock.transportCodeSEntry) |
1080 |
|
nameToSearch = str(alienDocumentBlock.transportNameSEntry) |
1081 |
|
|
1082 |
|
callTrigger('startWaitingModeTrigger') |
1083 |
|
transportResultBlock.initQuery() |
1084 |
|
transportResultBlock.transportCodeEntry = codeToSearch+"%" |
1085 |
|
transportResultBlock.transportNameEntry = nameToSearch+"%" |
1086 |
|
transportResultBlock.processQuery() |
1087 |
|
callTrigger('endWaitingModeTrigger') |
1088 |
|
|
1089 |
|
recordCount = transportResultBlock.getRecordCount() |
1090 |
|
if recordCount > 1: |
1091 |
|
def callback (returnValue): |
1092 |
|
global block |
1093 |
|
if returnValue >= 0: |
1094 |
|
transportResultBlock.jumpRecord(returnValue) |
1095 |
|
callTrigger('afterTransportSearchTrigger') |
1096 |
|
|
1097 |
|
runForm ('transportSelect.gfd', {'data': transportResultBlock, 'callback': callback}) |
1098 |
|
elif recordCount == 1: |
1099 |
|
transportResultBlock.jumpRecord(0) |
1100 |
|
callTrigger('afterTransportSearchTrigger') |
1101 |
|
</trigger> |
1102 |
|
|
1103 |
|
<trigger name="afterTransportSearchTrigger" type="NAMED"> |
1104 |
|
if str(currentSearchIdBlock.searchId) == "1": |
1105 |
|
alienDocumentSearchBlock.transportCodeSEntry = str(transportResultBlock.transportCodeEntry) |
1106 |
|
alienDocumentSearchBlock.transportNameSEntry = str(transportResultBlock.transportNameEntry) |
1107 |
|
alienDocumentSearchBlock.transportEntry = str(transportResultBlock.idEntry) |
1108 |
|
else: |
1109 |
|
alienDocumentBlock.transportCodeSEntry = str(transportResultBlock.transportCodeEntry) |
1110 |
|
alienDocumentBlock.transportNameSEntry = str(transportResultBlock.transportNameEntry) |
1111 |
|
alienDocumentBlock.transportEntry = str(transportResultBlock.idEntry) |
1112 |
|
</trigger> |
1113 |
|
|
1114 |
|
<trigger name="productSearchTrigger" type="NAMED"> |
1115 |
|
codeToSearch = str(alienItemBlock.productCodeEntry) |
1116 |
|
nameToSearch = str(alienItemBlock.productNameEntry) |
1117 |
|
|
1118 |
|
callTrigger('startWaitingModeTrigger') |
1119 |
|
productResultBlock.initQuery() |
1120 |
|
productResultBlock.prodCodeEntry = codeToSearch+"%" |
1121 |
|
productResultBlock.prodNameEntry = nameToSearch+"%" |
1122 |
|
productResultBlock.processQuery() |
1123 |
|
callTrigger('endWaitingModeTrigger') |
1124 |
|
|
1125 |
|
recordCount = productResultBlock.getRecordCount() |
1126 |
|
if recordCount > 1: |
1127 |
|
def callback (returnValue): |
1128 |
|
global block |
1129 |
|
if returnValue >= 0: |
1130 |
|
productResultBlock.jumpRecord(returnValue) |
1131 |
|
callTrigger('afterProductSearchTrigger') |
1132 |
|
|
1133 |
|
runForm ('productSelect.gfd', {'data': productResultBlock, 'callback': callback}) |
1134 |
|
elif recordCount == 1: |
1135 |
|
productResultBlock.jumpRecord(0) |
1136 |
|
callTrigger('afterProductSearchTrigger') |
1137 |
|
</trigger> |
1138 |
|
|
1139 |
|
<trigger name="afterProductSearchTrigger" type="NAMED"> |
1140 |
|
alienItemBlock.productCodeEntry = str(productResultBlock.prodCodeEntry) |
1141 |
|
alienItemBlock.productNameEntry = str(productResultBlock.prodNameEntry) |
1142 |
|
alienItemBlock.productEntry = str(productResultBlock.prodIdEntry) |
1143 |
|
alienItemBlock.taxPercentEntry = str(productResultBlock.prodIVATaxEntry) |
1144 |
|
</trigger> |
1145 |
|
|
1146 |
|
<trigger name="productDeleteTrigger" type="NAMED"> |
1147 |
|
alienItemBlock.productCodeEntry = "" |
1148 |
|
alienItemBlock.productNameEntry = "" |
1149 |
|
alienItemBlock.qtyEntry = 0.00 |
1150 |
|
alienItemBlock.unitPriceEntry = 0.00 |
1151 |
|
alienItemBlock.productEntry = "0" |
1152 |
|
alienItemBlock.taxAmountEntry = 0 |
1153 |
|
alienItemBlock.taxPercentEntry = 0 |
1154 |
|
alienItemBlock.discountEntry = 0.00 |
1155 |
|
alienItemBlock.itemTotalEntry = 0.00 |
1156 |
|
|
1157 |
|
callTrigger('totalCalcTrigger') |
1158 |
|
</trigger> |
1159 |
|
|
1160 |
<trigger name="resultFocusOutTrigger" type="NAMED"> |
<trigger name="resultFocusOutTrigger" type="NAMED"> |
1161 |
import hack |
import hack |
1162 |
alienDocumentBlock.processRollback() |
alienDocumentShowBlock.processRollback() |
1163 |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
if resultBlock.getRecordCount() > 0 and not resultBlock.getCurrentRecord().isEmpty(): |
1164 |
alienDocumentBlock.initQuery() |
alienDocumentShowBlock.initQuery() |
1165 |
alienDocumentBlock.idEntry = ("%s" % resultBlock.idREntry) |
alienDocumentShowBlock.idEntry = ("%s" % resultBlock.idREntry) |
1166 |
alienDocumentBlock.processQuery() |
alienDocumentShowBlock.processQuery() |
1167 |
recordCount = alienItemBlock.getRecordCount() |
recordCount = alienItemShowBlock.getRecordCount() |
1168 |
alienItemBlock.firstRecord() |
alienItemShowBlock.firstRecord() |
1169 |
for index in range(recordCount): |
#for index in range(recordCount): |
1170 |
alienItemBlock.taxPercentEntry = (hack.a2f(alienItemBlock.taxAmountEntry) / (hack.a2f(alienItemBlock.unitPriceEntry) * \ |
# alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \ |
1171 |
hack.a2f(alienItemBlock.qtyEntry))) * 100 |
# hack.a2f(alienItemShowBlock.qtyEntry))) * 100 |
1172 |
if index != recordCount-1: |
# if index != recordCount-1: |
1173 |
alienItemBlock.nextRecord() |
# alienItemShowBlock.nextRecord() |
1174 |
|
|
1175 |
</trigger> |
</trigger> |
1176 |
|
|
1193 |
]]></trigger> |
]]></trigger> |
1194 |
|
|
1195 |
<page name="Búsqueda de Facturas de Proveedor"> |
<page name="Búsqueda de Facturas de Proveedor"> |
1196 |
<trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> |
<!-- <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> --> |
1197 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="12" label="Factura de Productos de Proveedor" |
1198 |
name="invoiceSearchBox" width="84" x="0" y="0"> |
name="invoiceSearchBox" width="107" x="0" y="0"> |
1199 |
|
|
1200 |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
<block datasource="tmpSearchDataSource" name="alienDocumentSearchBlock" restrictInsert=""> |
1201 |
|
|
1202 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1203 |
|
|
1204 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1205 |
<entry x="1" y="2" field="alien_document.sender" name="providerSEntry" |
<entry x="1" y="2" name="providerCodeSEntry" width="20"> |
1206 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
<options> |
1207 |
foreign_key_description="_entity_data.name" > |
<option name="tip" value="Insertar el Código"/> |
1208 |
|
</options> |
1209 |
</entry> |
</entry> |
1210 |
|
<entry x="1" y="3" name="providerNameSEntry" width="35"> |
1211 |
|
<options> |
1212 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1213 |
|
</options> |
1214 |
|
</entry> |
1215 |
|
<entry x="1" y="2" field="alien_document.sender" name="providerSEntry" width="25" hidden=""/> |
1216 |
|
<button x="36" y="3" trigger="providerSearchPage1Trigger" width="7" label="Buscar" |
1217 |
|
name="providerSearchPage1Btn" height="1"/> |
1218 |
|
|
|
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
|
|
<entry x="27" y="2" field="alien_document.transport" name="transportSEntry" |
|
|
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
|
|
foreign_key_description="_entity_data.name" > |
|
|
</entry> |
|
1219 |
|
|
1220 |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1221 |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonSEntry" |
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
1222 |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
<options> |
1223 |
foreign_key_description="_entity_data.name" > |
<option name="tip" value="Insertar el Código"/> |
1224 |
|
</options> |
1225 |
|
</entry> |
1226 |
|
<entry x="56" y="3" name="transportNameSEntry" width="35"> |
1227 |
|
<options> |
1228 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1229 |
|
</options> |
1230 |
|
</entry> |
1231 |
|
<entry x="57" y="3" field="alien_document.transport" name="transportSEntry" width="25" hidden=""/> |
1232 |
|
<button x="91" y="3" trigger="transportSearchPage1Trigger" width="7" label="Buscar" |
1233 |
|
name="transportSearchPage1Btn" height="1"/> |
1234 |
|
|
1235 |
|
<label name="salesPersonLbl" text="Vendedor" x="1" y="4" /> |
1236 |
|
<entry x="1" y="5" name="salesPersonCodeSEntry" width="20"> |
1237 |
|
<options> |
1238 |
|
<option name="tip" value="Insertar el Código"/> |
1239 |
|
</options> |
1240 |
</entry> |
</entry> |
1241 |
|
<entry x="1" y="6" name="salesPersonNameSEntry" width="35"> |
1242 |
|
<options> |
1243 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1244 |
|
</options> |
1245 |
|
</entry> |
1246 |
|
<entry x="1" y="5" field="alien_document.salesperson" name="salesPersonSEntry" width="25" hidden=""/> |
1247 |
|
<button x="36" y="6" trigger="notImplementedSearchTrigger" width="7" label="Buscar" |
1248 |
|
name="searchBtn" height="1"/> |
1249 |
|
<!-- <button x="36" y="6" trigger="salesPersonSearchTrigger" width="7" label="Buscar" --> |
1250 |
|
<!-- name="searchBtn" height="1"/> --> |
1251 |
|
|
1252 |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
<label name="receivedLbl" text="Recibido por:" x="56" y="4" /> |
1253 |
<entry x="27" y="4" field="alien_document.received_by" name="receivedSEntry" |
<entry x="56" y="5" name="receivedCodeSEntry" width="20"> |
1254 |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
<options> |
1255 |
foreign_key_description="_entity_data.name" > |
<option name="tip" value="Insertar el Código"/> |
1256 |
|
</options> |
1257 |
</entry> |
</entry> |
1258 |
|
<entry x="56" y="6" name="receivedNameSEntry" width="35"> |
1259 |
|
<options> |
1260 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1261 |
|
</options> |
1262 |
|
</entry> |
1263 |
|
<entry x="27" y="5" field="alien_document.received_by" name="receivedSEntry" width="25" hidden="" /> |
1264 |
|
<button x="91" y="6" trigger="notImplementedSearchTrigger" width="7" label="Buscar" |
1265 |
|
name="searchBtn" height="1"/> |
1266 |
|
<!-- <button x="91" y="6" trigger="receivedSearchTrigger" width="7" label="Buscar" --> |
1267 |
|
<!-- name="searchBtn" height="1"/> --> |
1268 |
|
|
1269 |
<label name="numberLbl" text="Número" x="1" y="6" /> |
<label name="numberLbl" text="Número" x="1" y="8" /> |
1270 |
<entry field="number" name="numberSEntry" width="20" x="1" y="7"/> |
<entry field="number" name="numberSEntry" width="20" x="1" y="9"/> |
1271 |
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
1272 |
<entry field="date" name="dateSEntry" typecast="date" |
<entry field="date" name="dateSEntry" typecast="date" |
1273 |
rows="1" width="22" x="22" y="7"/> |
rows="1" width="22" x="22" y="9"/> |
1274 |
<label name="guideNumberLbl" text="Número de guía" x="45" y="6" /> |
<label name="guideNumberLbl" text="Número de guía" x="45" y="8" /> |
1275 |
<entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="7"/> |
<entry field="guide_number" name="guideNumerSEntry" width="20" x="45" y="9"/> |
1276 |
<label name="bundlesLbl" text="Bultos" x="66" y="6" /> |
<label name="bundlesLbl" text="Bultos" x="66" y="8" /> |
1277 |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="7"/> |
<entry field="bundles" name="bundlesSEntry" width="10" x="66" y="9"/> |
1278 |
|
|
1279 |
<button x="63" y="2" trigger="searchTrigger" width="16" label="Buscar" |
<button x="80" y="8" trigger="searchTrigger" width="16" label="Buscar" |
1280 |
name="searchBtn" height="1"/> |
name="searchBtn" height="1"/> |
1281 |
<button x="63" y="3" trigger="newSearchTrigger" width="16" label="Cancelar" |
<button x="80" y="9" trigger="newSearchTrigger" width="16" label="Deshacer" |
1282 |
name="newSearchBtn" height="1"/> |
name="newSearchBtn" height="1"/> |
1283 |
</block> |
</block> |
1284 |
</box> |
</box> |
1285 |
|
|
1286 |
<box height="14" label="Facturas encontradas" name="searchResultBox" |
<box height="14" label="Facturas encontradas" name="searchResultBox" |
1287 |
width="84" x="0" y="9"> |
width="107" x="0" y="11"> |
1288 |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
<block datasource="resultAlienDocumentDataSource" name="resultBlock"> |
1289 |
|
|
1290 |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
<entry field="id" hidden="" name="idREntry" x="1" y="1"/> |
1325 |
</box> |
</box> |
1326 |
</page> |
</page> |
1327 |
|
|
1328 |
|
<!-- Página de Consulta/borrado de facturas --> |
1329 |
|
<page name="Factura de Proveedor (Consulta/borrado)"> |
1330 |
|
<trigger type="PRE-FOCUSIN" src="resultFocusOutTrigger" /> |
1331 |
|
<trigger type="PRE-FOCUSIN" src="totalCalcShowTrigger" /> |
1332 |
|
<box height="12" label="Factura de Productos de Proveedor" |
1333 |
|
name="invoiceHeaderBox" width="107" x="0" y="0"> |
1334 |
|
|
1335 |
|
<!-- Estos bloques son para la gestion del pago de la factura --> |
1336 |
|
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
1337 |
|
<entry name="idEntry" field="id" hidden="" x="1" y="1" width="12"/> |
1338 |
|
<entry name="dateEntry" field="date" hidden="" x="1" y="1" width="12"/> |
1339 |
|
</block> |
1340 |
|
<block datasource="alienDocumentShowDataSource" name="alienDocumentShowBlock" > |
1341 |
|
|
1342 |
|
<entry field="id" hidden="" name="idEntry" x="1" y="1"/> |
1343 |
|
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1344 |
|
|
1345 |
|
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1346 |
|
<entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" readonly="" |
1347 |
|
width="20" style="textlookup" foreign_key="providerUIDDataSource._entity_data.id" |
1348 |
|
foreign_key_description="_entity_uid_data.uid" > |
1349 |
|
<!-- <entry x="1" y="2" name="providerCodeSEntry" width="20"> --> |
1350 |
|
</entry> |
1351 |
|
<entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" readonly="" |
1352 |
|
width="35" style="textlookup" foreign_key="providerNameDataSource._entity_data.id" |
1353 |
|
foreign_key_description="_entity_data.name" > |
1354 |
|
<!-- <entry x="1" y="3" name="providerNameSEntry" width="35"> --> |
1355 |
|
</entry> |
1356 |
|
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" width="25" hidden="" /> |
1357 |
|
|
1358 |
|
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1359 |
|
<entry x="56" y="2" field="alien_document.transport" name="transportCodeSEntry" readonly="" |
1360 |
|
width="20" style="textlookup" foreign_key="transportUIDDataSource._entity_data.id" |
1361 |
|
foreign_key_description="_entity_uid_data.uid" > |
1362 |
|
</entry> |
1363 |
|
<entry x="56" y="3" field="alien_document.transport" name="transportNameSEntry" readonly="" |
1364 |
|
width="35" style="textlookup" foreign_key="transportNameDataSource._entity_data.id" |
1365 |
|
foreign_key_description="_entity_data.name" > |
1366 |
|
</entry> |
1367 |
|
|
1368 |
|
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |
1369 |
|
|
1370 |
|
|
1371 |
|
<label name="numberLbl" text="Número" x="1" y="8" /> |
1372 |
|
<entry field="number" name="numberEntry" width="20" x="1" y="9" style="label"/> |
1373 |
|
|
1374 |
|
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
1375 |
|
<entry field="date" name="dateEntry" typecast="date" |
1376 |
|
rows="1" width="22" x="22" y="9" style="label"/> |
1377 |
|
|
1378 |
|
<label name="guideNumberLbl" text="Número de guía" x="48" y="8" /> |
1379 |
|
<entry field="guide_number" name="guideNumerEntry" width="20" x="48" y="9" style="label"/> |
1380 |
|
|
1381 |
|
<label name="bundlesLbl" text="Bultos" x="69" y="8" /> |
1382 |
|
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="9" style="label"/> |
1383 |
|
|
1384 |
|
</block> |
1385 |
|
</box> |
1386 |
|
|
1387 |
|
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
1388 |
|
<!-- width="107" x="0" y="11"> --> |
1389 |
|
<!-- for looking up taxes --> |
1390 |
|
<!-- <block name="lookUpTaxBlock" datasource="lookUpTaxDataSource"> --> |
1391 |
|
<!-- <entry name="searchThisProductEntry" field="product.id" hidden="" --> |
1392 |
|
<!-- x="1" y="1"/> --> |
1393 |
|
<!-- <entry name="foundTaxEntry" field="_product_tax_data.amount" hidden="" --> |
1394 |
|
<!-- x="1" y="1"/> --> |
1395 |
|
<!-- </block> --> |
1396 |
|
<block datasource="alienItemShowDataSource" name="alienItemShowBlock"> |
1397 |
|
|
1398 |
|
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
1399 |
|
|
1400 |
|
<label text="Productos a facturar" x="1" y="12"/> |
1401 |
|
<label text="Código" x="1" y="13"/> |
1402 |
|
|
1403 |
|
<entry x="1" y="14" field="alien_product_item.product" name="productCodeEntry" readonly="" |
1404 |
|
width="14" style="textlookup" foreign_key="productNameDataSource._product_data.id" |
1405 |
|
foreign_key_description="_product_code_data.code" rows="7"> |
1406 |
|
</entry> |
1407 |
|
|
1408 |
|
<label text="Nombre" x="15" y="13"/> |
1409 |
|
<entry x="15" y="14" field="alien_product_item.product" name="productNameEntry" readonly="" |
1410 |
|
width="20" style="textlookup" foreign_key="productNameDataSource._product_data.id" |
1411 |
|
foreign_key_description="_product_data.canonical_name" rows="7"> |
1412 |
|
</entry> |
1413 |
|
|
1414 |
|
<entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/> |
1415 |
|
|
1416 |
|
<label name="qtyLbl" text="Cantidad" x="43" y="13"/> |
1417 |
|
<entry field="alien_product_item.qty" name="qtyEntry" rows="7" typecast="number" displaymask="%0.3f" width="12" x="43" y="14" style="label" readonly=""> |
1418 |
|
</entry> |
1419 |
|
|
1420 |
|
<label name="priceLbl" text="Precio" x="55" y="13"/> |
1421 |
|
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.2f" |
1422 |
|
width="10" rows="7" style="label" readonly=""> |
1423 |
|
</entry> |
1424 |
|
<label name="taxLbl" text="IVA" x="65" y="13" /> |
1425 |
|
<!-- <entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f"/> --> |
1426 |
|
<entry x="65" y="14" field="alien_product_item.product" name="taxPercentEntry" readonly="" |
1427 |
|
width="20" style="textlookup" foreign_key="productTaxDataSource._product_data.id" |
1428 |
|
foreign_key_description="_product_tax_data.amount" rows="7"> |
1429 |
|
</entry> |
1430 |
|
|
1431 |
|
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
1432 |
|
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
1433 |
|
|
1434 |
|
<label name="discountLbl" text="Descuento" x="71" y="13"/> |
1435 |
|
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
1436 |
|
rows="7" width="10" x="71" y="14" default="0" style="label" readonly=""> |
1437 |
|
</entry> |
1438 |
|
<label name="itemTotalLbl" text="Total" x="82" y="13"/> |
1439 |
|
<entry name="itemTotalEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
1440 |
|
rows="10" width="10" x="82" y="14" readonly=""> |
1441 |
|
</entry> |
1442 |
|
|
1443 |
|
<!-- <label name="bonusLbl" text="Bonificación" x="66" y="3"/> --> |
1444 |
|
<entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f" |
1445 |
|
rows="7" width="12" x="66" y="4" default="0" hidden=""> |
1446 |
|
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1447 |
|
</entry> |
1448 |
|
<scrollbar page="5" |
1449 |
|
x="103" y="14" width="1" height="7"/> |
1450 |
|
</block> |
1451 |
|
<block datasource="nil" name="totalShowBlock"> |
1452 |
|
<label name="totalLbl" text="Neto" x="55" y="21"/> |
1453 |
|
<entry name="netoEntry" readonly="" style="label" x="55" y="22" width="12" default="0.00"/> |
1454 |
|
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
1455 |
|
<entry name="ivaEntry" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
1456 |
|
<label name="totalLbl" text="Total" x="82" y="21"/> |
1457 |
|
<entry name="totalEntry" readonly="" style="label" x="82" y="22" width="12" default="0.00"/> |
1458 |
|
</block> |
1459 |
|
|
1460 |
|
<box height="4" label="Pago de la factura" name="payBox" |
1461 |
|
width="107" x="0" y="22"> |
1462 |
|
<!-- <block datasource="payDataSource" name="payBlock"> --> |
1463 |
|
<!-- <label text="Efectivo : " x="1" y="1"/> --> |
1464 |
|
<!-- <entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> --> |
1465 |
|
<!-- <trigger type="Pre-Focusout"> --> |
1466 |
|
<!-- import hack --> |
1467 |
|
<!-- payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) --> |
1468 |
|
<!-- </trigger> --> |
1469 |
|
<!-- </entry> --> |
1470 |
|
<!-- <label text="Cta. Cte. : " x="24" y="1"/> --> |
1471 |
|
<!-- <entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> --> |
1472 |
|
<!-- <trigger type="Pre-Focusout"> --> |
1473 |
|
<!-- import hack --> |
1474 |
|
<!-- payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) --> |
1475 |
|
<!-- </trigger> --> |
1476 |
|
<!-- </entry> --> |
1477 |
|
<!-- <button x="49" y="1" trigger="commitTrigger" width="10" label="Aceptar" --> |
1478 |
|
<!-- name="commitBtn" height="1"/> --> |
1479 |
|
<!-- <button x="60" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" --> |
1480 |
|
<!-- name="rollbackBtn" height="1"/> --> |
1481 |
|
<!-- <button x="71" y="1" trigger="deleteTrigger" width="10" label="Borrar" --> |
1482 |
|
<!-- name="deleteBtn" height="1"/> --> |
1483 |
|
|
1484 |
|
<!-- </block> --> |
1485 |
|
</box> |
1486 |
|
</page> |
1487 |
|
|
1488 |
<!-- Página de carga de facturas --> |
<!-- Página de carga de facturas --> |
1489 |
<page name="Factura de Proveedor"> |
<page name="Factura de Proveedor (Alta)"> |
1490 |
<trigger type="PRE-FOCUSIN" src="totalCalcTrigger" /> |
<!-- <trigger type="PRE-FOCUSIN" src="totalCalcTrigger" /> --> |
1491 |
<box height="10" label="Factura de Productos de Proveedor" |
<box height="12" label="Factura de Productos de Proveedor" |
1492 |
name="invoiceHeaderBox" width="84" x="0" y="0"> |
name="invoiceHeaderBox" width="107" x="0" y="0"> |
1493 |
|
|
1494 |
<!-- Estos bloques son para la gestion del pago de la factura --> |
<!-- Estos bloques son para la gestion del pago de la factura --> |
1495 |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
<block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock=""> |
1506 |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
<entry field="alien_document_type" hidden="" name="typeEntry" x="1" y="1"/> |
1507 |
|
|
1508 |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
<label name="providerLbl" text="Proveedor" x="1" y="1" /> |
1509 |
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" |
<!-- <entry x="1" y="2" field="alien_document.sender" name="providerCodeSEntry" --> |
1510 |
width="25" style="dropdown" foreign_key="providerDataSource.entity.id" |
<!-- width="20" style="externalsearch" foreign_key="providerExternalSearchDataSource._entity_data.id" --> |
1511 |
foreign_key_description="_entity_data.name" > |
<!-- foreign_key_description="_entity_uid_data.uid" > --> |
1512 |
|
<entry x="1" y="2" name="providerCodeSEntry" width="20"> |
1513 |
|
<options> |
1514 |
|
<option name="tip" value="Insertar el Código"/> |
1515 |
|
</options> |
1516 |
</entry> |
</entry> |
1517 |
|
<!-- <entry x="1" y="3" field="alien_document.sender" name="providerNameSEntry" --> |
1518 |
<label name="transportLbl" text="Transporte" x="27" y="1" /> |
<!-- width="35" style="externalsearch" foreign_key="providerExternalSearchDataSource._entity_data.id" --> |
1519 |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" |
<!-- foreign_key_description="_entity_data.name" > --> |
1520 |
width="25" style="dropdown" foreign_key="transportDataSource.entity.id" |
<entry x="1" y="3" name="providerNameSEntry" width="35"> |
1521 |
foreign_key_description="_entity_data.name" > |
<options> |
1522 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1523 |
|
</options> |
1524 |
|
</entry> |
1525 |
|
<entry x="1" y="2" field="alien_document.sender" name="providerEntry" width="25" hidden="" /> |
1526 |
|
<button x="36" y="3" trigger="providerSearchPage2Trigger" width="7" label="Buscar" |
1527 |
|
name="providerSearchPage2Btn" height="1"/> |
1528 |
|
|
1529 |
|
<label name="transportLbl" text="Transporte" x="56" y="1" /> |
1530 |
|
<entry x="56" y="2" name="transportCodeSEntry" width="20"> |
1531 |
|
<options> |
1532 |
|
<option name="tip" value="Insertar el Código"/> |
1533 |
|
</options> |
1534 |
</entry> |
</entry> |
1535 |
|
<entry x="56" y="3" name="transportNameSEntry" width="35"> |
1536 |
<button x="53" y="2" trigger="providerTrigger" width="3" label="..." |
<options> |
1537 |
name="providerBtn" height="1"/> |
<option name="tip" value="Insertar el nombre o descripción"/> |
1538 |
|
</options> |
1539 |
<label name="salesPersonLbl" text="Vendedor" x="1" y="3" /> |
</entry> |
1540 |
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonEntry" |
<entry x="27" y="2" field="alien_document.transport" name="transportEntry" width="25" hidden="" /> |
1541 |
width="25" style="dropdown" foreign_key="contactDataSource.entity.id" |
<button x="91" y="3" trigger="transportSearchPage2Trigger" width="7" label="Buscar" |
1542 |
foreign_key_description="_entity_data.name" > |
name="transportSearchPage2Btn" height="1"/> |
1543 |
|
|
1544 |
|
<!-- <button x="53" y="2" trigger="providerTrigger" width="3" label="..." --> |
1545 |
|
<!-- name="providerBtn" height="1"/> --> |
1546 |
|
|
1547 |
|
<label name="salesPersonLbl" text="Vendedor" x="1" y="4" /> |
1548 |
|
<entry x="1" y="5" name="salesPersonCodeSEntry" width="20" readonly=""> |
1549 |
|
<options> |
1550 |
|
<option name="tip" value="Insertar el Código"/> |
1551 |
|
</options> |
1552 |
</entry> |
</entry> |
1553 |
|
<entry x="1" y="6" name="salesPersonNameSEntry" width="35" readonly=""> |
1554 |
|
<options> |
1555 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1556 |
|
</options> |
1557 |
|
</entry> |
1558 |
|
<entry x="1" y="4" field="alien_document.salesperson" name="salesPersonEntry" width="25" hidden="" /> |
1559 |
|
<button x="36" y="6" trigger="notImplementedSearchTrigger" width="7" label="Buscar" |
1560 |
|
name="searchBtn" height="1"/> |
1561 |
|
<!-- <button x="36" y="6" trigger="salesPersonSearchTrigger" width="7" label="Buscar" --> |
1562 |
|
<!-- name="searchBtn" height="1"/> --> |
1563 |
|
|
1564 |
<label name="receivedLbl" text="Recibido por:" x="27" y="3" /> |
<label name="receivedLbl" text="Recibido por:" x="56" y="4" /> |
1565 |
<entry x="27" y="4" field="alien_document.received_by" name="receivedEntry" |
<entry x="56" y="5" name="receivedCodeSEntry" width="20" readonly=""> |
1566 |
width="25" style="dropdown" foreign_key="receivedDataSource.entity.id" |
<options> |
1567 |
foreign_key_description="_entity_data.name" > |
<option name="tip" value="Insertar el Código"/> |
1568 |
|
</options> |
1569 |
</entry> |
</entry> |
1570 |
|
<entry x="56" y="6" name="receivedNameSEntry" width="35" readonly=""> |
1571 |
|
<options> |
1572 |
|
<option name="tip" value="Insertar el nombre o descripción"/> |
1573 |
|
</options> |
1574 |
|
</entry> |
1575 |
|
<entry x="27" y="4" field="alien_document.received_by" name="receivedEntry" width="25" hidden="" /> |
1576 |
|
<button x="91" y="6" trigger="notImplementedSearchTrigger" width="7" label="Buscar" |
1577 |
|
name="searchBtn" height="1"/> |
1578 |
|
<!-- <button x="91" y="6" trigger="receivedSearchTrigger" width="7" label="Buscar" --> |
1579 |
|
<!-- name="searchBtn" height="1"/> --> |
1580 |
|
|
1581 |
<label name="numberLbl" text="Número" x="1" y="6" /> |
<label name="numberLbl" text="Número" x="1" y="8" /> |
1582 |
<entry field="number" name="numberEntry" width="20" x="1" y="7"/> |
<entry field="number" name="numberEntry" width="20" x="1" y="9"/> |
1583 |
|
|
1584 |
<label name="dateLbl" text="Fecha" x="22" y="6" /> |
<label name="dateLbl" text="Fecha" x="22" y="8" /> |
1585 |
<entry field="date" name="dateEntry" typecast="date" |
<entry field="date" name="dateEntry" typecast="date" |
1586 |
rows="1" width="22" x="22" y="7"/> |
rows="1" width="22" x="22" y="9"/> |
1587 |
|
|
1588 |
<button x="44" y="7" trigger="toDayTrigger" width="4" label="hoy" |
<button x="44" y="9" trigger="toDayTrigger" width="4" label="hoy" |
1589 |
name="dateBtn" height="1"/> |
name="dateBtn" height="1"/> |
1590 |
|
|
1591 |
<label name="guideNumberLbl" text="Número de guía" x="48" y="6" /> |
<label name="guideNumberLbl" text="Número de guía" x="48" y="8" /> |
1592 |
<entry field="guide_number" name="guideNumerEntry" width="20" x="48" y="7"/> |
<entry field="guide_number" name="guideNumerEntry" width="20" x="48" y="9"/> |
1593 |
|
|
1594 |
<label name="bundlesLbl" text="Bultos" x="69" y="6" /> |
<label name="bundlesLbl" text="Bultos" x="69" y="8" /> |
1595 |
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="7"/> |
<entry field="bundles" name="bundlesEntry" width="10" x="69" y="9"/> |
1596 |
|
|
1597 |
</block> |
</block> |
1598 |
</box> |
</box> |
1599 |
|
|
1600 |
<box height="11" label="Productos a facturar" name="invoiceItemBox" |
<!-- <box height="12" label="Productos a facturar" name="invoiceItemBox" --> |
1601 |
width="84" x="0" y="9"> |
<!-- width="107" x="0" y="11"> --> |
1602 |
<!-- for looking up taxes --> |
<!-- for looking up taxes --> |
1603 |
<block name="lookUpTaxBlock" datasource="lookUpTaxDataSource"> |
<block name="lookUpTaxBlock" datasource="lookUpTaxDataSource"> |
1604 |
<entry name="searchThisProductEntry" field="product.id" hidden="" |
<entry name="searchThisProductEntry" field="product.id" hidden="" |
1605 |
x="1" y="1"/> |
x="1" y="1"/> |
1608 |
</block> |
</block> |
1609 |
<block datasource="alienItemDataSource" name="alienItemBlock"> |
<block datasource="alienItemDataSource" name="alienItemBlock"> |
1610 |
|
|
1611 |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
<entry field="alien_item.alien_document" name="alienDocumentEntry" hidden="" x="1" y="1"/> |
1612 |
|
|
1613 |
|
<label text="Productos a facturar" x="1" y="12"/> |
1614 |
|
<label text="Código" x="1" y="13"/> |
1615 |
|
<entry name="productCodeEntry" width="14" x="1" y="14" rows="7"> |
1616 |
|
<options> |
1617 |
|
<option name="tip" value="Insertar el código"/> |
1618 |
|
</options> |
1619 |
|
</entry> |
1620 |
|
<label text="Nombre" x="15" y="13"/> |
1621 |
|
<entry name="productNameEntry" width="20" x="15" y="14" rows="7"> |
1622 |
|
<options> |
1623 |
|
<option name="tip" value="Insertar el nombre o descripción del producto"/> |
1624 |
|
</options> |
1625 |
|
</entry> |
1626 |
|
<entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="5" hidden=""/> |
1627 |
|
<button name="productSearchButton" trigger="productSearchTrigger" label="Buscar" width="7" height="7" x="35" y="14"/> |
1628 |
|
|
1629 |
<label name="qtyLbl" text="Cantidad" x="2" y="1"/> |
<label name="qtyLbl" text="Cantidad" x="43" y="13"/> |
1630 |
<entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="5" typecast="number" displaymask="%0.3f" width="12" x="2" y="2" |
<entry field="alien_product_item.qty" value="0" name="qtyEntry" rows="7" typecast="number" displaymask="%0.3f" width="12" x="43" y="14"> |
|
default="1"> |
|
1631 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1632 |
</entry> |
</entry> |
1633 |
|
|
1634 |
<label name="productLbl" text="Producto" x="15" y="1"/> |
<!-- <label name="productLbl" text="Producto" x="15" y="3"/> --> |
1635 |
<button x="32" y="1" trigger="productTrigger" width="3" label="..." |
<!-- <button x="32" y="3" trigger="productTrigger" width="3" label="..." --> |
1636 |
name="productBtn" height="1"/> |
<!-- name="productBtn" height="1"/> --> |
1637 |
|
|
1638 |
<entry x="15" y="2" field="alien_product_item.product" name="productEntry" |
<!-- <entry x="15" y="4" field="alien_product_item.product" name="productEntry" --> |
1639 |
width="20" rows="5" style="dropdown" foreign_key="productDataSource.id" |
<!-- width="20" rows="5" style="dropdown" foreign_key="productDataSource.id" --> |
1640 |
foreign_key_description="canonical_name"> |
<!-- foreign_key_description="canonical_name"> --> |
1641 |
<!-- HERE --> |
<!-- HERE --> |
1642 |
<trigger type="PRE-FOCUSOUT" src="lookUpTax"/> |
<!-- <trigger type="PRE-FOCUSOUT" src="lookUpTax"/> --> |
1643 |
</entry> |
<!-- </entry> --> |
1644 |
<label name="priceLbl" text="Precio" x="36" y="1"/> |
<label name="priceLbl" text="Precio" x="55" y="13"/> |
1645 |
<entry x="36" y="2" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.2f" |
<entry x="55" y="14" field="alien_product_item.unit_price" name="unitPriceEntry" typecast="number" displaymask="%0.2f" |
1646 |
width="10" rows="5"> |
width="10" rows="7"> |
1647 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1648 |
</entry> |
</entry> |
1649 |
<label name="taxLbl" text="IVA" x="47" y="1" /> |
<label name="taxLbl" text="IVA" x="65" y="13" /> |
1650 |
<entry x="47" y="2" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
<entry x="65" y="14" name="taxPercentEntry" width="5" rows="7" style="label" typecast="number" displaymask="%0.2f" /> |
1651 |
<entry x="47" y="2" name="taxPercentEntry" width="5" rows="5" typecast="number" displaymask="%0.2f"> |
|
1652 |
<trigger name="taxPercentEntryPreFocusout" type="PRE-FOCUSOUT" src="totalCalcTrigger"/> |
<entry x="65" y="14" readonly="" field="alien_item_tax.amount" name="taxAmountEntry" width="5" rows="5" hidden=""/> |
1653 |
</entry> |
<entry x="47" y="4" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
1654 |
<entry x="47" y="2" readonly="" field="alien_item_tax.tax" name="taxTypeEntry" width="5" rows="5" default="1" hidden=""/> |
|
1655 |
<label name="discountLbl" text="Descuento" x="53" y="1"/> |
<label name="discountLbl" text="Descuento" x="71" y="13"/> |
1656 |
<entry field="alien_item.discount" name="discountEntry" value="0" typecast="number" displaymask="%0.2f" |
<entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f" |
1657 |
rows="5" width="12" x="53" y="2" default="0"> |
rows="7" width="10" x="71" y="14" default="0"> |
1658 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1659 |
</entry> |
</entry> |
1660 |
<label name="bonusLbl" text="Bonificación" x="66" y="1"/> |
<label name="itemTotalLbl" text="Total" x="82" y="13"/> |
1661 |
<entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f" |
<entry name="itemTotalEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f" |
1662 |
rows="5" width="12" x="66" y="2" default="0"> |
rows="10" width="10" x="82" y="14"> |
1663 |
|
</entry> |
1664 |
|
|
1665 |
|
<button name="productDeleteButton" trigger="productDeleteTrigger" label="Borrar" width="7" height="7" x="93" y="14"/> |
1666 |
|
<!-- <label name="bonusLbl" text="Bonificación" x="66" y="3"/> --> |
1667 |
|
<entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f" |
1668 |
|
rows="5" width="12" x="66" y="4" default="0" hidden=""> |
1669 |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
<trigger type="PRE-FOCUSOUT" src="totalCalcTrigger" /> |
1670 |
</entry> |
</entry> |
1671 |
<scrollbar page="5" |
<scrollbar page="5" |
1672 |
x="79" y="2" width="1" height="5"/> |
x="103" y="14" width="1" height="7"/> |
1673 |
</block> |
</block> |
1674 |
<block datasource="nil" name="totalBlock"> |
<block datasource="nil" name="totalBlock"> |
1675 |
<label name="totalLbl" text="Total" x="29" y="8"/> |
<label name="totalLbl" text="Neto" x="55" y="21"/> |
1676 |
<entry name="totalEntry" readonly="" x="36" y="8" width="12" default="0.00"/> |
<entry name="netoEntry" readonly="" style="label" x="55" y="22" width="12" default="0.00"/> |
1677 |
|
<label name="ivaLbl" text="IVA" x="65" y="21"/> |
1678 |
|
<entry name="ivaEntry" readonly="" style="label" x="65" y="22" width="12" default="0.00"/> |
1679 |
|
<label name="totalLbl" text="Total" x="82" y="21"/> |
1680 |
|
<entry name="totalEntry" readonly="" style="label" x="82" y="22" width="12" default="0.00"/> |
1681 |
|
|
1682 |
</block> |
</block> |
1683 |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
<block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock"> |
1684 |
<entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/> |
<entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/> |
1685 |
<entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/> |
<entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/> |
1686 |
<entry name="qtyEntry" field="alien_product_item.qty" hidden="" x="22" y="109" width="10"/> |
<entry name="qtyEntry" field="alien_product_item.qty" hidden="" x="22" y="109" width="10"/> |
1687 |
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
<entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/> |
1688 |
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
<entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/> |
1689 |
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
<entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/> |
1690 |
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
<entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/> |
1691 |
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
<entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/> |
1692 |
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
<entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/> |
1693 |
</block> |
</block> |
1694 |
<!-- Bloques que sirven para el pago --> |
<!-- Bloques que sirven para el pago --> |
1695 |
<block name="alienDocumentProceedingBlock" datasource="alienDocumentProceedingDataSource" transparentBlock=""> |
<block name="alienDocumentProceedingBlock" datasource="alienDocumentProceedingDataSource" transparentBlock=""> |
1696 |
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
<entry name="proceedingEntry" field="proceeding" hidden="" x="1" y="1" width="12"/> |
1697 |
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
<entry name="alienDocumentEntry" field="alien_document" hidden="" x="1" y="1" width="12"/> |
1698 |
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/> |
<entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/> |
1699 |
</block> |
</block> |
1700 |
<block name="currencyMovementBlock" datasource="currencyMovementDataSource" transparentBlock=""> |
<block name="currencyMovementBlock" datasource="currencyMovementDataSource" transparentBlock=""> |
1701 |
<entry name="proceedingEntry" field="movement.proceeding" hidden="" x="1" y="1" width="12"/> |
<entry name="proceedingEntry" field="movement.proceeding" hidden="" x="1" y="1" width="12"/> |
1702 |
<entry name="movementTypeEntry" field="movement.movement_type" hidden="" x="1" y="1" width="12"/> |
<entry name="movementTypeEntry" field="movement.movement_type" hidden="" x="1" y="1" width="12"/> |
1703 |
<entry name="amountEntry" field="movement.amount" hidden="" x="1" y="1" width="12"/> |
<entry name="amountEntry" field="movement.amount" hidden="" x="1" y="1" width="12"/> |
1704 |
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" x="1" y="1" width="12"/> |
<entry name="currencyTypeEntry" field="currency_movement.currency_type" hidden="" x="1" y="1" width="12"/> |
1705 |
</block> |
</block> |
1706 |
</box> |
<!-- </box> --> |
1707 |
|
|
1708 |
<box height="4" label="Pago de la factura" name="payBox" |
<box height="4" label="Pago de la factura" name="payBox" |
1709 |
width="84" x="0" y="19"> |
width="107" x="0" y="22"> |
1710 |
<block datasource="payDataSource" name="payBlock"> |
<block datasource="payDataSource" name="payBlock"> |
1711 |
<label text="Efectivo : " x="1" y="1"/> |
<label text="Efectivo : " x="1" y="1"/> |
1712 |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
<entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> |
1731 |
|
|
1732 |
</block> |
</block> |
1733 |
</box> |
</box> |
1734 |
|
<block name="providerResultBlock" datasource="providerSearchDataSource"> |
1735 |
|
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
1736 |
|
<entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
1737 |
|
<entry name="providerNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
1738 |
|
</block> |
1739 |
|
<block name="transportResultBlock" datasource="providerSearchDataSource"> |
1740 |
|
<entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/> |
1741 |
|
<entry name="transportCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/> |
1742 |
|
<entry name="transportNameEntry" field="_entity_data.name" x="1" y="1" width="12" hidden=""/> |
1743 |
|
</block> |
1744 |
|
<!-- En este bloque se almacena el reultado final/real de la búsqueda para seleccion el correcto --> |
1745 |
|
<block name="productResultBlock" datasource="productSearchDataSource" restrictInsert="" transparentBlock=""> |
1746 |
|
<entry name="prodNameEntry" field="_product_data.canonical_name" x="1" y="1" width="15" rows="2" hidden=""/> |
1747 |
|
<entry name="prodIdEntry" field="_product_data.id" x="15" y="1" width="5" rows="2" hidden=""/> |
1748 |
|
<entry name="prodCodeEntry" field="_product_code_data.code" x="20" y="1" width="10" rows="2" hidden=""/> |
1749 |
|
<entry name="prodCodeTypeEntry" field="_product_code_data.product_code_type" x="30" y="1" width="5" rows="2" hidden=""/> |
1750 |
|
<entry name="prodIVATaxEntry" field="_product_tax_data.amount" x="50" y="1" width="20" rows="2" hidden=""/> |
1751 |
|
</block> |
1752 |
|
<block name="currentSearchIdBlock" datasource="currentSearchIdDataSource"> |
1753 |
|
<entry name="searchId" hidden="" x="1" y="1" width="12"/> |
1754 |
|
</block> |
1755 |
</page> |
</page> |
1756 |
|
|
1757 |
</form> |
</form> |