Added total cost of item
This commit is contained in:
parent
412dd34229
commit
e01b7420d9
|
@ -41,6 +41,9 @@ module.exports = Self => {
|
|||
i.stems,
|
||||
b.quantity,
|
||||
b.buyingValue,
|
||||
b.freightValue,
|
||||
b.comissionValue,
|
||||
b.packageValue,
|
||||
b.packageFk ,
|
||||
s.id AS supplierFk,
|
||||
s.name AS supplier
|
||||
|
|
|
@ -72,7 +72,21 @@
|
|||
</vn-td>
|
||||
<vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</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.packageFk | dashIfEmpty}}</vn-td>
|
||||
<vn-td class="expendable" title="{{::entry.supplier | dashIfEmpty}}">{{::entry.supplier | dashIfEmpty}}</vn-td>
|
||||
|
|
|
@ -9,4 +9,7 @@ Ignored: Ignorado
|
|||
Provider: Proveedor
|
||||
Cube: Cubo
|
||||
Price Per Unit: Precio Por Unidad
|
||||
Price Per Package: Precio Por Paquete
|
||||
Price Per Package: Precio Por Paquete
|
||||
Freight: Porte
|
||||
Package: Embalaje
|
||||
Comission: Comision
|
Loading…
Reference in New Issue