mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
a6c044bf4f
commit
da1fde0976
@ -181,6 +181,16 @@ class InvoiceController extends Controller
|
||||
->with('message', ctrans('texts.no_payable_invoices_selected'));
|
||||
}
|
||||
|
||||
//ensure all stale fees are removed.
|
||||
$invoices->each(function ($invoice) {
|
||||
$invoice->service()
|
||||
->markSent()
|
||||
->removeUnpaidGatewayFees()
|
||||
->save();
|
||||
});
|
||||
|
||||
$invoices = $invoices->fresh();
|
||||
|
||||
//iterate and sum the payable amounts either partial or balance
|
||||
$total = 0;
|
||||
foreach ($invoices as $invoice) {
|
||||
|
@ -442,7 +442,6 @@ class InvoiceService
|
||||
$this->invoice->line_items = array_values($items);
|
||||
|
||||
$this->invoice = $this->invoice->calc()->getInvoice();
|
||||
$this->deleteEInvoice(); //@deprecated
|
||||
|
||||
/* 24-03-2022 */
|
||||
$new_balance = $this->invoice->balance;
|
||||
|
Loading…
x
Reference in New Issue
Block a user