Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat: set status for assets created from purchase receipt" #323

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading