This file contains hidden or 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
[ | |
{ | |
"id": 65, | |
"order_id": 112, | |
"order_address_id": 11, | |
"tax_rate_id": 32, | |
"tax_class_id": 0, | |
"name": "NV STATE TAX - NEVADA", | |
"class": "NEVADA", | |
"rate": "4.6000", |
This file contains hidden or 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
[ | |
{ | |
"id": 59, | |
"order_id": 112, | |
"order_address_id": 11, | |
"tax_rate_id": 32, | |
"tax_class_id": 0, | |
"name": "NV STATE TAX - NEVADA", | |
"class": "NEVADA", | |
"rate": "4.6000", |
This file contains hidden or 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
Timed out after 60 seconds | |
#0 /Users/rabin.shrestha/dev/codebase/bigcommerce/vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/Selenium2TestCase.php(555): PHPUnit_Extensions_Selenium2TestCase_WaitUntil->run(Object(Closure), 60) | |
#1 /Users/rabin.shrestha/dev/codebase/bigcommerce/tests/Functional/Utils/SeleniumHelper.php(159): PHPUnit_Extensions_Selenium2TestCase->waitUntil(Object(Closure), '60000') | |
#2 /Users/rabin.shrestha/dev/codebase/bigcommerce/tests/Functional/Utils/SeleniumHelper.php(123): Functional\Utils\SeleniumHelper->waitForElementByXPathWithTimeout('(//td[@class='l...', '60000', true) | |
#3 /Users/rabin.shrestha/dev/codebase/bigcommerce/tests/Functional/PageObjects/ControlPanel/Orders/OrderLineItemRefundPage.php(80): Functional\Utils\SeleniumHelper->waitForElementByXPath('(//td[@class='l...') | |
#4 /Users/rabin.shrestha/dev/codebase/bigcommerce/tests/Functional/Utils/ControlPanel/Orders/OrdersUITestUtil.php(1306): Functional\PageObjects\ControlPanel\Orders\OrderLineItemRefundPage->completeLineItemRefundS |
This file contains hidden or 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
itemid | shipid | itemprodid | itemordprodid | itemprodsku | itemprodname | itemqty | itemprodoptions | itemprodvariationid | itemprodeventname | itemprodeventdate | product_attribute_combination_id | product_attributes | is_bundled_product | ordprodbin | prodname | url | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | 27 | 76 | 10 | Test Product | 1 | 0 | NULL | 0 | NULL | 0 | Test Product | /test-product/ | |||||
29 | 27 | 77 | 11 | WeightFactoredProduct | 1 | 0 | NULL | 0 | NULL | 1 | WeightFactoredProduct | /weightfactoredproduct/ |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'english' | |
require 'rubocop' | |
ADDED_OR_MODIFIED = /A|AM|^M/.freeze | |
changed_files = `git status --porcelain`.split(/\n/). | |
select { |file_name_with_status| | |
file_name_with_status =~ ADDED_OR_MODIFIED |
This file contains hidden or 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
#!/bin/bash | |
which -s brew | |
if [[ $? != 0 ]] ; then | |
# Install Homebrew | |
echo "installing brew" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
else | |
echo "updating brew" | |
brew update |
This file contains hidden or 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
/* Better styles for embedding GitHub Gists */ | |
.gist{font-size:12px;line-height:18px;margin-bottom:20px;width:100%} | |
.gist pre{font-family:Menlo,Monaco,'Bitstream Vera Sans Mono','Courier New',monospace !important} | |
.gist-meta{font-family:Helvetica,Arial,sans-serif;font-size:12px !important} | |
.gist-meta a{color:#26a !important;text-decoration:none} | |
.gist-meta a:hover{color:#0e4071 !important} |
This file contains hidden or 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
#!/bin/bash | |
# reliable file/s transfer from a folder | |
# try rsync | |
I=0 | |
MAX_RESTARTS=100 | |
LAST_EXIT_CODE=1 | |
if [ $# -lt 2 ]; then |
This file contains hidden or 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
#!/bin/sh | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
usage=" | |
Usage: $(basename "$0") -d LOG_DIRECTORY [-r LOG_FILE] |
This file contains hidden or 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
for($orderlines as $ol_id=>$ol_amount) { | |
if ($ol_amount <= $available) { | |
identify_and_add_refund_detail($refund_id, $ol_amount, $ol_id); | |
unset($orderlines[$ol_id]); | |
} else { | |
identify_and_add_refund_detail($refund_id, $available, $ol_id); | |
$leftover = $ol_amount - $available; | |
$orderlines[$ol_id] = $leftover; | |
} | |
$available -= $ol_amount; |