mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
refactor: updated gross_purchase_amount to net_purchase_amount across codebase
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -931,7 +931,7 @@ class PurchaseReceipt(BuyingController):
|
||||
"Asset",
|
||||
asset.name,
|
||||
{
|
||||
"gross_purchase_amount": purchase_amount,
|
||||
"net_purchase_amount": purchase_amount,
|
||||
"purchase_amount": purchase_amount,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -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",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user