purchTotals purchTotals = PurchTotals::newPurchTable(PurchTable::find('000869')); purchTotals.calc(); purchTotals.tax().sourceSingleLine(true, true); taxAmountCur = purchTotals.tax().totalTaxAmountSingleLine(purchLine.TableId, purchLine.RecId, true, false); // or from TaxJournalTrans Select TaxJournalTrans where TaxJournalTrans.InventTransId == purchLine.InventTransId;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter