2,747
edits
mNo edit summary |
No edit summary |
||
Line 24:
public void NewARPayment(BCE.Data.DBSetting dbSetting)
{
BCE.AutoCount.ARAP.ARPayment.ARPaymentDataAccess
BCE.AutoCount.ARAP.ARPayment.ARPaymentEntity
//
//
// Add one payment detail
BCE.AutoCount.ARAP.ARPayment.ARPaymentDTLEntity
//Knockoff Invoice
arPaymentDA.SaveARPayment(arPayment, BCE.AutoCount.Authentication.UserAuthentication.GetOrCreate(dbSetting).LoginUserID);▼
▲
}
</syntaxhighlight>
Line 43 ⟶ 45:
public void EditARPayment(BCE.Data.DBSetting dbSetting)
{
BCE.AutoCount.ARAP.ARPayment.ARPaymentDataAccess
BCE.AutoCount.ARAP.ARPayment.ARPaymentEntity
//If
//Then exit this function
if (
return;
BCE.AutoCount.ARAP.ARPayment.ARPaymentDTLEntity
}
</syntaxhighlight>
===Delete===
<syntaxhighlight lang="csharp">
private void DeleteARPayment(BCE.Data.DBSetting dbSetting)
{
BCE.AutoCount.ARAP.ARPayment.ARPaymentDataAccess cmd = BCE.AutoCount.ARAP.ARPayment.ARPaymentDataAccess.Create(dbSetting);
cmd.DeleteARPayment("RC-0001", BCE.AutoCount.Authentication.UserAuthentication.GetOrCreate(dbSetting).LoginUserID);
}
</syntaxhighlight>
===Cancel===
<syntaxhighlight lang="csharp">
</syntaxhighlight>
==Sample Code with Data Model for Testing==
Line 80 ⟶ 94:
public string Description { get; set; }
public string DepositMethod { get; set; }
//PaymentCurrencyCode will be the currency code of Debtor's Account.
//Need to define only when PaymentCurrencyCode is different from Debtor's Account Currency
public string PaymentCurrencyCode { get; set; }
//Require PaymentToHomeCurrencyRate,
//when PaymentCurrencyCode is in Foreign Currency
public decimal? PaymentToHomeCurrencyRate { get; set; }
//Require PaymentToDebtorCurrencyRate, when PaymentCurrencyCode is different from Debtor CurrencyCode▼
//Require PaymentToDebtorCurrencyRate,
▲ //
public decimal? PaymentToDebtorCurrencyRate { get; set; }
public string Project { get; set; }
public string Department { get; set; }
|