Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User getTransactionHistory: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:User_Functions]]
[[Category:User_Functions]]
 
{{CGscriptMethods_Template|ReturnType=Array of Array|Name=<nowiki>User_getTransactionHistory</nowiki>|Parameters=
= User_getTransactionHistory =
{{CGscriptParameters_Template|Type=int|Name=<nowiki>userResourceId</nowiki>|Description=<nowiki>Resource id of user</nowiki>}}
Get user transaction history
|InClass=<nowiki>User</nowiki>
 
|Description=<nowiki>Get history of all transactions for a user.</nowiki>}}
== Syntax ==
{{CGscriptMethods_Template|ReturnType=Array of Array|Name=<nowiki>User_getTransactionHistory</nowiki>|Parameters=
 
{{CGscriptParameters_Template|Type=int|Name=<nowiki>userResourceId</nowiki>|Description=<nowiki>Resource id of user</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=<nowiki>fromDate</nowiki>|Description=<nowiki>Date to calculate from</nowiki>|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=<nowiki>toDate</nowiki>|Description=<nowiki>Date to calculate to</nowiki>}}
User_getTransactionHistory(number userResourceId);
|InClass=<nowiki>User</nowiki>
 
|Description=<nowiki>Get history of all transactions for a user in period.</nowiki>}}
== Arguments ==
 
number ''userResourceId''


== Return type ==
== Return type ==

Latest revision as of 05:11, 2 June 2020

  • Array of Array User_getTransactionHistory(int userResourceId "Resource id of user") - Get history of all transactions for a user.
  • Array of Array User_getTransactionHistory(int userResourceId "Resource id of user", array fromDate "Date to calculate from", array toDate "Date to calculate to") - Get history of all transactions for a user in period.

Return type

Array of transactions, ordered by their date. Each transaction contains: Id, Date, Amount, Description, Type of Transaction, Order_class

Example

User_getTransactionHistory (10768810);
/*
{
{134911,{2013,9,4,10,50,7,300,36},100,Tak for deltagelse i undersøgelse (CG0373),ManualTransaction,Empty},
{731452,{2018,6,21,8,33,53,700,25},-30,Pay point for order:11494,OrderTransaction,Order},
...}
*/