回滚代码
This commit is contained in:
parent
7ad0ce5637
commit
c9016b5d56
|
@ -407,10 +407,9 @@ public class IAPISaleInvMaitainImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getTaxcode(String taxrateStr) throws BusinessException {
|
private String getTaxcode(String taxrateStr) throws BusinessException {
|
||||||
UFDouble taxrate = new UFDouble(taxrateStr==null?"0":taxrateStr).multiply(100).setScale(2, UFDouble.ROUND_HALF_UP);
|
|
||||||
IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class);
|
||||||
String sql = " select code FROM bd_taxrate tt inner join bd_taxcode tc on tt.pk_taxcode=tc.pk_taxcode where TO_NUMBER(taxrate)='"
|
String sql = " select code FROM bd_taxrate tt inner join bd_taxcode tc on tt.pk_taxcode=tc.pk_taxcode where taxrate='"
|
||||||
+ taxrate.toString() + "' AND ROWNUM = 1 ";
|
+ taxrateStr + "' AND ROWNUM = 1 ";
|
||||||
String taxcodeStr = (String) queryBS.executeQuery(sql, new ColumnProcessor());
|
String taxcodeStr = (String) queryBS.executeQuery(sql, new ColumnProcessor());
|
||||||
return taxcodeStr;
|
return taxcodeStr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue