Skip to content

Instantly share code, notes, and snippets.

@gp187
Last active March 22, 2024 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gp187/3df582cd53cf198e4e855fddd6bcda99 to your computer and use it in GitHub Desktop.
Save gp187/3df582cd53cf198e4e855fddd6bcda99 to your computer and use it in GitHub Desktop.
PO formatting
const x = {
salesOrders: {
description: `sales orders ...`,
data: [
{
date: '2014-09-21',
totalWithTax: 23,
totalTax: 23,
totalShipping: 12
}
]
},
purchaseOrders: {
name: 'Purchase orders',
description: `purchase orders ....`,
data: [
{
date: '2014-09-22',
totalWithTax: 55,
totalTax: 1,
totalShipping: 3
}
]
},
analyticsOptions: {
correlations: [
{ id: 'x1', type: 'prophet', fromData: 'salesOrder', fromIndex: 'totalWithTax', toData: 'purchaseOrder', toIndex: 'totalWithTax' },
{ id: 'x2', type: 'prophet', fromData: 'salesOrder', fromIndex: 'totalWithTax', toData: 'inventoryDemandInbound', toIndex: 'totalWithTax' },
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment