从 Sage Line 50 数据库检索所有付款
我正在尝试检索 Sage Line 50 数据库中收到/输入的所有付款的列表。我工作的公司是 Sage 开发者计划的成员,因此我可以访问 SDK、帮助文件等,但我一直无法找到有关付款的任何具体信息。
一些 .dta 文件包含对付款的引用(SPLITS.DTA 和 HEADER.DTA)以及发票行。
有谁知道是否有一个单独的文件仅包含付款信息,如果有的话它是什么?或者,我是否必须从 SPLITS/HEADER 文件中提取完整的行列表并按类型过滤它们?
预先非常感谢
I'm trying to retrieve a list of all payments received/entered into a Sage Line 50 database. The company I work for are members of the Sage developer program, so I have access to the SDK, help files and the like but I have been unable to find any specific information regarding payments.
Some of the .dta files contain references to payments (SPLITS.DTA & HEADER.DTA) alongside Invoice rows.
Does anyone know whether or not there is a separate file which contains only payment information, and if so what is it? Alternatively, will I have to pull the full list of rows from the SPLITS/HEADER files and filter them by type?
Many thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
今天下午,我从测试客户的标头和拆分文件中提取了数据,它们包含(据我所知)所有客户活动 - 发票、发票付款和信用都反映在两个数据文件中(拆分数据文件包含更深入的数据),并且可以按银行代码和交易类型进行过滤。
要获取数据 - 首先创建对客户对象的引用,然后从那里链接到所有标题(假设您有现有的连接和工作区)。
然后,您可以使用以下方法从标头对象中提取数据:
其中 ACCOUNT_REF 是 HeaderData 对象中的字段。
使用以下代码获取分割数据
I pulled data from the Header and Split files for a test customer this afternoon, and they contain (as near as I can tell) all customer activity - Invoices, Invoice payments and Credits are all reflected in both data files (the split data file containing more in depth data) and can be filtered by bank_code and transaction type.
To get the data - first create a reference to a customer object and from there link to all of the header (assuming you have an existing connection and workspace).
You can then pull data from the header object using :
Where ACCOUNT_REF is a field in the HeaderData object.
Use the following code to get split data