Corregido error de mapper
This commit is contained in:
parent
c8eff4e9fc
commit
061ec30cbd
@ -174,7 +174,10 @@ export class CustomerInvoiceItemDomainMapper
|
||||
errors: ValidationErrorDetail[];
|
||||
};
|
||||
|
||||
const taxesResults = this._taxesMapper.mapToPersistenceArray(source.taxes, params);
|
||||
const taxesResults = this._taxesMapper.mapToPersistenceArray(source.taxes, {
|
||||
...params,
|
||||
parent: source,
|
||||
});
|
||||
|
||||
if (taxesResults.isFailure) {
|
||||
errors.push({
|
||||
@ -215,7 +218,7 @@ export class CustomerInvoiceItemDomainMapper
|
||||
discount_amount_scale: allAmounts.discountAmount.scale,
|
||||
|
||||
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_scale: allAmounts.taxesAmount.scale,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user