mirror of
https://github.com/furkankadioglu/efatura.git
synced 2026-04-26 14:45:56 +03:00
[GH-ISSUE #19] SMS Onayına Gönderilen Silinmiş Faturalar #10
Labels
No labels
araştırılıyor
bug
enhancement
good first issue
istek
pull-request
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/efatura#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @brkygncn on GitHub (Jan 25, 2021).
Original GitHub issue: https://github.com/furkankadioglu/efatura/issues/19
Originally assigned to: @furkankadioglu on GitHub.
Faturaları onay için topladığımız getInvoicesFromAPI fonksiyonu maalesef silinmiş faturaları da getirdiği için onaya giden faturalar arasında silinmiş faturalar da gönderilip onaylanıyor. Burada tabii ki silinmiş faturayı onaylayan GİB'i sorgulamak lazım ancak ben çözümü aşağıdaki gibi bir fonksiyon daha ekleyerek, dönen faturalardan sadece "Onaylanmadı" olanları geri gönderiyorum. API erişimim olmadığı için daha nitelikli bir çözüm bulamadım. Belki daha istek aşamasında sadece onaylanmayanları da getirebiliriz.
Önerilen taslak
public function getNotDeletedInvoicesFromAPI($startDate, $endDate)
{
$parameters = [
"cmd" => "EARSIV_PORTAL_TASLAKLARI_GETIR",
"callid" => Uuid::uuid1()->toString(),
"pageName" => "RG_BASITTASLAKLAR",
"token" => $this->token,
"jp" => '{"baslangic":"' . $startDate . '","bitis":"' . $endDate . '","hangiTip":"5000/30000", "table":[]}'
];