@extends('layouts/default') @section('commonbuttons')
@if(!empty($settingData)) {{config('app.tabLables')['dashboard']}} {{config('app.tabLables')['unsync_orders']}} @endif @if(isset(\Auth::user()->user_role) && \Auth::user()->user_role != 'Partner') {{config('app.tabLables')['seller_contacts']}} {{config('app.tabLables')['contact_us']}} @endif
@stop @section('amazon_title')
Xero Sync Settings
@stop @section('content')
@if (\Cookie::get('welcomeMessage') != 'true') @endif @include('notifications')
@if($xero_base_currency != $EtsyCurrency && $currencyFlg == false)
Your Store is in {{$EtsyCurrency}} 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 Etsy stores to one XERO account)
@if($editable == 'false') @endif
Disable Prefix but Prefix is ideal if you have multiple Etsy store connected with same Xero
@if(!empty($prefixLine) && $editable == 'true')

Another Etsy 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%')) }}
--}}
@if(!empty($settingData['cc_account']) && $settingData['cc_account'] != $settingData['payment_account_deposit'])
Xero Account for CC Payments
- OR -
Payment received through CC will be deposited in this account.
@else @endif
PayOut Enabled
@if(!empty($gateway_map))
If you want payments from specific payment methods to go to specific account in Xero, please select them appropriately below.

The payments will be deposited in the account selected above if the payment method does not match either of the methods below or if the account is not selected.

@foreach($gateway_map as $gateway_map_key=>$gateway_map_value)
Xero Account for {{$gateway_map_key}} Payment Method
- 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')) }}

Shipping TaxCode
{{ Form::select('shipping_taxcode', $shipping_taxcode , Input::old('shipping_taxcode', @$settingData['shipping_taxcode']), array('class'=>'form-control', 'style'=>'width:100%' , 'id'=>'shipping_taxcode')) }}
@if($xero_base_currency == "CAD" || $EtsyCurrency == "CAD" || $EtsyCountry=='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" || $EtsyCountry=='UK')

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 && $userAccess->role != 'Manager') @else
{{$company_name}}
@endif
@if($xero_base_currency == "CAD" || $EtsyCurrency == "CAD" || $EtsyCountry=='CA') @endif @if($xero_base_currency == "GBP" || $EtsyCountry=='UK') @endif @stop @section('moar_scripts') @stop