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.

Invoice new: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
No edit summary
Nguyenduyan (talk | contribs)
No edit summary
Line 28: Line 28:
Array of Invoice object
Array of Invoice object


 
{| class="tableintopic" style="border: 1px solid rgb(1, 1, 1);  border-collapse: collapse" width="875" cellspacing="0" cellpadding="2" border="1"
{| class="tableintopic" style="border: 1px solid rgb(1, 1, 1);  border-collapse: collapse" border="1" cellpadding="2" cellspacing="0" width="875"
|- valign="top" align="left"
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" bgcolor="#c0c0c0" |  
| style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="292" |  
'''Index'''
'''Index'''


| style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="92" |  
| style="border: 1px solid rgb(1, 1, 1)" width="92" bgcolor="#c0c0c0" |  
'''Data type'''
'''Data type'''


| style="border: 1px solid rgb(1, 1, 1)" bgcolor="#c0c0c0" width="491" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" bgcolor="#c0c0c0" |  
'''Value'''
'''Value'''


|- align="left" valign="top"
|- valign="top" align="left"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_RESOURCE_ID
INVOICE_RESOURCE_ID


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
Resource id of the group
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_NAME
INVOICE_PART


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
Name of the group
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_TEMPLATE_RESOURCE_ID
INVOICE_PARENT_RESOURCE_ID


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
Group template's resource id
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_PARENT_RESOURCE_ID
INVOICE_TEMPLATE_RESOURCE_ID


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
Parent's resource id
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_TIME_REGISTRATION
INVOICE_SUBMITTED


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
If time registration is allowed on the group
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_MAN_HOURS
INVOICE_REVENUE_TYPE


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
The budget time for the group
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_CALCULATED_MAN_HOURS
INVOICE_CUSTOMER_RESOURCE_ID


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
If the budget time is calculated based on time set in Team tab
|- valign="top" align="left"
 
|- align="left" valign="top"
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
GROUP_RULES
INVOICE_REPRESENTATIVE_RESOURCE_ID


| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
| 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" |  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
Group rules array
|-
 
|INVOICE_ADDRESSED_TO
|
|
|-
|INVOICE_EARNER
|
|
|-
|INVOICE_REFERENCE
|
|
|-
|INVOICE_INVOICE_DATE
|
|
|-
|INVOICE_DUE_DATE
|
|
|-
|INVOICE_PAID_DATE
|
|
|-
|INVOICE_SUBMITTED_DATE
|
|
|-
|INVOICE_LEDGER
|
|
|-
|INVOICE_TOTAL
|
|
|-
|PROPERTY_COUNT
|
|
|}
|}



Revision as of 07:35, 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

INVOICE_RESOURCE_ID

INVOICE_PART

INVOICE_PARENT_RESOURCE_ID

INVOICE_TEMPLATE_RESOURCE_ID

INVOICE_SUBMITTED

INVOICE_REVENUE_TYPE

INVOICE_CUSTOMER_RESOURCE_ID

INVOICE_REPRESENTATIVE_RESOURCE_ID

INVOICE_ADDRESSED_TO
INVOICE_EARNER
INVOICE_REFERENCE
INVOICE_INVOICE_DATE
INVOICE_DUE_DATE
INVOICE_PAID_DATE
INVOICE_SUBMITTED_DATE
INVOICE_LEDGER
INVOICE_TOTAL
PROPERTY_COUNT

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}