mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 10:30:55 -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
|
if ($account->update_products
|
||||||
&& ! $invoice->has_tasks
|
&& ! $invoice->has_tasks
|
||||||
&& ! $invoice->has_expenses
|
&& ! $invoice->has_expenses
|
||||||
&& $productKey != trans('texts.surcharge')
|
&& ! in_array($productKey, Utils::trans(['surcharge', 'discount', 'fee']))
|
||||||
) {
|
) {
|
||||||
$product = Product::findProductByKey($productKey);
|
$product = Product::findProductByKey($productKey);
|
||||||
if (! $product) {
|
if (! $product) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user