网站编辑是什么工作,wordpress如何修改用户名密码,网站优秀网站地址,中国求购信息网NetSuite固定资产模块一直处于功能迭代更新中#xff0c;目前23.2的版本能够支持报表的局部自定义#xff0c;比如增加原值或已折旧期间#xff0c;甚至固定资产自定义字段等。但是当我们在实际项目中#xff0c;会遇到一些挑战#xff0c;例如#xff1a;
固定资产原值…NetSuite固定资产模块一直处于功能迭代更新中目前23.2的版本能够支持报表的局部自定义比如增加原值或已折旧期间甚至固定资产自定义字段等。但是当我们在实际项目中会遇到一些挑战例如
固定资产原值字段是增加上了但是“汇总行”为啥没有数值能否实现“期初、发生、结余”的固定资产报表与资产负债表相呼应能否调整格式因为目前的列都挤在了一起太难看了。
这些问题都不是可以通过前台“报表定制”界面实现的。 当我们深入分析了代码后发现可以通过UI之下的功能来回应上述的需求。
我们来描述一下固定资产报表客制的基本原理。 报表客制UI也就是NetSuite的“Customize FAM Report Template”可以进行客制字段的数据定义这是客制报表数据集的来源。客制字段的命名特征为“_cfN_”。其中N为数字代表不同的固定资产报表类型。系统会生成“XML”格式的客制模板保存在文件柜中。目录因系统设定不同可以在固定资产System Setup中的Report参数“FOLDER TO USE FOR REPORTING (INTERNAL ID) ”中配置。当生成报表时系统会把相应数据按照“报表客制表”定义的数据源拉出然后调用“高级PDF”功能按照“XML客制模板”进行内容输出。“高级PDF”功能就是我们做各类“高级”打印模板的工具。这个工具支持Freemarker所以能做出很多的变化包括编程和格式定义。这对我们是至关重要的。
了解了上述架构我们就可以着眼于XML格式的客制模板了。客制完成后可以在固定资产的System Setup中报表模板中进行选择。 下面是一个“期初、发生、结余”的固定资产报表的模板供参考。
headmeta charsetutf-8 /link nameNotoSansThai typefont subtypeopentype srcNetSuiteFonts/NotoSansThai-Regular.ttf src-boldNetSuiteFonts/NotoSansThai-Bold.ttf src-italicNetSuiteFonts/NotoSansThai-Regular.ttf src-bolditalicNetSuiteFonts/NotoSansThai-Bold.ttf bytes2 /stylebody {font-family: Arial, Verdana, Helvetica, NotoSansThai, stsong, msung, mhei, heiseimin, heiseikakugo, hygothic, hysmyeongjo;font-size: 10px;}/stylemacrolistmacro idpagenump alignrightPage pagenumber/ of totalpages//p/macro/macrolist
/head
body size420mm 297mm footerpagenum#assign lineIndex 0#assign listSize report.recmachcustrecord_assetregister_repparent?size#list report.recmachcustrecord_assetregister_repparent as line#assign lineIndex lineIndex 1#assign lineType line.custrecord_assetregister_linetype#if lineType sub_headerp stylefont-size: 18px; color: #003399Asset Register Report/ptabletrtd colspan20 stylefont-weight: bold; font-size: 12px;p aligncenterFixed Assets Management #if line.custrecord_assetregister_sub ! - ${line.custrecord_assetregister_sub} #if line.custrecord_assetregister_currency ! ${line.custrecord_assetregister_currency}/#if/#if/p/td/trtrtd colspan20p aligncenter${line.custrecord_assetregister_posting}#if line.custrecord_assetregister_acctgbook ! 0 - ${line.custrecord_assetregister_acctgbook}/#if/p/td/trtrtd colspan20p aligncenter${line.custrecord_assetregister_altdep} - ${report.custrecord_assetregisterrep_selected}/p/td/trtrtd colspan20p aligncenter${report.custrecord_assetregisterrep_startdate?string[MMM d, yyyy]} - ${report.custrecord_assetregisterrep_enddate?string[MMM d, yyyy]}br//p/td/trtrtd stylefont-weight: bold; rowspan2p alignleftAsset Type/p/tdtd stylefont-weight: bold; rowspan2p alignleftID/p/tdtd stylefont-weight: bold; rowspan2p alignleftName/p/tdtd stylefont-weight: bold; rowspan2p alignleftDepreciation Start Date/p/tdtd stylefont-weight: bold; rowspan2p alignleftAL/p/tdtd stylefont-weight: bold; rowspan2p alignleftRL/p/tdtd stylefont-weight: bold; colspan3p aligncenterBeginning Balance/p/tdtd stylefont-weight: bold; rowspan2p alignrightAcquisitions/p/tdtd stylefont-weight: bold; rowspan2p alignrightDepreciation/p/tdtd stylefont-weight: bold; rowspan2p alignrightTransfers/p/tdtd stylefont-weight: bold; rowspan2p alignrightRevaluations/p/tdtd stylefont-weight: bold; rowspan2p alignrightDisposals/p/tdtd stylefont-weight: bold; colspan3p aligncenterEnding Balance/p/td/trtrtd stylefont-weight: bold;p aligncenterCost/p/tdtd stylefont-weight: bold;p aligncenterDepreciation/p/tdtd stylefont-weight: bold;p aligncenterNet Book Value/p/tdtd stylefont-weight: bold;p aligncenterCost/p/tdtd stylefont-weight: bold;p aligncenterDepreciation/p/tdtd stylefont-weight: bold;p aligncenterNet Book Value/p/td/tr#elseif lineType horizontal_ruletrtd colspan6/tdtd colspan11 styleborder-top-style: solid; border-top-width: 1px; margin-bottom1px /td/tr#elseif lineType double_horizontal_ruletrtd colspan6/tdtd colspan11 styleborder-top-style: solid; border-top-width: 1px; margin-bottom1px /td/trtrtd colspan6/tdtd colspan11 styleborder-top-style: solid; border-top-width: 1px; margin-bottom4px /td/tr/table #if lineIndex lt listSize-1pbr /br //#if#elsetr#if lineType type_headertd colspan20 br //td#else#if lineType type_totaltd colspan6 /td#elsetdp alignleft${line.custrecord_assetregister_assettype}/p/tdtdp alignleft${line.custrecord_assetregister_assetid}/p/tdtdp alignleft${line.custrecord_assetregister_assetname}/p/tdtdp alignleft${line.custrecord_assetregister_deprstartdate}/p/tdtdp alignleft${line.custrecord_assetregister_assetlife}/p/tdtdp alignleft${line.custrecord_assetregister_assetlife-line.custrecord_cf0_assetlifeunits}/p/td/#if#assign additions line.custrecord_assetregister_additions#assign transfers line.custrecord_assetregister_transfers#assign revaluation line.custrecord_assetregister_revaluation#assign writedown line.custrecord_assetregister_writedown#assign sale line.custrecord_assetregister_sale#assign disposals line.custrecord_assetregister_disposalstdp alignright${line.custrecord_assetregister_begincost?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${line.custrecord_assetregister_begindepr?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${line.custrecord_assetregister_beginbal?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${line.custrecord_assetregister_additions?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${line.custrecord_assetregister_depreciation?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${line.custrecord_assetregister_transfers?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${(revaluationwritedown)?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${(line.custrecord_assetregister_saleline.custrecord_assetregister_disposals)?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${(line.custrecord_assetregister_begincostadditions-transfers-revaluation-writedown-sale-disposals)?string[#,##0.00;(#,##0.00)]}/p/tdtdp alignright${(line.custrecord_assetregister_begindeprline.custrecord_assetregister_depreciation)?string[#,##0.00;(#,##0.00)]}/p/td tdp alignright${line.custrecord_assetregister_netbookvalue?string[#,##0.00;(#,##0.00)]}/p/td/#if/tr/#if/#list#if report.recmachcustrecord_assetregister_repparent_zerov?size gt 0br /p stylefont-size: 10px; font-weight: boldSubsidiaries with zero values/p#list report.recmachcustrecord_assetregister_repparent_zerov as linep stylefont-size: 10px;${line.custrecord_assetregister_sub}/p/#list/#if
/body 如果有任何关于NetSuite的问题欢迎来谈。邮箱servicetruston.group