Skip to content

Commit

Permalink
fix: Resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait authored Jan 10, 2024
1 parent d6d54ed commit afefae0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,16 +316,12 @@ def validate_asset_values(self):
frappe.throw(_("Gross Purchase Amount is mandatory"), frappe.MandatoryError)

if is_cwip_accounting_enabled(self.asset_category):
<<<<<<< HEAD
if not self.is_existing_asset and not (self.purchase_receipt or self.purchase_invoice):
=======
if (
not self.is_existing_asset
and not self.is_composite_asset
and not self.purchase_receipt
and not self.purchase_invoice
):
>>>>>>> c34f09c503 (fix: Purchase date and amount is not mandatory for composite asset creation)
frappe.throw(
_("Please create purchase receipt or purchase invoice for the item {0}").format(
self.item_code
Expand Down

0 comments on commit afefae0

Please sign in to comment.