forked from elmau/empresa-libre
45 lines
821 B
JavaScript
45 lines
821 B
JavaScript
|
|
|
|
function cmd_new_invoice_click(id, e, node){
|
|
|
|
$$('form_invoice').adjust();
|
|
$$("multi_invoices").setValue("invoices_new")
|
|
|
|
};
|
|
|
|
|
|
function cmd_edit_invoice_click(id, e, node){
|
|
|
|
$$("multi_invoices").setValue("invoices_new")
|
|
|
|
};
|
|
|
|
|
|
function cmd_delete_invoice_click(id, e, node){
|
|
|
|
webix.message({type:"success", text: "OK Delete"});
|
|
|
|
};
|
|
|
|
|
|
function cmd_save_invoice_click(id, e, node){
|
|
var form = this.getFormView();
|
|
|
|
if (!form.validate()) {
|
|
webix.message({ type:"error", text:"Valores inválidos" });
|
|
return
|
|
}
|
|
|
|
$$('form_invoice').clear();
|
|
$$("multi_invoices").setValue("invoices_home")
|
|
webix.message({type:"success", text: "Factura guardada correctamente"});
|
|
|
|
};
|
|
|
|
|
|
function cmd_cancel_invoice_click(id, e, node){
|
|
|
|
$$("multi_invoices").setValue("invoices_home")
|
|
|
|
};
|