mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: Use GET request
This commit is contained in:
@@ -6,6 +6,7 @@ erpnext.accounts.ledger_preview = {
|
|||||||
if(!frm.is_new() && frm.doc.docstatus == 0) {
|
if(!frm.is_new() && frm.doc.docstatus == 0) {
|
||||||
frm.add_custom_button(__('Accounting Ledger'), function() {
|
frm.add_custom_button(__('Accounting Ledger'), function() {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
"type": "GET",
|
||||||
"method": "erpnext.controllers.stock_controller.show_accounting_ledger_preview",
|
"method": "erpnext.controllers.stock_controller.show_accounting_ledger_preview",
|
||||||
"args": {
|
"args": {
|
||||||
"company": frm.doc.company,
|
"company": frm.doc.company,
|
||||||
@@ -25,6 +26,7 @@ erpnext.accounts.ledger_preview = {
|
|||||||
if(!frm.is_new() && frm.doc.docstatus == 0) {
|
if(!frm.is_new() && frm.doc.docstatus == 0) {
|
||||||
frm.add_custom_button(__('Stock Ledger'), function() {
|
frm.add_custom_button(__('Stock Ledger'), function() {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
|
"type": "GET",
|
||||||
"method": "erpnext.controllers.stock_controller.show_stock_ledger_preview",
|
"method": "erpnext.controllers.stock_controller.show_stock_ledger_preview",
|
||||||
"args": {
|
"args": {
|
||||||
"company": frm.doc.company,
|
"company": frm.doc.company,
|
||||||
|
|||||||
Reference in New Issue
Block a user