@@ -1258,19 +1258,15 @@ public void SetTotals(decimal? lineTotalAmount = null, decimal? chargeTotalAmoun
12581258 /// <param name="exemptionReasonCode">Tax exemption reason code</param>
12591259 /// <param name="exemptionReason">Tax exemption reason text</param>
12601260 /// <param name="lineTotalBasisAmount">Line total base amount for tax calculation</param>
1261- /// <param name="taxPointDate">Value added tax point date</param>
1262- /// <param name="dueDateTypeCode">Value added tax point date code</param>
1263- public void AddApplicableTradeTax ( decimal basisAmount ,
1261+ public Tax AddApplicableTradeTax ( decimal basisAmount ,
12641262 decimal percent ,
12651263 decimal taxAmount ,
12661264 TaxTypes typeCode ,
12671265 TaxCategoryCodes ? categoryCode = null ,
12681266 decimal ? allowanceChargeBasisAmount = null ,
12691267 TaxExemptionReasonCodes ? exemptionReasonCode = null ,
12701268 string exemptionReason = null ,
1271- decimal ? lineTotalBasisAmount = null ,
1272- DateTime ? taxPointDate = null ,
1273- DateTypeCodes ? dueDateTypeCode = null )
1269+ decimal ? lineTotalBasisAmount = null )
12741270 {
12751271 Tax tax = new Tax ( )
12761272 {
@@ -1281,9 +1277,7 @@ public void AddApplicableTradeTax(decimal basisAmount,
12811277 AllowanceChargeBasisAmount = allowanceChargeBasisAmount ,
12821278 LineTotalBasisAmount = lineTotalBasisAmount ,
12831279 ExemptionReasonCode = exemptionReasonCode ,
1284- ExemptionReason = exemptionReason ,
1285- TaxPointDate = taxPointDate ,
1286- DueDateTypeCode = dueDateTypeCode
1280+ ExemptionReason = exemptionReason
12871281 } ;
12881282
12891283 if ( ( categoryCode != null ) && ( categoryCode . Value != TaxCategoryCodes . Unknown ) )
@@ -1292,6 +1286,7 @@ public void AddApplicableTradeTax(decimal basisAmount,
12921286 }
12931287
12941288 this . Taxes . Add ( tax ) ;
1289+ return tax ;
12951290 } // !AddApplicableTradeTax()
12961291
12971292
0 commit comments