gtPROpeningBalance
This function creates new or updates Opening Balance records in Greentree Desktop.
This function updates both headers and lines. If the header details (down to BalanceDate) are the same as a record in Greentree, that record is updated. Otherwise a new Opening Balance Record 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 opening balance record is for.
BalNumber
The Unique Opening Balance Number. If you are creating a new opening balance 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 opening balance records are updated. When this is left as blank, a new opening balance record is created.
Branch
Enter the branch for the opening balance.
BalanceDate
Enter the date of the opening balance.
TransType
Enter the transaction type for the opening balance line. This must be a balance tracked transaction type.
Quantity
Enter the quantity for the opening balance line.
Amount
Enter the amount for the opening balance line.
Narration
Enter any required narration.
EntitledDate
Enter the Entitled Date for the opening balance line.
AccruedDate
Enter the Accrued Date for the opening balance line.