Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lots): remove incorrect header #7303

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions client/src/modules/stock/entry/modals/lots.modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
popover-append-to-body="true">
<i class="text-primary fa fa-info-circle"></i>
</span>

<input
class="form-control"
type="number"
Expand All @@ -34,7 +34,7 @@
ng-model-options="{ '*' : '$inherit' }"
min="0">
</div>

<div class="form-group">
<label class="control-label" translate>FORM.LABELS.PACK_SIZE</label>
<span
Expand All @@ -54,7 +54,7 @@
required
min="1">
</div>

<div class="form-group">
<label translate>FORM.LABELS.PACKAGE_UNIT_COST</label>
<span
Expand All @@ -63,7 +63,7 @@
popover-trigger="'mouseenter'"
popover-append-to-body="true">
<i class="text-primary fa fa-info-circle"></i>
</span>
</span>
<div ng-if="$ctrl.isCostEditable" class="input-group">
<input
class="form-control"
Expand All @@ -90,14 +90,14 @@
</div>
</div>
</div>

<div class="form-group">
<label class="control-label" translate>FORM.LABELS.GLOBAL_QUANTITY</label>

<div ng-if="$ctrl.entryType === 'transfer_reception'">
<span class="form-control-static">{{ $ctrl.stockLine.quantity }}</span>
</div>

<input
ng-if="$ctrl.isCostEditable"
class="form-control"
Expand All @@ -107,18 +107,18 @@
ng-model-options="{ '*' : '$inherit' }"
min="0">
</div>

<div class="form-group">
<label translate>STOCK.UNIT_COST</label>
<span ng-if="$ctrl.stockLine.wacValue" class="text-primary">
<i class="fa fa-info-circle"></i>&nbsp;
<span translate>STOCK.WAC_NOTIFICATION</span> : <b>{{ $ctrl.wacValue | currency: $ctrl.currencyId }}</b>
</span>

<div ng-if="!$ctrl.isCostEditable">
<span class="form-control-static">{{ $ctrl.stockLine.unit_cost }} {{ $ctrl.currency.label }} </span>
</div>

<div ng-if="$ctrl.isCostEditable" class="input-group">
<input
class="form-control"
Expand All @@ -130,9 +130,9 @@
ng-model-options="{ updateOn: 'blur', '*' : '$inherit' }">
<span class="input-group-addon">{{ $ctrl.currency.symbol }}</span>
</div>

<div ng-if="$ctrl.stockLine.wac" class="text-primary"><i class="fa fa-info-circle"></i>&nbsp;<span translate>STOCK.USE_OF_STOCK_WAC</span></div>

</div>
</uib-tab>

Expand All @@ -151,7 +151,7 @@
<p class="help-block" translate>LOTS.ENABLE_FAST_INSERT_DESCRIPTION</p>
</div>
</div>

<div class="form-group" bh-has-permission="$ctrl.bhConstants.actions.EDIT_LOT">
<div class="checkbox">
<label>
Expand All @@ -167,7 +167,7 @@
<p class="help-block" translate>LOTS.ENABLE_CORRECTING_LOT_EXPIRATION_DATES_DESCRIPTION</p>
</div>
</div>

<div ng-if="!$ctrl.isTransfer" class="form-group">
<div class="checkbox">
<label>
Expand All @@ -183,7 +183,7 @@
<p class="help-block" translate>LOTS.ENABLE_GLOBAL_DESCRIPTION_AND_EXPIRATION_DESCRIPTION</p>
</div>
</div>

<div ng-if="$ctrl.allowMultiplePackagingPurchase" class="form-group">
<div class="checkbox">
<label>
Expand All @@ -197,8 +197,8 @@
</label>
<p class="help-block" translate>LOTS.MAKE_STOCK_ENTRY_PACKAGING_DESCRIPTION</p>
</div>
</div>
</div>

<div ng-if="$ctrl.enableGlobalDescriptionAndExpiration" class="form-group row">
<div class="col-xs-6">
<label for="lot-description" translate>STOCK.GLOBAL_LOT_DESCRIPTION</label>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="ui-grid-cell-contents" translate>{{ row.entity.unit_type }}</div>
<div class="ui-grid-cell-contents" ng-if="!row.groupHeader" translate>{{ row.entity.unit_type }}</div>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍