Peer review [ 1867464 ] Incorrect Partner Location when create manual shipment
Small refactoring
This commit is contained in:
parent
c937785ed0
commit
6005e2cfb1
|
@ -185,12 +185,11 @@ public class CalloutInOut extends CalloutEngine
|
|||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, C_BPartner_ID.intValue());
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
BigDecimal bd;
|
||||
if (rs.next())
|
||||
{
|
||||
//[ 1867464 ]
|
||||
boolean IsSOTrx = Env.getContext(ctx, WindowNo, "IsSOTrx").equals("Y");
|
||||
if(!IsSOTrx)
|
||||
boolean IsSOTrx = "Y".equals(Env.getContext(ctx, WindowNo, "IsSOTrx"));
|
||||
if (!IsSOTrx)
|
||||
{
|
||||
// Location
|
||||
Integer ii = new Integer(rs.getInt("C_BPartner_Location_ID"));
|
||||
|
@ -207,7 +206,6 @@ public class CalloutInOut extends CalloutEngine
|
|||
}
|
||||
|
||||
//Bugs item #1679818: checking for SOTrx only
|
||||
//boolean IsSOTrx = Env.getContext(ctx, WindowNo, "IsSOTrx").equals("Y");
|
||||
if (IsSOTrx)
|
||||
{
|
||||
// CreditAvailable
|
||||
|
@ -259,7 +257,6 @@ public class CalloutInOut extends CalloutEngine
|
|||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, M_Warehouse_ID.intValue());
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
BigDecimal bd;
|
||||
if (rs.next())
|
||||
{
|
||||
// Org
|
||||
|
|
Loading…
Reference in New Issue