Browse Source
chore: mass trailing whitespace and EOF fixes
develop
Ankush Menat
3 years ago
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF
1190 changed files with
1352 additions and
1604 deletions
erpnext/accounts/deferred_revenue.py
erpnext/accounts/doctype/accounting_dimension/test_accounting_dimension.py
erpnext/accounts/doctype/bank_transaction/bank_transaction.py
erpnext/accounts/doctype/cash_flow_mapping/cash_flow_mapping.py
erpnext/accounts/doctype/cost_center/test_cost_center.py
erpnext/accounts/doctype/coupon_code/test_coupon_code.py
erpnext/accounts/doctype/mode_of_payment/mode_of_payment.py
erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.py
erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py
erpnext/accounts/doctype/pricing_rule/tests/test_pricing_rule.js
erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.js
erpnext/accounts/doctype/purchase_taxes_and_charges_template/test_purchase_taxes_and_charges_template.js
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice.js
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_margin.js
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment.js
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_payment_request.js
erpnext/accounts/doctype/sales_invoice/tests/test_sales_invoice_with_serialize_item.js
erpnext/accounts/doctype/sales_taxes_and_charges_template/test_sales_taxes_and_charges_template.js
erpnext/accounts/doctype/shipping_rule/test_shipping_rule.js
erpnext/accounts/doctype/shipping_rule/tests/test_shipping_rule_for_buying.js
erpnext/accounts/doctype/subscription/test_subscription.py
erpnext/accounts/print_format/payment_receipt_voucher/payment_receipt_voucher.html
erpnext/accounts/report/account_balance/test_account_balance.py
erpnext/accounts/report/accounts_payable/accounts_payable.js
erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.js
erpnext/accounts/report/accounts_payable_summary/accounts_payable_summary.py
erpnext/accounts/report/accounts_receivable/accounts_receivable.js
erpnext/accounts/report/accounts_receivable/test_accounts_receivable.py
erpnext/accounts/report/budget_variance_report/budget_variance_report.js
erpnext/accounts/report/budget_variance_report/budget_variance_report.py
erpnext/accounts/report/general_ledger/general_ledger.js
erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py
erpnext/accounts/report/sales_register/sales_register.js
erpnext/accounts/report/trial_balance/trial_balance.js
erpnext/agriculture/doctype/disease/test_disease.js
erpnext/assets/doctype/asset_repair/asset_repair_list.js
erpnext/buying/doctype/supplier_scorecard/supplier_scorecard.js
erpnext/buying/doctype/supplier_scorecard/test_supplier_scorecard.py
erpnext/buying/doctype/supplier_scorecard_period/supplier_scorecard_period.py
erpnext/buying/report/purchase_order_analysis/purchase_order_analysis.py
erpnext/buying/utils.py
erpnext/controllers/item_variant.py
erpnext/crm/doctype/appointment/appointment.py
erpnext/crm/report/campaign_efficiency/campaign_efficiency.js
erpnext/crm/report/lead_conversion_time/lead_conversion_time.js
erpnext/crm/report/lead_details/lead_details.py
erpnext/education/doctype/assessment_result/assessment_result.py
erpnext/education/doctype/assessment_result/test_assessment_result.py
erpnext/education/doctype/course_enrollment/test_course_enrollment.py
erpnext/education/doctype/course_schedule/course_schedule.py
erpnext/education/doctype/program_enrollment/program_enrollment.py
erpnext/education/doctype/student_group/student_group.py
erpnext/education/report/program_wise_fee_collection/program_wise_fee_collection.py
erpnext/erpnext_integrations/doctype/amazon_mws_settings/amazon_mws_settings.js
erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.js
erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py
erpnext/healthcare/doctype/exercise_type/exercise_type.py
erpnext/healthcare/doctype/healthcare_practitioner/healthcare_practitioner.js
erpnext/healthcare/doctype/inpatient_medication_order/test_inpatient_medication_order.py
erpnext/healthcare/doctype/patient_assessment/patient_assessment.py
erpnext/healthcare/doctype/vital_signs/vital_signs.py
erpnext/healthcare/page/patient_progress/patient_progress.py
erpnext/hr/doctype/appraisal/test_appraisal.js
erpnext/hr/doctype/appraisal_template/test_appraisal_template.js
erpnext/hr/doctype/employee_attendance_tool/employee_attendance_tool.js
erpnext/hr/doctype/employee_checkin/employee_checkin.py
erpnext/hr/doctype/employee_grievance/employee_grievance.py
erpnext/hr/doctype/employee_grievance/test_employee_grievance.py
erpnext/hr/doctype/employee_onboarding/employee_onboarding.py
erpnext/hr/doctype/employee_referral/employee_referral.py
erpnext/hr/doctype/expense_claim/test_expense_claim.js
erpnext/hr/doctype/expense_claim_type/test_expense_claim_type.js
erpnext/hr/doctype/hr_settings/hr_settings.py
erpnext/hr/doctype/job_applicant/job_applicant.py
erpnext/hr/doctype/job_applicant/test_job_applicant.js
erpnext/hr/doctype/job_opening/test_job_opening.js
erpnext/hr/doctype/leave_policy_assignment/test_leave_policy_assignment.py
erpnext/hr/doctype/training_event/training_event.js
erpnext/hr/doctype/training_feedback/test_training_feedback.js
erpnext/hr/doctype/training_feedback/training_feedback.py
erpnext/hr/doctype/training_result_employee/test_training_result.js
erpnext/hr/doctype/vehicle_log/vehicle_log.js
erpnext/hr/report/employee_advance_summary/employee_advance_summary.js
erpnext/hr/report/employee_analytics/employee_analytics.py
erpnext/hr/report/vehicle_expenses/vehicle_expenses.js
erpnext/loan_management/doctype/loan_disbursement/loan_disbursement.py
erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py
erpnext/loan_management/doctype/loan_repayment/loan_repayment.py
erpnext/loan_management/doctype/loan_security_price/loan_security_price.py
erpnext/loan_management/doctype/loan_security_shortfall/loan_security_shortfall.py
erpnext/loan_management/doctype/loan_security_unpledge/loan_security_unpledge.py
erpnext/loan_management/doctype/loan_type/loan_type.py
erpnext/loan_management/doctype/loan_write_off/loan_write_off.py
erpnext/loan_management/doctype/process_loan_interest_accrual/process_loan_interest_accrual.py
erpnext/loan_management/report/loan_security_exposure/loan_security_exposure.py
erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js
erpnext/manufacturing/doctype/blanket_order/blanket_order.js
erpnext/manufacturing/report/bom_operations_time/bom_operations_time.py
erpnext/manufacturing/report/production_analytics/production_analytics.py
erpnext/non_profit/doctype/chapter_member/chapter_member.py
@ -450,5 +450,3 @@ def get_deferred_booking_accounts(doctype, voucher_detail_no, dr_or_cr):
return debit_account
else :
return credit_account
@ -113,5 +113,3 @@ def disable_dimension():
dimension2 = frappe . get_doc ( " Accounting Dimension " , " Location " )
dimension2 . disabled = 1
dimension2 . save ( )
@ -105,4 +105,3 @@ def unclear_reference_payment(doctype, docname):
frappe . db . set_value ( doc . payment_document , doc . payment_entry , " clearance_date " , None )
return doc . payment_entry
@ -18,5 +18,3 @@ class CashFlowMapping(Document):
frappe . _ ( ' You can only select a maximum of one option from the list of check boxes. ' ) ,
title = ' Error '
)
@ -62,6 +62,3 @@ def create_cost_center(**args):
cc . is_group = args . is_group or 0
cc . parent_cost_center = args . parent_cost_center or " _Test Company - _TC "
cc . insert ( )
@ -124,6 +124,3 @@ class TestCouponCode(unittest.TestCase):
so . submit ( )
self . assertEqual ( frappe . db . get_value ( " Coupon Code " , " SAVE30 " , " used " ) , 1 )
@ -39,4 +39,3 @@ class ModeofPayment(Document):
message = " POS Profile " + frappe . bold ( " , " . join ( pos_profiles ) ) + " contains \
Mode of Payment " + frappe.bold(str(self.name)) + " . Please remove them to disable this mode . "
frappe . throw ( _ ( message ) , title = " Not Allowed " )
@ -241,4 +241,3 @@ def get_temporary_opening_account(company=None):
frappe . throw ( _ ( " Please add a Temporary Opening account in Chart of Accounts " ) )
return accounts [ 0 ] . name
@ -147,4 +147,3 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
frappe . set_user ( " Administrator " )
frappe . db . sql ( " delete from `tabPOS Profile` " )
frappe . db . sql ( " delete from `tabPOS Invoice` " )
@ -26,4 +26,3 @@ QUnit.test("test pricing rule", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -72,4 +72,3 @@ QUnit.test("test purchase invoice", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -26,4 +26,3 @@ QUnit.test("test sales taxes and charges template", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -40,4 +40,3 @@ QUnit.test("test sales Invoice", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -33,4 +33,3 @@ QUnit.test("test sales invoice with margin", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -54,4 +54,3 @@ QUnit.test("test sales Invoice with payment", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -49,4 +49,3 @@ QUnit.test("test sales Invoice with payment request", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -42,4 +42,3 @@ QUnit.test("test sales Invoice with serialize item", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -26,4 +26,3 @@ QUnit.test("test sales taxes and charges template", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -34,4 +34,3 @@ QUnit.test("test Shipping Rule", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -34,4 +34,3 @@ QUnit.test("test Shipping Rule", function(assert) {
( ) => done ( )
] ) ;
} ) ;
@ -630,5 +630,3 @@ class TestSubscription(unittest.TestCase):
subscription . process ( )
self . assertEqual ( len ( subscription . invoices ) , 1 )
@ -27,4 +27,3 @@
{{ _("Authorized Signatory") }}
< / p >
< / div >
@ -62,8 +62,3 @@ def make_sales_invoice():
income_account = ' Sales - _TC2 ' ,
expense_account = ' Cost of Goods Sold - _TC2 ' ,
cost_center = ' Main - _TC2 ' )
@ -136,4 +136,3 @@ frappe.query_reports["Accounts Payable"] = {
}
erpnext . utils . add_dimensions ( 'Accounts Payable' , 9 ) ;
@ -105,4 +105,3 @@ frappe.query_reports["Accounts Payable Summary"] = {
}
erpnext . utils . add_dimensions ( 'Accounts Payable Summary' , 9 ) ;
@ -12,4 +12,3 @@ def execute(filters=None):
" naming_by " : [ " Buying Settings " , " supp_master_name " ] ,
}
return AccountsReceivableSummary ( filters ) . run ( args )
@ -200,4 +200,3 @@ frappe.query_reports["Accounts Receivable"] = {
}
erpnext . utils . add_dimensions ( 'Accounts Receivable' , 9 ) ;
@ -93,4 +93,3 @@ def make_credit_note(docname):
cost_center = ' Main - _TC2 ' ,
is_return = 1 ,
return_against = docname )
@ -92,4 +92,3 @@ frappe.query_reports["Budget Variance Report"] = {
erpnext . dimension_filters . forEach ( ( dimension ) => {
frappe . query_reports [ "Budget Variance Report" ] . filters [ 4 ] . options . push ( dimension [ "document_type" ] ) ;
} ) ;
@ -399,4 +399,3 @@ def get_chart_data(filters, columns, data):
} ,
' type ' : ' bar '
}
@ -176,4 +176,3 @@ frappe.query_reports["General Ledger"] = {
}
erpnext . utils . add_dimensions ( 'General Ledger' , 15 )
@ -626,7 +626,3 @@ def add_sub_total_row(item, total_row_map, group_by_value, tax_columns):
for tax in tax_columns :
total_row . setdefault ( frappe . scrub ( tax + ' Amount ' ) , 0.0 )
total_row [ frappe . scrub ( tax + ' Amount ' ) ] + = flt ( item [ frappe . scrub ( tax + ' Amount ' ) ] )
@ -69,4 +69,3 @@ frappe.query_reports["Sales Register"] = {
}
erpnext . utils . add_dimensions ( 'Sales Register' , 7 ) ;
@ -110,6 +110,3 @@ frappe.require("assets/erpnext/js/financial_statements.js", function() {
erpnext . utils . add_dimensions ( 'Trial Balance' , 6 ) ;
} ) ;
@ -36,4 +36,3 @@ QUnit.test("test: Disease", function (assert) {
] ) ;
} ) ;
@ -10,4 +10,3 @@ frappe.listview_settings['Asset Repair'] = {
}
}
} ;
@ -93,5 +93,3 @@ var loadAllStandings = function(frm) {
}
} ) ;
} ;
@ -128,4 +128,3 @@ valid_scorecard = [
" weighting_function " : " {total_score} * max( 0, min ( 1 , (12 - {period_number} ) / 12) ) "
}
]
@ -109,4 +109,3 @@ def make_supplier_scorecard(source_name, target_doc=None):
} , target_doc , post_process , ignore_permissions = True )
return doc
@ -268,4 +268,3 @@ def get_columns(filters):
] )
return columns
@ -102,4 +102,3 @@ def get_linked_material_requests(items):
mr_list . append ( material_request )
return mr_list
@ -344,4 +344,3 @@ def create_variant_doc_for_quick_entry(template, args):
variant . name = variant . item_code
validate_item_variant_attributes ( variant , args )
return variant . as_dict ( )
@ -235,4 +235,3 @@ def _get_employee_from_user(user):
# frappe.db.exists returns a tuple of a tuple
return frappe . get_doc ( ' Employee ' , employee_docname [ 0 ] [ 0 ] )
return None
@ -16,4 +16,3 @@ frappe.query_reports["Campaign Efficiency"] = {
}
]
} ;
@ -20,5 +20,3 @@ frappe.query_reports["Lead Conversion Time"] = {
} ,
]
} ;
@ -155,4 +155,3 @@ def get_conditions(filters) :
conditions . append ( " and `tabLead`.status= %(status)s " )
return " " . join ( conditions ) if conditions else " "
@ -42,7 +42,3 @@ class AssessmentResult(Document):
" student " : self . student , " assessment_plan " : self . assessment_plan , " docstatus " : ( " != " , 2 ) } )
if assessment_result :
frappe . throw ( _ ( " Assessment Result record {0} already exists. " ) . format ( getlink ( " Assessment Result " , assessment_result [ 0 ] . name ) ) )
@ -16,4 +16,3 @@ class TestAssessmentResult(unittest.TestCase):
grade = get_grade ( " _Test Grading Scale " , 70 )
self . assertEqual ( " B " , grade )
@ -39,6 +39,3 @@ class TestCourseEnrollment(unittest.TestCase):
doc = frappe . get_doc ( " Program Enrollment " , entry . name )
doc . cancel ( )
doc . delete ( )
@ -47,4 +47,3 @@ class CourseSchedule(Document):
validate_overlap_for ( self , " Assessment Plan " , " room " )
validate_overlap_for ( self , " Assessment Plan " , " supervisor " , self . instructor )
@ -174,4 +174,3 @@ def get_students(doctype, txt, searchfield, start, page_len, filters):
tuple ( students + [ " %% %s %% " % txt , start , page_len ]
)
)
@ -128,4 +128,3 @@ def fetch_students(doctype, txt, searchfield, start, page_len, filters):
order by idx desc , name
limit % s , % s """ .format(searchfield),
tuple ( [ " %% %s %% " % txt , " %% %s %% " % txt , start , page_len ] ) )
@ -121,4 +121,3 @@ def get_chart_data(data):
} ,
' type ' : ' bar '
}
@ -1,3 +1,2 @@
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
@ -188,4 +188,3 @@ frappe.tour['Clinical Procedure Template'] = [
description : __ ( 'You can also set the Medical Department for the template. After saving the document, an Item will automatically be created for billing this Clinical Procedure. You can then use this template while creating Clinical Procedures for Patients. Templates save you from filling up redundant data every single time. You can also create templates for other operations like Lab Tests, Therapy Sessions, etc.' )
}
] ;
@ -118,4 +118,3 @@ def change_item_code_from_template(item_code, doc):
rename_doc ( ' Item ' , doc . item_code , item_code , ignore_permissions = True )
frappe . db . set_value ( ' Clinical Procedure Template ' , doc . name , ' item_code ' , item_code )
return
@ -12,4 +12,3 @@ class ExerciseType(Document):
self . name = ' - ' . join ( filter ( None , [ self . exercise_name , self . difficulty_level ] ) )
else :
self . name = self . exercise_name
@ -142,4 +142,3 @@ frappe.tour['Healthcare Practitioner'] = [
description : __ ( 'If this Healthcare Practitioner also works for the In-Patient Department, set the inpatient visit charge for this Practitioner.' )
}
] ;
@ -140,4 +140,3 @@ def create_ipme(filters, update_stock=0):
ipme = ipme . get_medication_orders ( )
return ipme
@ -31,6 +31,3 @@ def create_patient_assessment(source_name, target_doc=None):
} , target_doc )
return doc
@ -15,4 +15,3 @@ class VitalSigns(Document):
def set_title ( self ) :
self . title = _ ( ' {0} on {1} ' ) . format ( self . patient_name or self . patient ,
frappe . utils . format_date ( self . signs_date ) ) [ : 100 ]
@ -194,4 +194,3 @@ def get_date_range(time_span):
return time_span
except json . decoder . JSONDecodeError :
return get_timespan_date_range ( time_span . lower ( ) )
@ -55,4 +55,3 @@ QUnit.test("Test: Expense Claim [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -27,4 +27,3 @@ QUnit.test("Test: Appraisal Template [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -267,5 +267,3 @@ erpnext.EmployeeSelector = class EmployeeSelector {
mark_employee_toolbar . appendTo ( $ ( this . wrapper ) ) ;
}
} ;
@ -176,4 +176,3 @@ def time_diff_in_hours(start, end):
def find_index_in_dict ( dict_list , key , value ) :
return next ( ( index for ( index , d ) in enumerate ( dict_list ) if d [ key ] == value ) , None )
@ -12,4 +12,3 @@ class EmployeeGrievance(Document):
bold ( " Invalid " ) ,
bold ( " Resolved " ) )
)
@ -48,4 +48,3 @@ def create_grievance_type():
grievance_type . save ( )
return grievance_type . name
@ -57,4 +57,3 @@ def make_employee(source_name, target_doc=None):
} }
} , target_doc , set_missing_values )
return doc
@ -70,4 +70,3 @@ def create_additional_salary(doc):
additional_salary . ref_docname = doc . name
return additional_salary
@ -42,4 +42,3 @@ QUnit.test("Test: Expense Claim [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -27,4 +27,3 @@ QUnit.test("Test: Expense Claim Type [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -15,4 +15,3 @@ class HRSettings(Document):
from erpnext . setup . doctype . naming_series . naming_series import set_by_naming_series
set_by_naming_series ( " Employee " , " employee_number " ,
self . get ( " emp_created_by " ) == " Naming Series " , hide_name_field = True )
@ -50,4 +50,3 @@ class JobApplicant(Document):
if names :
frappe . throw ( _ ( " Email Address must be unique, already exists for {0} " ) . format ( comma_and ( names ) ) , frappe . DuplicateEntryError )
@ -26,4 +26,3 @@ QUnit.test("Test: Job Opening [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -24,4 +24,3 @@ QUnit.test("Test: Job Opening [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -99,5 +99,3 @@ class TestLeavePolicyAssignment(unittest.TestCase):
def tearDown ( self ) :
for doctype in [ " Leave Application " , " Leave Allocation " , " Leave Policy Assignment " , " Leave Ledger Entry " ] :
frappe . db . sql ( " delete from `tab {0} ` " . format ( doctype ) ) #nosec
@ -46,4 +46,3 @@ frappe.ui.form.on("Training Event Employee", {
frm . events . set_employee_query ( frm ) ;
}
} ) ;
@ -49,4 +49,3 @@ QUnit.test("Test: Training Feedback [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -42,4 +42,3 @@ class TrainingFeedback(Document):
if employee :
frappe . db . set_value ( " Training Event Employee " , employee , " status " , " Completed " )
@ -50,4 +50,3 @@ QUnit.test("Test: Training Result [HR]", function (assert) {
( ) => done ( )
] ) ;
} ) ;
@ -24,4 +24,3 @@ frappe.ui.form.on("Vehicle Log", {
} ) ;
}
} ) ;
@ -38,4 +38,3 @@ frappe.query_reports["Employee Advance Summary"] = {
}
]
} ;
@ -81,4 +81,3 @@ def get_chart_data(parameters,employees, filters):
}
chart [ " type " ] = " donut "
return chart
@ -49,4 +49,3 @@ frappe.query_reports["Vehicle Expenses"] = {
}
]
} ;
@ -203,5 +203,3 @@ def get_disbursal_amount(loan, on_current_security_price=0):
disbursal_amount = loan_details . loan_amount - loan_details . disbursed_amount
return disbursal_amount
@ -247,4 +247,3 @@ def get_per_day_interest(principal_amount, rate_of_interest, posting_date=None):
posting_date = getdate ( )
return flt ( ( principal_amount * rate_of_interest ) / ( days_in_year ( get_datetime ( posting_date ) . year ) * 100 ) )
@ -455,6 +455,3 @@ def calculate_amounts(against_loan, posting_date, payment_type=''):
amounts [ ' payable_amount ' ] = amounts [ ' payable_principal_amount ' ] + amounts [ ' interest_amount ' ]
return amounts
@ -40,12 +40,3 @@ def get_loan_security_price(loan_security, valid_time=None):
frappe . throw ( _ ( " No valid Loan Security Price found for {0} " ) . format ( frappe . bold ( loan_security ) ) )
else :
return loan_security_price
@ -122,4 +122,3 @@ def update_pending_shortfall(shortfall):
" shortfall_amount " : 0 ,
" shortfall_percentage " : 0
} )
@ -147,8 +147,3 @@ def get_pledged_security_qty(loan):
current_pledges [ security ] - = unpledges . get ( security , 0.0 )
return current_pledges
@ -21,4 +21,3 @@ class LoanType(Document):
if self . get ( ' loan_account ' ) == self . get ( ' payment_account ' ) :
frappe . throw ( _ ( ' Loan Account and Payment Account cannot be same ' ) )
@ -84,5 +84,3 @@ class LoanWriteOff(AccountsController):
)
make_gl_entries ( gl_entries , cancel = cancel , merge_entries = False )
@ -61,4 +61,3 @@ def term_loan_accrual_pending(date):
} )
return pending_accrual
@ -79,6 +79,3 @@ def get_company_wise_loan_security_details(filters, loan_security_details):
total_portfolio_value + = flt ( qty * loan_security_details . get ( key [ 1 ] , { } ) . get ( ' latest_price ' , 0 ) )
return security_wise_map , total_portfolio_value
@ -163,4 +163,3 @@ erpnext.maintenance.MaintenanceSchedule = class MaintenanceSchedule extends frap
} ;
extend_cscript ( cur_frm . cscript , new erpnext . maintenance . MaintenanceSchedule ( { frm : cur_frm } ) ) ;
@ -85,5 +85,3 @@ frappe.ui.form.on('Blanket Order', {
frm . trigger ( 'set_tc_name_filter' ) ;
}
} ) ;
@ -108,5 +108,3 @@ def get_columns(filters):
" fieldtype " : " Int " ,
" width " : 180
} ]
@ -139,7 +139,3 @@ def get_chart_data(periodic_data, columns):
chart [ " type " ] = " line "
return chart
@ -7,5 +7,3 @@ from frappe.model.document import Document
class ChapterMember ( Document ) :
pass