All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ning.billing.invoice.dao.InvoiceItemSqlDao.sql.stg Maven / Gradle / Ivy

There is a newer version: 0.8.14
Show newest version
group InvoiceItemSqlDao: EntitySqlDao;

tableName() ::= "invoice_items"

tableFields(prefix) ::= <<
  type
, invoice_id
, account_id
, bundle_id
, subscription_id
, plan_name
, phase_name
, start_date
, end_date
, amount
, rate
, currency
, linked_item_id
, created_by
, created_date
>>

tableValues() ::= <<
  :type
, :invoiceId
, :accountId
, :bundleId
, :subscriptionId
, :planName
, :phaseName
, :startDate
, :endDate
, :amount
, :rate
, :currency
, :linkedItemId
, :createdBy
, :createdDate
>>


getInvoiceItemsByInvoice() ::= <<
  SELECT 
  FROM 
  WHERE invoice_id = :invoiceId
  
  ;
>>

getInvoiceItemsByAccount() ::= <<
  SELECT 
  FROM 
  WHERE account_id = :accountId
  
  ;
>>

getInvoiceItemsBySubscription() ::= <<
  SELECT 
  FROM 
  WHERE subscription_id = :subscriptionId
  
  ;
>>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy