Merge pull request #7925 from turbo124/preview

Preview
This commit is contained in:
David Bomba 2022-11-06 20:27:14 +11:00 committed by GitHub
commit dcc29fbf61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 11424 additions and 11063 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
/public/react
/storage/*.key
/storage/debugbar
/storage/*
/vendor
/.idea
/.vscode

View File

@ -88,6 +88,7 @@ class InvoiceItemExport extends BaseExport
private array $decorate_keys = [
'client',
'currency_id',
'status'
];
public function __construct(Company $company, array $input)
@ -116,6 +117,7 @@ class InvoiceItemExport extends BaseExport
$this->csv->insertOne($this->buildHeader());
$query = Invoice::query()
->withTrashed()
->with('client')->where('company_id', $this->company->id)
->where('is_deleted',0);
@ -206,10 +208,10 @@ class InvoiceItemExport extends BaseExport
if(in_array('currency_id', $this->input['report_keys']))
$entity['currency'] = $invoice->client->currency() ? $invoice->client->currency()->code : $invoice->company->currency()->code;
if(in_array('client_id', $this->input['report_keys']))
// if(in_array('client_id', $this->input['report_keys']))
$entity['client'] = $invoice->client->present()->name();
if(in_array('status_id', $this->input['report_keys']))
// if(in_array('status_id', $this->input['report_keys']))
$entity['status'] = $invoice->stringStatus($invoice->status_id);
return $entity;

View File

@ -89,7 +89,10 @@ class PaymentExport extends BaseExport
//insert the header
$this->csv->insertOne($this->buildHeader());
$query = Payment::query()->where('company_id', $this->company->id)->where('is_deleted', 0);
$query = Payment::query()
->withTrashed()
->where('company_id', $this->company->id)
->where('is_deleted', 0);
$query = $this->addDateRange($query);

View File

@ -82,7 +82,10 @@ class ProductExport extends BaseExport
//insert the header
$this->csv->insertOne($this->buildHeader());
$query = Product::query()->where('company_id', $this->company->id)->where('is_deleted', 0);
$query = Product::query()
->withTrashed()
->where('company_id', $this->company->id)
->where('is_deleted', 0);
$query = $this->addDateRange($query);

View File

@ -99,6 +99,7 @@ class QuoteExport extends BaseExport
$this->csv->insertOne($this->buildHeader());
$query = Quote::query()
->withTrashed()
->with('client')
->where('company_id', $this->company->id)
->where('is_deleted', 0);

View File

@ -116,6 +116,7 @@ class QuoteItemExport extends BaseExport
$this->csv->insertOne($this->buildHeader());
$query = Quote::query()
->withTrashed()
->with('client')->where('company_id', $this->company->id)
->where('is_deleted', 0);

View File

@ -91,7 +91,10 @@ class TaskExport extends BaseExport
//insert the header
$this->csv->insertOne($this->buildHeader());
$query = Task::query()->where('company_id', $this->company->id)->where('is_deleted', 0);
$query = Task::query()
->withTrashed()
->where('company_id', $this->company->id)
->where('is_deleted', 0);
$query = $this->addDateRange($query);

View File

@ -89,7 +89,7 @@ class AccountTransformer implements AccountTransformerInterface
'account_type' => $account->CONTAINER,
'account_name' => $account->accountName,
'account_status' => $account->accountStatus,
'account_number' => $account->accountNumber,
'account_number' => property_exists($account, 'accountNumber') ? '**** ' . substr($account?->accountNumber, -7) : '',
'provider_account_id' => $account->providerAccountId,
'provider_id' => $account->providerId,
'provider_name' => $account->providerName,

View File

@ -114,7 +114,192 @@ class YodleeController extends BaseController
});
}
/**
* Process Yodlee Refresh Webhook.
*
*
* @OA\Post(
* path="/api/v1/yodlee/refresh",
* operationId="yodleeRefreshWebhook",
* tags={"yodlee"},
* summary="Processing webhooks from Yodlee",
* description="Notifies the system when a data point can be refreshed",
* @OA\Parameter(ref="#/components/parameters/X-Api-Secret"),
* @OA\Parameter(ref="#/components/parameters/X-Api-Token"),
* @OA\Parameter(ref="#/components/parameters/X-Requested-With"),
* @OA\Parameter(ref="#/components/parameters/include"),
* @OA\Response(
* response=200,
* description="",
* @OA\Header(header="X-MINIMUM-CLIENT-VERSION", ref="#/components/headers/X-MINIMUM-CLIENT-VERSION"),
* @OA\Header(header="X-RateLimit-Remaining", ref="#/components/headers/X-RateLimit-Remaining"),
* @OA\Header(header="X-RateLimit-Limit", ref="#/components/headers/X-RateLimit-Limit"),
* @OA\JsonContent(ref="#/components/schemas/Credit"),
* ),
* @OA\Response(
* response=422,
* description="Validation error",
* @OA\JsonContent(ref="#/components/schemas/ValidationError"),
*
* ),
* @OA\Response(
* response="default",
* description="Unexpected Error",
* @OA\JsonContent(ref="#/components/schemas/Error"),
* ),
* )
*/
/*
{
"event":{
"info":"REFRESH.PROCESS_COMPLETED",
"loginName":"fri21",
"data":{
"providerAccount":[
{
"id":10995860,
"providerId":16441,
"isManual":false,
"createdDate":"2017-12-22T05:47:35Z",
"aggregationSource":"USER",
"status":"SUCCESS",
"requestId":"NSyMGo+R4dktywIu3hBIkc3PgWA=",
"dataset":[
{
"name":"BASIC_AGG_DATA",
"additionalStatus":"AVAILABLE_DATA_RETRIEVED",
"updateEligibility":"ALLOW_UPDATE",
"lastUpdated":"2017-12-22T05:48:16Z",
"lastUpdateAttempt":"2017-12-22T05:48:16Z"
}
]
}
]
}
}
}*/
public function refreshWebhook(Request $request)
{
//we should ignore this one
nlog("yodlee refresh");
nlog($request->all());
return response()->json(['message' => 'Success'], 200);
//
// return response()->json(['message' => 'Unauthorized'], 403);
}
/*
{
"event":{
"notificationId":"63c73475-4db5-49ef-8553-8303337ca7c3",
"info":"LATEST_BALANCE_UPDATES",
"loginName":"user1",
"data":{
"providerAccountId":658552,
"latestBalanceEvent":[
{
"accountId":12345,
"status":"SUCCESS"
},
{
"accountId":12346,
"status":"FAILED"
}
]
}
}
}
*/
public function balanceWebhook(Request $request)
{
nlog("yodlee refresh");
nlog($request->all());
return response()->json(['message' => 'Success'], 200);
//
// return response()->json(['message' => 'Unauthorized'], 403);
}
/*
{
"event":{
"data":[
{
"autoRefresh":{
"additionalStatus":"SCHEDULED",
"status":"ENABLED"
},
"accountIds":[
1112645899,
1112645898
],
"loginName":"YSL1555332811628",
"providerAccountId":11381459
}
],
"notificationTime":"2019-06-14T04:49:39Z",
"notificationId":"4e672150-156048777",
"info":"AUTO_REFRESH_UPDATES"
}
}
*/
public function refreshUpdatesWebhook(Request $request)
{
//notifies a user if there are problems with yodlee accessing the data
nlog("update refresh");
nlog($request->all());
return response()->json(['message' => 'Success'], 200);
//
// return response()->json(['message' => 'Unauthorized'], 403);
}
/*
"event": {
"notificationId": "64b7ed1a-1530523285",
"info": "DATA_UPDATES.USER_DATA",
"data": {
"userCount": 1,
"fromDate": "2017-11-10T10:18:44Z",
"toDate": "2017-11-10T11:18:43Z",
"userData": [{
"user": {
"loginName": "YSL1484052178554"
},
"links": [{
"methodType": "GET",
"rel": "getUserData",
"href": "dataExtracts/userData?fromDate=2017-11-10T10:18:44Z&toDate=2017-11-10T11:18:43Z&loginName=YSL1484052178554"
}]
}]
}
}
*/
public function dataUpdatesWebhook(Request $request)
{
//this is the main hook we use for notifications
nlog("data refresh");
nlog($request->all());
return response()->json(['message' => 'Success'], 200);
//
// return response()->json(['message' => 'Unauthorized'], 403);
}
}

View File

@ -19,6 +19,7 @@ use App\Factory\CloneInvoiceToQuoteFactory;
use App\Factory\InvoiceFactory;
use App\Filters\InvoiceFilters;
use App\Http\Requests\Invoice\ActionInvoiceRequest;
use App\Http\Requests\Invoice\BulkInvoiceRequest;
use App\Http\Requests\Invoice\CreateInvoiceRequest;
use App\Http\Requests\Invoice\DestroyInvoiceRequest;
use App\Http\Requests\Invoice\EditInvoiceRequest;
@ -546,11 +547,11 @@ class InvoiceController extends BaseController
* ),
* )
*/
public function bulk()
public function bulk(BulkInvoiceRequest $request)
{
$action = request()->input('action');
$action = $request->input('action');
$ids = request()->input('ids');
$ids = $request->input('ids');
if(Ninja::isHosted() && (stripos($action, 'email') !== false) && !auth()->user()->company()->account->account_sms_verified)
return response(['message' => 'Please verify your account to send emails.'], 400);

View File

@ -59,7 +59,13 @@ class StoreCreditRequest extends Request
$rules['number'] = ['nullable', Rule::unique('credits')->where('company_id', auth()->user()->company()->id)];
$rules['discount'] = 'sometimes|numeric';
$rules['is_amount_discount'] = ['boolean'];
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
if ($this->invoice_id) {
$rules['invoice_id'] = new ValidInvoiceCreditRule();
}

View File

@ -59,7 +59,13 @@ class UpdateCreditRequest extends Request
$rules['line_items'] = 'array';
$rules['discount'] = 'sometimes|numeric';
$rules['is_amount_discount'] = ['boolean'];
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
return $rules;
}

View File

@ -70,4 +70,4 @@ class ActionInvoiceRequest extends Request
'action' => $this->error_msg,
];
}
}
}

View File

@ -0,0 +1,32 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Requests\Invoice;
use App\Http\Requests\Request;
class BulkInvoiceRequest extends Request
{
public function authorize() : bool
{
return true;
}
public function rules()
{
return [
'action' => 'required|string',
'ids' => 'required'
];
}
}

View File

@ -69,7 +69,13 @@ class StoreInvoiceRequest extends Request
$rules['line_items'] = 'array';
$rules['discount'] = 'sometimes|numeric';
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
return $rules;
}

View File

@ -62,6 +62,12 @@ class UpdateInvoiceRequest extends Request
$rules['line_items'] = 'array';
$rules['discount'] = 'sometimes|numeric';
$rules['project_id'] = ['bail', 'sometimes', new ValidProjectForClient($this->all())];
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
return $rules;
}

View File

@ -58,7 +58,14 @@ class StoreRecurringInvoiceRequest extends Request
$rules['project_id'] = ['bail', 'sometimes', new ValidProjectForClient($this->all())];
$rules['number'] = new UniqueRecurringInvoiceNumberRule($this->all());
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
return $rules;
}

View File

@ -54,7 +54,13 @@ class UpdateRecurringInvoiceRequest extends Request
}
$rules['project_id'] = ['bail', 'sometimes', new ValidProjectForClient($this->all())];
$rules['tax_rate1'] = 'bail|sometimes|numeric';
$rules['tax_rate2'] = 'bail|sometimes|numeric';
$rules['tax_rate3'] = 'bail|sometimes|numeric';
$rules['tax_name1'] = 'bail|sometimes|string|nullable';
$rules['tax_name2'] = 'bail|sometimes|string|nullable';
$rules['tax_name3'] = 'bail|sometimes|string|nullable';
return $rules;
}

View File

@ -16,16 +16,16 @@ class BankTransactionMap
public static function importable()
{
return [
0 => 'bank.transaction_id',
1 => 'bank.amount',
2 => 'bank.currency',
3 => 'bank.account_type',
4 => 'bank.category_id',
5 => 'bank.category_type',
6 => 'bank.date',
7 => 'bank.bank_account_id',
8 => 'bank.description',
9 => 'bank.base_type',
0 => 'transaction.transaction_id',
1 => 'transaction.amount',
2 => 'transaction.currency',
3 => 'transaction.account_type',
4 => 'transaction.category_id',
5 => 'transaction.category_type',
6 => 'transaction.date',
7 => 'transaction.bank_account_id',
8 => 'transaction.description',
9 => 'transaction.base_type',
];
}

View File

@ -94,7 +94,7 @@ class InvoiceTransformer extends BaseTransformer
'invoice.custom_value4'
),
'footer' => $this->getString($invoice_data, 'invoice.footer'),
'partial' => $this->getFloat($invoice_data, 'invoice.partial'),
'partial' => $this->getFloat($invoice_data, 'invoice.partial') > 0 ?: null,
'partial_due_date' => $this->getString(
$invoice_data,
'invoice.partial_due_date'

View File

@ -59,6 +59,8 @@ class MatchBankTransactions implements ShouldQueue
private float $available_balance = 0;
private float $applied_amount = 0;
private array $attachable_invoices = [];
public $bts;
@ -209,17 +211,19 @@ class MatchBankTransactions implements ShouldQueue
$this->invoice = Invoice::withTrashed()->where('id', $invoice->id)->lockForUpdate()->first();
if($invoices->count() == 1){
$_amount = $this->available_balance;
}
elseif($invoices->count() > 1 && floatval($this->invoice->balance) < floatval($this->available_balance) && $this->available_balance > 0)
// if($invoices->count() == 1){
// $_amount = $this->available_balance;
// }
if(floatval($this->invoice->balance) < floatval($this->available_balance) && $this->available_balance > 0)
{
$_amount = $this->invoice->balance;
$this->applied_amount += $this->invoice->balance;
$this->available_balance = $this->available_balance - $this->invoice->balance;
}
elseif($invoices->count() > 1 && floatval($this->invoice->balance) > floatval($this->available_balance) && $this->available_balance > 0)
elseif(floatval($this->invoice->balance) > floatval($this->available_balance) && $this->available_balance > 0)
{
$_amount = $this->available_balance;
$this->applied_amount += $this->available_balance;
$this->available_balance = 0;
}
@ -241,7 +245,7 @@ class MatchBankTransactions implements ShouldQueue
$payment = PaymentFactory::create($this->invoice->company_id, $this->invoice->user_id);
$payment->amount = $amount;
$payment->applied = $amount;
$payment->applied = $this->applied_amount;
$payment->status_id = Payment::STATUS_COMPLETED;
$payment->client_id = $this->invoice->client_id;
$payment->transaction_reference = $this->bt->description;

View File

@ -99,7 +99,7 @@ class ReminderJob implements ShouldQueue
(Ninja::isSelfHost() || $invoice->company->account->isPaidHostedClient())) {
$invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) {
EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);
EmailEntity::dispatchSync($invitation, $invitation->company, $reminder_template);
nlog("Firing reminder email for invoice {$invoice->number} - {$reminder_template}");
});

View File

@ -64,6 +64,7 @@ class ImportCustomers
}
$starting_after = end($customers->data)['id'];
} while ($customers->has_more);
}

View File

@ -63,16 +63,6 @@ class UpdateInvoicePayment
}
$client->service()->updateBalanceAndPaidToDate($paid_amount*-1, $paid_amount);
// \DB::connection(config('database.default'))->transaction(function () use($client, $paid_amount){
// $update_client = Client::withTrashed()->where('id', $client->id)->lockForUpdate()->first();
// $update_client->paid_to_date += $paid_amount;
// $update_client->balance -= $paid_amount;
// $update_client->save();
// }, 1);
/* Need to determine here is we have an OVER payment - if YES only apply the max invoice amount */
if($paid_amount > $invoice->partial && $paid_amount > $invoice->balance)
@ -86,8 +76,6 @@ class UpdateInvoicePayment
$invoice = $invoice->service()
->clearPartial()
// ->updateBalance($paid_amount * -1)
// ->updatePaidToDate($paid_amount)
->updateStatus()
->touchPdf()
->save();

View File

@ -1004,7 +1004,7 @@ $LANG = array(
'status_approved' => 'Approved',
'quote_settings' => 'Quote Settings',
'auto_convert_quote' => 'Auto Convert',
'auto_convert_quote_help' => 'Automatically convert a quote to an invoice when approved by a client.',
'auto_convert_quote_help' => 'Automatically convert a quote to an invoice when approved.',
'validate' => 'Validate',
'info' => 'Info',
'imported_expenses' => 'Successfully created :count_vendors vendor(s) and :count_expenses expense(s)',
@ -2822,11 +2822,11 @@ $LANG = array(
'invalid_url' => 'Invalid URL',
'workflow_settings' => 'Workflow Settings',
'auto_email_invoice' => 'Auto Email',
'auto_email_invoice_help' => 'Automatically email recurring invoices when they are created.',
'auto_email_invoice_help' => 'Automatically email recurring invoices when created.',
'auto_archive_invoice' => 'Auto Archive',
'auto_archive_invoice_help' => 'Automatically archive invoices when they are paid.',
'auto_archive_invoice_help' => 'Automatically archive invoices when paid.',
'auto_archive_quote' => 'Auto Archive',
'auto_archive_quote_help' => 'Automatically archive quotes when they are converted.',
'auto_archive_quote_help' => 'Automatically archive quotes when converted to invoice.',
'require_approve_quote' => 'Require approve quote',
'require_approve_quote_help' => 'Require clients to approve quotes.',
'allow_approve_expired_quote' => 'Allow approve expired quote',
@ -3688,7 +3688,7 @@ $LANG = array(
'force_update_help' => 'You are running the latest version but there may be pending fixes available.',
'mark_paid_help' => 'Track the expense has been paid',
'mark_invoiceable_help' => 'Enable the expense to be invoiced',
'add_documents_to_invoice_help' => 'Make the documents visible',
'add_documents_to_invoice_help' => 'Make the documents visible to client',
'convert_currency_help' => 'Set an exchange rate',
'expense_settings' => 'Expense Settings',
'clone_to_recurring' => 'Clone to Recurring',
@ -4573,13 +4573,13 @@ $LANG = array(
'tax_amount3' => 'Tax Amount 3',
'update_project' => 'Update Project',
'auto_archive_invoice_cancelled' => 'Auto Archive Cancelled Invoice',
'auto_archive_invoice_cancelled_help' => 'Automatically archive invoices when they are cancelled',
'auto_archive_invoice_cancelled_help' => 'Automatically archive invoices when cancelled',
'no_invoices_found' => 'No invoices found',
'created_record' => 'Successfully created record',
'auto_archive_paid_invoices' => 'Auto Archive Paid',
'auto_archive_paid_invoices_help' => 'Automatically archive invoices when they are paid.',
'auto_archive_cancelled_invoices' => 'Auto Archive Cancelled',
'auto_archive_cancelled_invoices_help' => 'Automatically archive invoices when they are cancelled.',
'auto_archive_cancelled_invoices_help' => 'Automatically archive invoices when cancelled.',
'alternate_pdf_viewer' => 'Alternate PDF Viewer',
'alternate_pdf_viewer_help' => 'Improve scrolling over the PDF preview [BETA]',
'currency_cayman_island_dollar' => 'Cayman Island Dollar',
@ -4777,7 +4777,8 @@ $LANG = array(
'invoice_task_project' => 'Invoice Task Project',
'invoice_task_project_help' => 'Add the project to the invoice line items',
'bulk_action' => 'Bulk Action',
'phone_validation_error' => 'This phone number is not valid, please enter in E.164 format',
'phone_validation_error' => 'This phone number is not valid, please enter in E.164 format',
'transaction' => 'Transaction',
);
return $LANG;

View File

@ -11,9 +11,9 @@ const RESOURCES = {
"favicon.png": "dca91c54388f52eded692718d5a98b8b",
"favicon.ico": "51636d3a390451561744c42188ccd628",
"flutter.js": "f85e6fb278b0fd20c349186fb46ae36d",
"/": "2b4e30e8366acc7387ef880782b68c1e",
"/": "e967d897188b620d029ed0219fd4dd2e",
"manifest.json": "ef43d90e57aa7682d7e2cfba2f484a40",
"main.dart.js": "2dd057f868214a6add9f9d22e512c601",
"main.dart.js": "2e32757dfd2b8ed40faf40347821381a",
"assets/AssetManifest.json": "759f9ef9973f7e26c2a51450b55bb9fa",
"assets/FontManifest.json": "087fb858dc3cbfbf6baf6a30004922f1",
"assets/NOTICES": "1a34e70168d56fad075adfb4bdbb20eb",

10412
public/main.dart.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

11176
public/main.foss.dart.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -56319,10 +56319,10 @@
t1 = "" + t1;
} else
t1 = id;
return A._$BankAccountEntity$_(0, "", 0, 0, "", "", t1, false, false, "", "", "", "", 0);
return A._$BankAccountEntity$_(0, "", 0, 0, "", "", false, t1, false, false, "", "", "", "", 0);
},
_$BankAccountEntity$_(archivedAt, assignedUserId, balance, createdAt, createdUserId, currency, id, isChanged, isDeleted, $name, provider, $status, type, updatedAt) {
return new A._$BankAccountEntity($name, $status, type, provider, balance, currency, isChanged, createdAt, updatedAt, archivedAt, isDeleted, createdUserId, assignedUserId, id);
_$BankAccountEntity$_(archivedAt, assignedUserId, balance, createdAt, createdUserId, currency, disabledUpstream, id, isChanged, isDeleted, $name, provider, $status, type, updatedAt) {
return new A._$BankAccountEntity($name, $status, type, provider, disabledUpstream, balance, currency, isChanged, createdAt, updatedAt, archivedAt, isDeleted, createdUserId, assignedUserId, id);
},
BankAccountListResponse: function BankAccountListResponse() {
},
@ -56350,27 +56350,28 @@
BankAccountItemResponseBuilder: function BankAccountItemResponseBuilder() {
this._bank_account_model$_data = this._bank_account_model$_$v = null;
},
_$BankAccountEntity: function _$BankAccountEntity(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13) {
_$BankAccountEntity: function _$BankAccountEntity(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
var _ = this;
_.name = t0;
_.status = t1;
_.type = t2;
_.provider = t3;
_.balance = t4;
_.currency = t5;
_.isChanged = t6;
_.createdAt = t7;
_.updatedAt = t8;
_.archivedAt = t9;
_.isDeleted = t10;
_.createdUserId = t11;
_.assignedUserId = t12;
_.id = t13;
_.disabledUpstream = t4;
_.balance = t5;
_.currency = t6;
_.isChanged = t7;
_.createdAt = t8;
_.updatedAt = t9;
_.archivedAt = t10;
_.isDeleted = t11;
_.createdUserId = t12;
_.assignedUserId = t13;
_.id = t14;
_._bank_account_model$__hashCode = null;
},
BankAccountEntityBuilder: function BankAccountEntityBuilder() {
var _ = this;
_._bank_account_model$_id = _._bank_account_model$_assignedUserId = _._bank_account_model$_createdUserId = _._bank_account_model$_isDeleted = _._bank_account_model$_archivedAt = _._bank_account_model$_updatedAt = _._bank_account_model$_createdAt = _._bank_account_model$_isChanged = _._currency = _._bank_account_model$_balance = _._provider = _._bank_account_model$_type = _._status = _._bank_account_model$_name = _._bank_account_model$_$v = null;
_._bank_account_model$_id = _._bank_account_model$_assignedUserId = _._bank_account_model$_createdUserId = _._bank_account_model$_isDeleted = _._bank_account_model$_archivedAt = _._bank_account_model$_updatedAt = _._bank_account_model$_createdAt = _._bank_account_model$_isChanged = _._currency = _._bank_account_model$_balance = _._disabledUpstream = _._provider = _._bank_account_model$_type = _._status = _._bank_account_model$_name = _._bank_account_model$_$v = null;
},
_BankAccountEntity_Object_BaseEntity: function _BankAccountEntity_Object_BaseEntity() {
},
@ -58194,8 +58195,6 @@
},
_$ImportRequest$_(bankAccountId, columnMap, hash, importType, skipHeader) {
var _s13_ = "ImportRequest";
if (bankAccountId == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s13_, "bankAccountId"));
if (skipHeader == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s13_, "skipHeader"));
if (columnMap == null)
@ -314535,13 +314534,17 @@
if ($$v != null) {
t2 = $$v.data;
t3 = new A.BankAccountEntityBuilder();
t3.get$_bank_account_model$_$this()._disabledUpstream = false;
t3._bank_account_model$_$v = t2;
result._bank_account_model$_data = t3;
result._bank_account_model$_$v = null;
}
t2 = result._bank_account_model$_data;
if (t2 == null)
t2 = result._bank_account_model$_data = new A.BankAccountEntityBuilder();
if (t2 == null) {
t2 = new A.BankAccountEntityBuilder();
t2.get$_bank_account_model$_$this()._disabledUpstream = false;
result._bank_account_model$_data = t2;
}
t3 = t1._as(serializers.deserialize$2$specifiedType(value, B.FullType_FKj));
if (t3 == null)
A.throwExpression(A.ArgumentError$notNull("other"));
@ -314565,7 +314568,7 @@
};
A._$BankAccountEntitySerializer.prototype = {
serialize$3$specifiedType(serializers, object, specifiedType) {
var result = A._setArrayType(["bank_account_name", serializers.serialize$2$specifiedType(object.name, B.FullType_h8g), "bank_account_status", serializers.serialize$2$specifiedType(object.status, B.FullType_h8g), "bank_account_type", serializers.serialize$2$specifiedType(object.type, B.FullType_h8g), "provider_name", serializers.serialize$2$specifiedType(object.provider, B.FullType_h8g), "balance", serializers.serialize$2$specifiedType(object.balance, B.FullType_MME), "currency", serializers.serialize$2$specifiedType(object.currency, B.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, B.FullType_kjq), "updated_at", serializers.serialize$2$specifiedType(object.updatedAt, B.FullType_kjq), "archived_at", serializers.serialize$2$specifiedType(object.archivedAt, B.FullType_kjq), "id", serializers.serialize$2$specifiedType(object.id, B.FullType_h8g)], type$.JSArray_legacy_Object),
var result = A._setArrayType(["bank_account_name", serializers.serialize$2$specifiedType(object.name, B.FullType_h8g), "bank_account_status", serializers.serialize$2$specifiedType(object.status, B.FullType_h8g), "bank_account_type", serializers.serialize$2$specifiedType(object.type, B.FullType_h8g), "provider_name", serializers.serialize$2$specifiedType(object.provider, B.FullType_h8g), "disabled_upstream", serializers.serialize$2$specifiedType(object.disabledUpstream, B.FullType_MtR), "balance", serializers.serialize$2$specifiedType(object.balance, B.FullType_MME), "currency", serializers.serialize$2$specifiedType(object.currency, B.FullType_h8g), "created_at", serializers.serialize$2$specifiedType(object.createdAt, B.FullType_kjq), "updated_at", serializers.serialize$2$specifiedType(object.updatedAt, B.FullType_kjq), "archived_at", serializers.serialize$2$specifiedType(object.archivedAt, B.FullType_kjq), "id", serializers.serialize$2$specifiedType(object.id, B.FullType_h8g)], type$.JSArray_legacy_Object),
value = object.isChanged;
if (value != null) {
result.push("isChanged");
@ -314592,9 +314595,10 @@
return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false);
},
deserialize$3$specifiedType(serializers, serialized, specifiedType) {
var key, value, t1,
result = new A.BankAccountEntityBuilder(),
iterator = J.get$iterator$ax(serialized);
var iterator, key, value, t1,
result = new A.BankAccountEntityBuilder();
result.get$_bank_account_model$_$this()._disabledUpstream = false;
iterator = J.get$iterator$ax(serialized);
for (; iterator.moveNext$0();) {
key = A._asStringS(iterator.get$current(iterator));
iterator.moveNext$0();
@ -314616,6 +314620,10 @@
t1 = A._asStringS(serializers.deserialize$2$specifiedType(value, B.FullType_h8g));
result.get$_bank_account_model$_$this()._provider = t1;
break;
case "disabled_upstream":
t1 = A._asBoolS(serializers.deserialize$2$specifiedType(value, B.FullType_MtR));
result.get$_bank_account_model$_$this()._disabledUpstream = t1;
break;
case "balance":
t1 = A._asDoubleS(serializers.deserialize$2$specifiedType(value, B.FullType_MME));
result.get$_bank_account_model$_$this()._bank_account_model$_balance = t1;
@ -314765,13 +314773,19 @@
if ($$v != null) {
t1 = $$v.data;
t2 = new A.BankAccountEntityBuilder();
t2.get$_bank_account_model$_$this()._disabledUpstream = false;
A.ArgumentError_checkNotNull(t1, "other");
t2._bank_account_model$_$v = t1;
_this._bank_account_model$_data = t2;
_this._bank_account_model$_$v = null;
}
t1 = _this._bank_account_model$_data;
return t1 == null ? _this._bank_account_model$_data = new A.BankAccountEntityBuilder() : t1;
if (t1 == null) {
t1 = new A.BankAccountEntityBuilder();
t1.get$_bank_account_model$_$this()._disabledUpstream = false;
_this._bank_account_model$_data = t1;
}
return t1;
},
build$0() {
var _$failedField, e, _$result0, exception, t1, _this = this, _$result = null;
@ -314801,6 +314815,7 @@
A._$BankAccountEntity.prototype = {
rebuild$1(updates) {
var t1 = new A.BankAccountEntityBuilder();
t1.get$_bank_account_model$_$this()._disabledUpstream = false;
A.ArgumentError_checkNotNull(this, "other");
t1._bank_account_model$_$v = this;
updates.call$1(t1);
@ -314812,12 +314827,12 @@
return false;
if (other === _this)
return true;
return other instanceof A.BankAccountEntity && _this.name === other.name && _this.status === other.status && _this.type === other.type && _this.provider === other.provider && _this.balance === other.balance && _this.currency === other.currency && _this.isChanged == other.isChanged && _this.createdAt === other.createdAt && _this.updatedAt === other.updatedAt && _this.archivedAt === other.archivedAt && _this.isDeleted == other.isDeleted && _this.createdUserId == other.createdUserId && _this.assignedUserId == other.assignedUserId && _this.id === other.id;
return other instanceof A.BankAccountEntity && _this.name === other.name && _this.status === other.status && _this.type === other.type && _this.provider === other.provider && _this.disabledUpstream === other.disabledUpstream && _this.balance === other.balance && _this.currency === other.currency && _this.isChanged == other.isChanged && _this.createdAt === other.createdAt && _this.updatedAt === other.updatedAt && _this.archivedAt === other.archivedAt && _this.isDeleted == other.isDeleted && _this.createdUserId == other.createdUserId && _this.assignedUserId == other.assignedUserId && _this.id === other.id;
},
get$hashCode(_) {
var _this = this,
t1 = _this._bank_account_model$__hashCode;
return t1 == null ? _this._bank_account_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.name)), B.JSString_methods.get$hashCode(_this.status)), B.JSString_methods.get$hashCode(_this.type)), B.JSString_methods.get$hashCode(_this.provider)), B.JSNumber_methods.get$hashCode(_this.balance)), B.JSString_methods.get$hashCode(_this.currency)), J.get$hashCode$(_this.isChanged)), B.JSInt_methods.get$hashCode(_this.createdAt)), B.JSInt_methods.get$hashCode(_this.updatedAt)), B.JSInt_methods.get$hashCode(_this.archivedAt)), J.get$hashCode$(_this.isDeleted)), J.get$hashCode$(_this.createdUserId)), J.get$hashCode$(_this.assignedUserId)), B.JSString_methods.get$hashCode(_this.id))) : t1;
return t1 == null ? _this._bank_account_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.name)), B.JSString_methods.get$hashCode(_this.status)), B.JSString_methods.get$hashCode(_this.type)), B.JSString_methods.get$hashCode(_this.provider)), B.JSBool_methods.get$hashCode(_this.disabledUpstream)), B.JSNumber_methods.get$hashCode(_this.balance)), B.JSString_methods.get$hashCode(_this.currency)), J.get$hashCode$(_this.isChanged)), B.JSInt_methods.get$hashCode(_this.createdAt)), B.JSInt_methods.get$hashCode(_this.updatedAt)), B.JSInt_methods.get$hashCode(_this.archivedAt)), J.get$hashCode$(_this.isDeleted)), J.get$hashCode$(_this.createdUserId)), J.get$hashCode$(_this.assignedUserId)), B.JSString_methods.get$hashCode(_this.id))) : t1;
},
toString$0(_) {
var _this = this,
@ -314827,6 +314842,7 @@
t2.add$2(t1, "status", _this.status);
t2.add$2(t1, "type", _this.type);
t2.add$2(t1, "provider", _this.provider);
t2.add$2(t1, "disabledUpstream", _this.disabledUpstream);
t2.add$2(t1, "balance", _this.balance);
t2.add$2(t1, "currency", _this.currency);
t2.add$2(t1, "isChanged", _this.isChanged);
@ -314873,6 +314889,7 @@
_this._status = $$v.status;
_this._bank_account_model$_type = $$v.type;
_this._provider = $$v.provider;
_this._disabledUpstream = $$v.disabledUpstream;
_this._bank_account_model$_balance = $$v.balance;
_this._currency = $$v.currency;
_this._bank_account_model$_isChanged = $$v.isChanged;
@ -314888,7 +314905,7 @@
return _this;
},
build$0() {
var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, _this = this,
var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, _this = this,
_s17_ = "BankAccountEntity",
_$result = _this._bank_account_model$_$v;
if (_$result == null) {
@ -314904,29 +314921,32 @@
t4 = _this.get$_bank_account_model$_$this()._provider;
if (t4 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "provider"));
t5 = _this.get$_bank_account_model$_$this()._bank_account_model$_balance;
t5 = _this.get$_bank_account_model$_$this()._disabledUpstream;
if (t5 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "balance"));
t6 = _this.get$_bank_account_model$_$this()._currency;
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "disabledUpstream"));
t6 = _this.get$_bank_account_model$_$this()._bank_account_model$_balance;
if (t6 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "balance"));
t7 = _this.get$_bank_account_model$_$this()._currency;
if (t7 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "currency"));
t7 = _this.get$_bank_account_model$_$this()._bank_account_model$_isChanged;
t8 = _this.get$_bank_account_model$_$this()._bank_account_model$_createdAt;
if (t8 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "createdAt"));
t9 = _this.get$_bank_account_model$_$this()._bank_account_model$_updatedAt;
t8 = _this.get$_bank_account_model$_$this()._bank_account_model$_isChanged;
t9 = _this.get$_bank_account_model$_$this()._bank_account_model$_createdAt;
if (t9 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "updatedAt"));
t10 = _this.get$_bank_account_model$_$this()._bank_account_model$_archivedAt;
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "createdAt"));
t10 = _this.get$_bank_account_model$_$this()._bank_account_model$_updatedAt;
if (t10 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "updatedAt"));
t11 = _this.get$_bank_account_model$_$this()._bank_account_model$_archivedAt;
if (t11 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "archivedAt"));
t11 = _this.get$_bank_account_model$_$this()._bank_account_model$_isDeleted;
t12 = _this.get$_bank_account_model$_$this()._bank_account_model$_createdUserId;
t13 = _this.get$_bank_account_model$_$this()._bank_account_model$_assignedUserId;
t14 = _this.get$_bank_account_model$_$this()._bank_account_model$_id;
if (t14 == null)
t12 = _this.get$_bank_account_model$_$this()._bank_account_model$_isDeleted;
t13 = _this.get$_bank_account_model$_$this()._bank_account_model$_createdUserId;
t14 = _this.get$_bank_account_model$_$this()._bank_account_model$_assignedUserId;
t15 = _this.get$_bank_account_model$_$this()._bank_account_model$_id;
if (t15 == null)
A.throwExpression(A.BuiltValueNullFieldError$(_s17_, "id"));
_$result = A._$BankAccountEntity$_(t10, t13, t5, t8, t12, t6, t14, t7, t11, t1, t4, t2, t3, t9);
_$result = A._$BankAccountEntity$_(t11, t14, t6, t9, t13, t7, t5, t15, t8, t12, t1, t4, t2, t3, t10);
}
A.ArgumentError_checkNotNull(_$result, "other");
return _this._bank_account_model$_$v = _$result;
@ -328172,12 +328192,12 @@
return false;
if (other === _this)
return true;
return other instanceof A.ImportRequest && _this.hash === other.hash && _this.importType === other.importType && _this.bankAccountId == other.bankAccountId && _this.skipHeader == other.skipHeader && J.$eq$(_this.columnMap, other.columnMap);
return other instanceof A.ImportRequest && _this.hash === other.hash && _this.importType === other.importType && _this.bankAccountId === other.bankAccountId && _this.skipHeader == other.skipHeader && J.$eq$(_this.columnMap, other.columnMap);
},
get$hashCode(_) {
var _this = this,
t1 = _this._import_model$__hashCode;
return t1 == null ? _this._import_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.hash)), B.JSString_methods.get$hashCode(_this.importType)), J.get$hashCode$(_this.bankAccountId)), J.get$hashCode$(_this.skipHeader)), J.get$hashCode$(_this.columnMap))) : t1;
return t1 == null ? _this._import_model$__hashCode = A.$jf(A.$jc(A.$jc(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(_this.hash)), B.JSString_methods.get$hashCode(_this.importType)), B.JSString_methods.get$hashCode(_this.bankAccountId)), J.get$hashCode$(_this.skipHeader)), J.get$hashCode$(_this.columnMap))) : t1;
},
toString$0(_) {
var _this = this,
@ -336590,7 +336610,8 @@
};
A.SettingsEntity_setFieldsForSection_closure.prototype = {
call$1(b) {
b.get$pdfVariables().replace$1(0, A.LinkedHashMap_LinkedHashMap$_literal([this.section, this.fields], type$.legacy_String, type$.legacy_List_legacy_String));
var t1 = type$.legacy_String;
b.get$pdfVariables().replace$1(0, A.LinkedHashMap_LinkedHashMap$_literal([this.section, A.BuiltList_BuiltList$from(this.fields, t1)], t1, type$.legacy_BuiltList_legacy_String));
return b;
},
$signature: 13
@ -363334,7 +363355,13 @@
case "editing":
t3 = result.get$_bank_account_state$_$this();
t4 = t3._bank_account_state$_editing;
t3 = t4 == null ? t3._bank_account_state$_editing = new A.BankAccountEntityBuilder() : t4;
if (t4 == null) {
t4 = new A.BankAccountEntityBuilder();
t4.get$_bank_account_model$_$this()._disabledUpstream = false;
t3._bank_account_state$_editing = t4;
t3 = t4;
} else
t3 = t4;
t4 = t2._as(serializers.deserialize$2$specifiedType(value, B.FullType_FKj));
if (t4 == null)
A.throwExpression(A.ArgumentError$notNull("other"));
@ -363530,7 +363557,14 @@
get$editing() {
var t1 = this.get$_bank_account_state$_$this(),
t2 = t1._bank_account_state$_editing;
return t2 == null ? t1._bank_account_state$_editing = new A.BankAccountEntityBuilder() : t2;
if (t2 == null) {
t2 = new A.BankAccountEntityBuilder();
t2.get$_bank_account_model$_$this()._disabledUpstream = false;
t1._bank_account_state$_editing = t2;
t1 = t2;
} else
t1 = t2;
return t1;
},
get$listUIState() {
var t1 = this.get$_bank_account_state$_$this(),
@ -363546,6 +363580,7 @@
t1 = null;
else {
t2 = new A.BankAccountEntityBuilder();
t2.get$_bank_account_model$_$this()._disabledUpstream = false;
A.ArgumentError_checkNotNull(t1, "other");
t2._bank_account_model$_$v = t1;
t1 = t2;
@ -430559,23 +430594,25 @@
};
A.BankAccountListItem.prototype = {
build$1(context) {
var uiState, bankAccountUIState, t2, t3, t4, t5, t6, t7, _this = this, _null = null,
t1 = A.StoreProvider_of(context, type$.legacy_AppState).__Store__state_A;
t1 === $ && A.throwUnnamedLateFieldNI();
uiState = t1.uiState;
var uiState, bankAccountUIState, t3, t4, t5, t6, t7, t8, t9, _this = this, _null = null,
t1 = A.Localizations_of(context, B.Type_AppLocalization_KyD, type$.legacy_AppLocalization),
t2 = A.StoreProvider_of(context, type$.legacy_AppState).__Store__state_A;
t2 === $ && A.throwUnnamedLateFieldNI();
uiState = t2.uiState;
bankAccountUIState = uiState.bankAccountUIState;
t2 = bankAccountUIState.listUIState.selectedIds;
t1 = t1.userCompanyStates;
t3 = uiState.selectedCompanyIndex;
t3 = t1._list[t3].userCompany;
t1 = _this.bankAccount;
t4 = t1.id;
t5 = uiState.get$isEditing() ? bankAccountUIState.editing.id : bankAccountUIState.selectedId;
t2 = t2 != null ? new A.IgnorePointer(true, _null, A.Checkbox$(A.Theme_of(context).colorScheme.secondary, false, _null, B.MaterialTapTargetSize_1, new A.BankAccountListItem_build_closure(_this), _null, _null, false, _this.isChecked), _null) : _null;
t6 = context.dependOnInheritedWidgetOfExactType$1$0(type$.MediaQuery).data;
t7 = type$.JSArray_legacy_Widget;
t6 = A.Container$(_null, A.Row$(A._setArrayType([A.Expanded$(A.Text$(t1.name, _null, _null, _null, _null, _null, A.Theme_of(context).textTheme.titleMedium, _null, _null, _null), 1), A.Text$(A.formatNumber(t1.balance, context, _null, _null, B.FormatNumberType_0, true, _null, false), _null, _null, _null, _null, _null, A.Theme_of(context).textTheme.titleMedium, _null, _null, _null)], t7), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t6.size._dx);
return new A.DismissibleEntity(t3, t1, A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, t2, new A.BankAccountListItem_build_closure0(_this), new A.BankAccountListItem_build_closure1(_this), false, _null, _null, A.Column$(A._setArrayType([A.Text$(A.toTitleCase(t1.type), _null, _null, _null, _null, _null, _null, _null, _null, _null), new A.EntityStateLabel(t1, _null)], t7), B.CrossAxisAlignment_0, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null, t6, _null, _null), t4 === t5, true, true, _null);
t3 = bankAccountUIState.listUIState.selectedIds;
t2 = t2.userCompanyStates;
t4 = uiState.selectedCompanyIndex;
t4 = t2._list[t4].userCompany;
t2 = _this.bankAccount;
t5 = t2.id;
t6 = uiState.get$isEditing() ? bankAccountUIState.editing.id : bankAccountUIState.selectedId;
t3 = t3 != null ? new A.IgnorePointer(true, _null, A.Checkbox$(A.Theme_of(context).colorScheme.secondary, false, _null, B.MaterialTapTargetSize_1, new A.BankAccountListItem_build_closure(_this), _null, _null, false, _this.isChecked), _null) : _null;
t7 = context.dependOnInheritedWidgetOfExactType$1$0(type$.MediaQuery).data;
t8 = type$.JSArray_legacy_Widget;
t7 = A.Container$(_null, A.Row$(A._setArrayType([A.Expanded$(A.Text$(t2.name, _null, _null, _null, _null, _null, A.Theme_of(context).textTheme.titleMedium, _null, _null, _null), 1), A.Text$(A.formatNumber(t2.balance, context, _null, _null, B.FormatNumberType_0, true, _null, false), _null, _null, _null, _null, _null, A.Theme_of(context).textTheme.titleMedium, _null, _null, _null)], t8), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), B.Clip_0, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, t7.size._dx);
t9 = A.toTitleCase(t2.type);
return new A.DismissibleEntity(t4, t2, A.ListTile$(false, _null, _null, _null, true, _null, _null, false, _null, t3, new A.BankAccountListItem_build_closure0(_this), new A.BankAccountListItem_build_closure1(_this), false, _null, _null, A.Column$(A._setArrayType([A.Text$(t9 + (t2.disabledUpstream ? " \u2022 " + t1.get$disabled(t1) : ""), _null, _null, _null, _null, _null, _null, _null, _null, _null), new A.EntityStateLabel(t2, _null)], t8), B.CrossAxisAlignment_0, _null, B.MainAxisAlignment_0, B.MainAxisSize_1, B.VerticalDirection_1), _null, t7, _null, _null), t5 === t6, true, true, _null);
},
get$user(receiver) {
return this.user;
@ -466294,46 +466331,48 @@
B.JSArray_methods.addAll$1(t8, A._setArrayType([new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t7, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(_null, t11, t10.toUpperCase(), new A._AccountOverview_build_closure7(_this, context, t1), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null), new A.Padding(B.EdgeInsets_16_16_16_0, new A.ListDivider(_null), _null)], t9));
}
if (!(!state.get$isHosted() || t3[t4].userCompany.account.plan === "enterprise" || t3[t4].userCompany.account.plan === "pro"))
t3 = state.get$isHosted() && t3[t4].userCompany.account.trialDaysLeft > 0;
t7 = state.get$isHosted() && t3[t4].userCompany.account.trialDaysLeft > 0;
else
t3 = true;
if (t3) {
t3 = J.$index$asx(t5.$index(0, t6), "api_tokens");
t7 = true;
if (t7) {
t7 = J.$index$asx(t5.$index(0, t6), "api_tokens");
if (t7 == null)
t7 = "";
t10 = A.getLayout(context) === B.AppLayout_mobile ? _null : A.getEntityIcon(B.EntityType_token);
t7 = A.Expanded$(new A.AppButton(_null, t10, t7.toUpperCase(), new A._AccountOverview_build_closure8(store), _null, _null), 1);
t10 = J.$index$asx(t5.$index(0, t6), "api_webhooks");
if (t10 == null)
t10 = "";
t11 = A.getLayout(context) === B.AppLayout_mobile ? _null : A.getEntityIcon(B.EntityType_webhook);
t8.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t7, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(_null, t11, t10.toUpperCase(), new A._AccountOverview_build_closure9(store), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null));
}
t7 = J.$index$asx(t5.$index(0, t6), "api_docs");
if (t7 == null)
t7 = "";
t10 = A.getLayout(context) === B.AppLayout_mobile ? _null : B._MdiIconData_uXI;
t7 = A.Expanded$(new A.AppButton(_null, t10, t7.toUpperCase(), new A._AccountOverview_build_closure10(), _null, _null), 1);
t10 = A.getLayout(context) === B.AppLayout_mobile ? _null : B._MdiIconData_Qa6;
t8.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t7, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(_null, t10, "Zapier", new A._AccountOverview_build_closure11(), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null));
if (t3[t4].userCompany.isOwner) {
t3 = J.$index$asx(t5.$index(0, t6), "purge_data");
if (t3 == null)
t3 = "";
t4 = A.getLayout(context) === B.AppLayout_mobile ? _null : A.getEntityIcon(B.EntityType_token);
t3 = A.Expanded$(new A.AppButton(_null, t4, t3.toUpperCase(), new A._AccountOverview_build_closure8(store), _null, _null), 1);
t4 = J.$index$asx(t5.$index(0, t6), "api_webhooks");
if (t4 == null)
t4 = "";
t7 = A.getLayout(context) === B.AppLayout_mobile ? _null : A.getEntityIcon(B.EntityType_webhook);
t8.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t3, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(_null, t7, t4.toUpperCase(), new A._AccountOverview_build_closure9(store), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null));
t4 = A.getLayout(context) === B.AppLayout_mobile ? _null : B.IconData_57785_MaterialIcons_null_false;
t3 = A.Expanded$(new A.AppButton(B.MaterialColor_Map_JNc9P_4294198070, t4, t3.toUpperCase(), new A._AccountOverview_build_closure12(_this, context, t1, t2), _null, _null), 1);
if (companies.length === 1) {
t4 = J.$index$asx(t5.$index(0, t6), "cancel_account");
if (t4 == null)
t4 = "";
t4 = t4.toUpperCase();
} else {
t4 = J.$index$asx(t5.$index(0, t6), "delete_company");
if (t4 == null)
t4 = "";
t4 = t4.toUpperCase();
}
t5 = A.getLayout(context) === B.AppLayout_mobile ? _null : B.IconData_57785_MaterialIcons_null_false;
B.JSArray_methods.addAll$1(t8, A._setArrayType([new A.Padding(B.EdgeInsets_16_16_16_0, new A.ListDivider(_null), _null), new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t3, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(B.MaterialColor_Map_JNc9P_4294198070, t5, t4, new A._AccountOverview_build_closure13(_this, companies, t1, company, t2, context), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null)], t9));
}
t3 = J.$index$asx(t5.$index(0, t6), "api_docs");
if (t3 == null)
t3 = "";
t4 = A.getLayout(context) === B.AppLayout_mobile ? _null : B._MdiIconData_uXI;
t3 = A.Expanded$(new A.AppButton(_null, t4, t3.toUpperCase(), new A._AccountOverview_build_closure10(), _null, _null), 1);
t4 = A.getLayout(context) === B.AppLayout_mobile ? _null : B._MdiIconData_Qa6;
t8.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t3, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(_null, t4, "Zapier", new A._AccountOverview_build_closure11(), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null));
t8.push(new A.Padding(B.EdgeInsets_16_16_16_0, new A.ListDivider(_null), _null));
t4 = J.$index$asx(t5.$index(0, t6), "purge_data");
t3 = t4 == null ? "" : t4;
t4 = A.getLayout(context) === B.AppLayout_mobile ? _null : B.IconData_57785_MaterialIcons_null_false;
t3 = A.Expanded$(new A.AppButton(B.MaterialColor_Map_JNc9P_4294198070, t4, t3.toUpperCase(), new A._AccountOverview_build_closure12(_this, context, t1, t2), _null, _null), 1);
if (companies.length === 1) {
t4 = J.$index$asx(t5.$index(0, t6), "cancel_account");
if (t4 == null)
t4 = "";
t4 = t4.toUpperCase();
} else {
t4 = J.$index$asx(t5.$index(0, t6), "delete_company");
if (t4 == null)
t4 = "";
t4 = t4.toUpperCase();
}
t5 = A.getLayout(context) === B.AppLayout_mobile ? _null : B.IconData_57785_MaterialIcons_null_false;
t8.push(new A.Padding(B.EdgeInsets_16_16_16_16, A.Row$(A._setArrayType([t3, new A.SizedBox(16, _null, _null, _null), A.Expanded$(new A.AppButton(B.MaterialColor_Map_JNc9P_4294198070, t5, t4, new A._AccountOverview_build_closure13(_this, companies, t1, company, t2, context), _null, _null), 1)], t9), B.CrossAxisAlignment_2, B.MainAxisAlignment_0, B.MainAxisSize_1, _null), _null));
return new A.ScrollableListView(t8, _null, _null, _null, false, _null);
}
};
@ -472334,7 +472373,8 @@
t6 = t1._useFirstRowAsHeaders;
t4 = A.BuiltMap_BuiltMap(convertedMapping, t3, t4);
t3 = t1._widget.importType.name;
importRequest = A._$ImportRequest$_(t1._import_export$_bankAccountId, t4, t5, t3, t6);
t7 = t1._import_export$_bankAccountId;
importRequest = A._$ImportRequest$_(t7 == null ? "" : t7, t4, t5, t3, t6);
new A.WebClient().post$3$data(credentials.url + "/import", credentials.token, B.C_JsonCodec.encode$1($.$get$serializers().serializeWith$2($.$get$_$importRequestSerializer(), importRequest))).then$1$1(0, new A.__FileMapperState_build__closure0(t1, this.localization), type$.Null).catchError$1(new A.__FileMapperState_build__closure1(t1, t2));
},
$signature: 1
@ -472533,54 +472573,60 @@
t3 = t2.settingsUIState,
t4 = t3.entityType === B.EntityType_company,
t5 = t1.get$invoiceDesign();
t3 = t3.updatedAt;
if (!t4)
t3 = _null;
else {
t3 = t3.updatedAt;
t6 = _this._invoice_design$_controller;
t7 = $.$get$LocalizationsProvider__localizedValues();
t8 = t1.localeCode;
t9 = J.$index$asx(t7.$index(0, t8), "general_settings");
t9 = A.Tab$(_null, t9 == null ? "" : t9);
t10 = J.$index$asx(t7.$index(0, t8), _s14_);
t10 = A.Tab$(_null, t10 == null ? "" : t10);
t11 = A.Tab$(_null, t1.get$companyDetails());
t12 = J.$index$asx(t7.$index(0, t8), _s15_);
t9 = A._setArrayType([t9, t10, t11, A.Tab$(_null, t12 == null ? "" : t12)], type$.JSArray_legacy_Widget);
if (company.isModuleEnabled$1(B.EntityType_invoice)) {
t10 = J.$index$asx(t7.$index(0, t8), _s15_0);
t9.push(A.Tab$(_null, t10 == null ? "" : t10));
}
if (company.isModuleEnabled$1(B.EntityType_quote)) {
t10 = J.$index$asx(t7.$index(0, t8), _s13_);
t9.push(A.Tab$(_null, t10 == null ? "" : t10));
}
if (company.isModuleEnabled$1(B.EntityType_credit)) {
t10 = J.$index$asx(t7.$index(0, t8), _s14_0);
t9.push(A.Tab$(_null, t10 == null ? "" : t10));
}
if (company.isModuleEnabled$1(B.EntityType_vendor)) {
t10 = J.$index$asx(t7.$index(0, t8), _s14_1);
t9.push(A.Tab$(_null, t10 == null ? J.$index$asx(t7.$index(0, _s2_), _s14_1) : t10));
}
if (company.isModuleEnabled$1(B.EntityType_purchaseOrder)) {
t10 = J.$index$asx(t7.$index(0, t8), _s22_);
t9.push(A.Tab$(_null, t10 == null ? J.$index$asx(t7.$index(0, _s2_), _s22_) : t10));
}
t10 = J.$index$asx(t7.$index(0, t8), _s15_1);
t9.push(A.Tab$(_null, t10 == null ? "" : t10));
if (company.isModuleEnabled$1(B.EntityType_task)) {
t10 = J.$index$asx(t7.$index(0, t8), _s12_);
t9.push(A.Tab$(_null, t10 == null ? "" : t10));
}
t7 = J.$index$asx(t7.$index(0, t8), "total_fields");
t9.push(A.Tab$(_null, t7 == null ? "" : t7));
t3 = A.TabBar$(t6, _null, true, new A.ValueKey(t3, type$.ValueKey_legacy_int), _null, t9);
}
t6 = _this._invoice_design$_controller;
t7 = $.$get$LocalizationsProvider__localizedValues();
t8 = t1.localeCode;
t9 = J.$index$asx(t7.$index(0, t8), "general_settings");
t9 = A.Tab$(_null, t9 == null ? "" : t9);
t10 = J.$index$asx(t7.$index(0, t8), _s14_);
t10 = A.Tab$(_null, t10 == null ? "" : t10);
t11 = A.Tab$(_null, t1.get$companyDetails());
t12 = J.$index$asx(t7.$index(0, t8), _s15_);
t13 = type$.JSArray_legacy_Widget;
t12 = A._setArrayType([t9, t10, t11, A.Tab$(_null, t12 == null ? "" : t12)], t13);
if (company.isModuleEnabled$1(B.EntityType_invoice)) {
t9 = J.$index$asx(t7.$index(0, t8), _s15_0);
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
}
if (company.isModuleEnabled$1(B.EntityType_quote)) {
t9 = J.$index$asx(t7.$index(0, t8), _s13_);
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
}
if (company.isModuleEnabled$1(B.EntityType_credit)) {
t9 = J.$index$asx(t7.$index(0, t8), _s14_0);
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
}
if (company.isModuleEnabled$1(B.EntityType_vendor)) {
t9 = J.$index$asx(t7.$index(0, t8), _s14_1);
t12.push(A.Tab$(_null, t9 == null ? J.$index$asx(t7.$index(0, _s2_), _s14_1) : t9));
}
if (company.isModuleEnabled$1(B.EntityType_purchaseOrder)) {
t9 = J.$index$asx(t7.$index(0, t8), _s22_);
t12.push(A.Tab$(_null, t9 == null ? J.$index$asx(t7.$index(0, _s2_), _s22_) : t9));
}
t9 = J.$index$asx(t7.$index(0, t8), _s15_1);
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
if (company.isModuleEnabled$1(B.EntityType_task)) {
t9 = J.$index$asx(t7.$index(0, t8), _s12_);
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
}
t9 = J.$index$asx(t7.$index(0, t8), "total_fields");
t12.push(A.Tab$(_null, t9 == null ? "" : t9));
t3 = A.TabBar$(t6, _null, true, new A.ValueKey(t3, type$.ValueKey_legacy_int), _null, t12);
t6 = _this._invoice_design$_controller;
t9 = $.$get$_InvoiceDesignState__formKey();
t10 = _this._invoice_design$_focusNode;
t11 = J.$index$asx(t7.$index(0, t8), "customize_and_preview");
t7 = $.$get$_InvoiceDesignState__formKey();
t8 = _this._invoice_design$_focusNode;
t9 = $.$get$LocalizationsProvider__localizedValues();
t10 = t1.localeCode;
t11 = J.$index$asx(t9.$index(0, t10), "customize_and_preview");
if (t11 == null)
t11 = "";
t12 = A._setArrayType([], t13);
t12 = type$.JSArray_legacy_Widget;
t13 = A._setArrayType([], t12);
if (state.get$isHosted()) {
t14 = state.userCompanyStates;
t15 = t2.selectedCompanyIndex;
@ -472606,9 +472652,9 @@
else
t14 = true;
if (t14) {
t14 = A._setArrayType([], t13);
t14 = A._setArrayType([], t12);
if (company.isModuleEnabled$1(B.EntityType_invoice)) {
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure(_this, viewModel, settings), t1.get$invoiceDesign(), settings.defaultInvoiceDesignId, _null)], t13);
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure(_this, viewModel, settings), t1.get$invoiceDesign(), settings.defaultInvoiceDesignId, _null)], t12);
if (t4)
if (_this._wasInvoiceDesignChanged) {
t16 = state.userCompanyStates;
@ -472624,7 +472670,7 @@
B.JSArray_methods.addAll$1(t14, t15);
}
if (company.isModuleEnabled$1(B.EntityType_quote)) {
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure1(_this, viewModel, settings), t1.get$quoteDesign(), settings.defaultQuoteDesignId, _null)], t13);
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure1(_this, viewModel, settings), t1.get$quoteDesign(), settings.defaultQuoteDesignId, _null)], t12);
if (t4)
if (_this._wasQuoteDesignChanged) {
t16 = state.userCompanyStates;
@ -472640,7 +472686,7 @@
B.JSArray_methods.addAll$1(t14, t15);
}
if (company.isModuleEnabled$1(B.EntityType_credit)) {
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure3(_this, viewModel, settings), t1.get$creditDesign(), settings.defaultCreditDesignId, _null)], t13);
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure3(_this, viewModel, settings), t1.get$creditDesign(), settings.defaultCreditDesignId, _null)], t12);
if (t4)
if (_this._wasCreditDesignChanged) {
t16 = state.userCompanyStates;
@ -472656,10 +472702,10 @@
B.JSArray_methods.addAll$1(t14, t15);
}
if (company.isModuleEnabled$1(B.EntityType_purchaseOrder)) {
t15 = J.$index$asx(t7.$index(0, t8), _s21_);
t15 = J.$index$asx(t9.$index(0, t10), _s21_);
if (t15 == null)
t15 = J.$index$asx(t7.$index(0, _s2_), _s21_);
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure5(_this, viewModel, settings), t15, settings.defaultPurchaseOrderDesignId, _null)], t13);
t15 = J.$index$asx(t9.$index(0, _s2_), _s21_);
t15 = A._setArrayType([new A.DesignPicker(new A._InvoiceDesignState_build_closure5(_this, viewModel, settings), t15, settings.defaultPurchaseOrderDesignId, _null)], t12);
if (t4)
if (_this._wasPurchaseOrderDesignChanged) {
t4 = state.userCompanyStates;
@ -472673,30 +472719,30 @@
t15.push(new A.Padding(B.EdgeInsets_0_0_0_8, A.CheckboxListTile$(A.Theme_of(context).colorScheme.secondary, _null, B.ListTileControlAffinity_2, _null, _null, new A._InvoiceDesignState_build_closure6(_this), A.Text$(t1.get$updateAllRecords(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _this._updateAllPurchaseOrderDesigns), _null));
B.JSArray_methods.addAll$1(t14, t15);
}
B.JSArray_methods.addAll$1(t12, t14);
B.JSArray_methods.addAll$1(t13, t14);
} else {
t2 = J.$index$asx(t7.$index(0, t8), _s18_);
t2 = J.$index$asx(t9.$index(0, t10), _s18_);
if (t2 == null)
t2 = J.$index$asx(t7.$index(0, _s2_), _s18_);
t12.push(A.OutlinedButton$(A.Text$(t2.toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._InvoiceDesignState_build_closure7(store, state), _null));
t2 = J.$index$asx(t9.$index(0, _s2_), _s18_);
t13.push(A.OutlinedButton$(A.Text$(t2.toUpperCase(), _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, new A._InvoiceDesignState_build_closure7(store, state), _null));
}
t2 = J.$index$asx(t7.$index(0, t8), "page_layout");
t2 = J.$index$asx(t9.$index(0, t10), "page_layout");
if (t2 == null)
t2 = "";
t4 = settings.pageLayout;
t14 = type$.MappedListIterable_of_legacy_String_and_legacy_DropdownMenuItem_legacy_String;
t15 = t14._eval$1("ListIterable.E");
t16 = type$.legacy_String;
t12.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(B.List_portrait_landscape, new A._InvoiceDesignState_build_closure8(t1), t14), true, t15), _null, t2, new A._InvoiceDesignState_build_closure9(viewModel, settings), _null, false, t4, t16));
t13.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(B.List_portrait_landscape, new A._InvoiceDesignState_build_closure8(t1), t14), true, t15), _null, t2, new A._InvoiceDesignState_build_closure9(viewModel, settings), _null, false, t4, t16));
t4 = t1.get$pageSize();
t2 = settings.pageSize;
t12.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(B.List_mRX, new A._InvoiceDesignState_build_closure10(t1), t14), true, t15), _null, t4, new A._InvoiceDesignState_build_closure11(viewModel, settings), _null, false, t2, t16));
t13.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(B.List_mRX, new A._InvoiceDesignState_build_closure10(t1), t14), true, t15), _null, t4, new A._InvoiceDesignState_build_closure11(viewModel, settings), _null, false, t2, t16));
t2 = t1.get$fontSize(t1);
t4 = settings.fontSize;
t4 = t4 == null ? "" : A.S(t4);
t14 = type$.MappedListIterable_of_legacy_int_and_legacy_DropdownMenuItem_legacy_String;
t12.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(A._setArrayType([5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], type$.JSArray_legacy_int), new A._InvoiceDesignState_build_closure12(), t14), true, t14._eval$1("ListIterable.E")), _null, t2, new A._InvoiceDesignState_build_closure13(viewModel, settings), _null, false, t4, t16));
t12 = A.FormCard$(_null, t12, _null, B.CrossAxisAlignment_3, false, _null, false, _null);
t13.push(A.AppDropdownButton$(_null, "", true, A.List_List$of(new A.MappedListIterable(A._setArrayType([5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], type$.JSArray_legacy_int), new A._InvoiceDesignState_build_closure12(), t14), true, t14._eval$1("ListIterable.E")), _null, t2, new A._InvoiceDesignState_build_closure13(viewModel, settings), _null, false, t4, t16));
t13 = A.FormCard$(_null, t13, _null, B.CrossAxisAlignment_3, false, _null, false, _null);
t4 = t1.get$primaryFont();
t4 = A.EntityDropdown$(true, false, settings.primaryFont, _null, $.$get$memoizedFontMap().call$1($.kGoogleFonts), B.EntityType_font, B.List_empty1, t4, _null, _null, new A._InvoiceDesignState_build_closure14(viewModel, settings), _null, _null, _null);
t2 = t1.get$secondaryFont();
@ -472704,87 +472750,87 @@
t14 = t1.get$primaryColor();
t14 = A.FormColorPicker$(settings.primaryColor, t14, new A._InvoiceDesignState_build_closure16(viewModel, settings));
t15 = t1.get$secondaryColor();
t15 = A.FormCard$(_null, A._setArrayType([new A.LearnMoreUrl(t4, "https://fonts.google.com", _null, _null), t2, t14, A.FormColorPicker$(settings.secondaryColor, t15, new A._InvoiceDesignState_build_closure17(viewModel, settings))], t13), _null, B.CrossAxisAlignment_0, false, _null, true, _null);
t14 = J.$index$asx(t7.$index(0, t8), "empty_columns");
t15 = A.FormCard$(_null, A._setArrayType([new A.LearnMoreUrl(t4, "https://fonts.google.com", _null, _null), t2, t14, A.FormColorPicker$(settings.secondaryColor, t15, new A._InvoiceDesignState_build_closure17(viewModel, settings))], t12), _null, B.CrossAxisAlignment_0, false, _null, true, _null);
t14 = J.$index$asx(t9.$index(0, t10), "empty_columns");
t2 = t14 == null ? "" : t14;
t4 = settings.hideEmptyColumnsOnPdf;
t14 = t1.get$show(t1);
t4 = A.BoolDropdownButton$(t1.get$hide(), t14, _null, B._MdiIconData_Qa60, t2, _null, new A._InvoiceDesignState_build_closure18(viewModel, settings), t4 !== true);
t2 = J.$index$asx(t7.$index(0, t8), _s14_2);
t2 = J.$index$asx(t9.$index(0, t10), _s14_2);
if (t2 == null)
t2 = J.$index$asx(t7.$index(0, _s2_), _s14_2);
t2 = J.$index$asx(t9.$index(0, _s2_), _s14_2);
t14 = settings.pageNumbering;
t17 = t1.get$show(t1);
t14 = A.BoolDropdownButton$(t1.get$hide(), t17, _null, B.IconData_58041_MaterialIcons_null_false, t2, _null, new A._InvoiceDesignState_build_closure19(viewModel, settings), t14 === true);
t2 = J.$index$asx(t7.$index(0, t8), _s24_);
t2 = J.$index$asx(t9.$index(0, t10), _s24_);
if (t2 == null)
t2 = J.$index$asx(t7.$index(0, _s2_), _s24_);
t2 = J.$index$asx(t9.$index(0, _s2_), _s24_);
t17 = settings.pageNumberingAlignment;
t18 = J.$index$asx(t7.$index(0, t8), "left");
t18 = A.DropdownMenuItem$(A.Text$(t18 == null ? J.$index$asx(t7.$index(0, _s2_), "left") : t18, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "L", t16);
t19 = J.$index$asx(t7.$index(0, t8), "center");
t19 = A.DropdownMenuItem$(A.Text$(t19 == null ? J.$index$asx(t7.$index(0, _s2_), "center") : t19, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "C", t16);
t8 = J.$index$asx(t7.$index(0, t8), "right");
t2 = A._setArrayType([new A.Padding(B.EdgeInsets_16_0_16_10, new A.AppButton(_null, B.IconData_58751_MaterialIcons_null_false, t11.toUpperCase(), new A._InvoiceDesignState_build_closure20(state, context, store), _null, _null), _null), t12, t15, A.FormCard$(_null, A._setArrayType([t4, t14, A.AppDropdownButton$(_null, "", true, A._setArrayType([t18, t19, A.DropdownMenuItem$(A.Text$(t8 == null ? J.$index$asx(t7.$index(0, _s2_), "right") : t8, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "R", t16)], type$.JSArray_legacy_DropdownMenuItem_legacy_String), _null, t2, new A._InvoiceDesignState_build_closure21(viewModel, settings), _null, false, t17, t16)], t13), _null, _null, false, _null, false, _null)], t13);
t18 = J.$index$asx(t9.$index(0, t10), "left");
t18 = A.DropdownMenuItem$(A.Text$(t18 == null ? J.$index$asx(t9.$index(0, _s2_), "left") : t18, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "L", t16);
t19 = J.$index$asx(t9.$index(0, t10), "center");
t19 = A.DropdownMenuItem$(A.Text$(t19 == null ? J.$index$asx(t9.$index(0, _s2_), "center") : t19, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "C", t16);
t10 = J.$index$asx(t9.$index(0, t10), "right");
t2 = A._setArrayType([new A.Padding(B.EdgeInsets_16_0_16_10, new A.AppButton(_null, B.IconData_58751_MaterialIcons_null_false, t11.toUpperCase(), new A._InvoiceDesignState_build_closure20(state, context, store), _null, _null), _null), t13, t15, A.FormCard$(_null, A._setArrayType([t4, t14, A.AppDropdownButton$(_null, "", true, A._setArrayType([t18, t19, A.DropdownMenuItem$(A.Text$(t10 == null ? J.$index$asx(t9.$index(0, _s2_), "right") : t10, _null, _null, _null, _null, _null, _null, _null, _null, _null), _null, "R", t16)], type$.JSArray_legacy_DropdownMenuItem_legacy_String), _null, t2, new A._InvoiceDesignState_build_closure21(viewModel, settings), _null, false, t17, t16)], t12), _null, _null, false, _null, false, _null)], t12);
t4 = type$.JSArray_legacy_String;
t7 = type$.MappedListIterable_of_legacy_String_and_legacy_String;
t8 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "id_number", "vat_number", "website", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure22(), t7), true, t16);
B.JSArray_methods.addAll$1(t8, new A.MappedListIterable(A._setArrayType(["full_name", "email", "phone", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure23(), t7));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_, "country", "phone"], t4), new A._InvoiceDesignState_build_closure24(), t7), true, t16);
B.JSArray_methods.addAll$1(t11, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure25(), t7));
t12 = settings.getFieldsForSection$1(_s14_);
t12 = A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure26(viewModel, settings), t8, "client", t12), _null, _null, _null, false, _null, true, _null);
t8 = t7._eval$1("ListIterable.E");
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure27(), t7), true, t8);
t14 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone"], t4), new A._InvoiceDesignState_build_closure28(), t7), true, t8);
t9 = type$.MappedListIterable_of_legacy_String_and_legacy_String;
t10 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "id_number", "vat_number", "website", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure22(), t9), true, t16);
B.JSArray_methods.addAll$1(t10, new A.MappedListIterable(A._setArrayType(["full_name", "email", "phone", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure23(), t9));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_, "country", "phone"], t4), new A._InvoiceDesignState_build_closure24(), t9), true, t16);
B.JSArray_methods.addAll$1(t11, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure25(), t9));
t13 = settings.getFieldsForSection$1(_s14_);
t13 = A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure26(viewModel, settings), t10, "client", t13), _null, _null, _null, false, _null, true, _null);
t10 = t9._eval$1("ListIterable.E");
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure27(), t9), true, t10);
t14 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone"], t4), new A._InvoiceDesignState_build_closure28(), t9), true, t10);
t15 = settings.getFieldsForSection$1("company_details");
t15 = A.FormCard$(A.MultiSelectList$(t1.get$addField(), t14, false, true, new A._InvoiceDesignState_build_closure29(viewModel, settings), t11, "company", t15), _null, _null, _null, false, _null, true, _null);
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure30(), t7), true, t8);
t14 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["address1", "address2", _s17_, "country"], t4), new A._InvoiceDesignState_build_closure31(), t7), true, t8);
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "id_number", "vat_number", "website", "email", "phone", "address1", "address2", _s17_, _s17_0, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure30(), t9), true, t10);
t14 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["address1", "address2", _s17_, "country"], t4), new A._InvoiceDesignState_build_closure31(), t9), true, t10);
t17 = settings.getFieldsForSection$1(_s15_);
t13 = A._setArrayType([new A.ScrollableListView(t2, _null, _null, _null, false, _null), t12, t15, A.FormCard$(A.MultiSelectList$(t1.get$addField(), t14, false, true, new A._InvoiceDesignState_build_closure32(viewModel, settings), t11, "company", t17), _null, _null, _null, false, _null, true, _null)], t13);
t12 = A._setArrayType([new A.ScrollableListView(t2, _null, _null, _null, false, _null), t13, t15, A.FormCard$(A.MultiSelectList$(t1.get$addField(), t14, false, true, new A._InvoiceDesignState_build_closure32(viewModel, settings), t11, "company", t17), _null, _null, _null, false, _null, true, _null)], t12);
if (company.isModuleEnabled$1(B.EntityType_invoice)) {
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "due_date", "amount", "balance", "balance_due", "custom1", "custom2", "custom3", "custom4", "project", "vendor"], t4), new A._InvoiceDesignState_build_closure33(), t7), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure34(), t7));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "due_date", "total", "balance_due"], t4), new A._InvoiceDesignState_build_closure35(), t7), true, t8);
t12 = settings.getFieldsForSection$1(_s15_0);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure36(viewModel, settings), t2, "invoice", t12), _null, _null, _null, false, _null, true, _null));
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "due_date", "amount", "balance", "balance_due", "custom1", "custom2", "custom3", "custom4", "project", "vendor"], t4), new A._InvoiceDesignState_build_closure33(), t9), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure34(), t9));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "due_date", "total", "balance_due"], t4), new A._InvoiceDesignState_build_closure35(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s15_0);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure36(viewModel, settings), t2, "invoice", t13), _null, _null, _null, false, _null, true, _null));
}
if (company.isModuleEnabled$1(B.EntityType_quote)) {
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "valid_until", "total", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure37(), t7), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure38(), t7));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "valid_until", "total"], t4), new A._InvoiceDesignState_build_closure39(), t7), true, t8);
t12 = settings.getFieldsForSection$1(_s13_);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure40(viewModel, settings), t2, "quote", t12), _null, _null, _null, false, _null, true, _null));
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "valid_until", "total", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure37(), t9), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure38(), t9));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "valid_until", "total"], t4), new A._InvoiceDesignState_build_closure39(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s13_);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure40(viewModel, settings), t2, "quote", t13), _null, _null, _null, false, _null, true, _null));
}
if (company.isModuleEnabled$1(B.EntityType_credit)) {
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "total", "balance", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure41(), t7), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure42(), t7));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "balance", "total"], t4), new A._InvoiceDesignState_build_closure43(), t7), true, t8);
t12 = settings.getFieldsForSection$1(_s14_0);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure44(viewModel, settings), t2, "credit", t12), _null, _null, _null, false, _null, true, _null));
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "total", "balance", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure41(), t9), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["balance"], t4), new A._InvoiceDesignState_build_closure42(), t9));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "po_number", "date", "balance", "total"], t4), new A._InvoiceDesignState_build_closure43(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s14_0);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure44(viewModel, settings), t2, "credit", t13), _null, _null, _null, false, _null, true, _null));
}
if (company.isModuleEnabled$1(B.EntityType_vendor)) {
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure45(), t7), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure46(), t7));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_], t4), new A._InvoiceDesignState_build_closure47(), t7), true, t16);
B.JSArray_methods.addAll$1(t11, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure48(), t7));
t12 = settings.getFieldsForSection$1(_s14_1);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure49(viewModel, settings), t2, "vendor", t12), _null, _null, _null, false, _null, true, _null));
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_, "country", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure45(), t9), true, t16);
B.JSArray_methods.addAll$1(t2, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure46(), t9));
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["name", "number", "vat_number", "address1", "address2", _s17_], t4), new A._InvoiceDesignState_build_closure47(), t9), true, t16);
B.JSArray_methods.addAll$1(t11, new A.MappedListIterable(A._setArrayType(["email"], t4), new A._InvoiceDesignState_build_closure48(), t9));
t13 = settings.getFieldsForSection$1(_s14_1);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure49(viewModel, settings), t2, "vendor", t13), _null, _null, _null, false, _null, true, _null));
}
if (company.isModuleEnabled$1(B.EntityType_purchaseOrder)) {
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "date", "due_date", "total", "balance_due", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure50(), t7), true, t16);
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "date", "due_date", "total", "balance_due"], t4), new A._InvoiceDesignState_build_closure51(), t7), true, t8);
t12 = settings.getFieldsForSection$1(_s22_);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure52(viewModel, settings), t2, "purchase_order", t12), _null, _null, _null, false, _null, true, _null));
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "date", "due_date", "total", "balance_due", "custom1", "custom2", "custom3", "custom4"], t4), new A._InvoiceDesignState_build_closure50(), t9), true, t16);
t11 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["number", "date", "due_date", "total", "balance_due"], t4), new A._InvoiceDesignState_build_closure51(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s22_);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure52(viewModel, settings), t2, "purchase_order", t13), _null, _null, _null, false, _null, true, _null));
}
t2 = A._setArrayType(["item", "description"], t4);
t11 = company.enableProductQuantity;
if (t11)
t2.push(_s8_);
t2.push("unit_cost");
t12 = company.numberOfItemTaxRates > 0;
if (t12)
t13 = company.numberOfItemTaxRates > 0;
if (t13)
t2.push(_s3_);
t14 = company.enableProductDiscount;
if (t14)
@ -472795,21 +472841,21 @@
t2.push("product3");
t2.push("product4");
t2.push(_s16_);
t2 = A.List_List$of(new A.MappedListIterable(t2, new A._InvoiceDesignState_build_closure53(), t7), true, t8);
t2 = A.List_List$of(new A.MappedListIterable(t2, new A._InvoiceDesignState_build_closure53(), t9), true, t10);
t15 = A._setArrayType(["item", "description", "unit_cost"], t4);
if (t11)
t15.push(_s8_);
if (t14)
t15.push(_s8_0);
if (t12)
if (t13)
t15.push(_s3_);
t15.push(_s10_);
t11 = A.List_List$of(new A.MappedListIterable(t15, new A._InvoiceDesignState_build_closure54(), t7), true, t8);
t11 = A.List_List$of(new A.MappedListIterable(t15, new A._InvoiceDesignState_build_closure54(), t9), true, t10);
t15 = settings.getFieldsForSection$1(_s15_1);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure55(viewModel, settings), t2, "product", t15), _null, _null, _null, false, _null, true, _null));
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure55(viewModel, settings), t2, "product", t15), _null, _null, _null, false, _null, true, _null));
if (company.isModuleEnabled$1(B.EntityType_task)) {
t2 = A._setArrayType(["service", "description", "hours", "rate"], t4);
if (t12)
if (t13)
t2.push(_s3_);
if (t14)
t2.push(_s8_0);
@ -472819,22 +472865,22 @@
t2.push("task3");
t2.push("task4");
t2.push(_s16_);
t2 = A.List_List$of(new A.MappedListIterable(t2, new A._InvoiceDesignState_build_closure56(), t7), true, t8);
t2 = A.List_List$of(new A.MappedListIterable(t2, new A._InvoiceDesignState_build_closure56(), t9), true, t10);
t11 = A._setArrayType(["service", "description", "rate", "hours"], t4);
if (t14)
t11.push(_s8_0);
if (t12)
if (t13)
t11.push(_s3_);
t11.push(_s10_);
t11 = A.List_List$of(new A.MappedListIterable(t11, new A._InvoiceDesignState_build_closure57(), t7), true, t8);
t12 = settings.getFieldsForSection$1(_s12_);
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure58(viewModel, settings), t2, "task", t12), _null, _null, _null, false, _null, true, _null));
t11 = A.List_List$of(new A.MappedListIterable(t11, new A._InvoiceDesignState_build_closure57(), t9), true, t10);
t13 = settings.getFieldsForSection$1(_s12_);
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t11, false, true, new A._InvoiceDesignState_build_closure58(viewModel, settings), t2, "task", t13), _null, _null, _null, false, _null, true, _null));
}
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["subtotal", "net_subtotal", "discount", "line_taxes", "total_taxes", _s17_1, _s17_2, _s17_3, _s17_4, "paid_to_date", "total", "outstanding"], t4), new A._InvoiceDesignState_build_closure59(), t7), true, t8);
t8 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["subtotal", "discount", _s17_1, _s17_2, _s17_3, _s17_4, "total_taxes", "line_taxes", "total", "paid_to_date", "outstanding"], t4), new A._InvoiceDesignState_build_closure60(), t7), true, t8);
t7 = settings.getFieldsForSection$1("total_columns");
t13.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t8, false, true, new A._InvoiceDesignState_build_closure61(viewModel, settings), t2, "total", t7), _null, _null, _null, false, _null, true, _null));
return A.EditScaffold$(_null, t3, new A.AppTabForm(t10, t9, t13, t6, _null, _null), _null, _null, _null, false, _null, _null, new A._InvoiceDesignState_build_closure62(_this, viewModel), _null, t5);
t2 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["subtotal", "net_subtotal", "discount", "line_taxes", "total_taxes", _s17_1, _s17_2, _s17_3, _s17_4, "paid_to_date", "total", "outstanding"], t4), new A._InvoiceDesignState_build_closure59(), t9), true, t10);
t10 = A.List_List$of(new A.MappedListIterable(A._setArrayType(["subtotal", "discount", _s17_1, _s17_2, _s17_3, _s17_4, "total_taxes", "line_taxes", "total", "paid_to_date", "outstanding"], t4), new A._InvoiceDesignState_build_closure60(), t9), true, t10);
t9 = settings.getFieldsForSection$1("total_columns");
t12.push(A.FormCard$(A.MultiSelectList$(t1.get$addField(), t10, false, true, new A._InvoiceDesignState_build_closure61(viewModel, settings), t2, "total", t9), _null, _null, _null, false, _null, true, _null));
return A.EditScaffold$(_null, t3, new A.AppTabForm(t8, t7, t12, t6, _null, _null), _null, _null, _null, false, _null, _null, new A._InvoiceDesignState_build_closure62(_this, viewModel), _null, t5);
}
};
A._InvoiceDesignState_initState_closure.prototype = {
@ -474869,7 +474915,7 @@
t7.push(new A.SettingsListTile("import_export", _this._widget.viewModel, _null));
if (showAll)
t7.push(new A.SettingsListTile(_s15_, _this._widget.viewModel, _null));
if (showAll && t4[t2].userCompany.isOwner)
if (showAll && t4[t2].userCompany.isAdmin)
t7.push(new A.SettingsListTile("account_management", _this._widget.viewModel, _null));
t2 = A.Theme_of(context).backgroundColor;
t1 = J.$index$asx(t8.$index(0, t1), "advanced_settings");

0
storage/app/.gitignore vendored Normal file → Executable file
View File

0
storage/app/public/.gitignore vendored Normal file → Executable file
View File

0
storage/framework/.gitignore vendored Normal file → Executable file
View File

0
storage/framework/cache/.gitignore vendored Normal file → Executable file
View File

0
storage/framework/sessions/.gitignore vendored Normal file → Executable file
View File

0
storage/framework/testing/.gitignore vendored Normal file → Executable file
View File

0
storage/framework/views/.gitignore vendored Normal file → Executable file
View File

0
storage/logs/.gitignore vendored Normal file → Executable file
View File