[ 1731362 ] When you modify product's name it throws SQLException
http://sourceforge.net/tracker/index.php?func=detail&aid=1731362&group_id=176962&atid=879332
This commit is contained in:
parent
412aadbb28
commit
0dcc13fee8
|
@ -600,9 +600,9 @@ public class MProduct extends X_M_Product
|
||||||
{
|
{
|
||||||
String sql = "UPDATE A_Asset a "
|
String sql = "UPDATE A_Asset a "
|
||||||
+ "SET (Name, Description)="
|
+ "SET (Name, Description)="
|
||||||
+ "(SELECT SUBSTR(bp.Name || ' - ' || p.Name,1,60), p.Description "
|
+ "(SELECT SUBSTR((SELECT bp.Name FROM C_BPartner bp WHERE bp.C_BPartner_ID=a.C_BPartner_ID) || ' - ' || p.Name,1,60), p.Description "
|
||||||
+ "FROM M_Product p, C_BPartner bp "
|
+ "FROM M_Product p "
|
||||||
+ "WHERE p.M_Product_ID=a.M_Product_ID AND bp.C_BPartner_ID=a.C_BPartner_ID) "
|
+ "WHERE p.M_Product_ID=a.M_Product_ID) "
|
||||||
+ "WHERE IsActive='Y'"
|
+ "WHERE IsActive='Y'"
|
||||||
// + " AND GuaranteeDate > SysDate"
|
// + " AND GuaranteeDate > SysDate"
|
||||||
+ " AND M_Product_ID=" + getM_Product_ID();
|
+ " AND M_Product_ID=" + getM_Product_ID();
|
||||||
|
|
Loading…
Reference in New Issue