static void TIDgetTax(Args _args)
{
TaxAmount tax;
CustInvoiceTrans CustInvoiceTrans;
;
CustInvoiceTrans = CustInvoiceTrans::findRecId(5637155209);
tax = Tax::calcTaxAmount(CustInvoiceTrans.TaxGroup, CustInvoiceTrans.TaxItemGroup, CustInvoiceTrans.InvoiceDate,
CustInvoiceTrans.CurrencyCode, CustInvoiceTrans.LineAmount, TaxModuleType::FreeTxtInvoice);
info(strfmt('%1', tax));
}
Get tax amount through x++
与本文相关的文章
- D365 财务与运营——请求的性能计数器不是自定义计数器,必须初始化为只读/The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly. D365
- D365: Get worker email address by purpose in X++
- D365: Get dimension value owner name in X++
- D365: 如何在 X++ 中设置表单控件值/D365: How to set form control value in X++
- VendPackingSlipTrans and VendInoiceTrans 表关系/Relation between VendPackingSlipTrans and VendInoiceTRans D365 Finance and Operation
- D365: 如何在 X++ 中获取工作流受让人/D365: How to get workflow assignee in X++