fix some bugs from tahesab

This commit is contained in:
2026-07-29 14:58:33 +03:30
parent 77e0ba0bb3
commit dd77e2ce81
5 changed files with 123 additions and 6 deletions
+9 -2
View File
@@ -195,11 +195,12 @@ class AccountingProductDocMapper
}
/**
* برچسب ستون type جدول sync زرین: تعدادی → سکه/شمش/کارساخته؛ وزنی → طلا/نقره.
* برچسب ستون type جدول sync (ته‌حساب / زرین):
* تعدادی → سکه / شمش / کارساخته؛ وزنی → طلا / نقره.
*
* @param Product|array|null $product
*/
public function zarinSyncTypeLabel($product): string
public function syncTypeLabel($product): string
{
if ($this->isCountDoc($product)) {
return $this->kindLabel($this->resolveKind($product));
@@ -208,6 +209,12 @@ class AccountingProductDocMapper
return $this->metalLabel($product);
}
/** @deprecated از syncTypeLabel استفاده کنید */
public function zarinSyncTypeLabel($product): string
{
return $this->syncTypeLabel($product);
}
/**
* Resolve Product model from storeTrade/walletGold payload.
*/