Buenas estimados su ayuda por favor estoy generando un service layer para poder realizar la factura, me encuentro con un inconveniente al momento de realizar la factura cuando es un cliente de pago al contado ya que pide que se agregue el pago, siendo asi tengo el siguiente JSON:
{
"CardCode": "CL0105135446",
"DocDate": "2025-10-01",
"DocDueDate": "2025-10-01",
"TaxDate": "2025-10-01",
"DocCurrency": "USD",
"Series": 88,
"U_SYP_MDTD": "18",
"U_SYP_TIPO_EMIS": "E",
"U_SYP_NUM_SRI": "002-001",
"U_SYP_SERIESUC": "002",
"U_SYP_MDSD": "001",
"U_SYP_MDCD": "000077673",
"U_SYP_SERIESUCO": "002",
"U_SYP_MDSO": "001",
"U_SYP_MDCO": "000077673",
"U_SYP_CASILLA104": "401",
"U_SYP_FORMAP": "20",
"U_SYP_FORMAPAGO2": "20",
"U_SYP_MDTO": "18",
"SalesPersonCode": 77,
"Comments":"",
"DocumentLines": [
{
"ItemCode": "10.02.214",
"Quantity": 1,
"UnitPrice": 139.13,
"DiscPrcnt": 0.00,
"TaxCode": "IVA_15",
"WarehouseCode": "002",
"SalesPersonCode": 77,
"ProjectCode": "002-001",
"SerialNumbers": [
{ "InternalSerialNumber": "356927260883594" }
]
}
],
"U_SYP_SERCCER": "002001",
"TransferAccount": "101010319",
"TransferDate": "2024-07-18T00:00:00Z",
"TransferReference": "123456789123",
"PaymentInvoices": [
{
"SumApplied": 149.99,
"InvoiceType": "it_Invoice"
}
]
}
Cuando lo pruebo me sale el siguiente error:
{
"error": {
"code": -5002,
"message": {
"lang": "en-us",
"value": "Invoice & receipt must be paid exactly [OINV.GroupNum]"
}
}
}
El error indica que los valores no son iguales sin embargo cuando realizo directo la factura en sap me muestra el total y es el que se esta colocando.
Su ayuda por favor.