![]() |
This function is given the Amount and matched amount as on a fees posting, plus the VAT amount (which may be NULL). It calculates the matched portion of the VAT amount by apportionment.
| pAmount | The fees posting amount |
| pMatched | The matched amount from the fees posting |
| pVATAmount | The VAT amount of the posting |
| Returns | The apportioned matched VAT amount |