/[papo]/papo/forms/receipt.neb
ViewVC logotype

Diff of /papo/forms/receipt.neb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mhepp, Fri May 9 21:16:41 2003 UTC revision 1.2 by mhepp, Mon May 12 22:00:56 2003 UTC
# Line 2  Line 2 
2  <!DOCTYPE form SYSTEM "gnue-forms.dtd">  <!DOCTYPE form SYSTEM "gnue-forms.dtd">
3    
4  <form title="Carga de Recibos a Clientes" height="20" width="73">  <form title="Carga de Recibos a Clientes" height="20" width="73">
5      <datasource name="tmpValuesDataSource" cache="1"/>
6    <datasource name="clientSearchDataSource" database="papo"    <datasource name="clientSearchDataSource" database="papo"
7                table="_entity_data, _alien_entity_data, _persona_data, _client_data,                table="_entity_data, _alien_entity_data, _persona_data, _client_data,
8                       _price_type_data, entity_type_uid_conf, _entity_uid_type_data,                       _price_type_data, entity_type_uid_conf, _entity_uid_type_data,
# Line 253  Line 253 
253      </condition>      </condition>
254    </datasource>    </datasource>
255    
256      <trigger name="startUp" type="On-Startup">
257        ownDocumentBlock.typeEntry = "3"
258        callTrigger('searchNextReceiptNumber')
259        tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp()
260      </trigger>
261    <trigger type="NAMED" name="showInvoiceToPayTrigger"><![CDATA[    <trigger type="NAMED" name="showInvoiceToPayTrigger"><![CDATA[
262    
263  callTrigger('startWaitingModeTrigger')  callTrigger('startWaitingModeTrigger')
# Line 378  callTrigger('endWaitingModeTrigger') Line 383  callTrigger('endWaitingModeTrigger')
383    
384    <trigger type="NAMED" name="cancelTrigger"><![CDATA[    <trigger type="NAMED" name="cancelTrigger"><![CDATA[
385  import hack  import hack
386    tmpBlock.tmpDateEntry = ownDocumentDataSource.getTimeStamp()
387  ownDocumentBlock.processRollback()  ownDocumentBlock.processRollback()
388  tmpInvToPayedBlock.processRollback()  tmpInvToPayedBlock.processRollback()
389  invoiceToPayedBlock.processRollback()  invoiceToPayedBlock.processRollback()
# Line 393  import hack Line 398  import hack
398  import string  import string
399  import printing  import printing
400    
401    # nro de documento
402    ownDocumentBlock.numberEntry= str(ownPosDocumentBlock.documentNumberEntry)
403    ownPosDocumentBlock.documentNumberEntry.atomicModify (lambda x:     int(x)+1)
404    # /nro de documento    
405  proceedingBlock.processRollback()  proceedingBlock.processRollback()
406  currencyMovementBlock.processRollback()  currencyMovementBlock.processRollback()
407  ownDocumentProceedingBlock.processRollback()  ownDocumentProceedingBlock.processRollback()
408    
409  ownDocumentBlock.clientRecipientBox.dateEntry = ownDocumentDataSource.getTimeStamp()  ownDocumentBlock.clientRecipientBox.dateEntry = ownDocumentDataSource.getTimeStamp()
410  ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq')  ownDocumentBlock.idEntry.autofillBySequence('own_document_id_seq')
411  ownDocumentBlock.typeEntry = "3"  
412    
413  proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq')  proceedingBlock.idEntry.autofillBySequence('proceeding_id_seq')
414  proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp()  proceedingBlock.dateEntry = proceedingDataSource.getTimeStamp()
# Line 535  invoiceToPayedBlock.invoiceBox.totalEntr Line 544  invoiceToPayedBlock.invoiceBox.totalEntr
544    ]]></trigger>    ]]></trigger>
545    
546    <page name="Emision de Recibos">    <page name="Emision de Recibos">
547        <!-- Fecha y numero de documento -->
548        <box height="4" label="recibo" name="clientRecipientBox" width="72" x="0" y="0">
549          <block name="tmpBlock" datasource="tmpValuesDataSource" transparentBlock="">
550            <label  text="Fecha" x="1" y="1" />
551            <label  text="Número de Recibo:" x="32" y="1"/>
552            <entry name="tmpDateEntry" typecast="date" width="14" x="7" y="1"/>
553          </block>
554          <neb:Sub neb:src="posDocument.nebc" documentType="ownDocumentBlock.typeEntry"
555          ownPosDocumentBlock="ownPosDocumentBlock"  documentNumberEntry="documentNumberEntry"
556          documentNumberEntryX="55" documentNumberEntryY="1"
557          searchNextDocumentNumber="searchNextReceiptNumber"  >
558        </neb:Sub>
559        </box>
560        <!-- /nro de documento  -->
561      <!-- Bloque para la búsqueda de clientes -->      <!-- Bloque para la búsqueda de clientes -->
562      <block name="clientResultBlock" datasource="clientSearchDataSource">      <block name="clientResultBlock" datasource="clientSearchDataSource">
563          <entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/>        <entry name="idEntry" field="_entity_data.id" hidden="" x="1" y="1" width="12"/>
564          <entry name="uidTypeEntry" field="_entity_uid_data.entity_uid_type" hidden="" x="1" y="1" width="12"/>        <entry name="uidTypeEntry"
565          <entry name="uidEntry" field="_entity_uid_data.uid" hidden="" x="1" y="1" width="12"/>          field="_entity_uid_data.entity_uid_type" hidden="" x="1" y="1"
566          <entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/>          width="12"/>
567          <entry name="uidEntry" field="_entity_uid_data.uid" hidden="" x="1" y="1" width="12"/>
568          <entry name="nameEntry" field="_entity_data.name" hidden="" x="1" y="1" width="20"/>
569      </block>      </block>
   
570      <block datasource="ownDocumentDataSource" name="ownDocumentBlock">      <block datasource="ownDocumentDataSource" name="ownDocumentBlock">
571        <entry field="id" hidden="" name="idEntry" x="1" y="1"/>        <entry field="id" hidden="" name="idEntry" x="1" y="1"/>
572        <entry field="own_document_type" hidden="" name="typeEntry" x="1" y="1"/>        <entry field="own_document_type" hidden="" name="typeEntry" x="1" y="1"/>
573        <box height="5" label="Datos del Cliente" name="clientRecipientBox" width="72" x="0" y="0">        <box height="5" label="Datos del Cliente" name="clientRecipientBox" width="72" x="0" y="3">
574            <label text="Nro de recibo" x="1" y="2" />
575          <entry x="1" y="1" field="recipient" name="clientEntry" width="30" hidden=""/>          <entry x="1" y="1" field="recipient" name="clientEntry" width="30" hidden=""/>
576          <entry x="1" y="1" name="clientCodeEntry" width="20"/>          <entry x="1" y="1" name="clientCodeEntry" width="20"/>
577          <entry x="21" y="1" name="clientNameEntry" width="35"/>          <entry x="21" y="1" name="clientNameEntry" width="35"/>
# Line 576  invoiceToPayedBlock.invoiceBox.totalEntr Line 599  invoiceToPayedBlock.invoiceBox.totalEntr
599    
600      <block name="invoiceToPayedBlock" datasource="invoiceToPayedDataSource">      <block name="invoiceToPayedBlock" datasource="invoiceToPayedDataSource">
601        <box height="13" label="Facturas Pendientes de Pago" name="invoiceBox"        <box height="13" label="Facturas Pendientes de Pago" name="invoiceBox"
602          width="72" x="0" y="4">          width="72" x="0" y="7">
603          <label name="numberLbl" text="Numero" x="1" y="1"/>          <label name="numberLbl" text="Numero" x="1" y="1"/>
604          <label name="dateLbl" text="Fecha" x="20" y="1"/>          <label name="dateLbl" text="Fecha" x="20" y="1"/>
605          <label name="amountLbl" text="Monto" x="33" y="1"/>          <label name="amountLbl" text="Monto" x="33" y="1"/>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26