mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 17:18:30 +00:00
refactor: remove use of can_create for Payment Request (#41647)
This commit is contained in:
@@ -770,13 +770,11 @@ erpnext.selling.SalesOrderController = class SalesOrderController extends erpnex
|
||||
flt(doc.per_billed, precision("per_billed", doc)) <
|
||||
100 + frappe.boot.sysdefaults.over_billing_allowance
|
||||
) {
|
||||
if (frappe.model.can_create("Payment Request")) {
|
||||
this.frm.add_custom_button(
|
||||
__("Payment Request"),
|
||||
() => this.make_payment_request(),
|
||||
__("Create")
|
||||
);
|
||||
}
|
||||
this.frm.add_custom_button(
|
||||
__("Payment Request"),
|
||||
() => this.make_payment_request(),
|
||||
__("Create")
|
||||
);
|
||||
|
||||
if (frappe.model.can_create("Payment Entry")) {
|
||||
this.frm.add_custom_button(
|
||||
|
||||
Reference in New Issue
Block a user