| | |
| | | pl.supplier_name, |
| | | pr.*, |
| | | tr.invoice_number, |
| | | tr.iss_uer_id, |
| | | tr.iss_uer, |
| | | tr.id as ticketRegistrationId, |
| | | ROUND(pr.tickets_amount/(1+pr.tax_rate/100),2 ) as un_tickets_price, |
| | | ROUND(pr.tickets_amount-pr.tickets_amount/(1+pr.tax_rate/100),2 )as invoice_amount |
| | | FROM product_record pr |
| | |
| | | and sl.sales_contract_no = #{c.salesContractNo} |
| | | </if> |
| | | <if test="c.supplierName != null and c.supplierName != ''"> |
| | | and sl.supplier_name = #{c.supplierName} |
| | | and pl.supplier_name = #{c.supplierName} |
| | | </if> |
| | | <if test="c.createdAtStart != null and c.createdAtStart != ''"> |
| | | and pr.created_at >= date_format(#{c.createdAtStart},'%Y-%m-%d hh:mm:ss') |