From 8d6380c91ba4bc0de4ba22710bc2c4539431b650 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 15 Dec 2011 17:56:33 +0100
Subject: [PATCH] All Payment Transactions are considered as payzen.

---
 .../scripts/PayzenEvent_registerPayzen.xml                      | 2 --
 master/bt5/vifib_payzen/bt/revision                             | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_registerPayzen.xml b/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_registerPayzen.xml
index 6f96d11b1..886b2dce3 100644
--- a/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_registerPayzen.xml
+++ b/master/bt5/vifib_payzen/WorkflowTemplateItem/portal_workflow/payzen_interface_workflow/scripts/PayzenEvent_registerPayzen.xml
@@ -60,14 +60,12 @@ payzen_event = state_change[\'object\']\n
 transaction = payzen_event.getDestinationValue()\n
 portal = transaction.getPortalObject()\n
 integration_site = portal.restrictedTraverse(portal.portal_preferences.getPreferredPayzenIntegrationSite())\n
-sale_trade_condition = integration_site.getSourceTrade()\n
 state_list = portal.getPortalCurrentInventoryStateList() + portal.getPortalTransitInventoryStateList()\n
 service = portal.portal_secure_payments.find()\n
 previous_transaction = portal.portal_catalog.getResultValue(\n
   destination_section_uid = transaction.getDestinationSectionUid(),\n
   portal_type=transaction.getPortalType(),\n
   simulation_state=state_list,\n
-  specialise_relative_url=sale_trade_condition,\n
   sort_on=((\'delivery.start_date\', \'DESC\'),),\n
   limit=1,\n
 )\n
diff --git a/master/bt5/vifib_payzen/bt/revision b/master/bt5/vifib_payzen/bt/revision
index 7d3738628..abc4eff6a 100644
--- a/master/bt5/vifib_payzen/bt/revision
+++ b/master/bt5/vifib_payzen/bt/revision
@@ -1 +1 @@
-45
\ No newline at end of file
+46
\ No newline at end of file
-- 
2.30.9