Merge pull request 'refs #5949 itemRecycle' (!1656) from 5949-recycledPlasticItem into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1656 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
0d308ec8ad
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE `vn`.`item` ADD recycledPlastic INT NULL;
|
||||||
|
ALTER TABLE `vn`.`item` ADD nonRecycledPlastic INT NULL;
|
|
@ -145,7 +145,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const stmts = [];
|
const stmts = [];
|
||||||
const stmt = new ParameterizedSQL(
|
const stmt = new ParameterizedSQL(
|
||||||
`SELECT
|
`SELECT
|
||||||
i.id,
|
i.id,
|
||||||
i.image,
|
i.image,
|
||||||
i.name,
|
i.name,
|
||||||
|
@ -164,6 +164,8 @@ module.exports = Self => {
|
||||||
i.stemMultiplier,
|
i.stemMultiplier,
|
||||||
i.typeFk,
|
i.typeFk,
|
||||||
i.isFloramondo,
|
i.isFloramondo,
|
||||||
|
i.recycledPlastic,
|
||||||
|
i.nonRecycledPlastic,
|
||||||
pr.name AS producer,
|
pr.name AS producer,
|
||||||
it.name AS typeName,
|
it.name AS typeName,
|
||||||
it.workerFk AS buyerFk,
|
it.workerFk AS buyerFk,
|
||||||
|
|
|
@ -125,6 +125,12 @@
|
||||||
"minPrice": {
|
"minPrice": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"recycledPlastic": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"nonRecycledPlastic": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
"packingOut": {
|
"packingOut": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
|
|
@ -82,6 +82,8 @@
|
||||||
vn-name="expence"
|
vn-name="expence"
|
||||||
initial-data="$ctrl.item.expense">
|
initial-data="$ctrl.item.expense">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
data="originsData"
|
data="originsData"
|
||||||
label="Origin"
|
label="Origin"
|
||||||
|
@ -91,21 +93,6 @@
|
||||||
vn-name="origin"
|
vn-name="origin"
|
||||||
initial-data="$ctrl.item.origin">
|
initial-data="$ctrl.item.origin">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
<vn-textfield
|
|
||||||
label="Reference"
|
|
||||||
ng-model="$ctrl.item.comment"
|
|
||||||
vn-name="comment"
|
|
||||||
rule>
|
|
||||||
</vn-textfield>
|
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
|
||||||
<vn-input-number
|
|
||||||
min="0"
|
|
||||||
label="Relevancy"
|
|
||||||
ng-model="$ctrl.item.relevancy"
|
|
||||||
vn-name="relevancy"
|
|
||||||
rule>
|
|
||||||
</vn-input-number>
|
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
min="0"
|
min="0"
|
||||||
label="Size"
|
label="Size"
|
||||||
|
@ -113,6 +100,21 @@
|
||||||
vn-name="size"
|
vn-name="size"
|
||||||
rule>
|
rule>
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
|
<vn-textfield
|
||||||
|
label="Reference"
|
||||||
|
ng-model="$ctrl.item.comment"
|
||||||
|
vn-name="comment"
|
||||||
|
rule>
|
||||||
|
</vn-textfield>
|
||||||
|
<vn-input-number
|
||||||
|
min="0"
|
||||||
|
label="Relevancy"
|
||||||
|
ng-model="$ctrl.item.relevancy"
|
||||||
|
vn-name="relevancy"
|
||||||
|
rule>
|
||||||
|
</vn-input-number>
|
||||||
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
<vn-input-number
|
<vn-input-number
|
||||||
min="0"
|
min="0"
|
||||||
label="stems"
|
label="stems"
|
||||||
|
@ -126,22 +128,6 @@
|
||||||
ng-model="$ctrl.item.stemMultiplier"
|
ng-model="$ctrl.item.stemMultiplier"
|
||||||
vn-name="stemMultiplier">
|
vn-name="stemMultiplier">
|
||||||
</vn-input-number>
|
</vn-input-number>
|
||||||
</vn-horizontal>
|
|
||||||
<vn-horizontal>
|
|
||||||
<vn-input-number
|
|
||||||
min="0"
|
|
||||||
label="Weight/Piece"
|
|
||||||
ng-model="$ctrl.item.weightByPiece"
|
|
||||||
vn-name="weightByPiece"
|
|
||||||
rule>
|
|
||||||
</vn-input-number>
|
|
||||||
<vn-input-number
|
|
||||||
min="0"
|
|
||||||
label="Units/Box"
|
|
||||||
ng-model="$ctrl.item.packingOut"
|
|
||||||
vn-name="packingOut"
|
|
||||||
rule>
|
|
||||||
</vn-input-number>
|
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
label="Generic"
|
label="Generic"
|
||||||
url="Items/withName"
|
url="Items/withName"
|
||||||
|
@ -167,6 +153,36 @@
|
||||||
</append>
|
</append>
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
<vn-horizontal>
|
||||||
|
<vn-input-number
|
||||||
|
min="0"
|
||||||
|
label="Weight/Piece"
|
||||||
|
ng-model="$ctrl.item.weightByPiece"
|
||||||
|
vn-name="weightByPiece"
|
||||||
|
rule>
|
||||||
|
</vn-input-number>
|
||||||
|
<vn-input-number
|
||||||
|
min="0"
|
||||||
|
label="Units/Box"
|
||||||
|
ng-model="$ctrl.item.packingOut"
|
||||||
|
vn-name="packingOut"
|
||||||
|
rule>
|
||||||
|
</vn-input-number>
|
||||||
|
<vn-input-number
|
||||||
|
min="0"
|
||||||
|
label="Recycled Plastic"
|
||||||
|
ng-model="$ctrl.item.recycledPlastic"
|
||||||
|
vn-name="recycledPlastic"
|
||||||
|
rule>
|
||||||
|
</vn-input-number>
|
||||||
|
<vn-input-number
|
||||||
|
min="0"
|
||||||
|
label="Non recycled plastic"
|
||||||
|
ng-model="$ctrl.item.nonRecycledPlastic"
|
||||||
|
vn-name="nonRecycledPlastic"
|
||||||
|
rule>
|
||||||
|
</vn-input-number>
|
||||||
|
</vn-horizontal>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textarea
|
<vn-textarea
|
||||||
label="Description"
|
label="Description"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Reference: Referencia
|
Reference: Referencia
|
||||||
Full name calculates based on tags 1-3. Is not recommended to change it manually: >-
|
Full name calculates based on tags 1-3. Is not recommended to change it manually: >-
|
||||||
El nombre completo se calcula
|
El nombre completo se calcula
|
||||||
basado en los tags 1-3.
|
basado en los tags 1-3.
|
||||||
No se recomienda cambiarlo manualmente
|
No se recomienda cambiarlo manualmente
|
||||||
Is active: Activo
|
Is active: Activo
|
||||||
Expense: Gasto
|
Expense: Gasto
|
||||||
|
@ -13,4 +13,6 @@ Is shown at website, app that this item cannot travel (wreath, palms, ...): Se m
|
||||||
Multiplier: Multiplicador
|
Multiplier: Multiplicador
|
||||||
Generic: Genérico
|
Generic: Genérico
|
||||||
This item does need a photo: Este artículo necesita una foto
|
This item does need a photo: Este artículo necesita una foto
|
||||||
Do photo: Hacer foto
|
Do photo: Hacer foto
|
||||||
|
Recycled Plastic: Plástico reciclado
|
||||||
|
Non recycled plastic: Plástico no reciclado
|
||||||
|
|
|
@ -113,9 +113,21 @@
|
||||||
<vn-label-value label="Weight/Piece"
|
<vn-label-value label="Weight/Piece"
|
||||||
value="{{$ctrl.summary.item.weightByPiece}}">
|
value="{{$ctrl.summary.item.weightByPiece}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Units/Box"
|
||||||
|
value="{{$ctrl.summary.item.packingOut}}">
|
||||||
|
</vn-label-value>
|
||||||
<vn-label-value label="Expense"
|
<vn-label-value label="Expense"
|
||||||
value="{{$ctrl.summary.item.expense.name}}">
|
value="{{$ctrl.summary.item.expense.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Generic"
|
||||||
|
value="{{$ctrl.summary.item.genericFk}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Recycled Plastic"
|
||||||
|
value="{{$ctrl.summary.item.recycledPlastic}}">
|
||||||
|
</vn-label-value>
|
||||||
|
<vn-label-value label="Non recycled plastic"
|
||||||
|
value="{{$ctrl.summary.item.nonRecycledPlastic}}">
|
||||||
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one name="tags">
|
<vn-one name="tags">
|
||||||
<h4 ng-show="$ctrl.isBuyer || $ctrl.isReplenisher">
|
<h4 ng-show="$ctrl.isBuyer || $ctrl.isReplenisher">
|
||||||
|
|
Loading…
Reference in New Issue