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

Diff of /papo/forms/despatchNote.neb

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

revision 1.11 by mhepp, Mon Jun 2 19:05:54 2003 UTC revision 1.12 by apronotti, Mon Jun 2 22:57:19 2003 UTC
# Line 208  Line 208 
208      </condition>      </condition>
209    </datasource>    </datasource>
210    
 <!--   Origen de datos que sirve para consultar y asi actualizar el stock -->  
   
   <datasource database="papo" name="ownItemToUpdDataSource"  
     table="own_item, own_product_item, _price_data, _product_store_data">  
     <condition>  
       <and>  
         <eq>  
           <cfield name="product_store.id"/>  
           <cfield name="_product_store_data._table"/>  
         </eq>  
         <eq>  
           <cfield name="own_item.id"/>  
           <cfield name="own_product_item.own_item"/>  
         </eq>  
         <eq>  
           <cfield name="_price_data.id"/>  
           <cfield name="own_product_item.price"/>  
         </eq>  
         <eq>  
           <cfield name="_price_data.product"/>  
           <cfield name="_product_store_data.product"/>  
         </eq>  
         <null>  
           <cfield name="_product_store_data._end_t"/>  
         </null>  
       </and>  
     </condition>  
   </datasource>  
   
211    <trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[    <trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[
212      runForm('client.gfd')      runForm('client.gfd')
213    ]]></trigger>    ]]></trigger>
# Line 316  Line 287 
287         ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1)         ownPosDocumentBlock.documentNumberEntry.postAtomicModify (lambda x: int(x)+1)
288         postChangeAdvance = 2         postChangeAdvance = 2
289    
290         lOwnDocId = str(ownDocumentBlock.idEntry)         callTrigger('stockSubstractTrigger')
291          
        ownItemToUpdBlock.initQuery()  
        ownItemToUpdBlock.ownDocumentEntry = lOwnDocId  
        #storehouse  
        ownItemToUpdBlock.storehouseEntry = str(ownStorehouseBlock.ownStorehouseIdEntry)  
        #/storehouse  
        ownItemToUpdBlock.processQuery()  
        lRecordCount = ownItemToUpdBlock.getRecordCount()  
        for recNum in range(lRecordCount):  
           ownItemToUpdBlock.jumpRecord(recNum)  
           ownItemToUpdBlock.levelEntry.postAtomicModify(lambda x:x-round(float(str(ownItemToUpdBlock.qtyEntry)),4))  
        ownItemToUpdBlock.clear()  
292         commitConnection()         commitConnection()
293         print "comitted"         print "comitted"
294       except DBError, err:       except DBError, err:
# Line 840  Line 800 
800          <entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f"          <entry name="totalEntry" style="label" readonly="" x="82" y="22" width="12" typecast="number" displaymask="%0.2f"
801            default="0.00"/>            default="0.00"/>
802        </block>        </block>
803        <block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock">      <neb:Sub neb:src="setStock.nebc"   ownDocumentId="ownDocumentBlock.idEntry" storehouseEntityId="ownStorehouseBlock.ownStorehouseIdEntry"
804          <entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/>   stockAddTrigger="stockAddTrigger" stockSubstractTrigger="stockSubstractTrigger"/>
         <entry name="prodIdEntry" field="_price_data.product" hidden="" x="11" y="109" width="10"/>  
         <entry name="qtyEntry" field="own_product_item.qty" hidden="" x="22" y="109" width="10"/>  
         <entry name="levelEntry" field="_product_store_data.level" hidden="" x="33" y="109" width="10"/>  
         <entry name="productEntry" field="_product_store_data.product" hidden="" x="33" y="109" width="10"/>  
         <entry name="storehouseEntry" field="_product_store_data.storehouse" hidden="" x="33" y="109" width="10"/>  
         <entry name="hiwaterEntry" field="_product_store_data.hiwater" hidden="" x="33" y="109" width="10"/>  
         <entry name="lowaterEntry" field="_product_store_data.lowater" hidden="" x="33" y="109" width="10"/>  
         <entry name="tableEntry" field="_product_store_data._table" hidden="" x="33" y="109" width="10"/>  
       </block>  
805    
806    <block name="ownOrganizationBlock" datasource="ownOrganizationDataSource">    <block name="ownOrganizationBlock" datasource="ownOrganizationDataSource">
807      <entry name="condIVAEntry" field="_tax_profile_data._table" hidden="" x="1" y="1" width="10"/>      <entry name="condIVAEntry" field="_tax_profile_data._table" hidden="" x="1" y="1" width="10"/>

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

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