Merge pull request #3309 from CihanSenturk/fix-global-discount-delete-issue
Fix global discount delete issue
This commit is contained in:
commit
70a5e5acdd
|
|
@ -23,9 +23,7 @@ class UpdateDocument extends Job implements ShouldUpdate
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable this lines for global discount issue fixed ( https://github.com/akaunting/akaunting/issues/2797 )
|
// Disable this lines for global discount issue fixed ( https://github.com/akaunting/akaunting/issues/2797 )
|
||||||
if (! empty($this->request['discount'])) {
|
$this->request['discount_rate'] = $this->request['discount'] ?? null;
|
||||||
$this->request['discount_rate'] = $this->request['discount'];
|
|
||||||
}
|
|
||||||
|
|
||||||
event(new DocumentUpdating($this->model, $this->request));
|
event(new DocumentUpdating($this->model, $this->request));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue