cashbook
This commit is contained in:
parent
9c6bff597e
commit
e5b52e1c59
@ -208,12 +208,16 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.copyModel = function (p) {
|
$scope.copyModel = function (p) {
|
||||||
console.log(p);
|
//console.log(p);
|
||||||
|
var inc = $scope.incomeExpenseType.filter((inc)=>inc.ID == p.Type);
|
||||||
|
console.log(inc);
|
||||||
|
$scope.incexp = inc[0];
|
||||||
|
|
||||||
$scope.myModel = {
|
$scope.myModel = {
|
||||||
"id": p.ID,
|
"id": p.ID,
|
||||||
"date": p.Date,
|
"date": p.Date,
|
||||||
"incomeExpense": p.Name,
|
"incomeExpense": p.Name,
|
||||||
"type": p.Type,
|
"type":$scope.incexp.ID,
|
||||||
"amount": p.Amount,
|
"amount": p.Amount,
|
||||||
"status": p.Status,
|
"status": p.Status,
|
||||||
"description": p.Description,
|
"description": p.Description,
|
||||||
|
|||||||
@ -254,12 +254,24 @@
|
|||||||
<label for="form-field-select-2">
|
<label for="form-field-select-2">
|
||||||
Type <span class="symbol required"></span>
|
Type <span class="symbol required"></span>
|
||||||
</label>
|
</label>
|
||||||
|
<!--
|
||||||
<select class="form-control" ng-init="getType(p.Name)" tabindex="1" class="cs-select cs-skin-elastic" name="editType" ng-model="myModel.type"
|
<select class="form-control" ng-init="getType(p.Name)" tabindex="1" class="cs-select cs-skin-elastic" name="editType" ng-model="myModel.type"
|
||||||
required>
|
required>
|
||||||
<option value="" disabled selected>Select Type</option>
|
<option value="" disabled selected>Select Type</option>
|
||||||
<option ng-repeat="typeItem in getTypes" ng-selected="typeItem.ID == p.Type" value="{{typeItem.ID}}">{{typeItem.TypeName}}</option>
|
<option ng-repeat="typeItem in getTypes" ng-selected="typeItem.ID == p.Type" value="{{typeItem.ID}}">{{typeItem.TypeName}}</option>
|
||||||
</select>
|
</select> -->
|
||||||
|
|
||||||
|
|
||||||
|
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="addType" ng-model="myModel.type" required>
|
||||||
|
|
||||||
|
|
||||||
|
<optgroup ng-repeat="typeName in incomeExpenseName" label="{{typeName.ListName}}">
|
||||||
|
<option ng-repeat="incexpType in incomeExpenseType" ng-if="typeName.ListCode == incexpType.TypeID" value="{{incexpType.ID}}" ng-selected="incexp.ID == incexpType.ID">{{incexpType.TypeName}}</option>
|
||||||
|
|
||||||
|
</optgroup>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<span class="error text-small block" ng-if="Form.editType.$dirty && Form.editType.$error.required">Type is Required</span>
|
<span class="error text-small block" ng-if="Form.editType.$dirty && Form.editType.$error.required">Type is Required</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user