Can't Save Existing Asset

I couldn’t save existing asset in current version

I got " Gross Purchase Amount should be equal to purchase amount of one single Asset.
Please do not book expense of multiple assets against one single Asset." message

Presumably this is a failed validation - whether it’s valid and reasonable is the question.

Searches for the validation message turned up no solid leads, a traceback would help identify where in the code this occurs.

This has seen lots of changes in the last several months History for erpnext/assets/report/fixed_asset_register/ - frappe/erpnext · GitHub

What version erpenxt and frappe is this?

ERPNext v12.9.0 and Frappe v12.6.0
before upgrade, system work properly

I am also facing the same issue. Can’t save existing asset. The same message is coming. It was working before the new update.

Here is the validation code that cause this issue:

There is no need to check Gross Purchase Amount and Purchase Receipt Amount If Is Existing Asset is checked on Asset creation.

Should check Is Existing Asset value before above validation.

My workaround for this issue is:

Customization > Custom Script > New

In DocType field, choose Asset

In Script field, just put code below and save:

frappe.ui.form.on('Asset', {
	validate(frm) {
	    if (frm.doc.is_existing_asset) {
	        frm.doc.purchase_receipt_amount = frm.doc.gross_purchase_amount;

Then reload the desk and try again saving Existing Asset.

Hope that Team will fix this issue very soon.

Finally fixed in 12.9.4 release.

Thank you Team.