[ ax2012 ] The interest calculation was canceled for invoice XXX because the interest terms could not be found. Contact your administrator for assistance.

Error

The interest calculation was canceled for invoice XXX because the interest terms could not be found. Contact your administrator for assistance.

Validation

\Classes\CustInterestCreate\method\validateInterestCode

custInterestVersionDetail.InterestByRange != CustInterestByRange::None && !CustInterestRange::existByCustInterestFee(custInterestFee.RecId)) ||

(custInterestVersionDetail.InterestByRange == CustInterestByRange::None && custInterestVersionDetail.InterestCalcType == CustInterestCalcType::Amount &&
!CustInterestFee::findByCustInterestVersionDetail(custInterestVersionDetail.RecId, _currency)) ||

custInterestVersionDetail.InterestInterval <= 0

InterestByRange : Not None

InterestByRange : None

[ ax2012 ] WHT : Sales tax amount in invoice currency ( TaxWithholdTrans.invoiceTaxAmount )

\Classes\TaxWithhold\method\calcInvoiceTaxAmount

select sum(SourceRegulateAmountCur) from taxTrans
where taxTrans.Voucher == _custVendTrans.Voucher &&
taxTrans.TransDate == _custVendTrans.TransDate &&
taxTrans.TaxDirection != TaxDirection::UseTax;

// Prepayment

if (_custVendTrans.AmountCur)
{
invoiceTaxAmount = Currency::amount(-taxTrans.SourceRegulateAmountCur * _taxWithholdTrans.InvoiceAmount /
_custVendTrans.AmountCur, _taxWithholdTrans.InvoiceCurrency);
}

Example 

Amount Total : 5000

Sales Tax : 300

Prepayment : 50

Invoice amount to be paid in invoice currency : 5250

Therefore, invoiceTaxAmount = 300*5250./5300=297.17