Skip to content

Instantly share code, notes, and snippets.

@smarenich
Created November 30, 2018 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarenich/a11192f0ad741c65752cb66f595e4f87 to your computer and use it in GitHub Desktop.
Save smarenich/a11192f0ad741c65752cb66f595e4f87 to your computer and use it in GitHub Desktop.
using System;
using PX.Data;
using PX.Objects.CM;
using PX.Objects.CS;
using PX.Objects.IN;
using PX.Objects.TX;
namespace PX.Objects.AR
{
public class ARTaxExtensionAttribute : ARTaxAttribute
{
public ARTaxExtensionAttribute(Type ParentType, Type TaxType, Type TaxSumType) : base(ParentType, TaxType, TaxSumType)
{
Precision = 4;
}
}
public class ARInvoiceEntryTaxPrecExtendedExt : PXGraphExtension<ARInvoiceEntry>
{
[PXRemoveBaseAttribute(typeof(ARTaxAttribute))]
[PXMergeAttributes(Method = MergeMethod.Append)]
[ARTaxExtensionAttribute(typeof(ARInvoice), typeof(ARTax), typeof(ARTaxTran))]
protected virtual void ARTran_TaxCategoryID_CacheAttached(PXCache sender) { }
[PXRemoveBaseAttribute(typeof(PXDBDecimalAttribute))]
[PXMergeAttributes(Method = MergeMethod.Append)]
[PXDBDecimal(4)]
protected virtual void ARTaxTran_CuryTaxableAmt_CacheAttached(PXCache sender) { }
[PXRemoveBaseAttribute(typeof(PXDBDecimalAttribute))]
[PXMergeAttributes(Method = MergeMethod.Append)]
[PXDBDecimal(4)]
protected virtual void ARTaxTran_CuryTaxAmt_CacheAttached(PXCache sender) { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment