fix: don't reset rate if greater than zero in standalone debit note

This commit is contained in:
s-aga-r
2023-11-06 17:13:29 +05:30
parent 34d3eb88b3
commit 5cce522ecd

View File

@@ -105,7 +105,7 @@ class BuyingController(SubcontractingController):
def set_rate_for_standalone_debit_note(self): def set_rate_for_standalone_debit_note(self):
if self.get("is_return") and self.get("update_stock") and not self.return_against: if self.get("is_return") and self.get("update_stock") and not self.return_against:
for row in self.items: for row in self.items:
if row.rate <= 0:
# override the rate with valuation rate # override the rate with valuation rate
row.rate = get_incoming_rate( row.rate = get_incoming_rate(
{ {