This commit is contained in:
Taric Xin
2022-02-28 11:38:47 +08:00
parent 2b013e0e48
commit 23df1cc8fc
11 changed files with 59 additions and 17 deletions

View File

@ -46,7 +46,13 @@ export class PushInvoiceComponent implements OnInit {
{ title: '单位', index: 'vatunit', width: 90, className: 'text-center' },
{ title: '数量', index: 'vatqty', width: 90, className: 'text-right' },
{ title: '金额', index: 'vatnotax', width: 90, type: 'currency', format: item => `${this.currencyPipe.transform(item.vatnotax)}` },
{ title: '税率', index: 'vatrate', width: 90, className: 'text-right' },
{
title: '税率',
index: 'vatrate',
width: 90,
className: 'text-right',
format: item => `${item.vatrate ? ((item.vatrate as number) * 100).toFixed(2) : 0}%`
},
{ title: '税额', index: 'vattax', width: 90, type: 'currency', format: item => `${this.currencyPipe.transform(item.vattax)}` }
];
}