1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
<?xml version="1.0" encoding="ISO-8859-1"?> |
2 |
|
|
3 |
<form width="84" height="25" title="Facturacion de Servicios"> |
<form width="81" height="22" title="Facturacion de Servicios"> |
4 |
<!-- datatsources --> |
<!-- datatsources --> |
5 |
<datasource name="clientDataSource" database="papo" |
<datasource name="clientDataSource" database="papo" |
6 |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, client, _client_data"> |
table="entity, _entity_data, alien_entity, _alien_entity_data, persona, _persona_data, client, _client_data"> |
60 |
<and> |
<and> |
61 |
<eq> |
<eq> |
62 |
<!-- Aqui se refiere al cliente --> |
<!-- Aqui se refiere al cliente --> |
63 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data.id"/> |
64 |
<cfield name="own_document.recipient"/> |
<cfield name="own_document.recipient"/> |
65 |
</eq> |
</eq> |
66 |
<eq> |
<eq> |
85 |
<and> |
<and> |
86 |
<eq> |
<eq> |
87 |
<!-- Aqui se refiere al cliente --> |
<!-- Aqui se refiere al cliente --> |
88 |
<cfield name="_entity_data._table"/> |
<cfield name="_entity_data.id"/> |
89 |
<cfield name="own_document.recipient"/> |
<cfield name="own_document.recipient"/> |
90 |
</eq> |
</eq> |
91 |
<eq> |
<eq> |
103 |
<!-- Origen de datos que sirve para consultar el limite de crédito --> |
<!-- Origen de datos que sirve para consultar el limite de crédito --> |
104 |
<!-- asignado al cliente que se le factura --> |
<!-- asignado al cliente que se le factura --> |
105 |
<!-- el primero es para el text lookup de los datos del cliente --> |
<!-- el primero es para el text lookup de los datos del cliente --> |
106 |
<datasource name="textLookUpCreditLimitDataSource" database="papo" table="_credit_limit_data"> |
<datasource name="textLookUpCreditLimitDataSource" database="papo" |
107 |
|
table="_entity_data, _credit_limit_data"> |
108 |
<condition> |
<condition> |
109 |
<and> |
<and> |
110 |
<eq> |
<eq> |
111 |
|
<cfield name="_entity_data._table"/> |
112 |
|
<cfield name="_credit_limit_data.entity"/> |
113 |
|
</eq> |
114 |
|
<eq> |
115 |
<cfield name="_credit_limit_data.movement_type"/> |
<cfield name="_credit_limit_data.movement_type"/> |
116 |
<cconst value="1"/> |
<cconst value="1"/> |
117 |
</eq> |
</eq> |
177 |
<!-- Origen de datos que sirve para dar de alta pagos con cta. cte. --> |
<!-- Origen de datos que sirve para dar de alta pagos con cta. cte. --> |
178 |
<datasource name="movementDataSource" database="papo" table="movement"/> |
<datasource name="movementDataSource" database="papo" table="movement"/> |
179 |
|
|
|
<!-- Origen de datos que sirve para dar de alta procedimientos de pago (en este caso de la factura) --> |
|
|
<datasource name="proceedingDataSource" database="papo" table="proceeding"/> |
|
|
|
|
|
<!-- Origen de datos que sirve para dar de alta pagos con algun tipo de currency --> |
|
|
<datasource name="ownDocumentProceedingDataSource" database="papo" table="own_document_proceeding"/> |
|
|
|
|
180 |
<!-- 'Origen' de datos para mantener los valores calculables --> |
<!-- 'Origen' de datos para mantener los valores calculables --> |
181 |
<datasource name="calculatedValuesDataSource" cache="1"/> |
<datasource name="calculatedValuesDataSource" cache="1"/> |
182 |
<!-- la fecha va aca asi rollback no se queja --> |
<!-- la fecha va aca asi rollback no se queja --> |
238 |
from hack import a2f |
from hack import a2f |
239 |
|
|
240 |
# copy the date |
# copy the date |
241 |
ownDocumentBlock.dateEntry= dateDataSource.dateEntry |
ownDocumentBlock.dateEntry= dateBlock.dateEntry |
242 |
|
|
243 |
# print "here 1!" |
# print "here 1!" |
244 |
currentCredit= a2f (calculatedValuesDataSource.creditLimitAmount) - \ |
currentCredit= a2f (calculatedValuesDataSource.creditLimitAmount) - \ |
296 |
<!-- the form --> |
<!-- the form --> |
297 |
<page name="Factura de Servicios"> |
<page name="Factura de Servicios"> |
298 |
<box name="invoiceHeaderBox" label="Factura de servicios" |
<box name="invoiceHeaderBox" label="Factura de servicios" |
299 |
x="0" y="0" width="82" height="8"> |
x="0" y="0" width="81" height="7"> |
300 |
|
|
301 |
<block name="ownDocumentBlock" datasource="ownDocumentDataSource"> |
<block name="ownDocumentBlock" datasource="ownDocumentDataSource"> |
302 |
<!-- hidden fields --> |
<!-- hidden fields --> |
304 |
x="1" y="1"/> |
x="1" y="1"/> |
305 |
<entry name="typeEntry" field="own_document_type" hidden="" |
<entry name="typeEntry" field="own_document_type" hidden="" |
306 |
x="1" y="1"/> |
x="1" y="1"/> |
307 |
|
<entry name="dateEntry" field="date" hidden="" |
308 |
|
x="1" y="1"/> |
309 |
|
|
310 |
<!-- Datos del cliente --> |
<!-- Datos del cliente --> |
311 |
<box name="clientRecipientBox" label="Datos del Cliente" |
<box name="clientRecipientBox" label="Datos del Cliente" |
312 |
x="0" y="1" width="65" height="5"> |
x="0" y="0" width="65" height="5"> |
313 |
<!-- form things --> |
<!-- form things --> |
314 |
<label name="clientLabel" text="Cliente" |
<label name="clientLabel" text="Cliente" |
315 |
x="1" y="1"/> |
x="1" y="1"/> |
316 |
<!-- foreign_key y foreign_key_description estan deprecados --> |
<!-- foreign_key y foreign_key_description estan deprecados --> |
317 |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
318 |
<entry name="clientEntry" field="recipient" style="dropdown" |
<entry name="clientEntry" field="recipient" style="dropdown" |
319 |
foreign_key="clientDataSource._entity_data._table" foreign_key_description="_entity_data.name" |
foreign_key="clientDataSource._entity_data.id" foreign_key_description="_entity_data.name" |
320 |
x="1" y="2" width="30"> |
x="1" y="2" width="30"> |
321 |
<trigger type="PRE-FOCUSOUT" name="showClientDataTrigger"><![CDATA[ |
<trigger type="PRE-FOCUSOUT" name="showClientDataTrigger"><![CDATA[ |
322 |
if str (ownDocumentBlock.clientRecipientBox.clientEntry): |
if str (ownDocumentBlock.clientRecipientBox.clientEntry): |
415 |
<!-- foreign_key y foreign_key_description estan deprecados --> |
<!-- foreign_key y foreign_key_description estan deprecados --> |
416 |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
417 |
<entry name="scoreEntry" field="recipient" style="textlookup" readonly="" |
<entry name="scoreEntry" field="recipient" style="textlookup" readonly="" |
418 |
foreign_key="clientDataSource._entity_data._table" foreign_key_description="_client_data.score" |
foreign_key="clientDataSource._entity_data.id" foreign_key_description="_client_data.score" |
419 |
x="32" y="2" width="10"/> |
x="32" y="2" width="10"/> |
420 |
<label name="ctaCteLabel" text="Cta. Cte." |
<label name="ctaCteLabel" text="Cta. Cte." |
421 |
x="43" y="1"/> |
x="43" y="1"/> |
422 |
<!-- foreign_key y foreign_key_description estan deprecados --> |
<!-- foreign_key y foreign_key_description estan deprecados --> |
423 |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
<!-- se van a llamar fk_source y fk_description respectivamente --> |
424 |
<entry name="creditLimitEntry" field="recipient" style="textlookup" readonly="" |
<entry name="creditLimitEntry" field="recipient" style="textlookup" readonly="" |
425 |
foreign_key="textLookUpCreditLimitDataSource.entity" foreign_key_description="credit_limit" |
foreign_key="textLookUpCreditLimitDataSource._entity_data.id" |
426 |
|
foreign_key_description="_credit_limit_data.credit_limit" |
427 |
x="43" y="2" width="8"/> |
x="43" y="2" width="8"/> |
428 |
<label name="debtLabel" text="Deuda" |
<label name="debtLabel" text="Deuda" |
429 |
x="55" y="1"/> |
x="55" y="1"/> |
433 |
|
|
434 |
<!-- buttons --> |
<!-- buttons --> |
435 |
<button name="commitButton" label="Aceptar" trigger="commitTrigger" |
<button name="commitButton" label="Aceptar" trigger="commitTrigger" |
436 |
x="65" y="3" width="14" height="1"/> |
x="65" y="1" width="14" height="1"/> |
437 |
<button name="rollbackButton" label="Deshacer" trigger="rollbackTrigger" |
<button name="rollbackButton" label="Deshacer" trigger="rollbackTrigger" |
438 |
x="65" y="4" width="14" height="1"/> |
x="65" y="2" width="14" height="1"/> |
439 |
<!-- button name="quitButton" label="Salir" trigger="quitTrigger" |
<!-- button name="quitButton" label="Salir" trigger="quitTrigger" |
440 |
x="65" y="5" width="14" height="1"/ --> |
x="65" y="5" width="14" height="1"/ --> |
441 |
</block> |
</block> |
442 |
<block name="dateBlock" datasource="dateDataSource"> |
<block name="dateBlock" datasource="dateDataSource"> |
443 |
<!-- Datos de la factura --> |
<!-- Datos de la factura --> |
444 |
<label name="dateLabel" text="Fecha:" |
<label name="dateLabel" text="Fecha:" |
445 |
x="2" y="6"/> |
x="2" y="5"/> |
446 |
<entry name="dateEntry" field="date" style="label" readonly="" typecast="date" |
<entry name="dateEntry" field="date" style="label" readonly="" typecast="date" |
447 |
x="10" y="6" width="24"/> |
x="10" y="5" width="24"/> |
448 |
</block> |
</block> |
449 |
|
|
450 |
<!-- Limites de credito del cliente --> |
<!-- Limites de credito del cliente --> |
462 |
|
|
463 |
<!-- Servicios facturados --> |
<!-- Servicios facturados --> |
464 |
<box name="invoiceItemBox" label="Servicios a facturar" |
<box name="invoiceItemBox" label="Servicios a facturar" |
465 |
x="0" y="7" width="82" height="16"> |
x="0" y="6" width="81" height="16"> |
466 |
<block name="ownItemBlock" datasource="ownItemDataSource"> |
<block name="ownItemBlock" datasource="ownItemDataSource"> |
467 |
<!-- hidden entries --> |
<!-- hidden entries --> |
468 |
<entry name="ownDocumentEntry" field="own_item.own_document" hidden="" |
<entry name="ownDocumentEntry" field="own_item.own_document" hidden="" |
494 |
<entry name="endPriceEntry" style="label" |
<entry name="endPriceEntry" style="label" |
495 |
x="64" y="2" width="10" rows="5" rowSpacer="1"/> |
x="64" y="2" width="10" rows="5" rowSpacer="1"/> |
496 |
<scrollbar page="5" |
<scrollbar page="5" |
497 |
x="76" y="2" width="1" height="10"/> |
x="78" y="2" width="1" height="10"/> |
498 |
</block> |
</block> |
499 |
|
|
500 |
<!-- Valores calculados --> |
<!-- Valores calculados --> |
507 |
</block> |
</block> |
508 |
</box> |
</box> |
509 |
<box name="paymentBox" label="Cobro de la factura" |
<box name="paymentBox" label="Cobro de la factura" |
510 |
x="0" y="22" width="82" height="4"> |
x="0" y="21" width="81" height="4"> |
511 |
<block name="paymentBlock" datasource="paymentDataSource"> |
<block name="paymentBlock" datasource="paymentDataSource"> |
512 |
<label text="Efectivo :" |
<label text="Efectivo :" |
513 |
x="1" y="1"/> |
x="1" y="1"/> |