feat(shayegan): per-product item code and auto customer Account/Put

This commit is contained in:
2026-10-28 16:51:47 +03:30
parent 25ee47b473
commit 9528056036
10 changed files with 344 additions and 13 deletions
@@ -979,6 +979,13 @@ class ProductController extends SuperController
unset($data['cash_fee_buy_is_percent'], $data['cash_fee_sell_is_percent']);
}
if (! Product::hasShayeganItemColumn()) {
unset($data['shayegan_item_number']);
} elseif (array_key_exists('shayegan_item_number', $data)) {
$item = trim((string) $data['shayegan_item_number']);
$data['shayegan_item_number'] = $item === '' ? null : $item;
}
return $data;
}