03333 445950
03333 calls are same cost

 

Home
Up

Making I.T. Happen
Accounting and Information Technology Assistance and Support
Sage Custom Integration - Status Codes And Values.

SALES_LEDGER

LETTER_TYPE

INVOICES SOP & POP 

STOCK (PRODUCTS)

STOCK_TRAN

PRICE

PRICELIST

AUDIT_HEADER / AUDIT_SPLIT

COUNTRIES

CURRENCIES

DISCOUNT_TYPE

SALES_DEL_ADDR

Flags

There are a number of "FLAG" variables these are generally 1 or 0 to represent True or False. 

It is worth noting that the ODBC drivers have "on the fly" created variables in some cases.  Things that appear as tri state eg bank and vat rec flags are actually only have 2 states the third state is calculated.  This is because the eligibility of a transaction to go on a vat return depends on if you use Cash or standard accounting.

 


SALES_LEDGER

 
ACCOUNT_STATUS Default Description
0Open
rest are user defined

LETTER_TYPE

LETTER_TYPEDESCRIPTION
1Reminder
2Warning
3Legal threat
4Statements
5Orders/Quotes
6Invoice/Credits
7GDN/GRN
8Remittances
9Default Letter
 

INVOICES SOP/POP Types

Type Default Description
0Product sales invoice
1SOP Sales Invoices
2Service Sales Invoice
3Product credit note
4Service Credit note
5Product Proforma
6Product Quote
7Service Proforma
8Service Quote
9SOP Quote
10POP Quote
11SOP Proforma
12POP Proforma

POP QTYS

In POP Sage uses field names that do not clearly relate to what they are for the Qtys

QTY_ALLOCATED = Allocation doe snot happen in POP, this field is used to represent the number of outstanding items (if it is on order) ie QTY on back order

QTY_DELIVERED = The Number that have already com into stock

QTY_DESPATCH = The number that are not yet delivered, if the order is on order then this will be the same as the QTY_ALLOCATED

QTY_INVOICED = How many have been updated to the purchase ledger.

POSTED_CODE

Type Default Description
0NONE
1PART
2FULL

This is used to indicate if the ITEMS have been UPDATED to the purchase ledger.


SALES_ORDER - INVOICE - PURCHASE ORDER

TYPE Description
0Product Invoice
1Invoice from SOP
2Service Invoice
3Product Credit
4Service Credit
5Product Proforma
6Product Quote
7Service Proforma
8Service Quote
9SOP Quote
10POP Quote
11SOP Proforma
12POP Proforma

PAYMENT_TYPE Description
0Already Recd
1??Undefined
2??Undefined
3Post & Allocate (SR)
4Post & No Allocate (SA)

STATUSDescription
0Blank
1Part Allocated
2Fully Allocated
3Cancelled
4Zero Allocated / Part Despatched
5Part Allocated/Part Despatch
6Fully Allocated / Part Despatched
7Cancelled / Part Despatched
8Fully Despatched (Complete)
9Held / Part Despatched
10Held / None Despatched

ALLOCATION STATUSDescription
0None
1Part 
2Fully 
3Cancelled
 

 

DESPATCH STATUSDescription
0None
1Part 
2Fully (Complete)
  

 

Status must be compatible with Item Qty, changing item qtys will result in default status

SDescriptionOrderAllocateDespatch
0Blank1000
1Part Allocated1050
2Fully Allocated101010
3Cancelled1000
4Zero Allocated / Part Despatched1005
5Part Allocated/Part Despatch1035
6Fully Allocated / Part Despatched1055
7Cancelled / Part Despatched1005
8Fully Despatched (Complete)10010
9Held / Part Despatched1055
10Held / None Despatched10100

 

QUOTE_STATUSType Description
0Not a quote
1Open
2Won
3Lost
4Invalid - Expired

 

ITEM.SERVICE_FLAGDescription
0Product Item
1??Undefined
2Service Item

 

STOCK (PRODUCTS)

TYPEType Description
0Stock
1Non Stock
2Service


STOCK_TRAN

TYPEDescription
AIAdjustment In
AOAdjustment Out
GIGoods In (Purchase Order)
GOGoods Out (Inv/ Sales Order)
GRGoods Returned (Credit Note)
MIManufacturing In
MOManufacturing Out
DIDamaged In
DODamaged Out
WOWrite Off
UNNon standard special: set to value create an AI or AO to adjust stock to stated level, Ref needs to be set to "STK TAKE" (can be configurable to be something else)

ARTEFACT_TYPE Description
0No Link
1Ref hyperlinks to Invoice
2Ref hyperlinks to Sales Order
3Ref hyperlinks to Purchase order

PRICE

CALC_METHOD  Description
0Fixed Price
1Sales Price Std
2Sales price -%
3Sales price -£
4Cost + %
5cost + £
6Sales Price + %

 
ROUNDER_DIRECTION  Description
0Round Up
1Nearest
2Round Down

 
ROUNDER_METHOD  Description
0To
1Multiples of

 

TYPE  Description
85U-Supplier
83S-Special Customer Price
80P-Customer

PRICELIST

TYPEDescription
80P-Customer
85U-Supplier

AUDIT_HEADER / AUDIT_SPLIT

TYPEDescription
SISales Invoice
SASales receipt on Account
SCSales Credit Note
SPSales Payment (Refund)
SRSales Receipt
SDSales Discount
PIPurchase Invoice
PAPayment on Account
PCPurchase Credit Note
PRPurchase Receipt (Refund)
PPPurchase Payment
PDPurchase Discount
JDJournal Debit
JCJournal Credit
BPBank Payment
BRBank Receipt
VPVisa Payment
VRVisa Receipt
CPCash Payment
CRCash Receipt

 

COUNTRIES

CodeName
ADAndorra
AEUnited Arab Emirates
AFAfghanistan
AGAntigua and Barbuda
AIAnguilla
ALAlbania
AMArmenia
ANNetherlands Antilles
AOAngola
AQAntarctica
ARArgentina
ASAmerican Samoa
ATAustria
AUAustralia
AWAruba
AXAland Islands
AZAzerbaijan
BABosnia-Herzegovina
BBBarbados
BDBangladesh
BEBelgium
BFBurkina Faso
BGBulgaria
BHBahrain
BIBurundi
BJBenin
BMBermuda
BNBrunei Darussalam
BOBolivia
BRBrazil
BSBahamas
BTBhutan
BVBouvet Island
BWBotswana
BYBelarus
BZBelize
CACanada
CCCocos (Keeling) Islands
CDCongo (Democratic Republic)
CFCentral African Republic
CGCongo (Brazzaville)
CHSwitzerland
CICote d'Ivoire
CKCook Islands
CLChile
CMCameroon Republic
CNChina
COColombia
CRCosta Rica
CSSerbia and Montenegro
CUCuba
CVCape Verde
CXChristmas Island
CYCyprus
CZCzech Republic
DEGermany
DJDjibouti
DKDenmark
DMDominica
DODominican Republic
DZAlgeria
ECEcuador
EEEstonia
EGEgypt
EHWestern Sahara
EREritrea
ESSpain
ETEthiopia
FIFinland
FJFiji Islands
FKFalkland Islands
FMMicronesia, Federal States of
FOFaroe Islands
FRFrance
GAGabon
GBUnited Kingdom
GDGrenada
GEGeorgia
GFFrench Guiana
GHGhana
GIGibraltar
GLGreenland
GMGambia
GNGuinea
GPGuadeloupe
GQEquatorial Guinea
GRGreece
GSSouth Georgia, Sandwich Isl.
GTGuatemala
GUGuam
GWGuinea-Bissau
GYGuyana
HKHong Kong
HMHeard Is. and McDonald Islands
HNHonduras
HRCroatia
HTHaiti
HUHungary
IDIndonesia
IEIreland
ILIsrael
INIndia
IOBritish Indian Ocean Territory
IQIraq
IRIran, Islamic Republic of
ISIceland
ITItaly
JMJamaica
JOJordan
JPJapan
KEKenya
KGKyrgyzstan
KHCambodia
KIKiribati
KMComoros
KNSaint Kitts and Nevis
KPKorea (North)
KRKorea (South)
KWKuwait
KYCayman Islands
KZKazakhstan
LALaos
LBLebanon
LCSaint Lucia
LILiechtenstein
LKSri Lanka
LRLiberia
LSLesotho
LTLithuania
LULuxembourg
LVLatvia
LYLibya
MAMorocco
MCMonaco
MDMoldova, Republic of
MGMadagascar
MHMarshall Islands
MKMacedonia
MLMali Republic
MMMyanmar
MNMongolia
MOMacao
MPNorthern Mariana Islands
MQMartinique
MRMauritania
MSMontserrat
MTMalta
MUMauritius
MVMaldives
MWMalawi
MXMexico
MYMalaysia
MZMozambique
NANamibia
NCNew Caledonia
NENiger Republic
NFNorfolk Island
NGNigeria
NINicaragua
NLNetherlands
NONorway
NPNepal
NRNauru
NUNiue
NZNew Zealand
OMOman
PAPanama
PEPeru
PFFrench Polynesia
PGPapua New Guinea
PHPhilippines
PKPakistan
PLPoland
PMSaint Pierre and Miquelon
PNPitcairn
PRPuerto Rico
PSPalestinian Territ., Occupied
PTPortugal
PWPalau
PYParaguay
QAQatar
REReunion
RORomania
RURussian Federation
RWRwanda
SASaudi Arabia
SBSolomon Islands
SCSeychelles
SDSudan Republic
SESweden
SGSingapore
SHSaint Helena
SISlovenia
SJSvalbard and Jan Mayen
SKSlovakia
SLSierra Leone
SMSan Marino
SNSenegal
SOSomali Republic
SRSuriname
STSao Tome & Principe
SVEl Salvador
SYSyrian Arab Republic
SZSwaziland
TCTurks and Caicos Islands
TDChad
TFFrench Southern Territories
TGTogo Republic
THThailand
TJTajikistan
TKTokelau
TLTimor-Leste
TMTurkmenistan
TNTunisia
TOTonga Islands
TRTurkey
TTTrinidad/Tobago
TVTuvalu
TWTaiwan, Province of China
TZTanzania
UAUkraine
UGUganda
UMUS Minor Outlying Islands
USUnited States
UYUruguay
UZUzbekistan
VAHoly See (Vatican City State)
VCSaint Vincent and Grenadines
VEVenezuela
VGVirgin Islands, British
VIVirgin Islands, US
VNVietnam
VUVanuatu
WFWallis & Futuna Islands
WSSamoa
XCChannel Islands
XXUnknown Country
YEYemen (Rep of)
YTMayotte
ZASouth Africa
ZMZambia
ZWZimbabwe

CURRENCIES

NUMBERCODENAMESYMBOLMAJOR_CURRENCY_UNITMINOR_CURRENCY_UNIT
1GBPPound Sterling£poundspence
2USDUS Dollar$dollarscents
3EUREuroeurocent
4ARSArgentinean Peso$pesoscentavos
5AUDAustralian Dollar$dollarscents
6BRLBrazilian Real$realscentavos
7CADCanadian Dollar$dollarscents
8CYPCypriot Pound£poundscents
9DDKDanish Kronekr.kroneore
10HKDHong Kong Dollar$dollarscents
11INRIndian RupeeRs.rupeespaises
12IDRIndonesian RupiahRp.rupiahssens
13IRRIranian RialRlsrialsrials
14ILSIsraeli Shekel new shekelsagorots
15JPYJapanese Yen¥yensen
16MYRMalaysian RinggitRMringgitssens
17MTLMaltese Lira liricents
18MXVMexican Peso$pesoscentavos
19NZDNew Zealand Dollar$dollarsents
20NOKNorwegian Kronekrkroneore
21PHPPhilippine Peso pesoscentavos
22RURRussian Rouble roubleskopecks
23SARSaudi Arabian RiyalSRriyalshalalats
24SGDSingapore Dollar$dollarscents
25ZARSouth African RandRrandcents
26KRWSouth Korean Won wonchon
27SEKSwedish Krona kronaore
28CHFSwiss FrancSFrfrancsrappen
29TWDTaiwanese Dollar$dollarscents
30THBThai Baht bahtsastang

DISCOUNT_TYPE

ValueDescription
0No additional Discount
1Invoice Value
2Table A
3Table B
4Table C
5Table D
6Table E

Note: To set discounts specifically in the Item do NOT use DISCOUNT_RATE use ADD_DISC_RATE.

Set the item table DISCOUNT_RATE to 0

Set the header table CUST_DISC_RATE to 0 

Discount is the sum of 

  • (Stock discount) ITEM.DISCOUNT_RATE 
  • (Customer discount) HEADER.CUST_DISC_RATE 
  • (Manual discount) ITEM.ADD_DISC_RATE

SALES_DEL_ADDR

 

ADDRESS_TYPEDescription
0Delivery Address
1Contact Address
2Registered Address

 

DEFAULT_REFDescription
0Not Default
1Is Default

REFERENCE

This is The ACCOUNT_REF padded with spaces to 8 chars then the ADDRESS_REF zero padded to 4 chars


Home Account Apply Terms

Sage 50 Specialists: Pay-as-you-go Support, Sage Reports, Excel Reports, Consultancy, Integration, Help, Advice and more!Copyright - Making I.T. Happen 1995 - 2024
Website last updated 12/04/2024