fix some bugs from accounting 4

This commit is contained in:
2026-07-28 18:40:06 +03:30
parent d81cea3d4f
commit 5122d7e2b7
2 changed files with 271 additions and 97 deletions
@@ -194,6 +194,20 @@ class AccountingProductDocMapper
return 'طلا';
}
/**
* برچسب ستون type جدول sync زرین: تعدادی → سکه/شمش/کارساخته؛ وزنی → طلا/نقره.
*
* @param Product|array|null $product
*/
public function zarinSyncTypeLabel($product): string
{
if ($this->isCountDoc($product)) {
return $this->kindLabel($this->resolveKind($product));
}
return $this->metalLabel($product);
}
/**
* Resolve Product model from storeTrade/walletGold payload.
*/