fix: valuation rate for serial and batch bundle for current bundle (backport #41850) (#41860)

fix: valuation rate for serial and batch bundle for current bundle (#41850)

(cherry picked from commit 7249a691b3)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2024-06-11 18:29:54 +05:30
committed by GitHub
parent 28b7fad579
commit 3e4c568ddc
3 changed files with 33 additions and 6 deletions

View File

@@ -715,6 +715,9 @@ class StockController(AccountsController):
row.db_set("rejected_serial_and_batch_bundle", None)
if row.get("current_serial_and_batch_bundle"):
row.db_set("current_serial_and_batch_bundle", None)
def set_serial_and_batch_bundle(self, table_name=None, ignore_validate=False):
if not table_name:
table_name = "items"