Skip to content

Commit

Permalink
remove not necessary barcode in migration file and enhance barcode do…
Browse files Browse the repository at this point in the history
…cument
  • Loading branch information
mbayopanda committed Jan 27, 2022
1 parent 3a69ccb commit 7c04c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<!-- body -->
<div class="text-center">
{{#if metadata.enterprise.settings.enable_barcodes}}
<small>{{ details.inventory_text }} - {{ details.label }}</small><br>
<small>{{ details.inventory_text }}</small><br>
<small>{{translate 'FORM.LABELS.CODE'}}: {{ details.code }}, {{translate 'FORM.LABELS.LOT'}}: {{ details.label }}</small><br>
<span>{{> barcode value=barcode}}</span><br>
<small><strong>{{ barcode }}</strong></small>

Expand Down
3 changes: 0 additions & 3 deletions server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ UPDATE report SET `report_key` = 'analysis_auxiliary_cashbox', `title_key` = 'RE
UPDATE unit SET
`name` = 'Analysis of Cashbox', `key` = 'REPORT.ANALYSIS_AUX_CASHBOX.TITLE', `description` = 'Analysis of auxiliary cashbox', `path` = '/reports/analysis_auxiliary_cashbox'
WHERE path = '/reports/analysis_auxiliary_cashboxes';

-- regenerate barcodes for lots
UPDATE lot SET barcode = CONCAT('LT', LEFT(HEX(lot.uuid), 8));

0 comments on commit 7c04c5b

Please sign in to comment.