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

Diff of /papo/forms/returnNote.neb

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

revision 1.8 by mhepp, Mon Jun 2 19:05:54 2003 UTC revision 1.9 by apronotti, Mon Jun 2 22:57:19 2003 UTC
# Line 193  Line 193 
193      </condition>      </condition>
194    </datasource>    </datasource>
195    
 <!--   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="_price_data._end_t"/> </null>  
         <null>  
           <cfield name="_product_store_data._end_t"/>  
         </null>  
       </and>  
     </condition>  
   </datasource>  
   
196    <trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[    <trigger name="clientCallFormTrigger" type="NAMED"><![CDATA[
197      runForm('client.gfd')      runForm('client.gfd')
198    ]]></trigger>    ]]></trigger>
# Line 267  Line 237 
237       ownPosDocumentBlock.postChanges ()       ownPosDocumentBlock.postChanges ()
238    
239       commitProgress= 2       commitProgress= 2
240       ownItemToUpdBlock.initQuery()       callTrigger('stockAddTrigger')
      ownItemToUpdBlock.ownDocumentEntry = lOwnDocId  
      #storehouse  
      ownItemToUpdBlock.storehouseEntry = str(ownStorehouseBlock.ownStorehouseIdEntry)  
      #/storehouse  
      ownItemToUpdBlock.processQuery()  
      # move the stock  
      lRecordCount = ownItemToUpdBlock.getRecordCount()  
      for recNum in range(lRecordCount):  
         ownItemToUpdBlock.jumpRecord(recNum)  
         ownItemToUpdBlock.levelEntry.atomicModify(lambda x:x+round(float(str(ownItemToUpdBlock.qtyEntry)),4))  
      ownItemToUpdBlock.clear()  
241    
242       commitConnection ()       commitConnection ()
243      except DBError, err:      except DBError, err:
# Line 777  Line 736 
736          <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"
737            default="0.00"/>            default="0.00"/>
738        </block>        </block>
739        <block datasource="ownItemToUpdDataSource" name="ownItemToUpdBlock">      <neb:Sub neb:src="setStock.nebc"   ownDocumentId="ownDocumentBlock.idEntry" storehouseEntityId="ownStorehouseBlock.ownStorehouseIdEntry" stockAddTrigger="stockAddTrigger" stockSubstractTrigger="stockSubstractTrigger"/>
         <entry name="ownDocumentEntry" field="own_item.own_document" hidden="" x="1" y="109" width="10"/>  
         <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>  
740    
741    <block name="ownOrganizationBlock" datasource="ownOrganizationDataSource">    <block name="ownOrganizationBlock" datasource="ownOrganizationDataSource">
742      <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.8  
changed lines
  Added in v.1.9

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