匯款沖帳功能調整

This commit is contained in:
2026-05-15 17:04:49 +08:00
parent 07e29c32aa
commit a1751e4b99
13 changed files with 4124 additions and 781 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// 已啟用模型 'D:\project\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。
// 已啟用模型 'D:\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。
// 若要啟用舊版程式碼產生,請將 [程式碼產生策略] 設計工具屬性的值
//變更為 [舊版 ObjectContext]。當模型在設計工具中開啟時,這個屬性便可
//以在 [屬性] 視窗中使用。
@@ -1280,4 +1280,23 @@ public class transfer_registerController : ApiController
}
}
}
}
}
//select ord.order_no, ord.activity_num, ord.f_num, ord.u_name, ord.totals as cost, isnull(reg.totals, 0) totals
//from (
//select o.order_no, o.activity_num, o.f_num, o.u_name, sum(o.totals) as totals from (
//select a.order_no, a.f_num, d.u_name, a.activity_num, b.num, b.f_num_tablet,
//b.price, b.qty, totals = b.price * b.qty, c.kind, c.subject
//from pro_order a
//left join pro_order_detail b on a.order_no=b.order_no
//left join actItem c on b.actItem_num=c.num
//left join followers d on a.f_num=d.num )o
//group by o.order_no, o.activity_num, o.f_num, o.u_name) ord
//left join (
//select a.activity_num, a.f_num, sum(a.amount) totals from transfer_register a
//where status='2' and check_status='99'
//group by a.activity_num, a.f_num
//) reg on ord.activity_num=reg.activity_num and ord.f_num=reg.f_num