inventory:clone-unit-measuresClones rows from unit_measures where company_id = {from} into company_id = {to}. Skips codes that already exist on the target (per unique (company_id, code)).
php artisan inventory:clone-unit-measures --to={companyId}
php artisan inventory:clone-unit-measures --from=1 --to={companyId}
php artisan inventory:clone-unit-measures --from=1 --to={companyId} --dry-run
php artisan inventory:clone-unit-measures --from=1 --to={companyId} --all-status
| Option | Description |
|---|---|
--from |
Source company ID (default 1, template catalog) |
--to |
Target company ID (required) |
--all-status |
Clone inactive rows, not only status = A |
--dry-run |
Preview counts without inserting |
--json |
Machine-readable output |
unit-measures-mass import if the tenant should start from the standard template.App\Console\Commands\Inventory\Master\UnitMeasures\CloneUnitMeasuresCommandDomain\Inventory\Master\UnitMeasure\CloneUnitMeasuresAction