4213-item.summary #1011

Merged
joan merged 5 commits from 4213-item.summary into dev 2022-07-01 09:25:07 +00:00
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1 @@
ALTER TABLE `vn`.`item` MODIFY COLUMN description TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
vicent marked this conversation as resolved Outdated
Outdated
Review

Puedes utilizar tipo text, en vez de un varchar()

Puedes utilizar tipo text, en vez de un varchar()

View File

@ -63,7 +63,6 @@ module.exports = Self => {
stmt = new ParameterizedSQL( stmt = new ParameterizedSQL(
`CREATE TEMPORARY TABLE tmp.item `CREATE TEMPORARY TABLE tmp.item
(PRIMARY KEY (id)) (PRIMARY KEY (id))
ENGINE = MEMORY
SELECT SELECT
i.*, i.*,
p.name AS producerName, p.name AS producerName,

View File

@ -117,6 +117,23 @@
value="{{tag.value}}"> value="{{tag.value}}">
</vn-label-value> </vn-label-value>
</vn-one> </vn-one>
<vn-one name="description" ng-if="$ctrl.summary.item.description">
vicent marked this conversation as resolved Outdated
Outdated
Review

Quizas estaría bien ocultar el bloque si no tiene una descripción, para evitar que se muestre un encabezado pero sin contenido.

Quizas estaría bien ocultar el bloque si no tiene una descripción, para evitar que se muestre un encabezado pero sin contenido.
<h4 ng-show="$ctrl.isBuyer">
<a
ui-sref="item.card.basicData({id:$ctrl.item.id})"
target="_self">
<span translate vn-tooltip="Go to">Description</span>
</a>
</h4>
<h4
translate
ng-show="!$ctrl.isBuyer">
Description
</h4>
<p>
{{$ctrl.summary.item.description}}
</p>
</vn-one>
<vn-one name="tax"> <vn-one name="tax">
<h4 ng-show="$ctrl.isBuyer || $ctrl.isAdministrative"> <h4 ng-show="$ctrl.isBuyer || $ctrl.isAdministrative">
<a <a