/[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.27 by apronotti, Mon Jul 14 17:17:47 2003 UTC revision 1.28 by apronotti, Mon Jul 14 18:09:33 2003 UTC
# Line 53  Line 53 
53          <null>          <null>
54            <cfield name="_organization_data._end_t"/>            <cfield name="_organization_data._end_t"/>
55          </null>          </null>
56            <null>
57              <cfield name="_persona_tax_profile_data._end_t"/>
58            </null>
59            <null>
60              <cfield name="_tax_profile_data._end_t"/>
61            </null>
62          <!--busco el 1 -->          <!--busco el 1 -->
63          <eq>          <eq>
64            <cfield name="organization.id"/>            <cfield name="organization.id"/>
# Line 224  Line 230 
230      </condition>      </condition>
231    </datasource>    </datasource>
232    
 <!--   <datasource name="providerSearchDataSource" database="papo" -->  
 <!--     table="_entity_data, _persona_tax_profile_data, _tax_profile_data, entity_type_uid_conf, _entity_uid_data"  -->  
 <!--     order_by="_entity_data.name"> -->  
 <!--     <condition> -->  
 <!--       <and> -->  
 <!--        <eq> -->  
 <!--         <cfield name="_entity_data._table"/> -->  
 <!--          <cfield name="_entity_uid_data.entity"/> -->  
 <!--        </eq> -->  
 <!--        <eq> -->  
 <!--          <cfield name="_entity_data._table"/> -->  
 <!--          <cfield name="_persona_tax_profile_data.persona"/> -->  
 <!--        </eq> -->  
 <!--        <eq> -->  
 <!--          <cfield name="_tax_profile_data._table"/> -->  
 <!--          <cfield name="_persona_tax_profile_data.tax_profile"/> -->  
 <!--        </eq> -->  
 <!--        <eq> -->  
 <!--         <cconst value="1"/>  Corresponde al tipo de impuesto IVA  -->  
 <!--         <cfield name="_tax_profile_data.tax"/> -->  
 <!--        </eq> -->  
 <!--        <eq> -->  
 <!--         <cconst value="8"/> -->  
 <!--         <cfield name="entity_type_uid_conf.entity_type"/> -->  
 <!--        </eq> -->  
 <!--        <eq> -->  
 <!--         <cfield name="_entity_uid_data.entity_uid_type"/> -->  
 <!--         <cfield name="entity_type_uid_conf.entity_uid_type"/> -->  
 <!--        </eq> -->  
 <!--        <null> -->  
 <!--           <cfield name="_entity_data._end_t"/> -->  
 <!--        </null> -->  
 <!--        <null> -->  
 <!--          <cfield name="_entity_uid_data._end_t"/> -->  
 <!--        </null> -->  
 <!--         <null> -->  
 <!--          <cfield name="_tax_profile_data._end_t"/> -->  
 <!--         </null> -->  
 <!--         <null> -->  
 <!--          <cfield name="_persona_tax_profile_data._end_t"/> -->  
 <!--         </null> -->  
 <!--       </and> -->  
 <!--     </condition> -->  
 <!--   </datasource> -->  
   
233    <datasource name="providerUIDDataSource" database="papo"    <datasource name="providerUIDDataSource" database="papo"
234      table="_entity_data, entity_type_uid_conf, _entity_uid_data" cache="1">      table="_entity_data, entity_type_uid_conf, _entity_uid_data" cache="1">
235      <condition>      <condition>
# Line 732  Line 693 
693    ownOrganizationBlock.initQuery()    ownOrganizationBlock.initQuery()
694    ownOrganizationBlock.processQuery()    ownOrganizationBlock.processQuery()
695    tmpValuesDataSource.ownIVACond =  str(ownOrganizationBlock.condIVAEntry)    tmpValuesDataSource.ownIVACond =  str(ownOrganizationBlock.condIVAEntry)
696      print "ownIVACond",tmpValuesDataSource.ownIVACond
697    #cargo el own-pos entity id    #cargo el own-pos entity id
698    callTrigger('searchOwnPosData')    callTrigger('searchOwnPosData')
699    #/cargo el own-pos entity id    #/cargo el own-pos entity id
# Line 1124  Line 1086 
1086        alienDocumentBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry)        alienDocumentBlock.providerCodeSEntry = str(providerResultBlock.providerCodeEntry)
1087        alienDocumentBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry)        alienDocumentBlock.providerNameSEntry = str(providerResultBlock.providerNameEntry)
1088        alienDocumentBlock.providerEntry = str(providerResultBlock.idEntry)        alienDocumentBlock.providerEntry = str(providerResultBlock.idEntry)
1089        clientIvaTaxProfle = int(str(tmpValuesDataSource.ownIVACond))        clientIvaTaxProfile = int(str(tmpValuesDataSource.ownIVACond))
1090          print "client IVA ",clientIvaTaxProfile
1091        providerIvaTaxProfile = int(str(providerResultBlock.providerIvaTaxProfileEntry))        providerIvaTaxProfile = int(str(providerResultBlock.providerIvaTaxProfileEntry))
1092        alienDocumentBlock.invoiceTypeEntry = hack.calcInvoiceType(clientIvaTaxProfle, providerIvaTaxProfile)        print "providerIvaTaxProfile", providerIvaTaxProfile
1093          alienDocumentBlock.invoiceTypeEntry = hack.calcInvoiceType(clientIvaTaxProfile, providerIvaTaxProfile)
1094        callTrigger('invoiceTypeValidation')        callTrigger('invoiceTypeValidation')
1095    </trigger>    </trigger>
1096    

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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