mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 16:40:19 +00:00
chore: whitespace cleanup from codebase
This commit is contained in:
@@ -85,5 +85,3 @@ frappe.ui.form.on('Blanket Order', {
|
||||
frm.trigger('set_tc_name_filter');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -76,4 +76,4 @@ def make_order(source_name):
|
||||
"postprocess": update_item
|
||||
}
|
||||
})
|
||||
return target_doc
|
||||
return target_doc
|
||||
|
||||
@@ -88,4 +88,4 @@ def make_blanket_order(**args):
|
||||
|
||||
bo.insert()
|
||||
bo.submit()
|
||||
return bo
|
||||
return bo
|
||||
|
||||
@@ -654,4 +654,4 @@ frappe.ui.form.on("BOM", "with_operations", function(frm) {
|
||||
if(!cint(frm.doc.with_operations)) {
|
||||
frm.set_value("operations", []);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -38,4 +38,4 @@
|
||||
{{ __("Open Item {0}", [data.item_code.bold()]) }}</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -70,4 +70,4 @@ frappe.treeview_settings["BOM"] = {
|
||||
}
|
||||
},
|
||||
view_template: 'bom_item_preview'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,4 +60,4 @@ QUnit.test("test: item", function (assert) {
|
||||
|
||||
() => done()
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -7,4 +7,4 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class BOMExplosionItem(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -7,4 +7,4 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class BOMItem(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -7,4 +7,4 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class BOMOperation(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -46,4 +46,4 @@ frappe.ui.form.on('BOM Update Tool', {
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -367,4 +367,4 @@ frappe.ui.form.on('Job Card Time Log', {
|
||||
to_time: function(frm) {
|
||||
frm.set_value('started_time', '');
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -12,4 +12,4 @@ frappe.listview_settings['Job Card'] = {
|
||||
return [__("Open"), "red", "status,=,Open"];
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.")
|
||||
}
|
||||
];
|
||||
];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -11,4 +11,4 @@ frappe.ui.form.on('Operation', {
|
||||
};
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -14,4 +14,4 @@ def get_data():
|
||||
'items': ['Purchase Order']
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class ProductionPlanItem(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -7,4 +7,4 @@ import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class ProductionPlanSalesOrder(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -9,4 +9,4 @@ def get_data():
|
||||
'items': ['BOM']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ def get_data():
|
||||
'items': ['Serial No', 'Batch']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -16,4 +16,4 @@ frappe.ui.form.on("Workstation", {
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -108,5 +108,3 @@ def get_columns(filters):
|
||||
"fieldtype": "Int",
|
||||
"width": 180
|
||||
}]
|
||||
|
||||
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
</tr>
|
||||
{% } %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
@@ -124,4 +124,4 @@ def get_columns(filters):
|
||||
"fieldname": "total_time_in_mins",
|
||||
"width": "100"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@@ -110,4 +110,4 @@ def get_columns(filters):
|
||||
"fieldtype": "Text",
|
||||
"width": 100
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@@ -239,4 +239,4 @@ class ForecastingReport(ExponentialSmoothingForecast):
|
||||
"currency": self.company_currency,
|
||||
"datatype": self.fieldtype
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@@ -201,4 +201,4 @@ def get_columns(filters):
|
||||
}
|
||||
])
|
||||
|
||||
return columns
|
||||
return columns
|
||||
|
||||
@@ -139,7 +139,3 @@ def get_chart_data(periodic_data, columns):
|
||||
chart["type"] = "line"
|
||||
|
||||
return chart
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -129,4 +129,4 @@ def get_columns(filters):
|
||||
}
|
||||
])
|
||||
|
||||
return columns
|
||||
return columns
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -265,4 +265,4 @@ def get_columns(filters):
|
||||
},
|
||||
])
|
||||
|
||||
return columns
|
||||
return columns
|
||||
|
||||
Reference in New Issue
Block a user