Konuyu Oyla:
  • Derecelendirme: 5/5 - 1 oy
  • 1
  • 2
  • 3
  • 4
  • 5
ENTEGRATOR ile E-FATURA (elektronik dönüşüm) UYGULAMASI
#31
(09-04-2021, Saat: 12:49)MuhammedYasir Adlı Kullanıcıdan Alıntı: Arkadaşlar gelen faturaların arşivle/çıkar, okundu/okunmadı, kabul/red ve faturayı aktarma gibi çalışma yapanımız oldu mu?
Bu konuda var ise örnek kodlarınızı rica ediyorum.


OskeQ8.jpg

Bu kısmı yaptım, ilerleyen günlerde kodlarını da paylaşacağım.

qMUsQ1.jpg
Cevapla
#32
Merhaba arkadaşlar.
Hızlı Bilişimin efatura web servisini kullanırken bir noktaya takıldım:

CevapKontrol := Servis.SendApplicationResponse( ... ) 
Bu kodun içeriğini nasıl dolduracağım?
Servisin ilgili bölümlerinin kodlarıda şunlar:

// Fatura Red-Kabul
   function  SendApplicationResponse(
               const sendApplicationResponse: SendApplicationResponse2):
               ResponseMessage2; stdcall;

SendApplicationResponse2 = class(TRemotable)
 private
   FAppType: Integer;
   FAppType_Specified: boolean;
   FDocuments: ArrayOfApplicationReponseDocumentInfo;
   FDocuments_Specified: boolean;
   FResponseCode: string;
   FResponseCode_Specified: boolean;
   FResponseDescription: string;
   FResponseDescription_Specified: boolean;
   procedure SetAppType(Index: Integer; const AInteger: Integer);
   function  AppType_Specified(Index: Integer): boolean;
   procedure SetDocuments(Index: Integer; const AArrayOfApplicationReponseDocumentInfo: ArrayOfApplicationReponseDocumentInfo);
   function  Documents_Specified(Index: Integer): boolean;
   procedure SetResponseCode(Index: Integer; const Astring: string);
   function  ResponseCode_Specified(Index: Integer): boolean;
   procedure SetResponseDescription(Index: Integer; const Astring: string);
   function  ResponseDescription_Specified(Index: Integer): boolean;

Servis Dökümanı

Yardımcı olabilirseniz memnun olurum.
Cevapla
#33
Bu başlığın altına artık kimse cevap yazmıyor Sad
Cevapla
#34
Cevap yaziliyor ancak sorunuz pascaldan daha cok kullandiniz ozel entegratore ozgu bir soru. Kodlar elinizdeyse zaten hangi tipte veri kabul ettigini gorebilirsiniz koddan. Tavsiyem ozel entegratore ozgu yapilari kullanmayin. Ticari cevap verecekseniz xml'i sizin olusuturup gonderebileceginiz metodu tercih edin. Bu ileride ozel entegratoru degistirmenizi kolaylasitirir.
Cevapla
#35
(16-04-2021, Saat: 10:04)MuhammedYasir Adlı Kullanıcıdan Alıntı: Merhaba arkadaşlar.
Hızlı Bilişimin efatura web servisini kullanırken bir noktaya takıldım:

CevapKontrol := Servis.SendApplicationResponse( ... ) 
Bu kodun içeriğini nasıl dolduracağım?
Servisin ilgili bölümlerinin kodlarıda şunlar:

// Fatura Red-Kabul
   function  SendApplicationResponse(
               const sendApplicationResponse: SendApplicationResponse2):
               ResponseMessage2; stdcall;

SendApplicationResponse2 = class(TRemotable)
 private
   FAppType: Integer;
   FAppType_Specified: boolean;
   FDocuments: ArrayOfApplicationReponseDocumentInfo;
   FDocuments_Specified: boolean;
   FResponseCode: string;
   FResponseCode_Specified: boolean;
   FResponseDescription: string;
   FResponseDescription_Specified: boolean;
   procedure SetAppType(Index: Integer; const AInteger: Integer);
   function  AppType_Specified(Index: Integer): boolean;
   procedure SetDocuments(Index: Integer; const AArrayOfApplicationReponseDocumentInfo: ArrayOfApplicationReponseDocumentInfo);
   function  Documents_Specified(Index: Integer): boolean;
   procedure SetResponseCode(Index: Integer; const Astring: string);
   function  ResponseCode_Specified(Index: Integer): boolean;
   procedure SetResponseDescription(Index: Integer; const Astring: string);
   function  ResponseDescription_Specified(Index: Integer): boolean;

Servis Dökümanı

Yardımcı olabilirseniz memnun olurum.

Sorunu şu kod ile çözdüm, benden sonrakilerin ihtiyacı olur düşüncesi ile paylaşıyorum:
Var
 Sorgu : SendApplicationResponse2;
 CevapKodu: string;
 ResponseDescription: string;
 Dokuman : ArrayOfApplicationReponseDocumentInfo;
 Tarih : TXSDateTime;
begin
 if  CekilenVeriTablosu.RecordCount>0 then
 Begin
   if CekilenVeriTablosuStatus.AsInteger = 4 then
     CevapKodu :='KABUL' else CevapKodu :='RED';

   Tarih := TXSDateTime.Create;
   Tarih.AsDateTime := CekilenVeriTablosuIssueDate.AsDateTime;

   Setlength(Dokuman, 1);
   Dokuman[0] := ApplicationReponseDocumentInfo2.Create;
   Dokuman[0].DocumentDate := Tarih;
   Dokuman[0].DocumentId := CekilenVeriTablosuDocumentId.AsString;
   Dokuman[0].DocumentUUID := CekilenVeriTablosuUUID.AsString;

   Sorgu := SendApplicationResponse2.Create;
   Sorgu.AppType := CekilenVeriTablosuAppType.AsInteger;
   sorgu.ResponseCode := CevapKodu;
   Sorgu.ResponseDescription := '... Sebebi';
   Sorgu.Documents := Dokuman;

   CevapKontrol := Servis.SendApplicationResponse(Sorgu);
   ShowMessage(CevapKontrol.Message_);
end;
Cevapla
#36
(13-04-2021, Saat: 06:52)MuhammedYasir Adlı Kullanıcıdan Alıntı:
(09-04-2021, Saat: 12:49)MuhammedYasir Adlı Kullanıcıdan Alıntı: Arkadaşlar gelen faturaların arşivle/çıkar, okundu/okunmadı, kabul/red ve faturayı aktarma gibi çalışma yapanımız oldu mu?
Bu konuda var ise örnek kodlarınızı rica ediyorum.


OskeQ8.jpg

Bu kısmı yaptım, ilerleyen günlerde kodlarını da paylaşacağım.

qMUsQ1.jpg

Bu kısmın çözebildiğim kodları:

Var
 Servis: IHizliService;
 RIO: THTTPRIO;
 CevapKontrol: ResponseMessage2;
 isaretturu: String;
 isaretturudeger: integer;
 islemturu : integer;
 FaturaNo: string;

begin
 MemoLog.Lines.Clear;

 DMislemler.HTTPRIO1.HTTPWebNode.GetHTTPReqResp.UserName :=
   DMHizli.FQHizliKULLANICI.AsString;
 DMislemler.HTTPRIO1.HTTPWebNode.GetHTTPReqResp.Password :=
   DMHizli.FQHizliSIFRE.AsString;
 Servis := GetIHizliService(false, DMHizli.FQHizliSERVIS.AsString,
   DMislemler.HTTPRIO1);

 FaturaNo := VTGonderilenlerEnvelopeUUID.AsString;
 islemturu := VTGonderilenlerAppType.AsInteger;

 if Cbxislemler.Text = 'OKUNDU' then
 Begin
   isaretturu := 'OKUNDU';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'OKUNMADI' then
 Begin
   isaretturu := 'OKUNDU';
   isaretturudeger := 0;
 End
 else if Cbxislemler.Text = 'ARSIVLENDI' then
 Begin
   isaretturu := 'ARSIVLENDI';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'ARSIVLENMEDI' then
 Begin
   isaretturu := 'ARSIVLENDI';
   isaretturudeger := 0;
 End
 else if Cbxislemler.Text = 'AKTARILDI' then
 Begin
   isaretturu := 'AKTARILDI';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'AKTARILMADI' then
 Begin
   isaretturu := 'AKTARILDI';
   isaretturudeger := 0;
 End
 else if Cbxislemler.Text = 'YAZDIRILDI' then
 Begin
   isaretturu := 'YAZDIRILDI';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'YAZDIRILMADI' then
 Begin
   isaretturu := 'YAZDIRILDI';
   isaretturudeger := 0;
 End
 else if Cbxislemler.Text = 'TASLAK' then
 Begin
   isaretturu := 'TASLAKIPTAL';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'TASLAKIPTAL' then
 Begin
   isaretturu := 'TASLAKIPTAL';
   isaretturudeger := 0;
 End
 else if Cbxislemler.Text = 'MUHASEBELESTIRILDI' then
 Begin
   isaretturu := 'MUHASEBELESTIRILDI';
   isaretturudeger := 1;
 End
 else if Cbxislemler.Text = 'MUHASEBELESTIRILMEDI' then
 Begin
   isaretturu := 'MUHASEBELESTIRILDI';
   isaretturudeger := 0;
 End;

 CevapKontrol := Servis.SetDocumentFlag(islemturu, FaturaNo, isaretturu,
   isaretturudeger);
end;
Cevapla
#37
(05-04-2021, Saat: 23:06)MuhammedYasir Adlı Kullanıcıdan Alıntı: Mehmet Hocam @guverdik,
Gelen faturaların stok adı, birim fiyat vb. gibi satır detaylarını gösteren bir örneğimiz var mı?
Bilgilendirirseniz memnun olurum.

Gelen e-Fatura detaylarını XML dosyasını çekerek TXMLDocument  ile mi almalıyım, yoksa başka bir yöntem mi kullanmalıyım?
Sizler nasıl yapıyorsunuz?
Cevapla
#38
(05-05-2021, Saat: 02:42)MuhammedYasir Adlı Kullanıcıdan Alıntı:
(05-04-2021, Saat: 23:06)MuhammedYasir Adlı Kullanıcıdan Alıntı: Mehmet Hocam @guverdik,
Gelen faturaların stok adı, birim fiyat vb. gibi satır detaylarını gösteren bir örneğimiz var mı?
Bilgilendirirseniz memnun olurum.

Gelen e-Fatura detaylarını XML dosyasını çekerek TXMLDocument  ile mi almalıyım, yoksa başka bir yöntem mi kullanmalıyım?
Sizler nasıl yapıyorsunuz?

Hayır @MuhammedYasir bey o kadar ileri giden bir uygulama yazmadım. Ama siz gerçekten epey yol kat ettiniz ve paylaştınız ellerinize sağlık.
Teknik Öğretmen
Bilgisayar Formatörü
WWW
Cevapla
#39
(05-04-2021, Saat: 23:06)MuhammedYasir Adlı Kullanıcıdan Alıntı: Mehmet Hocam @guverdik,
Gelen faturaların stok adı, birim fiyat vb. gibi satır detaylarını gösteren bir örneğimiz var mı?
Bilgilendirirseniz memnun olurum.

Merhabalar,

Maalesef bu hizmet yok. Servis bu hizmeti sunmuyor.

Bu arada uzun bir ara vermiştim işleme.

Delphi 10.4.2 ve üstü bir sürüm kullanan bir arkadaşımız rica etsem servisi WSDL import edip oluşturduğu .pas dosyasını
paylaşabilir mi lütfen. (En güncel şekli ile) Bende ki sürüm eski kalmış. Şuan bende ki sistem hata veriyor.

Servis adresi : https://econnecttest.hizliteknoloji.com....e.svc?wsdl

Teşekkürler.



(05-05-2021, Saat: 02:42)MuhammedYasir Adlı Kullanıcıdan Alıntı:
(05-04-2021, Saat: 23:06)MuhammedYasir Adlı Kullanıcıdan Alıntı: Mehmet Hocam @guverdik,
Gelen faturaların stok adı, birim fiyat vb. gibi satır detaylarını gösteren bir örneğimiz var mı?
Bilgilendirirseniz memnun olurum.

Gelen e-Fatura detaylarını XML dosyasını çekerek TXMLDocument  ile mi almalıyım, yoksa başka bir yöntem mi kullanmalıyım?
Sizler nasıl yapıyorsunuz?


Şuan için görünen tek yöntem bu.
Servis veren firma bu özelliği aktif edene kadar.
Amaç, bilginin de/aklın da zekat'ını vermek.
Cevapla
#40
Merhaba,

Dosya Ekte yer almaktadır.

İyi Çalışmalar.


.zip   HizliService.zip (Dosya Boyutu: 38,3 KB / İndirme Sayısı: 37)
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Rest servis api uygulaması yapma tuna 13 2.883 17-10-2025, Saat: 18:40
Son Yorum: tuna
  E fatura okuma xlm metemet 5 1.932 06-04-2025, Saat: 19:30
Son Yorum: metemet
  Delphi projesini Android App Uygulamasi Apk Metin 3 1.604 21-10-2024, Saat: 10:43
Son Yorum: m_ekici
  TCP client uygulaması arsl01 8 2.097 27-08-2024, Saat: 10:30
Son Yorum: arsl01
  [ÇÖZÜLDÜ] En Kolay E-Fatura entegratörü hangisi? rmzgenius 22 10.960 25-05-2024, Saat: 09:20
Son Yorum: hbulus



Konuyu Okuyanlar: 1 Ziyaretçi