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

Diff of /papo/forms/productProviderInvoice.neb

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

revision 1.4 by apronotti, Thu May 15 19:07:21 2003 UTC revision 1.5 by apronotti, Thu May 22 18:07:51 2003 UTC
# Line 1097  Line 1097 
1097    
1098        #sum += lQty * lUnitPrice + lTax - lBonus - lDiscount        #sum += lQty * lUnitPrice + lTax - lBonus - lDiscount
1099    
1100      totalBlock.netoEntry = str(lTNeto)      alienDocumentBlock.netTotalEntry = str(lTNeto)
1101      totalBlock.ivaEntry = str(lTTax)      alienDocumentBlock.taxTotalEntry = str(lTTax)
1102      totalBlock.totalEntry = str(lTNeto+lTTax)      alienDocumentBlock.totalEntry = str(lTNeto+lTTax)
1103      payBlock.cashEntry = str(lTNeto+lTTax)      payBlock.cashEntry = str(lTNeto+lTTax)
1104    
1105      #totalBlock.totalEntry = str(sum)      #totalBlock.totalEntry = str(sum)
# Line 1327  Line 1327 
1327      callTrigger ('totalCalcTrigger')      callTrigger ('totalCalcTrigger')
1328    ]]></trigger>    ]]></trigger>
1329    
1330      <trigger name="totalChanged" type="NAMED">
1331       import hack
1332       alienDocumentBlock.totalEntry = str(hack.a2f(alienDocumentBlock.netTotalEntry) \
1333                                       + hack.a2f(alienDocumentBlock.taxTotalEntry))
1334       payBlock.cashEntry = str(hack.a2f(alienDocumentBlock.totalEntry))
1335      </trigger>
1336    
1337    <page name="Búsqueda de Facturas de Proveedor">    <page name="Búsqueda de Facturas de Proveedor">
1338  <!--   <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> -->  <!--   <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> -->
1339      <box height="12" label="Factura de Productos de Proveedor"      <box height="12" label="Factura de Productos de Proveedor"
# Line 1618  Line 1625 
1625    <page name="Factura de Proveedor (Alta)">    <page name="Factura de Proveedor (Alta)">
1626  <!--     <trigger type="PRE-FOCUSIN" name="preFocusInPage3"> -->  <!--     <trigger type="PRE-FOCUSIN" name="preFocusInPage3"> -->
1627  <!--     </trigger> -->  <!--     </trigger> -->
1628      <box height="12" label="Factura de Productos de Proveedor"  <!--     <box height="12" label="Factura de Productos de Proveedor"  -->
1629        name="invoiceHeaderBox" width="107" x="0" y="0">  <!--       name="invoiceHeaderBox" width="107" x="0" y="0"> -->
1630    
1631        <!--     Estos bloques son para la gestion del pago de la factura -->        <!--     Estos bloques son para la gestion del pago de la factura -->
1632        <block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock="">        <block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock="">
# Line 1729  Line 1736 
1736          <label name="bundlesLbl" text="Bultos" x="74" y="8" />          <label name="bundlesLbl" text="Bultos" x="74" y="8" />
1737          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/>          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/>
1738    
1739            <label name="totalLbl" text="Neto" x="76" y="21"/>
1740            <entry name="netTotalEntry" field="net_total" x="76" y="22" width="11" default="0.00">
1741              <trigger type="Pre-Focusout" src="totalChanged"/>
1742            </entry>
1743            <label name="ivaLbl" text="IVA" x="64" y="21"/>
1744            <entry name="taxTotalEntry" field="tax_total" x="64" y="22" width="11" default="0.00">
1745              <trigger type="Pre-Focusout" src="totalChanged"/>
1746            </entry>
1747            <label name="totalLbl" text="Total" x="87" y="21"/>
1748            <entry name="totalEntry" readonly="" style="label" x="87" y="22" width="12" default="0.00"/>
1749    
1750        </block>        </block>
1751      </box>  <!--     </box> -->
1752    
1753  <!--     <box height="12" label="Productos a facturar" name="invoiceItemBox" -->  <!--     <box height="12" label="Productos a facturar" name="invoiceItemBox" -->
1754  <!--       width="107" x="0" y="11"> -->  <!--       width="107" x="0" y="11"> -->
# Line 1800  Line 1818 
1818            rows="7" width="10" x="76" y="14">            rows="7" width="10" x="76" y="14">
1819          </entry>          </entry>
1820    
1821          <label name="itemTotalLbl" text="Total" x="86" y="13"/>          <label name="itemTotalLbl" text="Total" x="87" y="13"/>
1822          <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"
1823            rows="7" width="10" x="86" y="14">            rows="7" width="10" x="87" y="14">
1824          </entry>          </entry>
1825    
1826          <button name="productDeleteButton" trigger="productDeleteTrigger" label="Borrar" width="7" height="7" x="96" y="14"/>          <button name="productDeleteButton" trigger="productDeleteTrigger" label="Borrar" width="7" height="7" x="96" y="14"/>
# Line 1814  Line 1832 
1832          <scrollbar page="5"          <scrollbar page="5"
1833            x="104" y="14" width="1" height="7"/>            x="104" y="14" width="1" height="7"/>
1834        </block>        </block>
       <block datasource="nil" name="totalBlock">  
         <label name="totalLbl" text="Neto" x="76" y="21"/>  
         <entry name="netoEntry" readonly="" style="label" x="76" y="22" width="12" default="0.00"/>  
         <label name="ivaLbl" text="IVA" x="65" y="21"/>  
         <entry name="ivaEntry" readonly="" style="label" x="65" y="22" width="12" default="0.00"/>  
         <label name="totalLbl" text="Total" x="86" y="21"/>  
         <entry name="totalEntry" readonly="" style="label" x="86" y="22" width="12" default="0.00"/>  
   
       </block>  
1835        <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock">        <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock">
1836          <entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/>          <entry name="alienDocumentToUpdEntry" field="alien_item.alien_document" hidden="" x="1" y="109" width="10"/>
1837          <entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/>          <entry name="prodIdEntry" field="alien_product_item.product" hidden="" x="11" y="109" width="10"/>
# Line 1855  Line 1864 
1864        <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">    
1865          <trigger type="Pre-Focusout">          <trigger type="Pre-Focusout">
1866             import hack             import hack
1867             payBlock.ctaCteEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.cashEntry))             payBlock.ctaCteEntry = str(hack.a2f(alienDocumentBlock.totalEntry) - hack.a2f(payBlock.cashEntry))
1868          </trigger>          </trigger>
1869        </entry>        </entry>
1870        <label text="Cta. Cte. : " x="24" y="1"/>        <label text="Cta. Cte. : " x="24" y="1"/>
1871        <entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00">            <entry name="ctaCteEntry" x="35" y="1" width="12" typecast="number" displaymask="%0.2f" default="0.00">    
1872          <trigger type="Pre-Focusout">          <trigger type="Pre-Focusout">
1873             import hack             import hack
1874             payBlock.cashEntry = str(hack.a2f(totalBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry))             payBlock.cashEntry = str(hack.a2f(alienDocumentBlock.totalEntry) - hack.a2f(payBlock.ctaCteEntry))
1875          </trigger>          </trigger>
1876        </entry>        </entry>
1877          <button x="49" y="1" trigger="commitTrigger" width="10" label="Aceptar"          <button x="49" y="1" trigger="commitTrigger" width="10" label="Aceptar"

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

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