Hi all, on submit of sales order status changes from “Draft” to “To Deliver and Bill” but i want to change the sales order status to “To Be Picked” on submit.
Can we do that, need help.
Thank you
joelios
October 23, 2019, 9:13pm
#3
Hi @D_N_Srinath
Try a custom script and take a look at this
frappe.listview_settings['Sales Order'] = {
add_fields: ["base_grand_total", "customer_name", "currency", "delivery_date",
"per_delivered", "per_billed", "status", "order_type", "name", "skip_delivery_note"],
get_indicator: function (doc) {
if (doc.status === "Closed") {
// Closed
return [__("Closed"), "green", "status,=,Closed"];
} else if (doc.status === "On Hold") {
// on hold
return [__("On Hold"), "orange", "status,=,On Hold"];
} else if (doc.status === "Completed") {
return [__("Completed"), "green", "status,=,Completed"];
} else if (!doc.skip_delivery_note && flt(doc.per_delivered, 6) < 100) {
if (frappe.datetime.get_diff(doc.delivery_date) < 0) {
Hi @joelios , thanks for reply will try it.