Added total cost of item

This commit is contained in:
jorgebl 2021-03-24 13:54:29 +01:00
parent 412dd34229
commit e01b7420d9
3 changed files with 22 additions and 2 deletions

View File

@ -41,6 +41,9 @@ module.exports = Self => {
i.stems, i.stems,
b.quantity, b.quantity,
b.buyingValue, b.buyingValue,
b.freightValue,
b.comissionValue,
b.packageValue,
b.packageFk , b.packageFk ,
s.id AS supplierFk, s.id AS supplierFk,
s.name AS supplier s.name AS supplier

View File

@ -72,7 +72,21 @@
</vn-td> </vn-td>
<vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</vn-td> <vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</vn-td>
<vn-td number>{{::entry.quantity}}</vn-td> <vn-td number>{{::entry.quantity}}</vn-td>
<vn-td number class="expendable">{{::entry.buyingValue | dashIfEmpty}}</vn-td> <vn-td translate number
class="expendable"
ng-init="
itemCostTotal =
entry.buyingValue +
entry.packageValue +
entry.freightValue +
entry.comissionValue"
vn-tooltip="
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue| dashIfEmpty}} +
{{::$ctrl.$t('Package')}}: {{::entry.packageValue| dashIfEmpty}} +
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue| dashIfEmpty}} +
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue| dashIfEmpty}}">
{{itemCostTotal | dashIfEmpty}}
</vn-td>
<vn-td number>{{::entry.weight | dashIfEmpty}}</vn-td> <vn-td number>{{::entry.weight | dashIfEmpty}}</vn-td>
<vn-td number>{{::entry.packageFk | dashIfEmpty}}</vn-td> <vn-td number>{{::entry.packageFk | dashIfEmpty}}</vn-td>
<vn-td class="expendable" title="{{::entry.supplier | dashIfEmpty}}">{{::entry.supplier | dashIfEmpty}}</vn-td> <vn-td class="expendable" title="{{::entry.supplier | dashIfEmpty}}">{{::entry.supplier | dashIfEmpty}}</vn-td>

View File

@ -9,4 +9,7 @@ Ignored: Ignorado
Provider: Proveedor Provider: Proveedor
Cube: Cubo Cube: Cubo
Price Per Unit: Precio Por Unidad Price Per Unit: Precio Por Unidad
Price Per Package: Precio Por Paquete Price Per Package: Precio Por Paquete
Freight: Porte
Package: Embalaje
Comission: Comision