File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
erpnext/accounts/doctype/sales_invoice Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,26 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
157
157
} )
158
158
} , __ ( "Get items from" ) ) ;
159
159
} ,
160
+
161
+ quotation_btn : function ( ) {
162
+ var me = this ;
163
+ this . $quotation_btn = this . frm . add_custom_button ( __ ( 'Quotation' ) ,
164
+ function ( ) {
165
+ erpnext . utils . map_current_doc ( {
166
+ method : "erpnext.selling.doctype.quotation.quotation.make_quotation" ,
167
+ source_doctype : "Quotation" ,
168
+ target : me . frm ,
169
+ setters : {
170
+ customer : me . frm . doc . customer || undefined ,
171
+ } ,
172
+ get_query_filters : {
173
+ docstatus : 1 ,
174
+ status : [ "!=" , "Lost" ] ,
175
+ company : me . frm . doc . company
176
+ }
177
+ } )
178
+ } , __ ( "Get items from" ) ) ;
179
+ } ,
160
180
161
181
delivery_note_btn : function ( ) {
162
182
var me = this ;
You can’t perform that action at this time.
0 commit comments