|
@@ -568,7 +568,7 @@ function addItemToRaport(event) {
|
|
|
// default_db/BI_audit_ENERGA_RUM_UMOWY/BI_audit_ENERGA_RUM_UMOWY
|
|
|
// default_db/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI
|
|
|
// default_db/BI_audit_ENERGA_FAKTURY/BI_audit_ENERGA_FAKTURY
|
|
|
-
|
|
|
+ var valueUrl = global.location.hash;
|
|
|
swal({
|
|
|
title: "Dodaj osobę lub podmiot",
|
|
|
width: (getWindowWidth() * 0.8),
|
|
@@ -595,11 +595,13 @@ function addItemToRaport(event) {
|
|
|
return response.json();
|
|
|
}).then(function(result) {
|
|
|
if(result.type === "success"){
|
|
|
+ if(valueUrl === "PRACOWNICY"){
|
|
|
urlFetchPracownicy(1);
|
|
|
+ }else{
|
|
|
urlFetchKontrahenci(1);
|
|
|
- resolve(result.msg);
|
|
|
+ }
|
|
|
}
|
|
|
- p5UI__notifyAjaxCallback(result)
|
|
|
+ p5UI__notifyAjaxCallback(result);
|
|
|
})
|
|
|
}
|
|
|
}),
|