/[papo]/papo/forms/productProviderInvoice.gfd
ViewVC logotype

Diff of /papo/forms/productProviderInvoice.gfd

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

revision 1.12 by apronotti, Mon Feb 17 20:57:15 2003 UTC revision 1.13 by apronotti, Mon Feb 17 22:57:36 2003 UTC
# Line 8  Line 8 
8    
9  <form tabbed="top" width="107" height="24" title="Carga de Facturas de Proveedores">  <form tabbed="top" width="107" height="24" title="Carga de Facturas de Proveedores">
10    
11      <parameter name="invoiceDate" default=""/>
12    
13    <datasource name="nil" cache="1"/>    <datasource name="nil" cache="1"/>
14    <datasource name="payDataSource" cache="1"/>    <datasource name="payDataSource" cache="1"/>
15    <datasource name="tmpSearchDataSource" cache="1"/>    <datasource name="tmpSearchDataSource" cache="1"/>
# Line 633  Line 635 
635    
636    <datasource name="productTaxDataSource" database="papo"    <datasource name="productTaxDataSource" database="papo"
637      table=" _product_data, _product_tax_data"      table=" _product_data, _product_tax_data"
638      cache="15" order_by="_product_data.canonical_name">      order_by="_product_data.canonical_name">
639      <condition>      <condition>
640        <and>        <and>
 <!--         <null> -->  
 <!--           <cfield name="_product_data._end_t"/> -->  
 <!--         </null> -->  
641          <!-- pega product con product_tax -->          <!-- pega product con product_tax -->
642          <eq>          <eq>
643            <cfield name="_product_data._table"/>            <cfield name="_product_data._table"/>
644            <cfield name="_product_tax_data.product"/>            <cfield name="_product_tax_data.product"/>
645          </eq>          </eq>
646          <!-- descarta product_taxes muertos -->  <!--         <or> -->
647  <!--         <null> -->            <!-- find the client state in that time -->
648  <!--           <cfield name="_product_tax_data._end_t"/> -->  <!--           <between> -->
649  <!--         </null> -->  <!--             <cparam name="invoiceDate"/> -->
650    <!--             <cfield name="_product_tax_data._start_t"/> -->
651    <!--             <cfield name="_product_tax_data._end_t"/> -->
652    <!--           </between> -->
653              <!-- or is it the current one? -->
654    <!--           <and> -->
655    <!--             <ge> -->
656    <!--               <cparam name="invoiceDate"/> -->
657    <!--               <cfield name="_product_tax_data._start_t"/> -->
658    <!--             </ge> -->
659    <!--             <null> -->
660    <!--               <cfield name="_product_tax_data._end_t"/> -->
661    <!--             </null> -->
662    <!--           </and> -->
663    <!--         </or> -->
664          <!-- solamente 'IVA' (id 1) -->          <!-- solamente 'IVA' (id 1) -->
665          <eq>          <eq>
666            <cfield name="_product_tax_data.tax"/>            <cfield name="_product_tax_data.tax"/>
# Line 795  Line 808 
808      </condition>      </condition>
809    </datasource>    </datasource>
810    
811    <!--   <trigger name="onStartUpTrigger" type="ON-STARTUP"><![CDATA[ -->
812    <!--     setParameter('invoiceDate','value') -->
813    <!--     print getParameter('invoiceDate') -->
814    <!--   ]]></trigger> -->
815    
816    <trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[    <trigger name="startWaitingModeTrigger" type="NAMED"><![CDATA[
817      setStatusText("Procesando ...")      setStatusText("Procesando ...")
818      try:      try:
# Line 1009  Line 1027 
1027      genericBox("No implementado",["Aceptar"])      genericBox("No implementado",["Aceptar"])
1028    </trigger>    </trigger>
1029    
1030      <trigger name="okTrigger" type="NAMED">
1031    
1032      </trigger>
1033    
1034    <trigger name="providerSearchPage1Trigger" type="NAMED">    <trigger name="providerSearchPage1Trigger" type="NAMED">
1035      currentSearchIdBlock.searchId = "1"      currentSearchIdBlock.searchId = "1"
1036      callTrigger('providerSearchTrigger')      callTrigger('providerSearchTrigger')
# Line 1166  Line 1188 
1188       alienDocumentShowBlock.processQuery()       alienDocumentShowBlock.processQuery()
1189       recordCount = alienItemShowBlock.getRecordCount()       recordCount = alienItemShowBlock.getRecordCount()
1190       alienItemShowBlock.firstRecord()       alienItemShowBlock.firstRecord()
1191         setParameter('invoiceDate',str(alienDocumentShowBlock.dateEntry))
1192       #for index in range(recordCount):       #for index in range(recordCount):
1193       #    alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \       #    alienItemShowBlock.taxPercentEntry = (hack.a2f(alienItemShowBlock.taxAmountEntry) / (hack.a2f(alienItemShowBlock.unitPriceEntry) * \
1194       #                                     hack.a2f(alienItemShowBlock.qtyEntry))) * 100       #                                     hack.a2f(alienItemShowBlock.qtyEntry))) * 100
# Line 1435  Line 1458 
1458          <entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f"          <entry field="alien_item.discount" name="discountEntry" typecast="number" displaymask="%0.2f"
1459            rows="7" width="10" x="71" y="14" default="0" style="label" readonly="">            rows="7" width="10" x="71" y="14" default="0" style="label" readonly="">
1460          </entry>          </entry>
1461          <label name="itemTotalLbl" text="Total" x="82" y="13"/>  <!--         <label name="itemTotalLbl" text="Total" x="82" y="13"/> -->
1462          <entry name="itemTotalEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f"  <!--         <entry name="itemTotalEntry" style="label" default="0.00" typecast="number" displaymask="%0.2f"  -->
1463            rows="10" width="10" x="82" y="14" readonly="">  <!--           rows="10" width="10" x="82" y="14" readonly=""> -->
1464          </entry>  <!--         </entry> -->
1465    
1466  <!--         <label name="bonusLbl" text="Bonificación" x="66" y="3"/> -->  <!--         <label name="bonusLbl" text="Bonificación" x="66" y="3"/> -->
1467          <entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f"          <entry field="alien_item.bonus" name="bonusEntry" value="0" typecast="number" displaymask="%0.2f"
# Line 1457  Line 1480 
1480          <entry name="totalEntry" readonly="" style="label" x="82" y="22" width="12" default="0.00"/>          <entry name="totalEntry" readonly="" style="label" x="82" y="22" width="12" default="0.00"/>
1481        </block>        </block>
1482    
1483      <box height="4" label="Pago de la factura" name="payBox"        <block datasource="nil" name="tmpBlock">
1484        width="107" x="0" y="22">          <button x="100" y="100" trigger="okTrigger" width="10" label="Ok"
1485  <!--       <block datasource="payDataSource" name="payBlock"> -->            name="deleteBtn" height="1"/>
 <!--       <label text="Efectivo : " x="1" y="1"/> -->  
 <!--       <entry name="cashEntry" x="11" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> -->  
 <!--         <trigger type="Pre-Focusout"> -->  
 <!--            import hack -->  
 <!--            payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry)) -->  
 <!--         </trigger> -->  
 <!--       </entry> -->  
 <!--       <label text="Cta. Cte. : " x="24" y="1"/> -->  
 <!--       <entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00"> -->  
 <!--         <trigger type="Pre-Focusout"> -->  
 <!--            import hack -->  
 <!--            payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry)) -->  
 <!--         </trigger> -->  
 <!--       </entry> -->  
 <!--         <button x="49" y="1" trigger="commitTrigger" width="10" label="Aceptar" -->  
 <!--           name="commitBtn" height="1"/> -->  
 <!--         <button x="60" y="1" trigger="rollbackTrigger" width="10" label="Deshacer" -->  
 <!--           name="rollbackBtn" height="1"/> -->  
 <!--         <button x="71" y="1" trigger="deleteTrigger" width="10" label="Borrar" -->  
 <!--           name="deleteBtn" height="1"/> -->  
1486    
1487  <!--       </block> -->        </block>
     </box>  
1488    </page>    </page>
1489    
1490    <!--   Página de carga de facturas -->    <!--   Página de carga de facturas -->
# Line 1706  Line 1708 
1708  <!--     </box> -->  <!--     </box> -->
1709    
1710      <box height="4" label="Pago de la factura" name="payBox"      <box height="4" label="Pago de la factura" name="payBox"
1711        width="107" x="0" y="22">        width="107" x="0" y="23">
1712        <block datasource="payDataSource" name="payBlock">        <block datasource="payDataSource" name="payBlock">
1713        <label text="Efectivo : " x="1" y="1"/>        <label text="Efectivo : " x="1" y="1"/>
1714        <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">    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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