public static PAYMENT_CREDIT_CARD _SA_ReadPayment_CreditCard() // method will read all fields (cannot pull up existing though, so just unsaved transactions) and store the data in a PAYMENT_CREDIT_CARD record { PAYMENT_CREDIT_CARD P = new PAYMENT_CREDIT_CARD(); P.Vendor.name = PaymentsJournal.repo.VendorName.TextValue; P.paidBy = PaymentsJournal.repo.PaidBy.SelectedItemText; if (PaymentsJournal.repo.PaidFromInfo.Exists()) { P.paidFrom.acctNumber = PaymentsJournal.repo.PaidFrom.SelectedItemText; } if (PaymentsJournal.repo.ChequeNoInfo.Exists()) { P.chequeNumber = PaymentsJournal.repo.ChequeNo.TextValue; } else { P.source = PaymentsJournal.repo.Source.TextValue; } P.TransDate = PaymentsJournal.repo.PaymentDate.TextValue; P.comment = PaymentsJournal.repo.Comment.TextValue; P.additionalFees = PaymentsJournal.repo.AdditionalFeesAndInterest.TextValue; P.amount = PaymentsJournal.repo.PaymentAmount.TextValue; return(P); }
public static void _SA_CreatePayment_CreditCard(PAYMENT_CREDIT_CARD PaymentRecord, bool bSave) { string source; // to be used in print statements if (Functions.GoodData(PaymentRecord.chequeNumber)) // paid by cheque { source = PaymentRecord.chequeNumber; } else { source = PaymentRecord.source; } Ranorex.Report.Info(String.Format("Creating credit card payment {0} ", source)); if (!PaymentsJournal.repo.SelfInfo.Exists()) { PaymentsJournal._SA_Invoke(); } PaymentsJournal.repo.Transaction.Select("Pay Credit Card Bill"); Common_HeaderSetup(PaymentRecord, false); // can't adjust credit card payments if (Functions.GoodData(PaymentRecord.additionalFees)) { PaymentsJournal.repo.AdditionalFeesAndInterest.TextValue = PaymentRecord.additionalFees; } if (Functions.GoodData(PaymentRecord.amount)) { PaymentsJournal.repo.PaymentAmount.TextValue = PaymentRecord.amount; // PaymentsJournal.repo.PaymentAmount.PressKeys("{Tab}"); } if (bSave) { PaymentsJournal.repo.Post.Click(); } }
public static void _SA_MatchDefaultsPayment_CreditCard(PAYMENT_CREDIT_CARD PaymentRecord) { //need to fill this in }
public static void _SA_CreatePayment_CreditCard(PAYMENT_CREDIT_CARD PaymentRecord) { _SA_CreatePayment_CreditCard(PaymentRecord, true); }