From 247fe1c06333b5c4211daa22dc7b05024c60f271 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Mon, 22 Dec 2003 15:09:00 +0000
Subject: [PATCH] error_message improved (more information about what is wrong)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@146 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/Coramy/skins/coramy_trade/Order_heavyControl.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/Coramy/skins/coramy_trade/Order_heavyControl.py b/product/Coramy/skins/coramy_trade/Order_heavyControl.py
index 3f7fe043e7..d70386a4c1 100755
--- a/product/Coramy/skins/coramy_trade/Order_heavyControl.py
+++ b/product/Coramy/skins/coramy_trade/Order_heavyControl.py
@@ -37,9 +37,9 @@ for movement in movement_list :
      movement.getTargetQuantity() != 0 and movement.getPrice() == ''  or \
      movement.getTargetQuantity() != 0 and movement.getPrice() is None :
     if len(error_message) == 0 :
-      error_message += 'Produit ou variante sans prix'
+      error_message += 'Prix manquant: produit %s ou variante %s' % (movement.getResource(), movement.getVariationText())
     else :
-      error_message += ' - Produit ou variante sans prix'
+      error_message += ' - Prix manquant: produit %s ou variante %s' % (movement.getResource(), movement.getVariationText())
     break
 
 return error_message
-- 
2.30.9