sum is now made on backend and html amends
This commit is contained in:
parent
393b9ba38c
commit
3c8ed85e69
|
@ -40,6 +40,10 @@ module.exports = Self => {
|
||||||
b.weight,
|
b.weight,
|
||||||
i.stems,
|
i.stems,
|
||||||
b.quantity,
|
b.quantity,
|
||||||
|
b.buyingValue +
|
||||||
|
b.freightValue +
|
||||||
|
b.comissionValue +
|
||||||
|
b.packageValue AS cost,
|
||||||
b.buyingValue,
|
b.buyingValue,
|
||||||
b.freightValue,
|
b.freightValue,
|
||||||
b.comissionValue,
|
b.comissionValue,
|
||||||
|
|
|
@ -72,20 +72,16 @@
|
||||||
</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 translate number
|
<vn-td number
|
||||||
class="expendable"
|
class="expendable">
|
||||||
ng-init="
|
<span
|
||||||
itemTotalCost =
|
|
||||||
entry.buyingValue +
|
|
||||||
entry.packageValue +
|
|
||||||
entry.freightValue +
|
|
||||||
entry.comissionValue"
|
|
||||||
vn-tooltip="
|
vn-tooltip="
|
||||||
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue| dashIfEmpty}} +
|
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue| dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Package')}}: {{::entry.packageValue| dashIfEmpty}} +
|
{{::$ctrl.$t('Package')}}: {{::entry.packageValue| dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue| dashIfEmpty}} +
|
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue| dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue| dashIfEmpty}}">
|
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue| dashIfEmpty}}">
|
||||||
{{itemTotalCost | dashIfEmpty}}
|
{{::entry.cost | dashIfEmpty}}
|
||||||
|
</span>
|
||||||
</vn-td>
|
</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>
|
||||||
|
|
Loading…
Reference in New Issue