Skip to content

Commit

Permalink
hareket girislerinde bos gecilen tarih hataya sebep oluyordu, duzelti…
Browse files Browse the repository at this point in the history
…ldi.

yansimali hareket kayitlarinda yansima kayitlarindan birisi eksik oldugunda hata firlatiyordu, duzeltildi, closes #51.
  • Loading branch information
mdpinar committed Jan 19, 2016
1 parent ee53913 commit 36cdcee
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 17 deletions.
2 changes: 0 additions & 2 deletions app/models/AbstractBaseTrans.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.joda.time.Days;

import play.data.format.Formats.DateTime;
import play.data.validation.Constraints;
import play.i18n.Messages;
import utils.CacheUtils;
import utils.DocNoUtils;
Expand Down Expand Up @@ -56,7 +55,6 @@ public abstract class AbstractBaseTrans extends BaseModel {
@Column(name = "_right")
public Right right;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date transDate = new Date();

Expand Down
1 change: 0 additions & 1 deletion app/models/AbstractStockTransDetail.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public abstract class AbstractStockTransDetail extends Model {
@ManyToOne
public Stock stock;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date transDate = new Date();

Expand Down
1 change: 0 additions & 1 deletion app/models/ChqbllDetailPartial.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public class ChqbllDetailPartial extends Model {
@ManyToOne(cascade = CascadeType.ALL)
public SafeTrans trans;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date transDate = new Date();

Expand Down
1 change: 0 additions & 1 deletion app/models/ChqbllPayrollDetail.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public class ChqbllPayrollDetail extends Model {
@Constraints.MaxLength(30)
public String correspondentBranch;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date dueDate;

Expand Down
2 changes: 0 additions & 2 deletions app/models/SaleCampaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ public class SaleCampaign extends BaseStockExtraFieldsModel {
@Constraints.MaxLength(30)
public String name;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date startDate;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date endDate;

Expand Down
1 change: 0 additions & 1 deletion app/models/StockCosting.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public class StockCosting extends BaseStockExtraFieldsModel {
@DateTime(pattern = "dd/MM/yyyy HH:mm")
public Date execDate;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date calcDate = new Date();

Expand Down
1 change: 0 additions & 1 deletion app/models/temporal/Ws2WsTransferModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public class Ws2WsTransferModel {
@Constraints.Required
public AdminWorkspace targetWS;

@Constraints.Required
@DateTime(pattern = "dd/MM/yyyy")
public Date transDate = new Date();

Expand Down
25 changes: 19 additions & 6 deletions app/utils/RefModuleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -415,26 +415,39 @@ public static void setTransientFields(AbstractBaseTrans trans) {

case contact: {
refTrans = ContactTrans.findById(trans.refId);
refContact = ((ContactTrans) refTrans).contact;
refContactTransSource = ((ContactTrans) refTrans).transSource;
if (refTrans != null) {
refContact = ((ContactTrans) refTrans).contact;
refContactTransSource = ((ContactTrans) refTrans).transSource;
}
break;
}
case safe: {
refTrans = SafeTrans.findById(trans.refId);
refSafe = ((SafeTrans) refTrans).safe;
refSafeTransSource = ((SafeTrans) refTrans).transSource;
if (refTrans != null) {
refSafe = ((SafeTrans) refTrans).safe;
refSafeTransSource = ((SafeTrans) refTrans).transSource;
}
break;
}
case bank: {
refTrans = BankTrans.findById(trans.refId);
refBank = ((BankTrans) refTrans).bank;
refBankTransSource = ((BankTrans) refTrans).transSource;
if (refTrans != null) {
refBank = ((BankTrans) refTrans).bank;
refBankTransSource = ((BankTrans) refTrans).transSource;
}
break;
}
default: {
refTrans = ContactTrans.findByRefIdAndRight(trans.id, trans.right);
}
}

if (refTrans == null) {
trans.refModule = null;
log.warn("Trans has a reflection link but there is no the same reflection at other side!");
log.warn("---> Right : " + trans.right + " Id : " + trans.id + " Reflection Module : " + trans.refModule);
return;
}

trans.refOldModule = trans.refModule;
trans.refContact = refContact;
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import play.Project._

name := "seyhan"

version := "1.0.11"
version := "1.0.12"

libraryDependencies ++= Seq(
jdbc,
Expand Down
8 changes: 7 additions & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
sürüm 1.0.11 - 08/07/2015
sürüm 1.0.12 - 19/01/2016
- kasa, cari ve banka hareket raporlarında sıralama önceliği hareket yönüne verildi, aynı gün içerisindeki borç hareketleri önce sıralanıyor
- cari, kasa ve banka durum raporlarında bulunan para birimi alanı birden fazla referansa sahipti, hareket tablosundan gelecek şekilde düzeltildi
- banka hareketlerindeki masraf tutarı herhangi bir hesaba yansımıyordu, düzenleme ile aynı hesaba alacak kaydı olarak yansıtılıyor
- raporların tamamında eski rapor üretecine ait etiketler vardı, kaldırıldı

sürüm 1.0.11 - 08/07/2015
- sipariş, irsaliye ve fatura belgeleri için;
a- hareket tablolarında bulunan enum tipindeki status alanının yapısı değiştirilerek tanımlanabilir hale getirildi
b- onaylama adımları yeni status yapısını kullanacak şekilde düzenlendi
Expand Down

0 comments on commit 36cdcee

Please sign in to comment.