Code Monkey home page Code Monkey logo

Comments (3)

turbo124 avatar turbo124 commented on June 24, 2024

@LarsK1

Looking here:

$this->xrechnung->setDocumentPositionQuantity($item->quantity, "HUR");

if (isset($item->task_id)) {
    $this->xrechnung->setDocumentPositionQuantity($item->quantity, "HUR");
} else {
    $this->xrechnung->setDocumentPositionQuantity($item->quantity, "H87");
}

Perhaps instead of checking if task_id is set, we can use type_id

'1' == product
'2' == service

I think this would work better than relying on task, also, i believe isset($task_id) will always return true.

@ddomhoff thanks for raising these points. We've been discussing how we can handle e-invoices better. I believe the best solution here is to provide a mapping of Invoice Ninja fields => EInvoice fields so that users can customize the exact fields required for their purpose. It is on my list of things to do.

from invoiceninja.

ddomhoff avatar ddomhoff commented on June 24, 2024

Thanks for your reply and sorry for not going more into the code before submitting.

We do not use tasks/time tracking, so I guess you are right and this part is just not working as intended. But would there be a frontend representation of type_id?

from invoiceninja.

LarsK1 avatar LarsK1 commented on June 24, 2024

@turbo124 @ddomhoff I checked in a fix for the amount. The payment means are way more diffuclt to solve properly... Maybe @turbo124 will implement it in a future feature branch

from invoiceninja.

Related Issues (20)

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.