|
@@ -1879,6 +1879,14 @@
|
|
|
ifnull( w.f_amount, 0 ) - ifnull( w.f_invamount, 0 ) AS fAmtdr,
|
|
|
ifnull( w.f_amount, 0 ) - ifnull( w.f_invamount, 0 ) AS fAmt,
|
|
|
</if>
|
|
|
+ <if test="map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != '' and map.tWareHouseFees.fBilltype == 'SF'">
|
|
|
+ ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmtdr,
|
|
|
+ ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmt,
|
|
|
+ </if>
|
|
|
+ <if test="map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != '' and map.tWareHouseFees.fBilltype == 'FF'">
|
|
|
+ ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmtdr,
|
|
|
+ ifnull( w.f_amount, 0 ) - ifnull( w.f_stlamount, 0 ) AS fAmt,
|
|
|
+ </if>
|
|
|
dict.dict_label AS feeUnitName,
|
|
|
w.f_qty AS fQty,
|
|
|
w.f_unitprice AS fUnitprice,
|
|
@@ -2059,6 +2067,14 @@
|
|
|
and ifnull(w.f_amount, 0) - ifnull(w.f_invamount, 0) > 0
|
|
|
and t.f_billtype = 'SQ'
|
|
|
</if>
|
|
|
+ <if test="map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != '' and map.tWareHouseFees.fBilltype == 'SF'">
|
|
|
+ and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
|
|
|
+ and t.f_billtype = 'XS'
|
|
|
+ </if>
|
|
|
+ <if test="map.tWareHouseFees.fBilltype != null and map.tWareHouseFees.fBilltype != '' and map.tWareHouseFees.fBilltype == 'FF'">
|
|
|
+ and ifnull(w.f_amount, 0) - ifnull(w.f_stlamount, 0) > 0
|
|
|
+ and t.f_billtype = 'SQ'
|
|
|
+ </if>
|
|
|
<if test="map.tWareHouseFees.fBillstatus != null and map.tWareHouseFees.fBillstatus != '' and map.tWareHouseFees.fBillstatus == 6 ">
|
|
|
and t.f_review_date IS NOT NULL
|
|
|
</if>
|