mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> fix: translate_pos_buttons" (#47773)
This commit is contained in:
@@ -321,25 +321,17 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
||||
|
||||
get_condition_btn_map(after_submission) {
|
||||
if (after_submission)
|
||||
return [
|
||||
{
|
||||
condition: true,
|
||||
visible_btns: [__("Print Receipt"), __("Email Receipt"), __("New Order")],
|
||||
},
|
||||
];
|
||||
return [{ condition: true, visible_btns: ["Print Receipt", "Email Receipt", "New Order"] }];
|
||||
|
||||
return [
|
||||
{
|
||||
condition: this.doc.docstatus === 0,
|
||||
visible_btns: [__("Edit Order"), __("Delete Order")],
|
||||
},
|
||||
{ condition: this.doc.docstatus === 0, visible_btns: ["Edit Order", "Delete Order"] },
|
||||
{
|
||||
condition: !this.doc.is_return && this.doc.docstatus === 1,
|
||||
visible_btns: [__("Print Receipt"), __("Email Receipt"), __("Return")],
|
||||
visible_btns: ["Print Receipt", "Email Receipt", "Return"],
|
||||
},
|
||||
{
|
||||
condition: this.doc.is_return && this.doc.docstatus === 1,
|
||||
visible_btns: [__("Print Receipt"), __("Email Receipt")],
|
||||
visible_btns: ["Print Receipt", "Email Receipt"],
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user