Skip to content

Commit

Permalink
🕊 #1
Browse files Browse the repository at this point in the history
🕊
  • Loading branch information
keyiflerolsun committed Aug 5, 2024
1 parent 4ab7b7f commit 0d6f551
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions eArsivPortal/Core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,18 @@ def gib_sms_onay(self, faturalar:list[dict] | dict, oid:str, sifre:str) -> BaseM

return self.__nesne_ver("GibSMSOnay", {"mesaj": veri.get("msg")})

def satınalma_faturalari_getir(self, baslangic_tarihi:str="01/05/2023", bitis_tarihi:str="28/05/2023", hourlySearch:str="NONE") -> list[BaseModel]:
istek = self.__kod_calistir(
komut = self.komutlar.ADIMA_KESILEN_BELGELERI_GETIR,
jp = {
"baslangic" : baslangic_tarihi or datetime.now(timezone("Turkey")).strftime("%d/%m/%Y"),
"bitis" : bitis_tarihi or datetime.now(timezone("Turkey")).strftime("%d/%m/%Y"),
"hourlySearchInterval" : hourlySearch,
"table" : []
}
)
veri = istek.get("data")

return [self.__nesne_ver("Fatura", fatura) for fatura in veri]

# TODO: https://github.com/mlevent/fatura 'dan faydalanarak geri kalan fonksiyonlar yazılacaktır..
4 changes: 4 additions & 0 deletions eArsivPortal/Models/Komutlar.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ class Komutlar(BaseModel):
SMSSIFRE_DOGRULA:Komut = Komut(
cmd = "0lhozfib5410mp",
sayfa = "RG_SMSONAY"
)
ADIMA_KESILEN_BELGELERI_GETIR:Komut = Komut(
cmd = "EARSIV_PORTAL_ADIMA_KESILEN_BELGELERI_GETIR",
sayfa = "RG_ALICI_TASLAKLAR"
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
# ? Genel Bilgiler
name = "eArsivPortal",
version = "1.0.8",
version = "1.0.9",
url = "https://github.com/keyiflerolsun/eArsivPortal",
description = "GÄ°B e-ArÅŸiv Portal e-Fatura OluÅŸturucu",
keywords = ["eArsivPortal", "KekikAkademi", "keyiflerolsun"],
Expand Down

0 comments on commit 0d6f551

Please sign in to comment.