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

Diff of /papo/forms/providerCreditNote.neb

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

revision 1.3 by apronotti, Thu May 15 19:07:22 2003 UTC revision 1.4 by apronotti, Thu May 22 18:07:51 2003 UTC
# Line 1052  Line 1052 
1052    
1053        #sum += lQty * lUnitPrice + lTax - lBonus - lDiscount        #sum += lQty * lUnitPrice + lTax - lBonus - lDiscount
1054    
1055      totalBlock.netoEntry = str(lTNeto)      alienDocumentBlock.netTotalEntry = str(lTNeto)
1056      totalBlock.ivaEntry = str(lTTax)      alienDocumentBlock.taxTotalEntry = str(lTTax)
1057      totalBlock.totalEntry = str(lTNeto+lTTax)      alienDocumentBlock.totalEntry = str(lTNeto+lTTax)
1058    </trigger>    </trigger>
1059    
1060    <trigger name="newSearchTrigger" type="NAMED">    <trigger name="newSearchTrigger" type="NAMED">
# Line 1277  Line 1277 
1277      callTrigger ('totalCalcTrigger')      callTrigger ('totalCalcTrigger')
1278    ]]></trigger>    ]]></trigger>
1279    
1280      <trigger name="totalChanged" type="NAMED">
1281       import hack
1282       alienDocumentBlock.totalEntry = str(hack.a2f(alienDocumentBlock.netTotalEntry) \
1283                                       + hack.a2f(alienDocumentBlock.taxTotalEntry))
1284      </trigger>
1285    
1286    <page name="Búsqueda de Notas de Crédito">    <page name="Búsqueda de Notas de Crédito">
1287  <!--   <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> -->  <!--   <trigger type="Pre-Focusout" src="resultFocusOutTrigger"/> -->
1288      <box height="12" label="Nota de Crédito Productos de Proveedor"      <box height="12" label="Nota de Crédito Productos de Proveedor"
# Line 1559  Line 1565 
1565    <page name="Notas de Crédito (Alta)">    <page name="Notas de Crédito (Alta)">
1566  <!--     <trigger type="PRE-FOCUSIN" name="preFocusInPage3"> -->  <!--     <trigger type="PRE-FOCUSIN" name="preFocusInPage3"> -->
1567  <!--     </trigger> -->  <!--     </trigger> -->
1568      <box height="12" label="Nota de Crédito de Productos de Proveedor"  <!--     <box height="12" label="Nota de Crédito de Productos de Proveedor"  -->
1569        name="creditNoteHeaderBox" width="107" x="0" y="0">  <!--       name="creditNoteHeaderBox" width="107" x="0" y="0"> -->
1570    
1571        <!--     Estos bloques son para la gestion del pago de la nota de crédito -->        <!--     Estos bloques son para la gestion del pago de la nota de crédito -->
1572        <block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock="">        <block name="proceedingBlock" datasource="proceedingDataSource" transparentBlock="">
# Line 1670  Line 1676 
1676          <label name="bundlesLbl" text="Bultos" x="74" y="8" />          <label name="bundlesLbl" text="Bultos" x="74" y="8" />
1677          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/>          <entry field="bundles" name="bundlesEntry" width="10" x="74" y="9"/>
1678    
1679            <label name="totalLbl" text="Neto" x="76" y="21"/>
1680            <entry name="netTotalEntry" field="net_total" x="76" y="22" width="11" default="0.00">
1681              <trigger type="Pre-Focusout" src="totalChanged"/>
1682            </entry>
1683            <label name="ivaLbl" text="IVA" x="64" y="21"/>
1684            <entry name="taxTotalEntry" field="tax_total" x="64" y="22" width="11" default="0.00">
1685              <trigger type="Pre-Focusout" src="totalChanged"/>
1686            </entry>
1687            <label name="totalLbl" text="Total" x="87" y="21"/>
1688            <entry name="totalEntry" readonly="" style="label" x="87" y="22" width="12" default="0.00"/>
1689    
1690        </block>        </block>
1691      </box>  <!--     </box> -->
1692    
1693  <!--     <box height="12" label="Productos de la nota de crédito" name="creditNoteItemBox" -->  <!--     <box height="12" label="Productos de la nota de crédito" name="creditNoteItemBox" -->
1694  <!--       width="107" x="0" y="11"> -->  <!--       width="107" x="0" y="11"> -->
# Line 1760  Line 1777 
1777            name="rollbackBtn" height="1"/>            name="rollbackBtn" height="1"/>
1778    
1779        </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>  
1780        <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock">        <block datasource="alienItemDataSourceToUpd" name="alienItemToUpdBlock">
1781          <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"/>
1782          <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 1787  Line 1795 
1795            <entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/>            <entry name="amountEntry" field="amount" hidden="" x="1" y="1" width="12"/>
1796        </block>        </block>
1797    
 <!--     <box height="4" label="Pago de la nota de crédito" name="payBox"  -->  
 <!--       width="107" x="0" y="23"> -->  
 <!--       <block datasource="payDataSource" name="payBlock"> -->  
 <!--       <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> -->  
 <!--       </block> -->  
 <!--     </box> -->  
1798      <block name="providerResultBlock" datasource="providerSearchDataSource">      <block name="providerResultBlock" datasource="providerSearchDataSource">
1799        <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"/>    
1800        <entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/>            <entry name="providerCodeEntry" field="_entity_uid_data.uid" x="1" y="1" width="12" hidden=""/>    

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