Giter Site home page Giter Site logo

fastbill-php-sdk's People

Contributors

christophluehr avatar hsegnitz avatar jdaehne avatar krisdante avatar mbarkhau avatar roritharr avatar teiling88 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastbill-php-sdk's Issues

InvoiceSearchStruct()->setStartDueDate() expects \DateTime but fails.

Sample Code:

$invoiceSearchStruct = new InvoiceSearchStruct(); $invoiceSearchStruct->setStartDueDate(new \DateTime('2018-12-01'));

Results in Error:

In XmlService.php line 85:
Catchable Fatal Error: Object of class DateTime could not be converted to string

Using Carbon it works:

$invoiceSearchStruct = new InvoiceSearchStruct(); $invoiceSearchStruct->setStartDueDate(new Carbon('2018-12-01'));

Creating ItemEntity with zero procent VAT

It is not possible to create an ItemEntity with a vatPercent of 0.

Now the result gives this error:
Uncaught FastBillSdk\Common\MissingPropertyException: The property vatPercent is not valid!

According to https://apidocs.fastbill.com/fastbill/en/invoice.html#invoice.create the VAT_PERCENT is required.
But when I comment out the required property checks in the SDK, the API accepts the value of 0.

I think there are cases when 0 is a valid option (no tax is applied for transactions outside of EU for example)

What is your opinion?

Best regards,
Julien

The provided xml key SERVICE_PERIOD_START is not mapped at the moment

Hello all,

I'm using the last release 0.0.5. and I get an error if i call this function $invoiceService->getInvoice(...)

The provided xml key SERVICE_PERIOD_START is not mapped at the moment in FastBillSdk\Invoice\InvoiceEntity
(ErrorException(code: 0): the provided xml key SERVICE_PERIOD_START is not mapped at the moment in FastBillSdk\Invoice\InvoiceEntity at ./fastbill-php-sdk/src/Invoice/InvoiceEntity.php:240)

Could you please fix it?

Thanks!

Entity encoding / XML

Case:

  1. search for an entity (invoice, estimate ...)
  2. save the entity again

This fails, if any html specialchars are present (e.g. & in the title), because they are decoded on retrieval into the DAO and NOT encoded during xml request generation.

yes, i will try to do a pull request .... :)

Add RecurringCreate

The RecurringInvoiceEntity.php already exists, but the repo is missing the necessary files to create a recurring invoice, like for invoices or estimates.

Creating ItemEntity with unitPrice of 0 (zero)

I try to setup an invoice with some free products. It is not possible to add an item with the unitPrice set to 0.

Would it be possible to change this like it is done in this issue: #29

That would be so great.

Thanks a lot.

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.