NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tr.com.java.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;



/**
*
* @author Apache
*/

public class SiparisSatir implements Serializable {

private static final long serialVersionUID = 1L;




private Long id;

private double miktar;

private Siparis siparisId;

private StokKalemleri stokKalemleriId;


private String olcuBirimiKod;
private Tenant organizasyon;
private double birimFiyati;
// @Max(value=?) @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation

private Double iskontoOrani;

private Double iskontoTutari;



private double toplam_tutar;






private Double kdvOranı;
private Double kdvTutarı;
private Double tutar;
private String paraBirimi;

public List<SiparisSatir> getSiparisSatirEkleListesi() {
return siparisSatirEkleListesi;
}

public void setSiparisSatirEkleListesi(List<SiparisSatir> siparisSatirEkleListesi) {
this.siparisSatirEkleListesi = siparisSatirEkleListesi;
}

public List<SiparisSatir> siparisSatirEkleListesi = new ArrayList<SiparisSatir>();

public SiparisSatir(){}

public SiparisSatir(Long id, double miktar, Siparis siparisId, StokKalemleri stokKalemleriId, String olcuBirimiKod, Tenant organizasyon, double birimFiyati, Double iskontoOrani, Double iskontoTutari, double toplam_tutar, Double kdvOranı, Double kdvTutarı, Double tutar, String paraBirimi) {
this.id = id;
this.miktar = miktar;
this.siparisId = siparisId;
this.stokKalemleriId = stokKalemleriId;
this.olcuBirimiKod = olcuBirimiKod;
this.organizasyon = organizasyon;
this.birimFiyati = birimFiyati;
this.iskontoOrani = iskontoOrani;
this.iskontoTutari = iskontoTutari;
this.toplam_tutar = toplam_tutar;
this.kdvOranı = kdvOranı;
this.kdvTutarı = kdvTutarı;
this.tutar = tutar;
this.paraBirimi = paraBirimi;
}


public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public double getMiktar() {
return miktar;
}

public void setMiktar(double miktar) {
this.miktar = miktar;
}

public Siparis getSiparisId() {
return siparisId;
}

public void setSiparisId(Siparis siparisId) {
this.siparisId = siparisId;
}

public StokKalemleri getStokKalemleriId() {
return stokKalemleriId;
}

public void setStokKalemleriId(StokKalemleri stokKalemleriId) {
this.stokKalemleriId = stokKalemleriId;
}

public String getOlcuBirimiKod() {
return olcuBirimiKod;
}

public void setOlcuBirimiKod(String olcuBirimiKod) {
this.olcuBirimiKod = olcuBirimiKod;
}

public Tenant getOrganizasyon() {
return organizasyon;
}

public void setOrganizasyon(Tenant organizasyon) {
this.organizasyon = organizasyon;
}

public double getBirimFiyati() {
return birimFiyati;
}

public void setBirimFiyati(double birimFiyati) {
this.birimFiyati = birimFiyati;
}

public Double getIskontoOrani() {
return iskontoOrani;
}

public void setIskontoOrani(Double iskontoOrani) {
this.iskontoOrani = iskontoOrani;
}

public Double getIskontoTutari() {
return iskontoTutari;
}

public void setIskontoTutari(Double iskontoTutari) {
this.iskontoTutari = iskontoTutari;
}

public Double getKdvOranı() {
return kdvOranı;
}

public void setKdvOranı(Double kdvOranı) {
this.kdvOranı = kdvOranı;
}

public Double getKdvTutarı() {
return kdvTutarı;
}

public void setKdvTutarı(Double kdvTutarı) {
this.kdvTutarı = kdvTutarı;
}

public Double getTutar() {
if (tutar == null)
tutar = 0.0;
return tutar;
}

public void setTutar(Double tutar) {
this.tutar = tutar;
}

public String getParaBirimi() {
return paraBirimi;
}

public void setParaBirimi(String paraBirimi) {
this.paraBirimi = paraBirimi;
}

public double getToplam_tutar() {
return toplam_tutar;
}

public void setToplam_tutar(double toplam_tutar) {
this.toplam_tutar = toplam_tutar;
}

public void tumHesaplamalar() {
iskontoTutarHesapla();
kdvTutarHesapla();
tutarHesapla();

}

public Double iskontoTutarHesapla() {
Double iskonto_tutari = getMiktar() * getBirimFiyati() * getIskontoOrani();
setIskontoTutari(iskonto_tutari);
return iskontoTutari;
}

public Double kdvTutarHesapla()
{
Double kdv_tutar = (getMiktar() * getBirimFiyati() * getKdvOranı()) / 100;
setKdvTutarı(kdv_tutar);
return kdvTutarı;
}

public Double tutarHesapla()
{
Double satir_tutar = getBirimFiyati() * getMiktar();
setTutar(satir_tutar);
return tutar;
}




@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}

@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof SiparisSatir)) {
return false;
}
SiparisSatir other = (SiparisSatir) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}

@Override
public String toString() {
return "DBConnection.SiparisSatir[ id= " + id + " ]";
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.