Don't create lates fees as products
This commit is contained in:
parent
2982dc6f64
commit
f573e09349
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue