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

Added: TZe_24mm_D.php modified TZe_24mm_A that includes 1D code #16018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aHVzY2g
Copy link

@aHVzY2g aHVzY2g commented Jan 3, 2025

New label format for TZe_24mm that includes all fields of TZe_24mm_A with the addition of the 1D code at the bottom of the label.

TZe_24mm_D

New label format for TZe_24mm that includes all fields of TZe_24mm_A with the addition of the 1D code at the bottom of the label.
@aHVzY2g aHVzY2g requested a review from snipe as a code owner January 3, 2025 10:13
Copy link

welcome bot commented Jan 3, 2025

💖 Thanks for this pull request! 💖

We use semantic commit messages to streamline the release process and easily generate changelogs between versions. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix if it doesn't have one already.

Examples of commit messages with semantic prefixes:

  • Fixed #<issue number>: don't overwrite prevent_default if default wasn't prevented
  • Added #<issue number>: add checkout functionality to assets
  • Improved Asset Checkout: use new notification method for checkout

Things that will help get your PR across the finish line:

  • Document any user-facing changes you've made.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

Copy link

what-the-diff bot commented Jan 3, 2025

PR Summary

  • Creation of a New Class
    A new class named TZe_24mm_D has been introduced in the App\Models\Labels\Tapes\Brother space.
  • Constant Variables Definition
    Several variables that remain constant, such as those related to barcode margins, tags sizes, labels sizes and title sizes have been defined to be used throughout the class.
  • Introduction of New Methods
    • New methods to provide label characteristics and its capabilities such as getUnit(), getWidth(), getSupportAssetTag(), getSupport1DBarcode(), getSupport2DBarcode(), getSupportFields(), getSupportLogo(), getSupportTitle() have been implemented.
    • The preparePDF($pdf) method has been defined for future PDF preparation. It's currently without any operational logic.
    • The write($pdf, $record) method has been implemented for writing content on a PDF document. It includes logic for handling 1D and 2D barcodes, as well as to put text labels and field values based on the provided data.
  • Handling Barcodes
    Procedures have been added to make space for 1D barcodes and to create 2D barcodes if that is present in the provided data.
  • Automated Fields Rendering
    The write method can generate text for labels and field values dynamically, based on the given data.

@snipe
Copy link
Owner

snipe commented Jan 6, 2025

Do we maybe want to try to force those tag/SN/etc bits onto the same line? They look kinda squished in the screenshot. Or maybe see if we can increase the padding just a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants