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:
@@ -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> = [
|
||||
|
||||
Reference in New Issue
Block a user