Giter Site home page Giter Site logo

szamlazz-hu-sdk's Introduction

Hi there 👋

szamlazz-hu-sdk's People

Contributors

agabor avatar bmiki avatar felegy avatar forbidwolf avatar hnorbert90 avatar hodasza avatar safigi avatar tthgbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

szamlazz-hu-sdk's Issues

XLM válaszban spec karakterek

A HttpUploadXmlFile hívásban nincs kezelve, ha az API válaszban ékezetes karakterek vannak pl hibaüzenet miatt, emiatt valahol az xml parse benyeli a hiba nagy részét és csak ennyi jön vissza:
"[ERR] Sz&aacute"

A választ dekódolva már jó lesz (string xml = System.Web.HttpUtility.HtmlDecode(reader.ReadToEnd()); a 102. sorban)
"[ERR] Számla mentés sikertelen.\nA számla kelte csak a mai nap lehet: 2023.08.23..\r\n.........

Szia Gábor!

Van egy problémám, hogy az alábbi kódrészlettel állítom be a számla tételeit:


var request = new CreateInvoiceRequest();
request.AuthenticationData.ApiKey = "*****";

        request.Header.IssueDate = DateTime.Now;
        request.Header.CompletionDate = DateTime.Now;
        request.Header.DueDate = DateTime.Now;
        request.Header.PaymentType = "Készpénz";
        request.Header.InvoiceNumberPrefix = "FRST1";

        request.Seller.BankName = "Our Bank";
        request.Seller.BankAccount = "11111111-22222222-33333333";

        request.Customer.Name = "Good Friend Inc.";
        request.Customer.CustomerAddress.PostalCode = "1132";
        request.Customer.CustomerAddress.City = "Budapest";
        request.Customer.CustomerAddress.StreetAddress = "Tárnoki út 23.";
        request.Customer.TaxNumber = "12345678-1-42";

        request.Settings.Electric = false;


        request.Items = new List<InvoiceItem> {
         new InvoiceItem
         {
            Name = "Citrom",
            Quantity = 11046M,
            UnitOfQuantity = "Dkg",
            UnitPrice = 20.96505522M, 
            VatRate = "27",
            NetPrice = 231580M, 
            VatAmount = 62526M, 
            GrossAmount = 294106M
         }
          };

        var api = new SzamlazzHuApi();
        var response = await api.CreateInvoice(request);

A számláz.hu -ról azzal a hibával jön vissza, hogy a nettó érték nem egyenlő a nettó egységár és a mennyiség szorzatával.
Van ötleted?

Köszi.
Zoli

Could not find file

Szia Gábor!

Nagyon köszönöm, hogy feltetted ezt a plugint. Sokat segített nekem. Egy nopCommerce webshopban használom.

Eddig kipróbáltam a számla létrehozásához használt interfészt.

Az alábbi sorban kapok egy exceptiont:

response = await api.CreateInvoice(request);

Az exception message az alábbi:
{"Could not find file 'createInvoiceRequest.sbn"}

A callstack:
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at SzamlazzHu.XMLRenderer.RenderRequest(CreateInvoiceRequest request)
at SzamlazzHu.SzamlazzHuApi.d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Nop.Plugin.Payments.SzamlazzHu.SzamlazzHuPaymentProcessor.d__11.MoveNext() in SzamlazzHuPaymentProcessor.cs:line 121

Üdv
Miki

Example hibás

Apróság, de a minta hibás.
StreetAddress van már nem Address ahogy nézem.
Illetve nem pdf hanem InvoicePdf

EU adószám

Szia Gábor!

A levelezés alapján ez egy reminder, hogy ha időd engedi eu adószám hasznos lenne az sdk-ba.
A visual studio szerint 1.3.3 a legrégebbi nuget, de nuget.org-on van 1.3.3 is. Ez nem teljesen tiszta nekem h miért van, de mindegy is :)

Köszi

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.