|
|
@@ -429,13 +429,14 @@ public class ApbillAdjustment implements Serializable {
|
|
|
}
|
|
|
|
|
|
public ApbillAdjustment(PurchaseAPBill apBill) {
|
|
|
- Long enuu = SystemSession.getUser().getEnterprise().getUu();
|
|
|
+ Enterprise enterprise = SystemSession.getUser().getEnterprise();
|
|
|
this.setCurrency(apBill.getAb_currency());
|
|
|
this.setDate(new Date());
|
|
|
this.setOrderdate(apBill.getAb_date());
|
|
|
this.setSourceid(apBill.getAb_id());
|
|
|
- this.setEnuu(enuu);
|
|
|
- this.setCustuu(apBill.getAb_vendoruu());
|
|
|
+ this.setEnuu(apBill.getAb_vendoruu());
|
|
|
+ this.setCustuu(enterprise.getUu());
|
|
|
+ this.setCustname(enterprise.getEnName());
|
|
|
}
|
|
|
|
|
|
public ApbillAdjustment() {
|