|
@@ -2898,7 +2898,7 @@ public class Order extends Controller {
|
|
|
@CACHEING
|
|
|
public String stockbillList() throws YosException {
|
|
|
Long sa_orderid = content.getLong("sa_orderid");
|
|
|
- QuerySQL stockbillQuery = SQLFactory.createQuerySQL(this, "sa_stockbill", "rb", "billdate", "status", "billno", "remarks", "st_stockbillid").setTableAlias("t1");
|
|
|
+ QuerySQL stockbillQuery = SQLFactory.createQuerySQL(this, "st_stockbill", "rb", "billdate", "status", "billno", "remarks", "st_stockbillid").setTableAlias("t1");
|
|
|
stockbillQuery.addJoinTable(JOINTYPE.left, "st_stockbill_items", "t2", "t2.st_stockbillid = t1.st_stockbillid");
|
|
|
stockbillQuery.setWhere("t2.sa_orderid", sa_orderid);
|
|
|
stockbillQuery.setDistinct(true);
|