Comments (6)
If you don't have any recurring invoices we do hide the section. We'd like to make improvements to this page in the future.
The invoice staying in draft state is a bug. It looks like we're only updating the state if the client pays the invoice, if the payment is entered manually we're not updating it.
I'll work on a fix along with a query to correct existing data. Thanks for reporting this.
from invoiceninja.
Regarding invoice status on entering a manual payment:
In file: app\ninja\repositories\PaymentRepository.php
In the public function save find:
$payment->transaction_reference = trim($input['transaction_reference']);
$payment->save();
Add this code after that line:
$invoice = $payment->invoice()->firstOrFail();
$invoice->invoice_status_id = ($amount < $invoice->balance) ? INVOICE_STATUS_PARTIAL : INVOICE_STATUS_PAID;
$invoice->save();
This should be refactored to its own responsibilty, but if you need it now you can use it 👍
from invoiceninja.
Thanks for the fix. I've added your code to the activity handler so it will be applied for all payments.
from invoiceninja.
I have a new commit that adds BS3 Accordian to invoices page. Also on the Quotes Controller I removed the recurring lnvoice list on top because thats not relevant.
https://github.com/whitebook/invoice-ninja/blob/db38d496bec182afe65743bd2806395f441c0955/app/views/list.blade.php
from invoiceninja.
Very cool, thanks for sharing this change!
from invoiceninja.
Perhaps a Tab is more appropriate.
from invoiceninja.
Related Issues (20)
- Down Payment (Advance payment) invoice HOT 1
- The variable $client->payment_balance is not showing the correct amount. HOT 6
- `composer install` fails
- Ability to quick rent & return items by QR Code scan
- Add support for Datafast
- REACT 5.8.41 HOT 3
- System Log Details
- Default Tax Category Option
- Tax Report amount does not match invoice issue - custom fields HOT 1
- Tasks indicate they are invoiced, but never invoiced. HOT 3
- Payment link v2 not sending login email HOT 3
- Invoice numbers are not padding properly when using single digit number pattern HOT 1
- Client portal registration correct name field to Company Name HOT 2
- Relations between Clients and Bill-to
- Ability to adjust status of a SENT invoice
- Add default values to custom fields HOT 4
- Taxes for expenses by default HOT 5
- [Stripe] Co badged cards compliance
- Lock accepted quotes/offers
- Custom-logo (and -text) for Client-portal-login-website HOT 2
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.