/[papo]/papo/forms/components/movement.nebc
ViewVC logotype

Diff of /papo/forms/components/movement.nebc

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

revision 1.3 by mhepp, Fri Oct 10 21:09:25 2003 UTC revision 1.4 by mhepp, Tue Oct 28 17:50:59 2003 UTC
# Line 1  Line 1 
1  <!--COMPONENTE PARA EL LISTADO DE MOVIMIENTOS DEL CLIENTE O PROVEEDOR  -->  <!--COMPONENTE PARA EL LISTADO DE MOVIMIENTOS DEL CLIENTE O PROVEEDOR  -->
2    <neb:Vars>    <neb:Vars>
3      $debitA => ''      $debit
4      $debitB => ''      $credit
5      $debitC => ''      #$debitA => ''
6      $creditA => ''      #$debitB => ''
7      $creditB => ''      #$debitC => ''
8      $creditC => ''      #$creditA => ''
9        #$creditB => ''
10        #$creditC => ''
11        $document_sign => ''
12      $applied_doc => ''      $applied_doc => ''
13      $applied_name => ''      $applied_name => ''
14      $entity_type => ''      $entity_type => ''
# Line 99  Line 102 
102          <cfield name="_entity_data.id"/>          <cfield name="_entity_data.id"/>
103            <cfield name="neb:$doc_ownership.'_document.'.$doc_alien_entity"/>            <cfield name="neb:$doc_ownership.'_document.'.$doc_alien_entity"/>
104          </eq>          </eq>
105          <or>         <or>
106            <eq>          <neb:Block>$document_sign = '';foreach (@$credit) {</neb:Block>
107            <eq>
108              <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>              <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>
109              <cconst value="neb:$creditA"/> <!-- Factura tipo A -->              <cconst value="neb:$_"/>
110            </eq>            </eq>
111          <eq>          <neb:Block>$document_sign.='"'.$_.'"'.':-1,'}</neb:Block>
112            <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>          <!--       <eq> -->
113            <cconst value="neb:$creditB"/> <!-- Factura tipo B -->          <!--           <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/> -->
114          </eq>          <!--           <cconst value="neb:$creditB"/>  -->
115          <eq>          <!--         </eq> -->
116          <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>          <!--         <eq> -->
117            <cconst value="neb:$creditC"/> <!-- Factura tipo C -->          <!--         <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/> -->
118          </eq>          <!--           <cconst value="neb:$creditC"/>  -->
119            <!--         </eq> -->
120          <!--show credit notes-->          <!--show credit notes-->
121            <neb:Block>foreach (@$debit) {</neb:Block>
122          <eq>          <eq>
123            <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>            <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>
124            <cconst value="neb:$debitA"/>            <cconst value="neb:$_"/>
         </eq>  
         <eq>  
           <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>  
           <cconst value="neb:$debitB"/>  
         </eq>  
         <eq>  
           <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/>  
           <cconst value="neb:$debitC"/>  
125          </eq>          </eq>
126            <neb:Block>$document_sign.='"'.$_.'"'.':1,'}</neb:Block>
127            <!--    <eq> -->
128            <!--           <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/> -->
129            <!--           <cconst value="neb:$debitB"/> -->
130            <!--         </eq> -->
131            <!--         <eq> -->
132            <!--           <cfield name="neb:$doc_ownership.'_document.'.$doc_ownership.'_document_type'"/> -->
133            <!--           <cconst value="neb:$debitC"/> -->
134            <!--         </eq> -->
135          <!--/show credit notes-->          <!--/show credit notes-->
136        </or>        </or>
137        <eq>        <eq>
# Line 312  Line 319 
319    
320    <!-- triggers de movimientos-->    <!-- triggers de movimientos-->
321    <trigger name="showAplicationTrigger" type="NAMED">    <trigger name="showAplicationTrigger" type="NAMED">
322      documentSign={'<neb:Inline>$debitA</neb:Inline>':1, '<neb:Inline>$debitB</neb:Inline>':1, '<neb:Inline>$debitC</neb:Inline>':1,'<neb:Inline>$creditA</neb:Inline>':-1, '<neb:Inline>$creditB</neb:Inline>':-1, '<neb:Inline>$creditC</neb:Inline>':-1}      documentSign={<neb:Inline>$document_sign</neb:Inline>}
323      import gnue.common.GConditions as GConditions      import gnue.common.GConditions as GConditions
324      import hack      import hack
325      import printing      import printing
# Line 453  Line 460 
460    
461  <!-- HISTORICOS -->  <!-- HISTORICOS -->
462    
463    <!-- documentSign={'<neb:Inline>$debitA</neb:Inline>':1, '<neb:Inline>$debitB</neb:Inline>':1, '<neb:Inline>$debitC</neb:Inline>':1,'<neb:Inline>$creditA</neb:Inline>':-1, '<neb:Inline>$creditB</neb:Inline>':-1, '<neb:Inline>$creditC</neb:Inline>':-1} -->
464    
465    <trigger name="showHistoricTrigger" type="NAMED">    <trigger name="showHistoricTrigger" type="NAMED">
466      documentSign={'<neb:Inline>$debitA</neb:Inline>':1, '<neb:Inline>$debitB</neb:Inline>':1, '<neb:Inline>$debitC</neb:Inline>':1,'<neb:Inline>$creditA</neb:Inline>':-1, '<neb:Inline>$creditB</neb:Inline>':-1, '<neb:Inline>$creditC</neb:Inline>':-1}      documentSign={<neb:Inline>$document_sign</neb:Inline>}
467      import gnue.common.GConditions as GConditions      import gnue.common.GConditions as GConditions
468      import hack      import hack
469      import printing      import printing

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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