public JsonResult GetPayments(int _C_Currency_ID, int _C_BPartner_ID, bool isInterBPartner, bool chk, int page, int size)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetPayments(_C_Currency_ID, _C_BPartner_ID, isInterBPartner, chk, page, size)), JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        /// <summary>
        /// To get all the unallocated payments
        /// </summary>
        /// <param name="AD_Org_ID">Organization ID</param>
        /// <param name="_C_Currency_ID">Currency</param>
        /// <param name="_C_BPartner_ID">Business Partner</param>
        /// <param name="isInterBPartner">Inter-Business Partner</param>
        /// <param name="chk">For MultiCurrency Check</param>
        /// <param name="page">Page Number</param>
        /// <param name="size">Page Size</param>
        /// <param name="c_docType_ID">DocType ID</param>
        /// <param name="docBaseType">DocBaseType</param>
        /// <param name="fromDate">From Date</param>
        /// <param name="toDate">to Date</param>
        /// <param name="srchText">Search Document No</param>
        /// <returns>No of unallocated payments</returns>
        public JsonResult GetPayments(int AD_Org_ID, int _C_Currency_ID, int _C_BPartner_ID, bool isInterBPartner, bool chk, int page, int size, int c_docType_ID, string docBaseType, DateTime?fromDate, DateTime?toDate, string srchText)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetPayments(AD_Org_ID, _C_Currency_ID, _C_BPartner_ID, isInterBPartner, chk, page, size, c_docType_ID, docBaseType, fromDate, toDate, srchText)), JsonRequestBehavior.AllowGet));
        }