Skip to content

Commit

Permalink
fixed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Myuddin khatri committed Sep 8, 2020
1 parent 6bb5122 commit 79f7ca8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ erpnext.pos.OrderDesk = class OrderDesk {
frappe.db.get_value("Customer", { "name" : this.frm.doc.customer}, "delivery_days", (r) => {
if (r.delivery_days) {
let day = moment(delivery_date).format('dddd');
let weekdays = r.delivery_days.split(",")
let weekdays = JSON.parse(r.delivery_days)
if(!weekdays.includes(day)){
frappe.msgprint(__("This order is set to be delivered on a '{0}', but {1} only accepts deliveries on {2}", [day, this.frm.doc.customer, weekdays]));
}
Expand Down

0 comments on commit 79f7ca8

Please sign in to comment.