chore: whitespace cleanup from codebase

This commit is contained in:
Ankush Menat
2021-08-19 14:33:03 +05:30
parent e536f6d13f
commit 9bb69e711a
1218 changed files with 1391 additions and 1643 deletions

View File

@@ -85,5 +85,3 @@ frappe.ui.form.on('Blanket Order', {
frm.trigger('set_tc_name_filter');
}
});

View File

@@ -76,4 +76,4 @@ def make_order(source_name):
"postprocess": update_item
}
})
return target_doc
return target_doc

View File

@@ -88,4 +88,4 @@ def make_blanket_order(**args):
bo.insert()
bo.submit()
return bo
return bo

View File

@@ -654,4 +654,4 @@ frappe.ui.form.on("BOM", "with_operations", function(frm) {
if(!cint(frm.doc.with_operations)) {
frm.set_value("operations", []);
}
});
});

View File

@@ -38,4 +38,4 @@
{{ __("Open Item {0}", [data.item_code.bold()]) }}</a>
{% endif %}
</p>
</div>
</div>

View File

@@ -70,4 +70,4 @@ frappe.treeview_settings["BOM"] = {
}
},
view_template: 'bom_item_preview'
}
}

View File

@@ -60,4 +60,4 @@ QUnit.test("test: item", function (assert) {
() => done()
]);
});
});

View File

@@ -7,4 +7,4 @@ import frappe
from frappe.model.document import Document
class BOMExplosionItem(Document):
pass
pass

View File

@@ -7,4 +7,4 @@ import frappe
from frappe.model.document import Document
class BOMItem(Document):
pass
pass

View File

@@ -7,4 +7,4 @@ import frappe
from frappe.model.document import Document
class BOMOperation(Document):
pass
pass

View File

@@ -46,4 +46,4 @@ frappe.ui.form.on('BOM Update Tool', {
}
});
}
});
});

View File

@@ -367,4 +367,4 @@ frappe.ui.form.on('Job Card Time Log', {
to_time: function(frm) {
frm.set_value('started_time', '');
}
})
})

View File

@@ -12,4 +12,4 @@ frappe.listview_settings['Job Card'] = {
return [__("Open"), "red", "status,=,Open"];
}
}
};
};

View File

@@ -72,4 +72,4 @@ class TestJobCard(unittest.TestCase):
doc.cancel()
for d in job_cards:
frappe.delete_doc("Job Card", d.name)
frappe.delete_doc("Job Card", d.name)

View File

@@ -30,4 +30,4 @@ frappe.tour["Manufacturing Settings"] = [
title: __("Update BOM Cost Automatically"),
description: __("If ticked, the BOM cost will be automatically updated based on Valuation Rate / Price List Rate / last purchase rate of raw materials.")
}
];
];

View File

@@ -20,4 +20,4 @@ def is_material_consumption_enabled():
frappe.local.material_consumption = cint(frappe.db.get_single_value('Manufacturing Settings',
'material_consumption'))
return frappe.local.material_consumption
return frappe.local.material_consumption

View File

@@ -11,4 +11,4 @@ frappe.ui.form.on('Operation', {
};
});
}
});
});

View File

@@ -28,4 +28,4 @@ def make_operation(*args, **kwargs):
return doc
except frappe.DuplicateEntryError:
return frappe.get_doc("Operation", args.operation)
return frappe.get_doc("Operation", args.operation)

View File

@@ -14,4 +14,4 @@ def get_data():
'items': ['Purchase Order']
},
]
}
}

View File

@@ -7,4 +7,4 @@ import frappe
from frappe.model.document import Document
class ProductionPlanItem(Document):
pass
pass

View File

@@ -7,4 +7,4 @@ import frappe
from frappe.model.document import Document
class ProductionPlanSalesOrder(Document):
pass
pass

View File

@@ -9,4 +9,4 @@ def get_data():
'items': ['BOM']
}
]
}
}

View File

@@ -17,4 +17,4 @@ def get_data():
'items': ['Serial No', 'Batch']
}
]
}
}

View File

@@ -10,4 +10,4 @@ class WorkOrderItem(Document):
pass
def on_doctype_update():
frappe.db.add_index("Work Order Item", ["item_code", "source_warehouse"])
frappe.db.add_index("Work Order Item", ["item_code", "source_warehouse"])

View File

@@ -16,4 +16,4 @@ frappe.ui.form.on("Workstation", {
})
}
}
})
})

View File

@@ -108,5 +108,3 @@ def get_columns(filters):
"fieldtype": "Int",
"width": 180
}]

View File

@@ -24,4 +24,4 @@
</tr>
{% } %}
</tbody>
</table>
</table>

View File

@@ -124,4 +124,4 @@ def get_columns(filters):
"fieldname": "total_time_in_mins",
"width": "100"
}
]
]

View File

@@ -110,4 +110,4 @@ def get_columns(filters):
"fieldtype": "Text",
"width": 100
}
]
]

View File

@@ -239,4 +239,4 @@ class ForecastingReport(ExponentialSmoothingForecast):
"currency": self.company_currency,
"datatype": self.fieldtype
}
]
]

View File

@@ -201,4 +201,4 @@ def get_columns(filters):
}
])
return columns
return columns

View File

@@ -139,7 +139,3 @@ def get_chart_data(periodic_data, columns):
chart["type"] = "line"
return chart

View File

@@ -129,4 +129,4 @@ def get_columns(filters):
}
])
return columns
return columns

View File

@@ -10,10 +10,10 @@ def execute(filters=None):
data = get_item_list(wo_list, filters)
columns = get_columns()
return columns, data
def get_item_list(wo_list, filters):
out = []
#Add a row for each item/qty
for wo_details in wo_list:
desc = frappe.db.get_value("BOM", wo_details.bom_no, "description")
@@ -70,13 +70,13 @@ def get_item_list(wo_list, filters):
out.append(row)
return out
def get_work_orders():
out = frappe.get_all("Work Order", filters={"docstatus": 1, "status": ( "!=","Completed")},
fields=["name","status", "bom_no", "qty", "produced_qty"], order_by='name')
return out
def get_columns():
columns = [{
"fieldname": "work_order",

View File

@@ -265,4 +265,4 @@ def get_columns(filters):
},
])
return columns
return columns