test: added test case

This commit is contained in:
Rohit Waghchaure
2023-06-15 15:01:15 +05:30
parent 6e198188ff
commit f9f662679f
2 changed files with 17 additions and 7 deletions

View File

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