Skip to content

Commit

Permalink
Release 0.7.1
Browse files Browse the repository at this point in the history
Merge pull request #214 from vrlkacha/0.7.1
  • Loading branch information
vrlk authored Sep 6, 2016
2 parents e5fb2f7 + 0706b6c commit 258b31a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ src/typings/
app.asar.unpacked/

# Dev Dependencies from @ndkcha
src/app/automint.js
src/app/automint*.js
nd_tests/
2 changes: 1 addition & 1 deletion src/app/app.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
var payreceived = (service.partialpayment) ? service.partialpayment.total : ((service.status == "paid") ? service.cost : 0);
cd = angular.lowercase(cd).replace(' ', '-');
if (service._deleted == true) {
if (cachedoc[cd][sId] != undefined)
if (cachedoc[cd] && cachedoc[cd][sId] != undefined)
isChanged = true;
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/customers/customers-add.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
}

function checkExistingCustomerMobile(ev) {
if (vm.user.mobile == '')
if (vm.user.mobile == undefined || vm.user.mobile == '')
return;
vm.loadingBasedOnMobile = true;
amCustomers.getCustomerByMobile(vm.user.mobile).then(success).catch(failure);
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/customers/customers-edit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@


function checkExistingCustomerMobile(ev) {
if (vm.user.mobile == '')
if (vm.user.mobile == undefined || vm.user.mobile == '')
return;
vm.loadingBasedOnMobile = true;
amCustomers.getCustomerByMobile(vm.user.mobile).then(success).catch(failure);
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/services/services-add.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1599,6 +1599,8 @@

// change user based on mobile number
function selectUserBasedOnMobile() {
if (vm.user.mobile == undefined)
return;
if (vm.user.mobile != '' && (vm.user.id == '' || flagGetUserBasedOnMobile)) {
vm.changeUserMobile(false);
vm.loadingBasedOnMobile = true;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/services/services-edit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
}

function selectUserBasedOnMobile() {
if (vm.user.mobile != '') {
if (vm.user.mobile != undefined || vm.user.mobile != '') {
vm.loadingBasedOnMobile = true;
amServices.getCustomerByMobile(vm.user.mobile).then(success).catch(failure);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/login/login.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
isLoggedIn = true;
if ((res.data.code != undefined) && (res.data.code == 13))
processMintCode(-404);
amLogin.saveActivationDetails(vm.code, res.data.starts, res.data.ends).then(proceed).catch(failure);
amLogin.saveActivationDetails(code, res.data.starts, res.data.ends).then(proceed).catch(failure);
}

function success(res) {
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Automint",
"version": "0.7.0",
"version": "0.7.1",
"description": "CRM by Automint",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 258b31a

Please sign in to comment.