feat(tahesab): polish asnad invoice PDF and prior balance

Compute حساب قبل from asnad before this doc date/number, add in-app preview layout, and leave a blank mesghal line for handwriting after print.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-24 21:47:46 +03:30
co-authored by Cursor
parent 1ba352f127
commit 2d690b4c04
6 changed files with 1364 additions and 143 deletions
+1
View File
@@ -1046,6 +1046,7 @@ watch(() => route.query.tab, readTab, { immediate: true });
<PersonAssetsPanel
:person-id="id"
:person-name="fullName"
:person-phone="phoneNumber"
@link-changed="onTahesabLinkChanged"
/>
</div>
@@ -53,7 +53,7 @@ import {
parseLocalInput,
toFaDigits,
} from '@/lib/jalali';
import { formatMoney } from '@/lib/money';
import { formatTahesabBedBes } from '@/lib/tahesab';
import { useCustomerGroups } from '@/lib/customer-groups';
import JalaliDateInput from '@/components/JalaliDateInput.vue';
@@ -124,8 +124,7 @@ function formatNum(n: number | null | undefined) {
}
function formatMali(n: number | null | undefined) {
if (n == null) return '—';
return formatMoney(n, 'IRR');
return formatTahesabBedBes(n);
}
const columns: TableColumnsType<TahesabAsnadLineDto> = [