@@ -435,6 +435,11 @@
<select id="warehouseBillsFeesList1" resultType="java.util.Map">
SELECT
+ a.*,
+ ifnull( a.fAmount, 0 ) - ifnull( a.fStlamount, 0 ) AS nnfinished
+ FROM
+ (
+ SELECT
w.f_id AS fSrcid,
t.f_id AS fSrcpid,
t.f_corpid AS fCorpid,
@@ -522,6 +527,7 @@
w.f_dc,
w.f_corpid
</where>
+ ) a
</select>
<select id="selectTWarehousebillsItemsList"