@extends('layouts/default') @section('commonbuttons') @if(!empty($settingData)) @if($settingDataSetFlg == 1) {{config('app.tabLables')['dashboard']}} {{config('app.tabLables')['orders']}} @endif @if(isset(\Auth::user()->user_role) && \Auth::user()->user_role != 'Partner') {{config('app.tabLables')['contact_us']}} @endif @endif @stop @section('title') Xero Sync Settings @stop @section('content')
@include('notifications')
@if($xero_base_currency != $SlCurrency && $currencyFlg == false)
Your Store is in {{$SlCurrency}} and your Xero base currency is in {{$xero_base_currency}}.
To enable multi currency and add more currencies in your Xero account, Click Here.

@endif
{!! Form::open(array('url' => '#','id' => 'create-form','autocomplete'=>'off')) !!} {{ csrf_field() }}
XERO Prefix (For connecting multiple Shopline stores to one XERO account)
@if($editable == 'false') @endif
Disable Prefix but Prefix is ideal if you have multiple Shopline store connected with same Xero
@if(!empty($prefixLine) && $editable == 'true')

Another Shopline store is already connected with this Xero organization using prefix : {{ $prefixLine }}. Please use a different prefix.

@endif
What date do you want your data sync to XERO to start from?
@if($editable == "false") @endif

If you prefer to sync orders before "{{date('01 F Y',strtotime('-2 Months'))}}", please contact our support team from the Contact us page.

There might be a small one-time fee for the backdated order sync based on the total orders required to be synced.

Note: Our app may not be able to recognize duplicates if you had entered them manually or with another app in the past. In that case there might be possible duplicate entries created. Please select the start date accordingly.
XERO Customer Creation for Order Sync
{{ Form::select('customer_creation', $customerType_list , Input::old('customer_creation', @$settingData['customer_creation']), array('id'=>'customer_creation','class'=>'form-control', 'style'=>'width:100%' , 'onchange' => "fetchAllCutomer(); customerTypeChange()")) }}
Xero Account for Sales
{{ Form::select('sales_account', array(''=>'--- Select Account for Sales ---')+$salesDataList , Input::old('sales_account', $settingData['sales_account']), array('class'=>'form-control', 'style'=>'width:100%' , 'id'=>'sales_account')) }}
- OR -
@if($moreSales == true)
@endif
This account books your revenue for sales.
Xero Product creation for Order Sync
{{ Form::select('product_creation', $productType_list , Input::old('product_creation', @$settingData['product_creation']), array('id'=>'product_creation','class'=>'form-control', 'style'=>'width:100%' ,'onchange' => "fetchAllProduct('product_name','product_creation'); productTypeChange()")) }}
SKU matched against the Item code XERO field.
Title matched against the XERO Name field.

Xero Account for Shipping
{{ Form::select('shipping_account', array(''=>'--- Select Account for Shipping ---')+$salesDataList , Input::old('shipping_account', $settingData['shipping_account']), array('class'=>'form-control', 'style'=>'width:100%' , 'id'=>'shipping_account')) }}
- OR -
This account books your revenue for shipping.
Xero Shipping Product creation for Order Sync
{{ Form::select('shipping_product_creation', $shippingType_list , Input::old('shipping_product_creation', @$settingData['shipping_product_creation']), array('id'=>'shipping_product_creation','class'=>'form-control', 'style'=>'width:100%' ,'onchange' => "fetchAllProduct('shipping_product_name','shipping_product_creation'); shippingproductTypeChange()")) }}
{{--
Track Inventory
{{ Form::select('track_inventory', $track_list , Input::old('track_inventory ', @$settingData['track_inventory']), array('class'=>'form-control', 'style'=>'width:100%')) }}
--}}

PayOut Enabled
Xero Account for Holding Account
- OR -
This should be a Holding account. If you use Shopline Payments method, funds will temporarily be held in this account.
Account for All Other Payment Method
- OR -
Payment received through other methods like cash, bank transfer or other payment gateway will be shown in this account.
@if(!empty($gateway_map)) @foreach($gateway_map as $gateway_map_key=>$gateway_map_value) @if($gateway_map_key != '' && $gateway_map_key != null)
Xero Account for {{isset($paymentGateways[strtolower($gateway_map_key)]) ? $paymentGateways[strtolower($gateway_map_key)] : $gateway_map_key}} Payment Method
- OR -
Payment received through {{$gateway_map_key}} will be deposited in this account.
@endif @endforeach @endif @if(!empty($paymentGateways)) @endif @if(!empty($expense_gateway_map)) @foreach($expense_gateway_map as $ekey => $evalue)
Xero Account for {{ucfirst($ekey)}} Fee Deposit
- OR -
Payment received through {{$gateway_map_key}} will be deposited in this account.
@endforeach @endif
Tax Exempt If you are not collecting tax from your customer or you are not required to collect tax. Please check this checkbox.
Sales TaxCode
{{ Form::select('sales_taxcode', $salesTaxDataList , Input::old('sales_taxcode', @$settingData['sales_taxcode']), array('class'=>'form-control', 'style'=>'width:100%' , 'id'=>'sales_taxcode')) }}
- OR -
Zero TaxCode
{{ Form::select('zero_taxcode', $zeroTaxDataList , Input::old('zero_taxcode', @$settingData['zero_taxcode']), array('class'=>'form-control', 'style'=>'width:100%' , 'id'=>'zero_taxcode')) }}

@if($store_country == 'US')
Tax Configuration is mandatory for United States stores charging differential tax rates based on the customer states.
US Tax Settings button will appear above once you finish & save these Settings

@endif @if($xero_base_currency == "CAD" || $SlCurrency == "CAD" || $XoCountry=='CA')

The following Tax Configuration is mandatory for Canada stores charging differential tax rates based on the customer province. If you do not select a Tax Rate for specific province, the rate selected above will be used as Default.

@endif @if(($xero_base_currency == "GBP" || $XoCountry=='UK') || in_array($SlCountry,array_values(config('app.EUR_COUNTRIES'))))

The following Tax Configuration is mandatory for Europe stores charging differential tax rates based on the customer country. If you do not select a Tax Rate for specific country, the rate selected above will be used as Default.

@endif
{{ Form::close() }}
@if($adminFlg == false) @else
{{$company_name}}
@endif
@if($xero_base_currency == "CAD" || $SlCurrency == "CAD" || $XoCountry=='CA') @endif @if(($xero_base_currency == "GBP" || $XoCountry=='UK') || in_array($SlCountry,array_values(config('app.EUR_COUNTRIES')))) @endif @stop @section('moar_scripts') @stop