feat: implement periodic shopify sales sync
- automated sales check (default 10 mins) - manual reconciliation menu - updates 'status' and 'shopify_status' in sheet - updated docs
This commit is contained in:
@ -10,6 +10,7 @@ export class Config {
|
||||
shopifyLocationId: string
|
||||
shopifyCountryCodeOfOrigin: string
|
||||
shopifyProvinceCodeOfOrigin: string
|
||||
salesSyncFrequency: number
|
||||
|
||||
constructor() {
|
||||
let ss = SpreadsheetApp.getActive()
|
||||
@ -69,5 +70,12 @@ export class Config {
|
||||
"shopifyProvinceCodeOfOrigin",
|
||||
"value"
|
||||
)
|
||||
let freq = vlookupByColumns(
|
||||
"vars",
|
||||
"key",
|
||||
"SalesSyncFrequency",
|
||||
"value"
|
||||
)
|
||||
this.salesSyncFrequency = freq ? parseInt(freq) : 10
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user