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"/> |
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> |
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 |
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 |
|
|