I attempted to generate a fresh Incoming payment utilizing the service layer, but encountered this issue
G/L account is not valid [PaymentAccounts.AccountCode][line: 1]
Here is my JSON:
{
"DocType": "rAccount",
"DueDate": "2023-03-31",
"DocDate": "2023-03-31",
"ProjectCode": "005",
"BPLID": 1,
"JournalRemarks": "APL APLIC AUT MAIS",
"HandWritten": "tNO",
"Printed": "tNO",
"LocalCurrency": "tNO",
"SplitTransaction": "tNO",
"ApplyVAT": "tNO",
"CurrencyIsLocal": "tNO",
"Proforma": "tNO",
"IsPayToBank": "tNO",
"PaymentPriority": "bopp_Priority_6",
"PaymentType": "bopt_None",
"CashAccount": "1.01.01.01.01",
"CashSum": 28709.6,
"PaymentAccounts": {
"AccountCode": "1.01.01.02.34",
"SumPaid": 28709.6,
"GrossAmount": 28709.6
}
}
An attempt was made to create a new Incoming payment