Version: {
AcumaticaBuildVersion: 22.114.0029,
OemBuildVersion: 2022.114.203.2690,
DatabaseVersion: 2022.114.203.2690
},
PUT: /entity/Default/20.200.001/Check
{
"Vendor": {
"Value": "A1",
"Error": null
},
"PaymentMethod": {
"Value": "AUTODISBUR",
"Error": null
},
"CashAccount": {
"Value": "100010",
"Error": null
},
"PaymentRef": {
"Value": "8ed73344409a4a6f84afcf846f3bbc84",
"Error": null
},
"ApplicationDate": null,
"Description": {
"Value": "[Fleet Batch: 000001]",
"Error": null
},
"PaymentAmount": {
"Value": 486.94,
"Error": null
},
"Status": null,
"ReferenceNbr": null,
"Type": null,
"Details": [
{
"DocType": {
"Value": "Bill",
"Error": null
},
"ReferenceNbr": {
"Value": "207668",
"Error": null
},
"AmountPaid": null,
"Id": null,
"RowNumber": null,
"LastModifiedDateTime": null,
"Note": null,
"Error": null
}
],
"Id": null,
"RowNumber": null,
"LastModifiedDateTime": null,
"Note": null,
"Error": null
}
returns
{
"id": "a1e17e0a-c8f2-ed11-ab3d-0a64d1455776",
"rowNumber": 1,
"note": {
"value": ""
},
"ApplicationDate": {
"value": "2023-05-15T00:00:00+00:00"
},
"CashAccount": {
"value": "100010"
},
"CurrencyID": {
"value": "AUD"
},
"Description": {
"value": "[Fleet Batch: 000001]"
},
"Details": [],
"Hold": {
"value": false
},
"LastModifiedDateTime": {
"value": "2023-05-15T02:27:41.374419+00:00"
},
"PaymentAmount": {
"value": 486.94
},
"PaymentMethod": {
"value": "AUTODISBUR"
},
"PaymentRef": {},
"ReferenceNbr": {
"value": "095825"
},
"Status": {
"value": "Balanced"
},
"Type": {
"value": "Check"
},
"UnappliedBalance": {
"value": 0.00
},
"Vendor": {
"value": "A1"
},
"custom": {}
}
The issue I’m having is that the PaymentRef value is not being stored on the Check when it’s created.
When I create a check manually via the UI, when I select the Vendor, if the Payment Ref field has a value, it’s cleared due to the default payment method being EFT.
The EFT payment method requires additional processing to use the Batch Payment process. This uses the Payment Ref field to store a check number so it’s not editable in the UI.
The AUTODISBUR payment method used for this check does not require additional processing and is configured to require a Unique Payment Ref.
If the remove the default Payment Method for the Vendor, the Payment Ref is saved successfully.
Is there a way that I can get the Payment Ref to be set on the check with the value passed in the request without removing the default payment method for the Vendor?
Best answer by RohitRattan88
View original