Cari hesap kartı fişlerinde geri ödeme planı uygulama işlemini yapar.


ParametreTypeAçıklama
lineNrLongSatır indexsini belirtir.
rePayPCodeStringGeri ödeme planın kodunu belirtiriz.
Return TypeAçıklama
BooleanGeri ödeme işleminin başarıyla yapılıp yapılmadığı bilgisini döner.

C# Örneği
UnityObjects.Data  arp_voucher = Global.UnityApp.NewDataObject(UnityObjects.DataObjectType.doARAPVoucher);
 arp_voucher.New();
 arp_voucher.DataFields.FieldByName("NUMBER").Value = '~';
 arp_voucher.DataFields.FieldByName("DATE").Value ="24.05.2013";
 arp_voucher.DataFields.FieldByName("ARP_CODE").Value = "C1";
 arp_voucher.DataFields.FieldByName("CURRSEL_TOTALS").Value = 1;
 arp_voucher.DataFields.FieldByName("AUXIL_CODE").Value = "OZELKOD";
 arp_voucher.DataFields.FieldByName("TIME").Value = "186006283";
 arp_voucher.DataFields.FieldByName("TYPE").Value = 70; 
 arp_voucher.DataFields.FieldByName("DIVISION").Value = 1;
 arp_voucher.DataFields.FieldByName("DEPARTMENT").Value = 1;
 arp_voucher.DataFields.FieldByName("BANKACC_CODE").Value = "İŞB01 KKHESAP";
 UnityObjects.Lines transaction = arp_voucher.DataFields.FieldByName("TRANSACTIONS").Lines;
 transaction.AppendLine();
 transaction[(transaction.Count - 1)].FieldByName("ARP_CODE").Value = "C1";
 transaction[(transaction.Count - 1)].FieldByName("TRANNO").Value = arp_voucher.DataFields.FieldByName("NUMBER").Value;
 transaction[(transaction.Count - 1)].FieldByName("CREDIT_CARD_NO").Value = "1234567890123456";
 transaction[(transaction.Count - 1)].FieldByName("AUXIL_CODE").Value = "OZELKOD";
 transaction[(transaction.Count - 1)].FieldByName("TC_XRATE").Value = 1;
 transaction[(transaction.Count - 1)].FieldByName("TC_AMOUNT").Value = 1000;

if (!arp_voucher.ApplyRePayPln(0, "GERIODEME.01"))
    {
     MessageBox.Show(Global.UnityApp.GetLastError().ToString() + ":" + Global.UnityApp.GetLastErrorString().ToString());
    }
if (arp_voucher.Post() == true)
   {
     MessageBox.Show("POST OK !");
   }
else
   {
      if (arp_voucher.ErrorCode != 0)
        {
          MessageBox.Show("DBError(" + arp_voucher.ErrorCode.ToString() + ")-" + arp_voucher.ErrorDesc + arp_voucher.DBErrorDesc);
        }
      else if (arp_voucher.ValidateErrors.Count > 0)
             {
               string result = "XML ErrorList:";
               for (int i = 0; i < arp_voucher.ValidateErrors.Count; i++)
                  {
                    result += "(" + arp_voucher.ValidateErrors[i].ID.ToString() + ") - " + arp_voucher.ValidateErrors[i].Error;
                  }
                    MessageBox.Show(result);
              }
    }

Telif HakkıKullanım KoşullarıGizlilik
Copyright © 2018 Logo Yazılım