Difference between revisions of "Invoice new"

From Catglobe Wiki
Jump to: navigation, search
(Tag: visualeditor)
(Return type)
(Tag: visualeditor)
Line 43: Line 43:
 
INVOICE_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" | number
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Resource Id of Invoice
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_PART
 
INVOICE_PART
  
| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="92" | string
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Name of Invoice
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_PARENT_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" | number
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice parent resource Id
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_TEMPLATE_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" | number
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice template Resource Id
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_SUBMITTED
 
INVOICE_SUBMITTED
  
| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="92" | boolean
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice is submitted or not
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_REVENUE_TYPE
 
INVOICE_REVENUE_TYPE
  
| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="92" | number
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice Revenue type
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_CUSTOMER_RESOURCE_ID
 
INVOICE_CUSTOMER_RESOURCE_ID
  
| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="92" | number
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice Customer Resource Id
 
|- valign="top" align="left"
 
|- valign="top" align="left"
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
| style="border: 1px solid rgb(1, 1, 1)" width="292" |  
 
INVOICE_REPRESENTATIVE_RESOURCE_ID
 
INVOICE_REPRESENTATIVE_RESOURCE_ID
  
| style="border: 1px solid rgb(1, 1, 1)" width="92" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="92" | number
  
| style="border: 1px solid rgb(1, 1, 1)" width="491" |  
+
| style="border: 1px solid rgb(1, 1, 1)" width="491" | Invoice representative resource Id
 
|-
 
|-
 
|INVOICE_ADDRESSED_TO
 
|INVOICE_ADDRESSED_TO
 
|
 
|
|
+
|Invoice address to
 
|-
 
|-
 
|INVOICE_EARNER
 
|INVOICE_EARNER
|
+
|number
|
+
|Invoice earner Resource Id
 
|-
 
|-
 
|INVOICE_REFERENCE
 
|INVOICE_REFERENCE
|
+
|string
|
+
|Invoice reference
 
|-
 
|-
 
|INVOICE_INVOICE_DATE
 
|INVOICE_INVOICE_DATE
|
+
|dateTime arrray
|
+
|Invoice date
 
|-
 
|-
 
|INVOICE_DUE_DATE
 
|INVOICE_DUE_DATE
|
+
|dateTime array
|
+
|Due date
 
|-
 
|-
 
|INVOICE_PAID_DATE
 
|INVOICE_PAID_DATE
|
+
|dateTime array
|
+
|Paid date
 
|-
 
|-
 
|INVOICE_SUBMITTED_DATE
 
|INVOICE_SUBMITTED_DATE
|
+
|dateTime array
|
+
|submitted date
 
|-
 
|-
 
|INVOICE_LEDGER
 
|INVOICE_LEDGER
|
+
|array of LedgerEntry object
|
+
|[[LedgerEntry new|LedgerEntry]]
 
|-
 
|-
 
|INVOICE_TOTAL
 
|INVOICE_TOTAL
|
+
|number
|
+
|Invoice total
|-
 
|PROPERTY_COUNT
 
|
 
|
 
 
|}
 
|}
  

Revision as of 04:18, 11 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

number Resource Id of Invoice

INVOICE_PART

string Name of Invoice

INVOICE_PARENT_RESOURCE_ID

number Invoice parent resource Id

INVOICE_TEMPLATE_RESOURCE_ID

number Invoice template Resource Id

INVOICE_SUBMITTED

boolean Invoice is submitted or not

INVOICE_REVENUE_TYPE

number Invoice Revenue type

INVOICE_CUSTOMER_RESOURCE_ID

number Invoice Customer Resource Id

INVOICE_REPRESENTATIVE_RESOURCE_ID

number Invoice representative resource Id
INVOICE_ADDRESSED_TO Invoice address to
INVOICE_EARNER number Invoice earner Resource Id
INVOICE_REFERENCE string Invoice reference
INVOICE_INVOICE_DATE dateTime arrray Invoice date
INVOICE_DUE_DATE dateTime array Due date
INVOICE_PAID_DATE dateTime array Paid date
INVOICE_SUBMITTED_DATE dateTime array submitted date
INVOICE_LEDGER array of LedgerEntry object LedgerEntry
INVOICE_TOTAL number Invoice total

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}