REFACTOR(node_version)! update to v20 #1553
|
@ -625,6 +625,7 @@ export default {
|
||||||
selectAllSalesCheckbox: 'vn-ticket-sale vn-thead vn-check',
|
selectAllSalesCheckbox: 'vn-ticket-sale vn-thead vn-check',
|
||||||
secondSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(2) vn-check[ng-model="sale.checked"]',
|
secondSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(2) vn-check[ng-model="sale.checked"]',
|
||||||
thirdSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(3) vn-check[ng-model="sale.checked"]',
|
thirdSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(3) vn-check[ng-model="sale.checked"]',
|
||||||
|
fourthSaleCheckbox: 'vn-ticket-sale vn-tr:nth-child(4) vn-check[ng-model="sale.checked"]',
|
||||||
deleteSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="delete"]',
|
deleteSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="delete"]',
|
||||||
transferSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="call_split"]',
|
transferSaleButton: 'vn-ticket-sale vn-tool-bar > vn-button[icon="call_split"]',
|
||||||
moveToTicketInput: 'form vn-input-number[ng-model="$ctrl.transfer.ticketId"] input',
|
moveToTicketInput: 'form vn-input-number[ng-model="$ctrl.transfer.ticketId"] input',
|
||||||
|
|
|
@ -251,7 +251,6 @@ describe('Ticket Edit sale path', () => {
|
||||||
await page.waitToClick(selectors.ticketSales.moreMenu);
|
await page.waitToClick(selectors.ticketSales.moreMenu);
|
||||||
await page.waitToClick(selectors.ticketSales.moreMenuCreateClaim);
|
await page.waitToClick(selectors.ticketSales.moreMenuCreateClaim);
|
||||||
await page.waitToClick(selectors.globalItems.acceptButton);
|
await page.waitToClick(selectors.globalItems.acceptButton);
|
||||||
await page.waitToClick(selectors.globalItems.acceptButton);
|
|
||||||
await page.waitForState('claim.card.basicData');
|
await page.waitForState('claim.card.basicData');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -172,5 +172,6 @@
|
||||||
"Comment added to client": "Comment added to client",
|
"Comment added to client": "Comment added to client",
|
||||||
"This ticket is already a refund": "This ticket is already a refund",
|
"This ticket is already a refund": "This ticket is already a refund",
|
||||||
"A claim with that sale already exists": "A claim with that sale already exists",
|
"A claim with that sale already exists": "A claim with that sale already exists",
|
||||||
"ASSIGN_ZONE_FIRST": "Assign zone first"
|
"Can't transfer claimed sales": "Can't transfer claimed sales",
|
||||||
|
"Invalid quantity": "Invalid quantity"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -29,7 +34,7 @@
|
||||||
<vn-autocomplete vn-one required="true"
|
<vn-autocomplete vn-one required="true"
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
<form name="form" ng-submit="watcher.submit()" class="vn-w-md">
|
||||||
<vn-card class="vn-pa-lg">
|
<vn-card class="vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -152,14 +157,14 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Warehouse Out"
|
label="Warehouse Out"
|
||||||
ng-model="$ctrl.travelFilterParams.warehouseOutFk"
|
ng-model="$ctrl.travelFilterParams.warehouseOutFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Warehouse In"
|
label="Warehouse In"
|
||||||
ng-model="$ctrl.travelFilterParams.warehouseInFk"
|
ng-model="$ctrl.travelFilterParams.warehouseInFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<vn-descriptor-content
|
<vn-descriptor-content
|
||||||
module="item"
|
module="item"
|
||||||
description="$ctrl.item.name"
|
description="$ctrl.item.name"
|
||||||
|
@ -108,7 +113,9 @@
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.warehouseFk"
|
ng-model="$ctrl.warehouseFk"
|
||||||
url="Warehouses">
|
data="warehouses"
|
||||||
|
show-field="name"
|
||||||
|
value="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</tpl-body>
|
</tpl-body>
|
||||||
<tpl-buttons>
|
<tpl-buttons>
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -35,7 +40,9 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses">
|
data="warehouses"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal class="vn-px-lg">
|
<vn-horizontal class="vn-px-lg">
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -83,7 +88,7 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses">
|
data="warehouses">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Agencies"
|
||||||
|
data="agencies">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -17,7 +22,7 @@
|
||||||
ng-model="filter.agencyModeFk">
|
ng-model="filter.agencyModeFk">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
url="Agencies"
|
data="agencies"
|
||||||
label="Agency Agreement"
|
label="Agency Agreement"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -79,7 +84,7 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -101,6 +101,9 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const query = `CALL vn.ticket_recalc(?)`;
|
||||||
|
await Self.rawSql(query, [refundTicket.id], myOptions);
|
||||||
|
|
||||||
if (tx) await tx.commit();
|
if (tx) await tx.commit();
|
||||||
|
|
||||||
return refundTicket;
|
return refundTicket;
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
|
@ -49,7 +54,9 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id"
|
||||||
required="true">
|
required="true">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
order="name"
|
order="name"
|
||||||
auto-load="true">
|
auto-load="true">
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form name="form">
|
<form name="form">
|
||||||
<vn-card class="vn-w-md vn-pa-lg">
|
<vn-card class="vn-w-md vn-pa-lg">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
|
@ -25,7 +30,7 @@
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
required="true"
|
required="true"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id"
|
value-field="id"
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -29,7 +34,7 @@
|
||||||
<vn-autocomplete vn-one required="true"
|
<vn-autocomplete vn-one required="true"
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-date-picker
|
<vn-date-picker
|
||||||
|
@ -83,7 +88,9 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
|
show-field="name"
|
||||||
|
value-field="id"
|
||||||
required="true">
|
required="true">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -61,20 +61,20 @@
|
||||||
</vn-th>
|
</vn-th>
|
||||||
<vn-th shrink></vn-th>
|
<vn-th shrink></vn-th>
|
||||||
<vn-th shrink></vn-th>
|
<vn-th shrink></vn-th>
|
||||||
<vn-th shrink>Visible</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('visible')" field="visible" shrink>Visible</vn-th>
|
||||||
<vn-th shrink>Available</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('available')" field="available" shrink>Available</vn-th>
|
||||||
<vn-th>Id</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('itemFk')" field="itemFk">Id</vn-th>
|
||||||
<vn-th shrink>Quantity</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('quantity')" field="quantity" shrink>Quantity</vn-th>
|
||||||
<vn-th expand>Item</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('concept')" field="concept" expand>Item</vn-th>
|
||||||
<vn-th number>Price</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('price')" field="price" number>Price</vn-th>
|
||||||
<vn-th number>Disc</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('discount')" field="discount" number>Disc</vn-th>
|
||||||
<vn-th number>Amount</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('amount')" field="amount" number>Amount</vn-th>
|
||||||
<vn-th shrink>Packaging</vn-th>
|
<vn-th ng-click="$ctrl.sortBy('itemPackingTypeFk')" field="itemPackingTypeFk" shrink>Packaging</vn-th>
|
||||||
<vn-th shrink></vn-th>
|
<vn-th shrink></vn-th>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-thead>
|
</vn-thead>
|
||||||
<vn-tbody>
|
<vn-tbody>
|
||||||
<vn-tr ng-repeat="sale in $ctrl.sales">
|
<vn-tr ng-repeat="sale in $ctrl.sales | orderBy: $ctrl.propertyName:$ctrl.reverse">
|
||||||
<vn-td shrink>
|
<vn-td shrink>
|
||||||
<vn-check tabindex="-1"
|
<vn-check tabindex="-1"
|
||||||
ng-model="sale.checked">
|
ng-model="sale.checked">
|
||||||
|
@ -481,7 +481,7 @@
|
||||||
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
|
on-accept="$ctrl.transferSales($ctrl.transfer.ticketId)">
|
||||||
</vn-confirm>
|
</vn-confirm>
|
||||||
|
|
||||||
<vn-confirm
|
<vn-confirm
|
||||||
vn-id="claimConfirm"
|
vn-id="claimConfirm"
|
||||||
question="Do you want to continue?"
|
question="Do you want to continue?"
|
||||||
message="Claim out of time"
|
message="Claim out of time"
|
||||||
|
@ -491,7 +491,7 @@
|
||||||
<vn-confirm
|
<vn-confirm
|
||||||
vn-id="claimSure"
|
vn-id="claimSure"
|
||||||
message="Do you want to create a claim?"
|
message="Do you want to create a claim?"
|
||||||
on-accept="$ctrl.createClaim()">
|
on-accept="$ctrl.onCreateClaimAccepted()">
|
||||||
</vn-confirm>
|
</vn-confirm>
|
||||||
|
|
||||||
<vn-menu vn-id="moreOptions">
|
<vn-menu vn-id="moreOptions">
|
||||||
|
@ -513,9 +513,9 @@
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
name="claim"
|
name="claim"
|
||||||
ng-click="claimSure.show()"
|
ng-click="$ctrl.createClaim()"
|
||||||
ng-if="$ctrl.isClaimable">
|
ng-if="$ctrl.isClaimable">
|
||||||
Add claim
|
Add claim
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
name="reserve"
|
name="reserve"
|
||||||
|
|
|
@ -10,6 +10,11 @@ class Controller extends Section {
|
||||||
this.getConfig();
|
this.getConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sortBy(propertyName) {
|
||||||
|
this.reverse = (this.propertyName === propertyName) ? !this.reverse : false;
|
||||||
|
this.propertyName = propertyName;
|
||||||
|
}
|
||||||
|
|
||||||
get manaCode() {
|
get manaCode() {
|
||||||
return this._manaCode;
|
return this._manaCode;
|
||||||
}
|
}
|
||||||
|
@ -203,7 +208,7 @@ class Controller extends Section {
|
||||||
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
|
||||||
this.$.claimConfirm.show();
|
this.$.claimConfirm.show();
|
||||||
else
|
else
|
||||||
this.onCreateClaimAccepted();
|
this.$.claimSure.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
onCreateClaimAccepted() {
|
onCreateClaimAccepted() {
|
||||||
|
|
|
@ -758,5 +758,15 @@ describe('Ticket', () => {
|
||||||
expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
|
expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('sortBy()', () => {
|
||||||
|
it('should set reverse and propertyName properties', () => {
|
||||||
|
const propertyName = 'id';
|
||||||
|
controller.sortBy(propertyName);
|
||||||
|
|
||||||
|
expect(controller.propertyName).toEqual(propertyName);
|
||||||
|
expect(controller.reverse).toEqual(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
<form id="manifold-form" ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
<vn-horizontal class="vn-px-lg vn-pt-lg">
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -102,7 +107,7 @@
|
||||||
vn-one
|
vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="filter.warehouseFk"
|
ng-model="filter.warehouseFk"
|
||||||
url="Warehouses">
|
data="warehouses">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
vn-one
|
vn-one
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<div class="search-panel">
|
<div class="search-panel">
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form ng-submit="$ctrl.onSearch()">
|
<form ng-submit="$ctrl.onSearch()">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textfield
|
<vn-textfield
|
||||||
|
@ -52,14 +57,14 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse Out"
|
label="Warehouse Out"
|
||||||
ng-model="filter.warehouseOutFk"
|
ng-model="filter.warehouseOutFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse In"
|
label="Warehouse In"
|
||||||
ng-model="filter.warehouseInFk"
|
ng-model="filter.warehouseInFk"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -30,7 +35,7 @@
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
|
@ -17,6 +17,7 @@ describe('Client', () => {
|
||||||
$element = $compile(`<vn-worker-dms-create></vn-worker-dms-create>`)($rootScope);
|
$element = $compile(`<vn-worker-dms-create></vn-worker-dms-create>`)($rootScope);
|
||||||
controller = $element.controller('vnWorkerDmsCreate');
|
controller = $element.controller('vnWorkerDmsCreate');
|
||||||
controller._worker = {id: 1101, name: 'Bruce wayne'};
|
controller._worker = {id: 1101, name: 'Bruce wayne'};
|
||||||
|
$httpBackend.whenRoute('GET', `Warehouses?filter=%7B%7D`).respond([{$oldData: {}}]);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('worker() setter', () => {
|
describe('worker() setter', () => {
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.dms">
|
data="$ctrl.dms">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
<vn-crud-model
|
||||||
|
auto-load="true"
|
||||||
|
url="Warehouses"
|
||||||
|
data="warehouses">
|
||||||
|
</vn-crud-model>
|
||||||
<form
|
<form
|
||||||
name="form"
|
name="form"
|
||||||
ng-submit="$ctrl.onSubmit()"
|
ng-submit="$ctrl.onSubmit()"
|
||||||
|
@ -29,7 +34,7 @@
|
||||||
<vn-autocomplete vn-one required="true"
|
<vn-autocomplete vn-one required="true"
|
||||||
label="Warehouse"
|
label="Warehouse"
|
||||||
ng-model="$ctrl.dms.warehouseId"
|
ng-model="$ctrl.dms.warehouseId"
|
||||||
url="Warehouses"
|
data="warehouses"
|
||||||
show-field="name"
|
show-field="name"
|
||||||
value-field="id">
|
value-field="id">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
|
Loading…
Reference in New Issue