[ 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:
parent
3d2693a186
commit
fb3a02b25c
|
@ -52,9 +52,9 @@ public class MProductPricing
|
||||||
m_Qty = Qty;
|
m_Qty = Qty;
|
||||||
m_isSOTrx = isSOTrx;
|
m_isSOTrx = isSOTrx;
|
||||||
int thereAreVendorBreakRecords = DB.getSQLValue(null,
|
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_M_Product_ID, m_C_BPartner_ID);
|
||||||
m_useVendorBreak = thereAreVendorBreakRecords == 1;
|
m_useVendorBreak = thereAreVendorBreakRecords > 0;
|
||||||
} // MProductPricing
|
} // MProductPricing
|
||||||
|
|
||||||
private int m_M_Product_ID;
|
private int m_M_Product_ID;
|
||||||
|
|
Loading…
Reference in New Issue