从 Sage Line 50 数据库检索所有付款

发布于 2024-12-06 21:54:16 字数 264 浏览 1 评论 0原文

我正在尝试检索 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

や莫失莫忘 2024-12-13 21:54:16

今天下午,我从测试客户的标头和拆分文件中提取了数据,它们包含(据我所知)所有客户活动 - 发票、发票付款和信用都反映在两个数据文件中(拆分数据文件包含更深入的数据),并且可以按银行代码和交易类型进行过滤。

要获取数据 - 首先创建对客户对象的引用,然后从那里链接到所有标题(假设您有现有的连接和工作区)。

dynamic workspace = this._workspaces[workspaceName];
dynamic customer = workspace.CreateObject("SalesRecord");

bool added = customer.AddNew();

customer.MoveFirst(); //find first customer

dynamic headerObject = customer.Link;

bool headerFound = headerObject.MoveFirst(); //use .MoveNext() to cycle headers

然后,您可以使用以下方法从标头对象中提取数据:

string AccountRef = headerObject.Fields.Item("ACCOUNT_REF").Value;

其中 ACCOUNT_REF 是 HeaderData 对象中的字段。

使用以下代码获取分割数据

dynamic splitObject = headerObject.Link;

bool splitFound = splitObject.MoveFirst()  //and so on

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).

dynamic workspace = this._workspaces[workspaceName];
dynamic customer = workspace.CreateObject("SalesRecord");

bool added = customer.AddNew();

customer.MoveFirst(); //find first customer

dynamic headerObject = customer.Link;

bool headerFound = headerObject.MoveFirst(); //use .MoveNext() to cycle headers

You can then pull data from the header object using :

string AccountRef = headerObject.Fields.Item("ACCOUNT_REF").Value;

Where ACCOUNT_REF is a field in the HeaderData object.

Use the following code to get split data

dynamic splitObject = headerObject.Link;

bool splitFound = splitObject.MoveFirst()  //and so on
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文