Comments (3)
Looking here:
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.
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.
@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)
- InvoiceNinja V5, Current Update with Livewire 3.0, Client Portal Issues
- Customize statement_descriptor_suffix in Stripe Payment intent
- Documents handling - Repository functionality HOT 1
- Issue in custom invoice design - $client.balance = $total
- Invoice notice HOT 3
- Dynamic Documents
- task items are not displayed correctly in customer portal
- Plain Text E-Mails HOT 1
- Email layout is inconsistent HOT 3
- Part Payments for Bills/Purchase Orders
- Wrong numbering of payment for id >100
- str_replace inside app/Utils/Traits/Pdf/PdfMaker.php break PDFs
- Manage invoice deposit
- Tags/tagging for clients and vendors
- Delivery Notes Module HOT 4
- Estonian language is broken / Half-done
- Allowing other file type uploads for client documents HOT 3
- Attempt to read property "cu" on null after restored user tries logging back in HOT 5
- Toggle Quotes to Auto Convert
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invoiceninja.