예제 #1
0
파일: Hbci.cs 프로젝트: sidiandi/sammy
        Payment ToPayment(FinAcct account, SwiftStatementLine s)
        {
            Payment p = new Payment();

            p.Currency    = s.Currency;
            p.Value       = (double)s.DecValue;
            p.EntryDate   = s.EntryDate.ToDateTime();
            p.ValueDate   = s.ValueDate.ToDateTime();
            p.EntryText   = s.EntryText;
            p.Name        = new string[] { s.PayeePayerName1, s.PayeePayerName2 }.JoinLines();
            p.AcctNo      = s.PayeePayerAcctNo;
            p.BankCode    = s.PayeePayerBankCode;
            p.Purpose     = s.PaymtPurpose.JoinLines();
            p.OwnAcctNo   = account.AcctNo;
            p.OwnBankCode = account.BankCode;

            return(p);
        }
예제 #2
0
파일: Hbci.cs 프로젝트: al-main/sammy
        Payment ToPayment(FinAcct account, SwiftStatementLine s)
        {
            Payment p = new Payment();

            p.Currency = s.Currency;
            p.Value = (double) s.DecValue;
            p.EntryDate = s.EntryDate.ToDateTime();
            p.ValueDate = s.ValueDate.ToDateTime();
            p.EntryText = s.EntryText;
            p.Name = new string[] { s.PayeePayerName1, s.PayeePayerName2 }.JoinLines();
            p.AcctNo = s.PayeePayerAcctNo;
            p.BankCode = s.PayeePayerBankCode;
            p.Purpose = s.PaymtPurpose.JoinLines();
            p.OwnAcctNo = account.AcctNo;
            p.OwnBankCode = account.BankCode;

            return p;
        }