test
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-04-06 09:59:45 +02:00
parent 34126119e2
commit faab024e24
2 changed files with 9 additions and 3 deletions

View File

@ -63,7 +63,7 @@
<vn-th field="visible" shrink>Visible</vn-th>
<vn-th field="available" shrink>Available</vn-th>
<vn-th field="itemFk">Id</vn-th>
<vn-th field="quantity" shrink>Quantity</vn-th>
<vn-th href="#" field="quantity" shrink>Quantity</vn-th>
<vn-th field="concept" expand>Item</vn-th>
<vn-th field="price" number>Price</vn-th>
<vn-th field="discount" number>Disc</vn-th>
@ -73,7 +73,7 @@
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="sale in $ctrl.sales">
<vn-tr ng-repeat="sale in $ctrl.sales | orderBy:'$ctrl.ordenarPor'">
<vn-td shrink>
<vn-check tabindex="-1"
ng-model="sale.checked">
@ -232,7 +232,7 @@
vn-tooltip="Add item"
vn-bind="+"
icon="add_circle"
ng-click="$ctrl.add()"
ng-click="$ctrl.cambiarOrden('quantity')"
disabled="!$ctrl.isEditable">
</vn-icon-button>
</div>

View File

@ -7,6 +7,12 @@ class Controller extends Section {
super($element, $);
this._sales = [];
this.manaCode = 'mana';
this.ordenarPor = 'quantity';
}
cambiarOrden(columna) {
this.ordenarPor = columna;
console.log(this.ordenarPor);
}
get manaCode() {