This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using EdiEngine; | |
using EdiEngine.Runtime; | |
using Newtonsoft.Json; | |
namespace ParseEDI; | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<appSettings> | |
<add key="Scope" value="read_products"/> | |
<add key="ShopifyApiVersion" value="2020-10"/> | |
<add key="Secret" value="secret_key"/> | |
<add key="AppId" value="api_key"/> | |
</appSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Drive.v3; | |
using Google.Apis.Services; | |
using Google.Apis.Util.Store; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @NApiVersion 2.x | |
* @NScriptType Suitelet | |
* @NModuleScope SameAccount | |
*/ | |
define(['N/file', 'N/record', 'N/redirect', 'N/search', 'N/ui/serverWidget', 'N/runtime', 'N/email'], | |
/** | |
* @param {file} file | |
* @param {record} record | |
* @param {redirect} redirect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function closeSalesOrder(salesOrderInternalId) { | |
try { | |
var order = record.load({ | |
id: salesOrderInternalId, | |
type: record.Type.SALES_ORDER, | |
isDynamic: true | |
}); | |
var itemIndex = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RunSaveSearch() { | |
var mySearch = search.load({ | |
id: '111111' | |
}); | |
var array = []; | |
mySearch.run().each(function (result) { | |
log.debug('result', result); | |
var netamount = result.getValue({ | |
name: 'netamount' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @NApiVersion 2.x | |
* @NScriptType Restlet | |
* @NModuleScope SameAccount | |
*/ | |
define(['N/search', 'N/record', 'N/util', './momentjs.js', './cafeaspMagento.js'], | |
/** | |
* @param {search} search | |
* @param {record} record | |
* @param {util} util |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsNewOrder(orderId) { | |
var s = search.create({ | |
type: search.Type.SALES_ORDER, | |
filters: [ | |
['mainline', 'is', 'T'], 'and', | |
['trandate', 'onorafter', '04/01/2019'], 'and', | |
['otherrefnum', 'equalto', orderId] | |
], | |
columns: ['otherrefnum'] | |
}).run().getRange({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CreateCustomerDeposit(salesOrderId, paymentMethod) { | |
try { | |
if (paymentMethod != 'free') { | |
var order = record.load({ | |
id: salesOrderId, | |
type: record.Type.SALES_ORDER, | |
isDynamic: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const readline = require('readline'); | |
const { google } = require('googleapis'); | |
//Drive API, v3 | |
//https://www.googleapis.com/auth/drive See, edit, create, and delete all of your Google Drive files | |
//https://www.googleapis.com/auth/drive.file View and manage Google Drive files and folders that you have opened or created with this app | |
//https://www.googleapis.com/auth/drive.metadata.readonly View metadata for files in your Google Drive | |
//https://www.googleapis.com/auth/drive.photos.readonly View the photos, videos and albums in your Google Photos | |
//https://www.googleapis.com/auth/drive.readonly See and download all your Google Drive files | |
// If modifying these scopes, delete token.json. |
NewerOlder