You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frappe.throw(__("Sell quantity must be greater than zero"));
572
+
}
568
573
569
-
if(sell_qty<cint(frm.doc.asset_quantity)){
574
+
if(sell_qty>asset_qty){
575
+
frappe.throw(__("Sell quantity cannot exceed the asset quantity"));
576
+
}
577
+
578
+
if(sell_qty<asset_qty){
570
579
frappe.confirm(
571
580
__(
572
-
"The sell quantity is less than the total asset quantity. The remaining quantity will be split into a new asset. This action cannot be undone. <br><b>Do you want to continue?<b>"
581
+
"The sell quantity is less than the total asset quantity. The remaining quantity will be split into a new asset. This action cannot be undone. <br><br><b>Do you want to continue?</b>"
0 commit comments