Difference between revisions of "Invoice new"
Nguyenduyan (talk | contribs) (Created page with "Category:Cost {{HelpFiles}} = Invoice_new = == Syntax == Invoice_new (string invoiceName, number parentResourceId, number eraningUserRId, DateTime invoiceDate, Date...") |
Nguyenduyan (talk | contribs) |
||
Line 27: | Line 27: | ||
== Return type == | == Return type == | ||
Array of Invoice object | Array of Invoice object | ||
+ | |||
+ | |||
+ | {| class="tableintopic" style="border: 1px solid rgb(1, 1, 1); border-collapse: collapse" border="1" cellpadding="2" cellspacing="0" width="875" | ||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="292" | | ||
+ | '''Index''' | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="92" | | ||
+ | '''Data type''' | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="491" | | ||
+ | '''Value''' | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_RESOURCE_ID | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">number</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | Resource id of the group | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_NAME | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">string</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | Name of the group | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_TEMPLATE_RESOURCE_ID | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">number</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | Group template's resource id | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_PARENT_RESOURCE_ID | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">number</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | Parent's resource id | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_TIME_REGISTRATION | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">bool</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | If time registration is allowed on the group | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_MAN_HOURS | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">number</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | The budget time for the group | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_CALCULATED_MAN_HOURS | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">bool</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | If the budget time is calculated based on time set in Team tab | ||
+ | |||
+ | |- align="left" valign="top" | ||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="292" | | ||
+ | GROUP_RULES | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="92" | | ||
+ | <span class="normalise">array</span> | ||
+ | |||
+ | | style="border: 1px solid rgb(1, 1, 1)" width="491" | | ||
+ | Group rules array | ||
+ | |||
+ | |} | ||
== Example == | == Example == |
Revision as of 08:26, 2 January 2018
Invoice_new
Syntax
Invoice_new (string invoiceName, number parentResourceId, number eraningUserRId, DateTime invoiceDate, DateTime dueDate, number templateInvoiceRId);
Arguments
string invoiceName
number parentResourceId
number eraningUserRId
DateTime invoiceDate
DateTime dueDate
number templateInvoiceRId
Return type
Array of Invoice object
Index |
Data type |
Value |
GROUP_RESOURCE_ID |
number |
Resource id of the group |
GROUP_NAME |
string |
Name of the group |
GROUP_TEMPLATE_RESOURCE_ID |
number |
Group template's resource id |
GROUP_PARENT_RESOURCE_ID |
number |
Parent's resource id |
GROUP_TIME_REGISTRATION |
bool |
If time registration is allowed on the group |
GROUP_MAN_HOURS |
number |
The budget time for the group |
GROUP_CALCULATED_MAN_HOURS |
bool |
If the budget time is calculated based on time set in Team tab |
GROUP_RULES |
array |
Group rules array |
Example
//{30,0,test,11088827,2111,False,1,0,0,Empty,10768810,,{2018,1,2,0,0,0,0,1,65},{2018,1,2,0,0,0,0,1,65},{1,1,1,0,0,0,0,1,65},{1,1,1,7,0,0,0,1,65},{},0}