yayasoft / ytour

ytour
2 stars 0 forks source link

manager always has changes even though user didn't change anything in voucher popup #312

Open novice3030 opened 9 years ago

novice3030 commented 9 years ago

the save changes button in voucher popup should be disabled if no changes are made in the manager but when you open a voucher from the order accounting table the manager already has changes even though the user didn't change anything. please investigate what changes are made in the manager the let us know we will then decide how we want to deal with that

AlexSin15 commented 9 years ago

VoucherPopUpController.js

function updateTotalVCHR Line 795

The function updateTotalVCHR call in function init() (Line 969, Line 973).

Problem in the next lines: $scope.order.SaleAccountingInfo.TotalVCHR += amount;

$scope.order.CostAccountingInfo.TotalVCHR += amount;

$scope.service.ProviderAccountingInfo.CostAccountingInfo.TotalVCHR += amount;