gtPRBalanceAdjustment
This function creates new or updates Balance Adjustments 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 Balance Adjustment 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 balance adjustment is for.
BalNumber
Unique Balance Adjustment Number. If you are creating a new balance adjustment and codes are automatically generated, this can be left blank. If this is set and is a valid code, then when this function is run, the balance adjustment records are updated. When this is left as blank, a new balance adjustment record is created.
Branch
Enter the branch for the balance adjustment.
BalanceDate
Enter the date of the balance adjustment.
TransType
Enter the transaction type for the balance adjustment.
Quantity
Enter the quantity for the balance adjustment line.
Amount
Enter the amount for the balance adjustment line.
Narration
Enter any required narration.
EntitledDate
Enter the Entitled Date for the balance adjustment line.
AccruedDate
Enter the Accrued Date for the balance adjustment line.