fix: allow zero valuation rate toast showing even when rate is not 0
This commit is contained in:
@@ -65,6 +65,8 @@ class StockController(AccountsController):
|
||||
self.validate_internal_transfer()
|
||||
self.validate_putaway_capacity()
|
||||
self.reset_conversion_factor()
|
||||
|
||||
def on_update(self):
|
||||
self.check_zero_rate()
|
||||
|
||||
def reset_conversion_factor(self):
|
||||
|
||||
@@ -302,6 +302,7 @@ class StockEntry(StockController):
|
||||
self.set_material_request_transfer_status("In Transit")
|
||||
|
||||
def on_update(self):
|
||||
super().on_update()
|
||||
self.set_serial_and_batch_bundle()
|
||||
|
||||
def set_job_card_data(self):
|
||||
|
||||
@@ -86,6 +86,7 @@ class StockReconciliation(StockController):
|
||||
self.validate_reserved_stock()
|
||||
|
||||
def on_update(self):
|
||||
super().on_update()
|
||||
self.set_serial_and_batch_bundle(ignore_validate=True)
|
||||
|
||||
def validate_inventory_dimension(self):
|
||||
|
||||
Reference in New Issue
Block a user