FAU14 Respuesta: R
Regla:
Valor a Pagar de Factura: Valor total de ítems (incluyendo cargos y descuentos a nivel de ítems)+valor tributos + valor cargos – valor descuentos – valor anticipos
El Valor a Pagar de Factura es igual a la Suma de Valor Bruto más tributos - Valor del Descuento Total + Valor del Cargo Total - Valor del Anticipo Total Rechazo:
Si let $TaxInclusiveAmount := if (boolean(//cbc:TaxInclusiveAmount)) then
//cbc:TaxInclusiveAmount else 0.00,
$SumTotalAllowance := if (boolean(//cbc:AllowanceTo talAmount)) then //cbc:AllowanceTotalAmoun t else 0.00, $SumTotalCharge := if (boolean(//cbc:ChargeTotalAmount)) then
//cbc:ChargeTotalAmount else 0.00, $PrepaidAmount:= if (boolean(//cac:PrepaidPayment/cbc:PaidAmount)) then sum(//cac:PrepaidPayment/ cbc:PaidAmount) else 0.00, $PayableAmount := $TaxInclusiveAmount -
$SumTotalAllowance +
$SumTotalCharge - $PrepaidAmount return round(number($PayableAm ount)) es distinto de round(//cac:LegalMonetaryTotal/cbc:PayableAmount)
Mensaje:
Valor a Pagar de Factura es distinto de la Suma de Valor Bruto más tributos - Valor del Descuento Total + Valor del Cargo Total - Valor del Anticipo Total