finish delete client group and client group discount
This commit is contained in:
parent
27ea3d36bb
commit
77450861bc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -224,6 +224,8 @@ $('body').on('click', '.deleteItem', function () {
|
|||||||
if (modifier === "article") { Article.loadArticleDT(dt); }
|
if (modifier === "article") { Article.loadArticleDT(dt); }
|
||||||
if (modifier === "defunt") { Defunt.loadDefuntDT(dt); }
|
if (modifier === "defunt") { Defunt.loadDefuntDT(dt); }
|
||||||
if (modifier === "bibliotheque") { Bibliotheque.loadBibliothequeDT(dt); }
|
if (modifier === "bibliotheque") { Bibliotheque.loadBibliothequeDT(dt); }
|
||||||
|
if (modifier === "clientGroup") { ClientGroup.loadClientGroupDatatable(dt); }
|
||||||
|
if (modifier === "clientGroupDiscount") { ClientGroupDiscount.loadClientGroupDiscountDatatable(dt); }
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').on('change', '.listClient,.listDevis', function () {
|
$('body').on('change', '.listClient,.listDevis', function () {
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export class ClientGroup {
|
|||||||
let clientGroupRow = [
|
let clientGroupRow = [
|
||||||
'<div>' + this.id + '</div>',
|
'<div>' + this.id + '</div>',
|
||||||
'<div class="editable" data-table="client_group" data-column="client_group_name" data-id="' + this.id + '">' + this.clientGroupName + '</div>',
|
'<div class="editable" data-table="client_group" data-column="client_group_name" data-id="' + this.id + '">' + this.clientGroupName + '</div>',
|
||||||
'<div data-id=' + this.id + ' data-table="client_group" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
'<div data-modifier="clientGroup" data-id=' + this.id + ' data-table="client_group" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
||||||
];
|
];
|
||||||
|
|
||||||
return clientGroupRow;
|
return clientGroupRow;
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import { showError } from "@nextcloud/dialogs";
|
import { showError } from "@nextcloud/dialogs";
|
||||||
import { baseUrl, cur, LoadDT, showDone } from "../modules/mainFunction.mjs";
|
import { baseUrl, cur, LoadDT, showDone } from "../modules/mainFunction.mjs";
|
||||||
import { ClientGroup } from "./clientGroup.mjs";
|
|
||||||
|
|
||||||
export class ClientGroupDiscount {
|
export class ClientGroupDiscount {
|
||||||
|
|
||||||
@ -42,7 +41,7 @@ export class ClientGroupDiscount {
|
|||||||
'<div class="selectClientGroupList" data-table="client_group_discount" data-column="fk_client_group_id" data-id="' + this.id + '" data-current="' + this.clientGroupId + '">' + this.clientGroupName + '</div>',
|
'<div class="selectClientGroupList" data-table="client_group_discount" data-column="fk_client_group_id" data-id="' + this.id + '" data-current="' + this.clientGroupId + '">' + this.clientGroupName + '</div>',
|
||||||
'<div class="selectProductsList" data-table="client_group_discount" data-column="fk_produit_id" data-id="' + this.id + '" data-current="' + this.productId + '">' + this.productReference + '</div>',
|
'<div class="selectProductsList" data-table="client_group_discount" data-column="fk_produit_id" data-id="' + this.id + '" data-current="' + this.productId + '">' + this.productReference + '</div>',
|
||||||
'<div class="editableNumeric" data-table="client_group_discount" data-column="ht_amount" data-id="' + this.id + '">' + cur.format(this.htAmount) + '</div>',
|
'<div class="editableNumeric" data-table="client_group_discount" data-column="ht_amount" data-id="' + this.id + '">' + cur.format(this.htAmount) + '</div>',
|
||||||
'<div data-id=' + this.id + ' data-table="client_group_discount" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
'<div data-modifier="clientGroupDiscount" data-id=' + this.id + ' data-table="client_group_discount" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
||||||
];
|
];
|
||||||
|
|
||||||
return clientGroupDiscountRow;
|
return clientGroupDiscountRow;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user