Files
Common-VS2019/SacsStandardAccounts/Accounts/Sage/App/SageConsole.cs
T

50 lines
2.5 KiB
C#

using Sarand.Net.Standard.Base.Core;
using System;
using System.Collections.Generic;
using System.Text;
namespace Sarand.Net.Standard.Accounts.Sage.App
{
//=======================================================================
public static class SageConsole
{
//-------------------------------------------------------------------
// Data members.
private static readonly List<TypeCodeDesc> sageItemTypes = new List<TypeCodeDesc>();
//-------------------------------------------------------------------
// Static initialisation.
static SageConsole ()
{
// Sage item types.
// NB Don't change the codes - these are used on the database:
sageItemTypes.Add(Sage.ItemType.Customer, "CUST", "Customers");
sageItemTypes.Add(Sage.ItemType.Supplier, "SUPP", "Suppliers");
sageItemTypes.Add(Sage.ItemType.Product, "PROD", "Products");
sageItemTypes.Add(Sage.ItemType.PriceList, "PRCLST", "Pricing");
sageItemTypes.Add(Sage.ItemType.StockLevel, "STKLVL", "Stock levels");
sageItemTypes.Add(Sage.ItemType.StockTake, "STKTAK", "Stock takes");
sageItemTypes.Add(Sage.ItemType.StockBom, "STKBOM", "Stock BOM");
sageItemTypes.Add(Sage.ItemType.StockCategory, "STKCAT", "Stock categories");
sageItemTypes.Add(Sage.ItemType.StockTransfer, "STKTRA", "Stock transfers");
sageItemTypes.Add(Sage.ItemType.PurchaseOrder, "PURO", "Purchase orders");
sageItemTypes.Add(Sage.ItemType.PopItemAllocation, "PURALL", "POP allocations");
sageItemTypes.Add(Sage.ItemType.SalesOrder, "SALO", "Sales orders");
sageItemTypes.Add(Sage.ItemType.SopItemAllocation, "SALALL", "SOP allocations");
sageItemTypes.Add(Sage.ItemType.Invoice_Product, "INVPRD", "Product invoice");
sageItemTypes.Add(Sage.ItemType.Invoice_Product_Allocation, "PRIALL", "Product invoice allocation");
sageItemTypes.Add(Sage.ItemType.Invoice_SalesOrder, "INVSAL", "Sales order invoice");
sageItemTypes.Add(Sage.ItemType.Invoice_Service, "INVSRV", "Service invoice");
sageItemTypes.Add(Sage.ItemType.Invoice_Service_Allocation, "SRIALL", "Service invoice allocation");
sageItemTypes.Add(Sage.ItemType.InvoiceItem, "INVITM", "Invoice item");
}
//-------------------------------------------------------------------
// Properties.
public static List<TypeCodeDesc> ItemTypeCodes { get { return new List<TypeCodeDesc>(sageItemTypes); } }
//-------------------------------------------------------------------
}
//=======================================================================
}