What Is This Feature?

Batch numbers help track products efficiently. With InventoryPlus, you can automatically generate batch numbers using product attributes like Size, Color, Model, or Brand. This makes it easier to manage inventory, especially for industries like garments, electronics, jewelry, and more.

refer youtube video  here

�️ How to Set Up Attribute-Based Batch Generation

Step 1: Configure Item Group

  1. Go to Group Details under the Items section.
  2. In the Stock Maintenance tab, set Stock Managed By to Batch.
  3. Check the box for Enable Attribute Generation.

Step 2: Enter Attribute Values

  • You can define up to four attributes (e.g., Size, Color, Style, Brand).
  • For each attribute:
  • Enter values separated by commas (e.g., Small,Medium,Large) to show them as dropdowns.
  • Leave the field blank to allow free text entry during batch creation.

Step 3: Set the Batch Format

  • Use the Attribute Template field to define how your batch number should look.
  • Example formats:
  • {Attribute1}-{Attribute2}-{Attribute_serial_no}Large-Red-001
  • BATCH-{Attribute1}BATCH-Medium
  • {Attribute1}_{Attribute_serial_no}Blue_002

Step 4: Customize Attribute Labels (Optional)

  • Go to the Label Settings screen.
  • Change default labels like Attribute1 to meaningful names such as Color, Size, Model, etc.

� How to Generate a Batch Number During Purchase

  1. Add a product from a configured item group in the Purchase screen.
  2. The Attribute Generation screen will automatically open.
  3. Select or enter values for each attribute.
  4. The system will generate a batch number based on your selections.
  5. The batch number is saved and used for tracking.

� Tips & Examples

Attribute Configuration by Industry

Industry

Common Attributes

Garments

Size, Color, Style

Footwear

Size, Color, Width, Type

Jewellery

Karat, Stone, Setting, Weight

Electronics

Model, Variant, Capacity

Any Industry

Brand, Grade, Specification

Example

  • Template: {Attribute1}-{Attribute2}-{Attribute_serial_no}
  • Attributes: Size = Large, Color = Red
  • Result: Large-Red-001

� Maintenance & Troubleshooting

  • If attributes don’t appear in the picker:
    • Check if the item group has attribute generation enabled.
    • Make sure the template uses valid placeholders like {Attribute1}.
  • If dropdowns don’t show:
    • Ensure attribute values are comma-separated.
  • To reset cached values:
  • Click on Refresh the button or Restart the application.



Note :-

� Attribute Field Configuration Guide for general use case

This guide explains how to configure and use attribute fields effectively, including dynamic values, date formatting, and auto-prefill from product data.

� Date Format in Attribute Fields

You can use standard .NET date formats to dynamically generate values:

  • MMYY → Produces numeric month and year (e.g., 0125 for January 2025).
  • MMMyy → Produces abbreviated month and year (e.g., Jan25 for January 2025).

These formats are based on DateTime.Now.ToString(...) and will auto-update based on the current date.

� Dynamic Fields: Landing Cost & Selling Rate

You can use the following keywords in attribute fields to pull pricing data directly from the product screen:

  • lc → Replaced with the product’s Landing Cost
  • rate → Replaced with the product’s Selling Rate

This enables dynamic pricing attributes without manual entry.

� Prefilling Attribute Values from Product Fields

To auto-select attribute values based on product screen input:

  1. Match Field Names
    Create an additional field in the product setup that matches the attribute label.
    Example: If you rename Attribute 1 to Color, then the first additional field in the product must also be named Color.
  2. Enter Values in Product Screen
    Fill in the value for the matching field (e.g., Color) in the product screen.
  3. Auto-Selection in Dropdown
    The attribute dropdown will automatically select the matching value from the product screen entry while adding product.