refactor: updated gross_purchase_amount to net_purchase_amount across codebase

This commit is contained in:
Khushi Rawat
2025-05-23 01:27:59 +05:30
committed by khushi8112
parent 58eda49549
commit de6e787087
25 changed files with 167 additions and 168 deletions

View File

@@ -591,7 +591,7 @@ class TestLandedCostVoucher(IntegrationTestCase):
lcv.submit()
# lcv updates amount in draft asset
self.assertEqual(frappe.db.get_value("Asset", assets[0].name, "gross_purchase_amount"), 50080)
self.assertEqual(frappe.db.get_value("Asset", assets[0].name, "net_purchase_amount"), 50080)
# tear down
lcv.cancel()

View File

@@ -931,7 +931,7 @@ class PurchaseReceipt(BuyingController):
"Asset",
asset.name,
{
"gross_purchase_amount": purchase_amount,
"net_purchase_amount": purchase_amount,
"purchase_amount": purchase_amount,
},
)

View File

@@ -829,7 +829,7 @@ class TestPurchaseReceipt(IntegrationTestCase):
asset = frappe.get_doc("Asset", {"purchase_receipt": pr.name})
asset.available_for_use_date = frappe.utils.nowdate()
asset.gross_purchase_amount = 50.0
asset.net_purchase_amount = 50.0
asset.append(
"finance_books",
{