gtPRJournal
This function creates new or updates Journals in Greentree Desktop.
This function updates both headers and lines. If the header details (down to PaymentDate) are the same as a record in Greentree, that record is updated. Otherwise a new Journal is created. The transaction lines are always creating new lines, not updating existing lines.
Company
The company code that the record belongs to.
EmpCode
The employee code that this journal is for.
PayNumber
Unique Pay Number. If you are creating a new journal and codes are automatically generated, this can be left blank. If this is set and is a valid code, then when this function runs, the journal is updated. When this is left as blank, a new journal is created.
Branch
Enter the branch for the journal.
PayDate
Enter the pay date of the journal.
PaymentDate
Enter the payment date of the journal.
TransType
Enter the transaction type for the journal.
Authority
Enter the authority for the journal.
ExternalRef
Enter the external reference for the journal.
Quantity
Enter the quantity for the journal.
Amount
Enter the amount for the journal.
Narration
Enter any required narration.