Bug Fix [ 1716866 ] Tax Rates By Zip Code
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1716866&group_id=176962 https://sourceforge.net/tracker/index.php?func=detail&aid=1276304&group_id=29057&atid=410215
This commit is contained in:
parent
d6cd765224
commit
4fab5dc0a9
|
@ -239,6 +239,8 @@ public class MTax extends X_C_Tax
|
||||||
ResultSet rs = pstmt.executeQuery ();
|
ResultSet rs = pstmt.executeQuery ();
|
||||||
while (rs.next ())
|
while (rs.next ())
|
||||||
{
|
{
|
||||||
|
MTaxPostal taxpostal = new MTaxPostal(getCtx(), rs, null);
|
||||||
|
list.add (taxpostal);
|
||||||
}
|
}
|
||||||
rs.close ();
|
rs.close ();
|
||||||
pstmt.close ();
|
pstmt.close ();
|
||||||
|
@ -257,8 +259,10 @@ public class MTax extends X_C_Tax
|
||||||
pstmt = null;
|
pstmt = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_postals = new MTaxPostal[list.size ()];
|
if (list.size() > 0) {
|
||||||
list.toArray (m_postals);
|
m_postals = new MTaxPostal[list.size ()];
|
||||||
|
list.toArray (m_postals);
|
||||||
|
}
|
||||||
return m_postals;
|
return m_postals;
|
||||||
} // getPostals
|
} // getPostals
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue