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

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

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

revision 1.9 by apronotti, Thu Oct 9 22:29:35 2003 UTC revision 1.10 by apronotti, Wed Oct 15 21:12:10 2003 UTC
# Line 789  order_by="_entity_data.name"> Line 789  order_by="_entity_data.name">
789    
790    <datasource database="papo" name="alienItemShowDataSource"    <datasource database="papo" name="alienItemShowDataSource"
791      table="neb:($document eq 'tax')?'alien_item, alien_product_item':'alien_item, alien_product_item, alien_item_tax'">      table="neb:($document eq 'tax')?'alien_item, alien_product_item':'alien_item, alien_product_item, alien_item_tax'">
792      <joinconditions>
793        <join type="left">
794          <join type="left">
795            <neb:Block> if ($document ne "tax") {</neb:Block>
796            <join type="left">
797              <neb:Block>}</neb:Block>
798              <join type="left">
799                <left_table name="alien_item"/>
800                <right_table name="alien_product_item"/>
801                <condition>
802                  <eq>
803                    <cfield name="alien_item.id"/>
804                    <cfield name="alien_product_item.alien_item"/>
805                  </eq>
806                </condition>
807              </join>
808              <neb:Block> if ($document ne "tax") {</neb:Block>
809              <right_table name="alien_item_tax"/>
810              <condition>
811                <eq>
812                  <cfield name="alien_item.id"/>
813                  <cfield name="alien_item_tax.alien_item"/>
814                </eq>
815              </condition>
816            </join>
817            <neb:Block>}</neb:Block>
818            <right_table name="_product_data"/>
819            <condition>
820              <eq>
821                <cfield name="alien_product_item.product"/>
822                <cfield name="_product_data.id"/>
823              </eq>
824            </condition>
825          </join>
826          <right_table name="_product_code_data"/>
827          <condition>
828            <eq>
829              <cfield name="_product_data._table"/>
830              <cfield name="_product_code_data.product"/>
831            </eq>
832          </condition>
833        </join>
834      </joinconditions>
835    <condition>    <condition>
836      <and>      <and>
837        <eq>        <null>
838          <cfield name="alien_item.id"/>          <cfield name="_product_data._end_t"/>
839          <cfield name="alien_product_item.alien_item"/>        </null>
840        </eq>        <null>
841        <neb:Block> if ($document ne "tax") {</neb:Block>          <cfield name="_product_code_data._end_t"/>
842        <eq>        </null>
843          <cfield name="alien_item.id"/>      </and>
844          <cfield name="alien_item_tax.alien_item"/>    </condition>
       </eq>  
       <eq>  
         <cfield name="alien_item_tax.tax"/>  
         <cconst value="1"/>  
       </eq>  
       <neb:Block>}</neb:Block>  
       </and>  
     </condition>  
845    </datasource>    </datasource>
846    
847   <datasource database="papo" name="alienItemDeleteDataSource"   <datasource database="papo" name="alienItemDeleteDataSource"
# Line 1849  order_by="_entity_data.name"> Line 1884  order_by="_entity_data.name">
1884        <label text="Productos a incluir" x="1" y="12"/>        <label text="Productos a incluir" x="1" y="12"/>
1885        <label text="Código" x="1" y="13"/>        <label text="Código" x="1" y="13"/>
1886    
1887          <entry x="1" y="14" field="alien_product_item.product" name="productCodeEntry" readonly=""          <entry x="1" y="14" field="_product_code_data.code" name="productCodeEntry" readonly="" rows="7"
1888             width="14" style="textlookup" foreign_key="productNameDataSource._product_data.id"                 style="label" width="14"/>
            foreign_key_description="_product_code_data.code" rows="7">  
         </entry>  
1889    
1890          <label text="Nombre" x="15" y="13"/>          <label text="Nombre" x="15" y="13"/>
1891          <entry x="15" y="14" field="alien_product_item.product" name="productNameEntry" readonly=""          <entry x="15" y="14" field="_product_data.canonical_name" name="productNameEntry" readonly=""
1892             width="20" style="textlookup" foreign_key="productNameDataSource._product_data.id"                 rows="7" style="label" width="20"/>
            foreign_key_description="_product_data.canonical_name" rows="7">  
         </entry>  
1893    
1894          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/>          <entry x="15" y="4" field="alien_product_item.product" name="productEntry" width="20" rows="7" hidden=""/>
1895    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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