Corregido error de mapper

This commit is contained in:
David Arranz 2025-11-07 18:42:18 +01:00
parent c8eff4e9fc
commit 061ec30cbd

View File

@ -174,7 +174,10 @@ export class CustomerInvoiceItemDomainMapper
errors: ValidationErrorDetail[]; errors: ValidationErrorDetail[];
}; };
const taxesResults = this._taxesMapper.mapToPersistenceArray(source.taxes, params); const taxesResults = this._taxesMapper.mapToPersistenceArray(source.taxes, {
...params,
parent: source,
});
if (taxesResults.isFailure) { if (taxesResults.isFailure) {
errors.push({ errors.push({
@ -215,7 +218,7 @@ export class CustomerInvoiceItemDomainMapper
discount_amount_scale: allAmounts.discountAmount.scale, discount_amount_scale: allAmounts.discountAmount.scale,
taxable_amount_value: allAmounts.taxableAmount.value, taxable_amount_value: allAmounts.taxableAmount.value,
taxable_amount_scale: allAmounts.taxableAmount.value, taxable_amount_scale: allAmounts.taxableAmount.scale,
taxes_amount_value: allAmounts.taxesAmount.value, taxes_amount_value: allAmounts.taxesAmount.value,
taxes_amount_scale: allAmounts.taxesAmount.scale, taxes_amount_scale: allAmounts.taxesAmount.scale,