mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
fix: Remove auto repeat (subscription) button from Sales and Purchase documents
This commit is contained in:
@@ -248,12 +248,6 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends e
|
||||
function() { me.make_payment_request() }, __('Create'));
|
||||
}
|
||||
|
||||
if(!doc.auto_repeat) {
|
||||
cur_frm.add_custom_button(__('Subscription'), function() {
|
||||
erpnext.utils.make_subscription(doc.doctype, doc.name)
|
||||
}, __('Create'))
|
||||
}
|
||||
|
||||
if (doc.docstatus === 1 && !doc.inter_company_order_reference) {
|
||||
let me = this;
|
||||
let internal = me.frm.doc.is_internal_supplier;
|
||||
|
||||
Reference in New Issue
Block a user