[ BF 2819211 ] - Incompatible SQL query ProductPriceVendorBreak - MProductPricing

https://sourceforge.net/tracker/?func=detail&aid=2819211&group_id=176962&atid=879332
This commit is contained in:
usrdno 2009-07-09 20:07:19 +00:00
parent 3d2693a186
commit fb3a02b25c
1 changed files with 2 additions and 2 deletions

View File

@ -52,9 +52,9 @@ public class MProductPricing
m_Qty = Qty;
m_isSOTrx = isSOTrx;
int thereAreVendorBreakRecords = DB.getSQLValue(null,
"SELECT 1 FROM M_ProductPriceVendorBreak WHERE M_Product_ID=? AND C_BPartner_ID=?",
"SELECT count(M_Product_ID) FROM M_ProductPriceVendorBreak WHERE M_Product_ID=? AND C_BPartner_ID=?",
m_M_Product_ID, m_C_BPartner_ID);
m_useVendorBreak = thereAreVendorBreakRecords == 1;
m_useVendorBreak = thereAreVendorBreakRecords > 0;
} // MProductPricing
private int m_M_Product_ID;