問題タブ [invoices]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
763 参照

php - CodeIgniter の DOMPDF で動作するコントローラーからビューに変数を渡す

よろしくお願いします!今日、DOMPDF を使用して PDF で請求書を生成しようとすると問題が発生します。

説明しましょう: 請求書 ID を選択するビューがあります。「PDFを生成」ボタンをクリックすると、次のようになります。

(コントローラーに移動します)

(load_modulo 関数)

(pdf_create 関数)

これで、「invoice_bankX」ビューに渡すデータがさらにあることがわかりました (クライアントで請求書をマウントしてデータを保存するために、このビューでコールバックできる銀行とクライアントの値を保持する変数が 1 つ必要です)。

すなわち

$invoiceData = 配列();

$invoiceData['invoice_number'] = 344;

$invoiceData['client_name'] = 'ジョン・マスターズ';

このようにして、値を渡して請求書を正しくマウントできるためです。誰でも方法を知っていますか?

*注 - 現在、ボタンをクリックして請求書 (PDF) を生成すると、これが機能します。しかし、請求書には、テスト用に書いた静的データが付属しています

0 投票する
1 に答える
190 参照

sql - Quick Books で請求書と受領済みの支払いを結合する方法は?

MS Access から ODBC 経由で QB に接続し、以下にリンクしました。

  • QBReportAdminGroup_v_txn_invoice_hdr
  • QBReportAdminGroup_v_txn_invoice_line
  • QBReportAdminGroup_v_txn_received_pa​​yment_hdr
  • QBReportAdminGroup_v_txn_received_pa​​yment_line

支払いと請求書を結合するクエリを作成したいのですが、それらの間の共通キーが見つかりません。足りないものはありますか?LE (追加されたテーブル フィールド):

QBReportAdminGroup_v_txn_invoice_hdr

  • cf_name_id
  • clear_type_h
  • contact_id_h
  • currency_id_h
  • custom_style_id_h
  • customer_id_h
  • customer_message_id
  • db_created_tms
  • db_modified_tms
  • 配送日
  • doc_num_h
  • due_date_h
  • employee_id_h
  • end_balance_amt
  • exchange_rate_h
  • 予定日
  • フォブ
  • アクティブです
  • is_condensed
  • is_deposited_h
  • is_finance_charge
  • is_home_currency_adjustment
  • is_opening_balance
  • is_paid_h
  • is_purchase_h
  • is_purchase_order_h
  • is_received_h
  • is_refunded
  • is_sale_h
  • is_shown_in_home_currency
  • item_id_h
  • last_auditable_action
  • last_edit_by
  • memo_h
  • modtimestamp_tms
  • 他の
  • other_id_h
  • payment_method_id_h
  • po_num
  • sales_order_num
  • sales_rep_id
  • sales_tax_code_id_h
  • 出荷日
  • ship_to_id
  • ship_to_name_id
  • ship_via_id
  • target_id_h
  • tax_code_id_h
  • terms_id
  • trans_num
  • transaction_date_h
  • transaction_id
  • transaction_name_type_h
  • transaction_view_type_h
  • txn_ident
  • vendor_id_h
  • vendor_message

QBReportAdminGroup_v_txn_invoice_line

  • cf_name_id
  • clear_type_h
  • contact_id_h
  • currency_id_h
  • custom_style_id_h
  • customer_id_h
  • customer_message_id
  • db_created_tms
  • db_modified_tms
  • 配送日
  • doc_num_h
  • due_date_h
  • employee_id_h
  • end_balance_amt
  • exchange_rate_h
  • 予定日
  • フォブ
  • アクティブです
  • is_condensed
  • is_deposited_h
  • is_finance_charge
  • is_home_currency_adjustment
  • is_opening_balance
  • is_paid_h
  • is_purchase_h
  • is_purchase_order_h
  • is_received_h
  • is_refunded
  • is_sale_h
  • is_shown_in_home_currency
  • item_id_h
  • last_auditable_action
  • last_edit_by
  • memo_h
  • modtimestamp_tms
  • 他の
  • other_id_h
  • payment_method_id_h
  • po_num
  • sales_order_num
  • sales_rep_id
  • sales_tax_code_id_h
  • 出荷日
  • ship_to_id
  • ship_to_name_id
  • ship_via_id
  • target_id_h
  • tax_code_id_h
  • terms_id
  • trans_num
  • transaction_date_h
  • transaction_id
  • transaction_name_type_h
  • transaction_view_type_h
  • txn_ident
  • vendor_id_h
  • vendor_message
  • cf_item_id
  • アカウントID
  • amount_amt
  • bank_account_type
  • bank_ref_name
  • 請求日
  • クラスID
  • クリアタイプ
  • cogs_amt
  • contact_id
  • currency_id
  • 顧客ID
  • doc_num
  • 期日
  • 従業員ID
  • 見積金額
  • 為替レート
  • Foreign_amount_amt
  • is_adjustment
  • is_applied_discount
  • is_arap
  • is_based_on_time_activity
  • is_begin_balance
  • is_build
  • is_deposited
  • is_discount
  • is_estimated
  • is_gain_loss_target
  • is_groupend_row
  • is_inactive
  • is_invoiced
  • is_item_from_estimate
  • is_item_from_sales_order
  • is_less_cashback
  • is_manually_closed
  • is_paid
  • is_purchase
  • is_purchase_order
  • is_receipt
  • is_received
  • is_sale
  • is_sales_order
  • is_source
  • is_trans_tax
  • is_uses_billed_date
  • is_value_adjust
  • item_id
  • lineitem_name_type
  • 製造元_部品番号
  • markup_amt
  • markup_amt_pct
  • メモ
  • next_target_id
  • nom_total_amt
  • open_balance_amt
  • open_qnty
  • other_id
  • その他1
  • その他2
  • payment_entry_type
  • payment_method_id
  • 数量_数量
  • 調整日
  • reimbursed_type
  • sales_order_qnty
  • sales_tax_code_id
  • service_date
  • sibling_account_id
  • site_id
  • target_id
  • tax_code_id
  • taxable_discount_amt
  • transaction_date
  • transaction_name_type
  • transaction_view_type
  • txnline_ident
  • unit_id
  • unit_price_amt
  • unit_price_pct
  • vendor_id

QBReportAdminGroup_v_txn_received_pa​​yment_hdr

  • cf_name_id
  • clear_type_h
  • contact_id_h
  • currency_id_h
  • custom_style_id
  • customer_id_h
  • customer_message_id
  • db_created_tms
  • db_modified_tms
  • 配送日
  • doc_num_h
  • due_date_h
  • employee_id_h
  • end_balance_amt
  • exchange_rate_h
  • 予定日
  • フォブ
  • アクティブです
  • is_condensed
  • is_deposited_h
  • is_finance_charge
  • is_home_currency_adjustment
  • is_opening_balance
  • is_paid_h
  • is_purchase_h
  • is_purchase_order_h
  • is_received_h
  • is_refunded
  • is_sale_h
  • is_shown_in_home_currency
  • item_id_h
  • last_auditable_action
  • last_edit_by
  • memo_h
  • modtimestamp_tms
  • 他の
  • other_id_h
  • payment_method_id_h
  • po_num
  • sales_order_num
  • sales_rep_id
  • sales_tax_code_id_h
  • 出荷日
  • ship_to_id
  • ship_to_name_id
  • ship_via_id
  • target_id_h
  • tax_code_id_h
  • terms_id
  • trans_num
  • transaction_date_h
  • transaction_id
  • transaction_name_type_h
  • transaction_view_type_h
  • txn_ident
  • vendor_id_h
  • vendor_message

QBReportAdminGroup_v_txn_received_pa​​yment_line

  • cf_name_id
  • clear_type_h
  • contact_id_h
  • currency_id_h
  • custom_style_id
  • customer_id_h
  • customer_message_id
  • db_created_tms
  • db_modified_tms
  • 配送日
  • doc_num_h
  • due_date_h
  • employee_id_h
  • end_balance_amt
  • exchange_rate_h
  • 予定日
  • フォブ
  • アクティブです
  • is_condensed
  • is_deposited_h
  • is_finance_charge
  • is_home_currency_adjustment
  • is_opening_balance
  • is_paid_h
  • is_purchase_h
  • is_purchase_order_h
  • is_received_h
  • is_refunded
  • is_sale_h
  • is_shown_in_home_currency
  • item_id_h
  • last_auditable_action
  • last_edit_by
  • memo_h
  • modtimestamp_tms
  • 他の
  • other_id_h
  • payment_method_id_h
  • po_num
  • sales_order_num
  • sales_rep_id
  • sales_tax_code_id_h
  • 出荷日
  • ship_to_id
  • ship_to_name_id
  • ship_via_id
  • target_id_h
  • tax_code_id_h
  • terms_id
  • trans_num
  • transaction_date_h
  • transaction_id
  • transaction_name_type_h
  • transaction_view_type_h
  • txn_ident
  • vendor_id_h
  • vendor_message
  • cf_item_id
  • アカウントID
  • amount_amt
  • bank_account_type
  • bank_ref_name
  • 請求日
  • クラスID
  • クリアタイプ
  • cogs_amt
  • contact_id
  • currency_id
  • 顧客ID
  • doc_num
  • 期日
  • 従業員ID
  • 見積金額
  • 為替レート
  • Foreign_amount_amt
  • is_adjustment
  • is_applied_discount
  • is_arap
  • is_based_on_time_activity
  • is_begin_balance
  • is_build
  • is_deposited
  • is_discount
  • is_estimated
  • is_gain_loss_target
  • is_groupend_row
  • is_inactive
  • is_invoiced
  • is_item_from_estimate
  • is_item_from_sales_order
  • is_less_cashback
  • is_manually_closed
  • is_paid
  • is_purchase
  • is_purchase_order
  • is_receipt
  • is_received
  • is_sale
  • is_sales_order
  • is_source
  • is_trans_tax
  • is_uses_billed_date
  • is_value_adjust
  • item_id
  • lineitem_name_type
  • 製造元_部品番号
  • markup_amt
  • markup_amt_pct
  • メモ
  • next_target_id
  • nom_total_amt
  • open_balance_amt
  • open_qnty
  • other_id
  • その他1
  • その他2
  • payment_entry_type
  • payment_method_id
  • 数量_数量
  • 調整日
  • reimbursed_type
  • sales_order_qnty
  • sales_tax_code_id
  • service_date
  • sibling_account_id
  • site_id
  • target_id
  • tax_code_id
  • taxable_discount_amt
  • transaction_date
  • transaction_name_type
  • transaction_view_type
  • unit_id
  • unit_price_amt
  • unit_price_pct
  • vendor_id
0 投票する
1 に答える
56 参照

php - PHP 請求書の変更開始曜日 -2 日

請求書システムで忙しいのですが、次の問題があります: 毎週土曜日と毎週請求書を送りたいと思っています。

したがって、私たちの週は土曜日から金曜日までです。

出力は次のようになります。

ここに注文: 3874 が表示されます。これは Weeknr: 2017-08 である必要があります。

これは私のループです:

PHPで週が月曜日に始まるかどうかを確認する方法がわかりません。それが本当なら、週の時間を-2日に変更するにはどうすればよいですか。

下手な英語で説明が下手で申し訳ありませんが、誰かが私を助けてくれることを願っています

Oこれは、例のような注文の私のプレです:

0 投票する
1 に答える
241 参照

mysql - 異なるテーブルからのグループごとの Mysql Running Balance

私は顧客の残高を計算するために使用した 3 つのテーブルを持っています。請求書の販売額 + 請求書の処理 + 税金 + 請求書番号がinvoice_No と同じである表の配送の合計金額から残高を計算する必要があります。次に、同じ請求書番号を持つテーブル収入から金額の合計を差し引き、+ 以前の請求書の場合の残高である以前の残高を差し引きます (以前の請求書は日付または ID で見つけることができます。結果はバランスに見える

これは、以前の請求書からすべての顧客の以前の残高を確認して計算したいことを意味します。これが私のテーブルのスキーマです