This commit is contained in:
2021-03-10 19:00:35 +00:00
parent de084650b9
commit dfe5bcc386

View File

@@ -69,7 +69,7 @@ todo: Unit override warranty lifetime active should disable or even hide "overri
todo: OverrideLifetime is bad text, fix it, key is "UnitOverrideLifeTime" and maybe it just says "Life time warranty"
todo: maybe Active field should be beside name as before in v7, it can get kind of buried and it also seems like it would be clearer if it was beside the name what it referred to
todo: tax code defaults in global settings needs exposure
....................................................................................................................................................................
* todo JC misc list:
@@ -140,29 +140,7 @@ todo: remove widget now? Back and front (comment out obvs not remove entirely)
## SERVER MISC ITEMS
todo: tax codes, taxable objects
Biz rules updated to prevent tax value changes to any of the following fields once it's been used on any item that has tax codes
name, taxa, taxb, taxontax
Biz rule to prevent change of active status to false if this taxcode is set as the global settings default tax code
/// <summary>
/// Returns true if passed in tax code ID
/// is used as the default anywhere in global settings
/// </summary>
/// <param name="TaxCodeID"></param>
/// <returns></returns>
public bool TaxCodeIsADefault(Guid TaxCodeID)
{
if(this.mTaxPartPurchaseID==TaxCodeID) return true;
if(this.mTaxPartSaleID==TaxCodeID) return true;
if(this.mTaxRateSaleID==TaxCodeID) return true;
return false;
}
Global settings object needs tax codes added for
private Guid mTaxPartPurchaseID;
private Guid mTaxPartSaleID;
private Guid mTaxRateSaleID;
PurchaseOrder needs to default tax codes when created from global settings
todo: memobiz, comment out all attachment handling code, it's not supported at the UI
todo: This block isn't necessary anymore as there is a biz rule to catch it: