Index: /WAeUP_SRP/trunk/skins/waeup_utilities/ti_167_resolve.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_utilities/ti_167_resolve.py	(revision 2059)
+++ /WAeUP_SRP/trunk/skins/waeup_utilities/ti_167_resolve.py	(revision 2060)
@@ -40,9 +40,10 @@
     cost = batch.getObject().getContent().cost
     batch_cost[prefix_batch] = cost
-    # query = Eq('prefix_batch',prefix_batch)
-    # pins = aq_pins(query)
-    # for pin in pins:
-    #     context.portal_pins.modifyRecord(pin=pin.pin,cost=cost)
-# logger.info("finished to insert cost property into pins-catatlog")
+    query = Eq('prefix_batch',prefix_batch)
+    pins = aq_pins(query)
+    for pin in pins:
+        context.portal_pins.modifyRecord(pin=pin.pin,cost=cost)
+    #rwrite("%s, %s" % (prefix_batch,cost))
+    logger.info("Cost %s (for %s) in portal_pins replaced" % (cost,prefix_batch))
 query = Eq('portal_type',"Payment")
 payments = aq_portal(query)
@@ -56,10 +57,13 @@
         if batch_cost.has_key(prefix_batch):
             count += 1
-            payment_doc.edit(mapping = {'amount': 
+            payment_doc.edit(mapping = {'amount':
                                         batch_cost[prefix_batch]})
+            #rwrite("%s: %s:%s" % (count,prefix_batch,payment_doc.order_id))
+            logger.info("Cost in payment object %s (%s) replaced (#%s)" % (payment.id,payment_doc.order_id,count))
         else:
-            rwrite("cost %s:%s not found" % (prefix_batch,payment_doc.order_id))
+            #rwrite("cost %s:%s not found" % (prefix_batch,payment_doc.order_id))
+            logger.info("Prefix %s (%s) not found" % (prefix_batch,payment_doc.order_id))
             no_cost +=1
 logger.info("updated %d payment amounts, %d costs not found" % (count,no_cost))
 
-    
+
