Service - Sale: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
canDelete: false, | canDelete: false, | ||
belongTo: { | belongTo: { | ||
serviceTag: " | serviceTag: "Business", | ||
objectType: " | objectType: "business" | ||
}, | }, | ||
addOnDataStructure: [], | addOnDataStructure: [], | ||
| Line 59: | Line 59: | ||
canDelete: false, | canDelete: false, | ||
belongTo: { | belongTo: { | ||
serviceTag: " | serviceTag: "Business", | ||
objectType: " | objectType: "business" | ||
}, | }, | ||
addOnDataStructure: [], | addOnDataStructure: [], | ||
Revision as of 01:17, 5 January 2026
Overview
Sales of inventory to customers.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
sale
{
objectType: "customer",
canDelete: false,
belongTo: {
serviceTag: "Business",
objectType: "business"
},
addOnDataStructure: [],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
saleId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
saleTotal: {
type: "numeric",
storageResourceTags: ['myGraph']
},
saleCurrencyId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "saleId"
}
]
}
invoiceGroup
{
objectType: "invoiceGroup",
canDelete: false,
belongTo: {
serviceTag: "Business",
objectType: "business"
},
addOnDataStructure: [],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
invoiceGroupId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
numberingType: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
numberingSettings: {
type: "object",
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "invoiceGroupId"
}
]
}
- groups sales into classifications
- invoice numbers can be separated by groups, eg separate sequencial numbering
- numberingSettings saves details such as prefix, suffix, method of sequencial ordering, period when numbering resets
Relationships
hasSale
{
hasSale: {
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
links: [
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "customer",
objectType: "customer"
},
linkType: "one",
},
to: {
objType: {
serviceTag: "sale",
objectType: "sale"
},
linkType: "many"
}
},
]
}
}
hasSaleLineItem
{
hasSaleLineItem: {
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
links: [
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "sale",
objectType: "sale"
},
linkType: "one",
},
to: {
objType: {
serviceTag: "saleLineItemManager",
objectType: "saleLineItem"
},
linkType: "many"
}
},
]
}
}
Addresses
- use same structure as orders in Izara Market