TaxUncommitted::deleteForDocumentLine Method

Deletes the current set of TaxUncommitted records for the specified document line.

Syntax

client server public static void deleteForDocumentLine(
    RefTableId _sourceTableId, 
    RefRecId _sourceRecId, 
   [boolean _deleteSourceDocumentLine, 
    boolean _maintainExistingTaxUncommitted])

Run On

Called

Parameters

  • _deleteSourceDocumentLine
    Type: boolean
    A Boolean value that indicates whether to remove SourceDocumentLine and AccountingDistribution records for the current set of tax records; optional.
  • _maintainExistingTaxUncommitted
    Type: boolean
    A Boolean value that indicates whether Tax should merge the newly calculated taxes with existing records in the TaxUncommitted table.

Remarks

Deleting taxes for a single line will break all tax rules that are based on invoice total.

If the calling transaction supports taxes that are based on invoice total, do not use this method. Instead, use the TaxUncommitted::deleteForDocumentHeader method.

See Also

Reference

TaxUncommitted Table