Exemple #1
0
        public void Check_OCRPaymentDetailsByInvoiceId()
        {
            DLModel3.InvoiceID     = 2;
            DLModel3.PaymentAmount = decimal.Parse("1");
            int Count = _IOCRImplBL.CheckOCRPaymentDetailsByInvoiceId(DLModel3);

            Assert.IsTrue(Count < 0, "Unable to find");
        }
 public ActionResult CheckOCRPaymentDetails(int InvoiceID, decimal?PaymentAmount)
 {
     try
     {
         OCRPaymentDetails objOCRPaymentDetails = new OCRPaymentDetails();
         objOCRPaymentDetails.InvoiceID     = InvoiceID;
         objOCRPaymentDetails.PaymentAmount = PaymentAmount;
         //0 --  Full payment recevied against Invoice
         //-1 -- Amount can't be greater then invoice amount
         return(Json(_ocr.CheckOCRPaymentDetailsByInvoiceId(Mapper.Map <LMGEDI.Core.Data.Model.OCRPaymentDetails>(objOCRPaymentDetails))));
     }
     catch (Exception ex)
     {
         _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
         return(Json(GlobalConst.ObjectTypes.Error));
     }
 }