export thanato statistic
This commit is contained in:
parent
82da31c2e5
commit
c6d6d7300d
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
@ -2545,11 +2545,11 @@ class PageController extends Controller {
|
||||
|
||||
public function exportThanatoStatistic($thanatoIdsToExport){
|
||||
if(empty($thanatoIdsToExport)){
|
||||
return null;
|
||||
return "";
|
||||
}
|
||||
$exportData = $this->myDb->getExportThanatoStatisticData($thanatoIdsToExport);
|
||||
if(empty($exportData)){
|
||||
return null;
|
||||
return "";
|
||||
}
|
||||
try{
|
||||
$current_config = json_decode($this->myDb->getConfiguration($this->idNextcloud));
|
||||
|
||||
@ -1765,9 +1765,6 @@ class Bdd {
|
||||
$currentDistance = 0;
|
||||
if($ligneTrajetList[$i]['lieu_id'] != NULL){
|
||||
$last_point = $ligneTrajetList[$i];
|
||||
if($ligneTrajetList[$i]['lieu'] =="Antsahavola"){
|
||||
var_dump($ligneTrajetList[$i]);
|
||||
}
|
||||
}
|
||||
if($last_point['lieu_id'] != NULL && $ligneTrajetList[$i+1]['lieu_id'] != NULL){
|
||||
$currentDistance = $this->calcul_distance(
|
||||
|
||||
@ -435,18 +435,18 @@ $('body').on('click', '#exportThanatoData', function () {
|
||||
thanatoIdsToExport: thanatoIdsToExport
|
||||
}
|
||||
|
||||
// $.ajax({
|
||||
// url: baseUrl + '/exportThanatoDataThisMonth',
|
||||
// type: 'POST',
|
||||
// contentType: 'application/json',
|
||||
// data: JSON.stringify(exportThanatoPayload)
|
||||
// }).done(function (response) {
|
||||
// let datatable = new DataTable('.tabledt');
|
||||
// Devis.loadDevisDT(datatable);
|
||||
// showSuccess(t('gestion', "Devis exported to facture"));
|
||||
// }).fail(function (response, code) {
|
||||
// showError(t('gestion', "Please select devis to facture"));
|
||||
// });
|
||||
$.ajax({
|
||||
url: baseUrl + '/thanatopracteur/exportThanatoStatistic',
|
||||
type: 'POST',
|
||||
contentType: 'application/json',
|
||||
data: JSON.stringify(exportThanatoPayload)
|
||||
}).done(function (response) {
|
||||
let datatable = new DataTable('.tabledt');
|
||||
Thanatopracteur.loadThanatoDT(datatable);
|
||||
showSuccess(t('gestion', "Statistic exported : " + response));
|
||||
}).fail(function (response, code) {
|
||||
showError(t('gestion', "Please select thanato to export"));
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user