Skip to content

Commit

Permalink
Revert "feat: set status for assets created from purchase receipt"
Browse files Browse the repository at this point in the history
  • Loading branch information
tinadn authored Oct 17, 2024
1 parent 0f54e6f commit 1c67ff1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,6 @@ def make_asset(self, row, is_grouped_asset=False):
asset_quantity = row.qty if is_grouped_asset else 1
purchase_amount = flt(row.valuation_rate) * asset_quantity

# getting default value of status from Asset
asset_meta = frappe.get_meta("Asset")
default_asset_status = asset_meta.get_field("status")

asset = frappe.get_doc(
{
"doctype": "Asset",
Expand All @@ -831,7 +827,6 @@ def make_asset(self, row, is_grouped_asset=False):
"asset_quantity": asset_quantity,
"purchase_receipt": self.name if self.doctype == "Purchase Receipt" else None,
"purchase_invoice": self.name if self.doctype == "Purchase Invoice" else None,
"status": default_asset_status.default if default_asset_status.default else None
}
)

Expand Down

0 comments on commit 1c67ff1

Please sign in to comment.