finish discount per client group per product, WIP check client group name already exist when create or update, WIP delete client group and client group discount
This commit is contained in:
parent
668d55ac79
commit
27ea3d36bb
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
@ -2080,6 +2080,8 @@ class PageController extends Controller {
|
||||
$res['produit'] = json_decode($this->myDb->numberProduit($this->idNextcloud))[0]->c;
|
||||
$res['article'] = json_decode($this->myDb->numberArticle($this->idNextcloud))[0]->c;
|
||||
$res['bibliotheque'] = json_decode($this->myDb->numberBibliotheque($this->idNextcloud))[0]->c;
|
||||
$res['clientGroup'] = json_decode($this->myDb->getClientGroupCount())[0]->c;
|
||||
$res['clientGroupDiscount'] = json_decode($this->myDb->getClientGroupDiscountCount())[0]->c;
|
||||
return json_encode($res);
|
||||
}
|
||||
|
||||
|
||||
@ -2638,5 +2638,15 @@ class Bdd {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getClientGroupCount(){
|
||||
$sql = "SELECT count(*) as c from ".$this->tableprefix."client_group;";
|
||||
return $this->execSQL($sql, array());
|
||||
}
|
||||
|
||||
public function getClientGroupDiscountCount(){
|
||||
$sql = "SELECT count(*) as c from ".$this->tableprefix."client_group_discount;";
|
||||
return $this->execSQL($sql, array());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -79,6 +79,8 @@ export function getStats() {
|
||||
$("#statsproduit").text(res.produit);
|
||||
$("#statsarticles").text(res.article);
|
||||
$("#statsbibliotheque").text(res.bibliotheque);
|
||||
$("#clientGroupStat").text(res.clientGroup);
|
||||
$("#clientGroupDiscountStat").text(res.clientGroupDiscount);
|
||||
}).fail(function (response, code) {
|
||||
showError(response);
|
||||
});
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
<li class="app-navigation-entry"><span class="navmarg icon-contacts-dark"></span><a class="a-entry" href="<?php echo($_['url']['clientGroups']); ?>"><?php p($l->t('Groupes'));?></a>
|
||||
<div class="app-navigation-entry-utils">
|
||||
<ul>
|
||||
<li class="app-navigation-entry-utils-counter"><span id="statsclient"><div class="loader"></div></span></li>
|
||||
<li class="app-navigation-entry-utils-counter"><span id="clientGroupStat"><div class="loader"></div></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
@ -98,7 +98,7 @@
|
||||
<li class="app-navigation-entry"><span class="navmarg icon-category-integration"></span><a href="<?php echo($_['url']['clientGroupDiscount']); ?>">Tarifs groupes</a>
|
||||
<div class="app-navigation-entry-utils">
|
||||
<ul>
|
||||
<li class="app-navigation-entry-utils-counter"><span id="statsclient"><div class="loader"></div></span></li>
|
||||
<li class="app-navigation-entry-utils-counter"><span id="clientGroupDiscountStat"><div class="loader"></div></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user