commit | 65992304bc259a44c60198b3b6e3be0f5b107b3e | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Tue Oct 04 16:17:56 2022 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Wed Oct 12 15:34:50 2022 +0530 |
tree | 346d60d132b3a81647ceafc3054949935790d93b | |
parent | 43037d893d6c31e06df88883f1c529276d28803b [diff] |
fix: delete old ple's on item value repost
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 95ba3d8..02dcd68 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -1171,6 +1171,10 @@ where voucher_type=%s and voucher_no=%s""", (voucher_type, voucher_no), ) + ple = qb.DocType("Payment Ledger Entry") + qb.from_(ple).delete().where( + (ple.voucher_type == voucher_type) & (ple.voucher_no == voucher_no) + ).run() def sort_stock_vouchers_by_posting_date(