Merge branch 'hotfix' into serial_no_batch_selector

This commit is contained in:
sahil28297
2019-06-13 19:51:47 +05:30
committed by GitHub
3 changed files with 13 additions and 8 deletions

View File

@@ -371,6 +371,10 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
me.frm.pos_print_format = r.message.print_format; me.frm.pos_print_format = r.message.print_format;
} }
me.frm.script_manager.trigger("update_stock"); me.frm.script_manager.trigger("update_stock");
if(me.frm.doc.taxes_and_charges) {
me.frm.script_manager.trigger("taxes_and_charges");
}
frappe.model.set_default_values(me.frm.doc); frappe.model.set_default_values(me.frm.doc);
me.set_dynamic_labels(); me.set_dynamic_labels();
me.calculate_taxes_and_totals(); me.calculate_taxes_and_totals();

View File

@@ -30,23 +30,23 @@ def get_columns():
"options": "Timesheet", "options": "Timesheet",
"width": 150 "width": 150
}, },
{
"label": _("Billable Hours"),
"fieldtype": "Float",
"fieldname": "total_billable_hours",
"width": 50
},
{ {
"label": _("Working Hours"), "label": _("Working Hours"),
"fieldtype": "Float", "fieldtype": "Float",
"fieldname": "total_hours", "fieldname": "total_hours",
"width": 50 "width": 150
},
{
"label": _("Billable Hours"),
"fieldtype": "Float",
"fieldname": "total_billable_hours",
"width": 150
}, },
{ {
"label": _("Billing Amount"), "label": _("Billing Amount"),
"fieldtype": "Currency", "fieldtype": "Currency",
"fieldname": "amount", "fieldname": "amount",
"width": 100 "width": 150
} }
] ]

View File

@@ -186,6 +186,7 @@ frappe.ui.form.on('Material Request', {
var values = d.get_values(); var values = d.get_values();
if(!values) return; if(!values) return;
values["company"] = frm.doc.company; values["company"] = frm.doc.company;
if(!frm.doc.company) frappe.throw(__("Company field is required"));
frappe.call({ frappe.call({
method: "erpnext.manufacturing.doctype.bom.bom.get_bom_items", method: "erpnext.manufacturing.doctype.bom.bom.get_bom_items",
args: values, args: values,