Commit 44363c0
fix: Respect allowed zero qty in SO and PO based on Buying/Selling settings when update items (#49673)
* fix: respect allowed zero qty in SO and PO based on buying/selling settings
* refactor: remove parent_doctype param due to it's already avaliable
* refactor: rename is_allowed_zero_qty_for to is_allowed_zero_qty
* fix: prevent rate change for unit price items
* fix: unboundlocal variable rate_unchanged
* refactor: only throw on 'zero' qty items
---------
Co-authored-by: ruthra kumar <[email protected]>1 parent 5b11710 commit 44363c0
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3680 | 3680 | | |
3681 | 3681 | | |
3682 | 3682 | | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
3683 | 3690 | | |
3684 | | - | |
| 3691 | + | |
3685 | 3692 | | |
3686 | 3693 | | |
3687 | 3694 | | |
| |||
3817 | 3824 | | |
3818 | 3825 | | |
3819 | 3826 | | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
3820 | 3832 | | |
3821 | 3833 | | |
3822 | 3834 | | |
| |||
0 commit comments