Fix asnad via root POST like Hamkar; show accounting code label.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 11:27:42 +03:30
co-authored by Cursor
parent 3ab102ddae
commit 8f9a00f319
3 changed files with 42 additions and 20 deletions
@@ -84,9 +84,9 @@ export class TahesabDocumentsService {
);
const link = await this.requireLink(organizationId, personId, resolvedId);
const { api } = await this.connections.getApi(organizationId, resolvedId);
// Count_Last = -1 مثل همکار (مانده ردیف‌به‌ردیف / همه در بازه)
// Count_Last مثل تست‌های همکار (۲۰۰) — مقدار ۱- گاهی سمت ته‌حساب خطا/۵۰۲ می‌دهد
const raw = await api.doListAsnad(
-1,
200,
link.moshtariCode,
fromNorm,
toNorm,