mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 07:20:56 -04:00
Don't create lates fees as products
This commit is contained in:
parent
2982dc6f64
commit
f573e09349
@ -655,7 +655,7 @@ class InvoiceRepository extends BaseRepository
|
||||
if ($account->update_products
|
||||
&& ! $invoice->has_tasks
|
||||
&& ! $invoice->has_expenses
|
||||
&& $productKey != trans('texts.surcharge')
|
||||
&& ! in_array($productKey, Utils::trans(['surcharge', 'discount', 'fee']))
|
||||
) {
|
||||
$product = Product::findProductByKey($productKey);
|
||||
if (! $product) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user