FR [2965494] - Import Order: Import of Order Source

https://sourceforge.net/tracker/?func=detail&aid=2965494&group_id=176962&atid=883808
Set proper Error message when Order Source is not found.
Thank's to Carlos for the review!
This commit is contained in:
trifonnt 2010-03-08 23:49:32 +00:00
parent fd63d9af1e
commit 2e49d21ca4
1 changed files with 7 additions and 1 deletions

View File

@ -236,7 +236,13 @@ public class ImportOrder extends SvrProcess
+ "WHERE C_OrderSource_ID IS NULL AND OrderSourceValue IS NOT NULL AND I_IsImported<>'Y'").append (clientCheck);
no = DB.executeUpdate(sql.toString(), get_TrxName());
log.fine("Set Order Source=" + no);
// Set proper error message
sql = new StringBuffer ("UPDATE I_Order "
+ "SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=Not Found Order Source, ' "
+ "WHERE C_OrderSource_ID IS NULL AND C_OrderSourceValue IS NOT NULL AND I_IsImported<>'Y'").append (clientCheck);
no = DB.executeUpdate(sql.toString(), get_TrxName());
if (no != 0)
log.warning("No OrderSource=" + no);
// Payment Term
sql = new StringBuffer ("UPDATE I_Order o "