Service - Purchase Line Item Manager

From Izara Wiki
Jump to navigation Jump to search

Overview

Each entry in a purchase is a line item, different line items types are handled by handler services.

Repository

....

Object Schemas

Additional Information
Per Service Schemas

objType

purchaseLineItem

{
	objectType: "purchaseLineItem",
	canDelete: false,
	belongTo: { 
		serviceTag: "Business",
		objectType: "business"
	},
	addOnDataStructure: [
		{
			type:"versionedData",
			versionedDataLabel: "purchaseLineItemDetail",
			storageResourceTag : "myGraph",
			fieldNames: {
				lineItemQuantity: {
					type: "integer",
					storageResourceTags: ['myGraph']
				},
				lineItemUnitPrice: {
					type: "numeric",
					storageResourceTags: ['myGraph']
				},
			}
        },	
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		purchaseLineItemId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "purchaseLineItemId"
		}
    ]
}

flowSchemas

updatePurchaseLineItem

  • if have ComAcc plugin enabled, send request to plugin to check if purchase has been locked on Accounting
  • set sale to purchaseCommitted=updateWorking

Working documents

Purchase Line Item Manager