|
@@ -33,7 +33,7 @@ FROM
|
|
|
FROM
|
|
|
st_stockbill t1
|
|
|
INNER JOIN st_stockbill_items t2 ON t1.st_stockbillid = t2.st_stockbillid
|
|
|
- LEFT JOIN u8 t3 ON t3.period = t1.period
|
|
|
+ inner JOIN u8 t3 ON t3.period = t1.period
|
|
|
AND t1.billdate <= t3.billdate
|
|
|
AND t3.u8id = $u8id$
|
|
|
INNER JOIN st_stock t4 ON t2.stockid = t4.stockid
|