GithubHelp home page GithubHelp logo

foribaapi's People

Contributors

mehmetcoban avatar orgenus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foribaapi's Issues

İstisna Örneği

Merhaba,
faturada alanında ek hizmetler ve istisna(kdv) 0 olan ürünlerin gönderimi için bir örnek e-arşiv ve e-fatura örneği yapabilir misiniz?
TaxExemptionReasonCode alanı ekliyoruz ama hata alıyoruz.

Trying to get in touch regarding a security issue

Hey there!

I'd like to report a security issue but cannot find contact instructions on your repository.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

empty() fonksiyonunun is_null() ile değiştirilmesi

Merhaba,

makeXml metodunda empty() yerine is_null() kullanılması daha doğru bir yaklaşım olacak sanırım.

Foriba Test portalında iskontosuz bir fatura oluşturulduğunda (InvoiceLine -> AllowanceCharge -> MultiplierFactorNumeric) 0 olarak tanımlanıyor.

Fakat bu pakette empty() fonksiyonu nedeniyle 0 olarak tanımlamıyor.

Emeğiniz için teşekkür ederim.

İlgili Dosya:

DocumentReference'de Attachment Kullanımı

Merhabalar,
DocumentReference alanında base64 ile encode edilmiş resim göndermem gerekmektedir.
AdditionalDocumentReference de
/**
* @var |Bulut|eFaturaUBL|Attachment
*/
public $Attachment;

bulunmakatdır, Attachment da ise
/**
* @var |Array ( attrs = [mimeCode="application/zip", encodingCode="Base64", characterSetCode="UTF-8", filename="91BD2213-767A-47E4-9C76-5C6F212A637F.zip"])
*/
public $EmbeddedDocumentBinaryObject;

bunlar bulunmaktadır. Aşağıdaki örnek çıktıyı alabilmek için nasıl bir tanımlama yapmam gerekiyor. Yardımcı olabilir misiniz?

cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode="image/png" encodingCode="Base64" filename="Barkod">base64resimkodlari</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>

e-Arşiv GetInvoiceDocumentRequest HTML & PDF indirme hatası

Oluşturmuş olduğunuz e-arşiv fatura görüntüsü indirme fonksyonunu uyarlanmış hali:

public function getSingleInvoice(string $uuid, string $vknTckn, ?string $invoiceNumber = null, ?string $customInvoiceId = null, string $docType = 'PDF'): GetInvoiceDocumentResponse
    {
        try {
            $getDocument = new GetInvoiceDocument();
            $getDocument->setUUID($uuid); // FATURA_UUID
            $getDocument->setVkn($vknTckn); // GONDERICI_VKN
            if (isset($invoiceNumber)) $getDocument->setInvoiceNumber($invoiceNumber); // FATURA_NUMARASI
            if (isset($customInvoiceId)) $getDocument->setCustInvId($customInvoiceId); //CUST_INV_ID
            $getDocument->setOutputType($docType); // CIKTI_TURU: xml, UBL
            return $this->getSessionId()->GetInvoiceDocumentRequest($getDocument);
            // Info: $this->getSessionId(): Bulut\FITApi\FITArchiveService Object
        } catch (Exception $exception) {
            echo json_encode($exception->getMessage());
            die();
        }
    }

FITArchiveService.php dosyasında bulunan request fonksyonunda( protected function request($request) ) http_errors true olarak değiştirdiğimde aşağıdaki gibi bir hata gelmektedir.
Client error: POST https://earsivws.fitbulut.com/ClientEArsivServicesPort.svc resulted in a 400 Bad Request response

Orjinal versyonunda ise 500 dönmektedir.

Soap UI uygulumasında işlem yaptığımda ise cevap binary data olarak gelmektedir.
Soap E-archive SOVOS

Invalid content was found starting with element 'cac:AllowanceCharge'. One of '{"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2":SubInvoiceLine}' is expected. LOCATOR: LINE NUMBER:17 COLUMN NUMBER:4541 / böyle bir hata alıyorum sorunun kaynağını bulamadım yardımcı olabilir misiniz ?

$invoice_line_allowance_charge = new \Bulut\eFaturaUBL\AllowanceCharge();

     $invoice_line_allowancecharge->ChargeIndicator ="false";
     $invoice_line_allowancecharge->AllowanceChargeReason="deneme metin";
      $invoice_line_allowancecharge->MultiplierFactorNumeric= "12";
     $invoice_line_allowancecharge->SequenceNumeric=$key+1;
     $invoice_line_allowancecharge->Amount= ["val" =>  $urun['birim_fiyat'], 'attrs' => ['currencyID="TRY"']];
 $invoice_line_allowancecharge->BaseAmount = ["val" => $urun['birim_fiyat'], 'attrs' => ['currencyID="TRY"'] 

$invoice_line->AllowanceCharge = $invoice_line_allowancecharge;

Giden Faturalar

Merhabalar,
Giden Efaturaların sorgulamada, ubl olarak indirme de veya pdf olarak görüntülemede sorun yaşıyorum. Acaba Foriba dan mı kaynaklı. yoksa sorun api üzerinde mi?

E-Arşiv Fatura Gönderme

Merhabalar,
EArsivFaturaGonder fonksiyonunu kullanıp deneme amaçlı bir fatura gönderdiğimde dönen sonuç aşağıdaki şekildedir. Oluşturulan xml şema/şematron kontrolünden geçmektedir. Bu konuda yardımcı olabilirseniz sevinirim.

Bulut\ArchiveService\SendInvoiceResponse Object
(
[Detail] => 25:Schema is invalid.
[Result] => Bulut\ArchiveService\Result Object
(
[Result] => FAIL
)

[preCheckErrorResults] => Bulut\ArchiveService\preCheckErrorResults Object
    (
        [preCheckError] => Array
            (
                [ErrorCode] => 25
                [ErrorDesc] => Schema is invalid. null
                [Filename] => Fatura.xml
            )

    )

[preCheckSuccessResults] => Bulut\ArchiveService\preCheckSuccessResults Object
    (
        [preCheckSuccess] => 
    )

)

autload.php dosyası

Dosyaları ZIP olarak indirerek kullanmaya başlayabilirsiniz.
require 'vendor/autoload.php';
Dosyasının sisteminize dahil ederek eFatura ve eArşiv servislerini kullanmaya başlayabilirsiniz.

yazmışsınız fakat zip olarak indirdiğimde vendor/autoload.php dosyası bulunmamaktadır.

kurulumu birtürlü yapamadım. lütfen yardımcı olurmusunuz?

Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in C:\xampp\htdocs\fatura\src\Bulut\FITApi\FITInvoiceService.php:63 Stack trace: #0 C:\xampp\htdocs\fatura\example\Code.php(434): Bulut\FITApi\FITInvoiceService->__construct(Array, true) #1 C:\xampp\htdocs\fatura\example\pages\faturagonder.php(13): SendUBlInv('E9F63683-7D49-4...', '<?xml version="...', 'INVOICE', 'omer', 'omer') #2 C:\xampp\htdocs\fatura\example\index.php(97): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\fatura\src\Bulut\FITApi\FITInvoiceService.php on line 63

ArchiveService\GetInvoiceDocument() Hatası

Merhabalar,
E-Arşiv Fatura Görüntüsü İndirme kodlarını çalıştırdığım zaman
PHP Fatal error: Call to a member function registerXPathNamespace() on boolean in src\Bulut\FITApi\FITArchiveService.php on line 159 şeklinde hata alıyorum. Çözümü nedir?

Versiyon Talebi

Merhaba, api için öncelikle teşekkür ederim.
Composer require ile kullanabilmek için versiyon yayınlamanız gerekiyor, bi release oluşturabilir misiniz?
diğer türlü apinizi consol'dan composer'a dahil edemiyorum.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.