#
#= payable_carry_remains モデル
# Authors:: Sumiyo Yamamoto
# Copyright:: Copyright (C) OrbusNeich Medical K.K.  2010.
#--
# date        name                   note
# 2010.12.6   Sumiyo Yamamoto        新規登録
#-------------------------------------------------------------------------------
#++
class PayableCarryRemain < CommLogistics::Base::Model::AccountCarry
  include Comm::Module::Model::Logging
protected
  def init_accounting(details=nil)
    @acnt_target_id       = payto_supplier_id
    @acnt_target_group_id = payto_supplier_group_id
    @acnt_type            = MCODE_DEAL_TYPE_CARRY
    @acnt_timing          = credit_timing_code
    @acnt_target_class    = Supplier
    @target_key = 'supplier'
    
    @rp_cls        = Payable
    @rp_detail_cls = PayableDetail
    
    @ledger_cls        = SupplierLedger
    @ledger_detail_cls = SupplierLedgerDetail
    @ledger_details       = get_price_params_carry
  end
end
