本文解答了关于《预收款开具发票时的会计分录》相关内容,同时关于的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
预收款开具发票时的会计分录
///
///[C#]
///if (ET.ProjectAmount > 0 )
///{
/// if (ReceiptObjectType == ReceiptObjectType.Customer)
/// {
/// var shenQingNo =await BalanceOfReceipt.AddBalanceOfReceiptAsync(
/// new BalanceOfReceipt()
/// {
/// ObjectType = BalanceObjectType.客户,
/// ObjectId = ET.CustomerId.Value,
/// ProjectId = ET.ProjectId.Value,
/// PaymentName = string.Empty,
/// FeiYongName = string.Empty,
/// BeforeBalanceAmount = oldBalanceDeposit,
/// Amount = ET.ProjectAmount.Value,
/// AfterBalanceAmount = newBalanceDeposit,
/// BalanceType = ReceiptBalanceType.存入,
/// Remark = "客户" + ET.CustomerName + "预收款存入,开票流水号:" + ET.SerialNo
/// });
/// if (shenQingNo < 0)
/// {
/// return new Tuple(false, "预收款流水分录保存失败!");
/// }
/// }
///}
///
/// //预收款会计分录
///if (ET.BalanceAmount > 0 && ReceiptObjectType == ReceiptObjectType.Customer)
///{
/// var shenQingNo =await BalanceOfReceipt.AddBalanceOfReceiptAsync(
/// new BalanceOfReceipt()
/// {
/// ObjectType = BalanceObjectType.客户,
/// ObjectId = ET.CustomerId.Value,
/// ProjectId = ET.ProjectId.Value,
/// PaymentName = string.Empty,
/// FeiYongName = string.Empty,
/// BeforeBalanceAmount = oldBalanceDeposit,
/// Amount = ET.BalanceAmount.Value,
/// AfterBalanceAmount = newBalanceDeposit,
/// BalanceType = ReceiptBalanceType.存入,
/// Remark = "客户" + ET.CustomerName + "预收款存入,开票流水号:" + ET.SerialNo
/// });
/// if (shenQingNo < 0)
/// {
/// return new Tuple(false, "预收款流水分录保存失败!");
/// }
///}
//if (ET.BalanceAmount > 0 && ReceiptObjectType == ReceiptObjectType.Customer)
//{
// var shenQingNo = BalanceOfReceiptService.AddBalanceOfReceipt(
// new BalanceOfReceipt()
// {
// ObjectType = BalanceObjectType.客户,
// ObjectId = ET.CustomerId.Value,
// ProjectId = ET.ProjectId.Value,
// PaymentName = string.Empty,
// FeiYongName = string.Empty,
// BeforeBalanceAmount = oldBalanceDeposit,
// Amount = ET.BalanceAmount.Value,
// AfterBalanceAmount = newBalanceDeposit,
// BalanceType = ReceiptBalanceType.存入,
// Remark = "客户" + ET.CustomerName + "预收款存入,开票流水号:" + ET.SerialNo
// });
// if (shenQingNo < 0)
// {
// return new Tuple(false,"预收款流水分录保存失败!");
// }
//}
}
//入账
if (purType== PurchaseType.部分入账)
{
//var details = _qtDetailService.GetQTODetailsByQTId(ET.Id);
//int receiptId = ET.Id;
// var receiptId = _receiptService.GetReceiptIdByCode(ET.SerialNo);
#region 入账分录[付款项目
金额
负数]
//if (ReceiptObjectType == ReceiptObjectType.Customer && IsDebt == "1")
//{
// var shenQingNo =await BalanceOfReceipt.AddBalanceOfReceiptAsync(
// new BalanceOfReceipt()
// {
// ObjectType = BalanceObjectType.客户,
// ObjectId = ET.CustomerId.Value,
// ProjectId = ET.ProjectId.Value,
// PaymentName = "客户款",
// FeiYongName = string.Empty,
// BeforeBalanceAmount = 0,
// Amount = ET.TotalAmount.Value,
// AfterBalanceAmount = ET.TotalAmount.Value,
// BalanceType = ReceiptBalanceType.支出,
// Remark = "客户" + ET.CustomerName + "款入账,发票流水号:" + ET.SerialNo
// });
// if (shenQingNo < 0)
// {
// return new Tuple(false, "款入账流水分录保存失败!");
// }
//}
#endregion
#region 入账分录[付款项目
金额]
//foreach (var detail in details)
//{
// if (detail.AccountType == 9)
// {
// var shenQingNo =await BalanceOfReceipt.AddBalanceOfReceiptAsync(
// new BalanceOfReceipt()
// {
// ObjectType = BalanceObjectType.客户,
// ObjectId = ET.CustomerId.Value,
// ProjectId = ET.ProjectId.Value,
// PaymentName = detail.AccountingCode + ":" + detail.AccountingName,
// FeiYongName = string.Empty,
// BeforeBalanceAmount = 0,
// Amount = detail.AccountAmount,
// AfterBalanceAmount = detail.AccountAmount,
// BalanceType = ReceiptBalanceType.支出,
// Remark = "客户" + ET.CustomerName + "发票明细:" + detail.AccountingCode +
// ",发票流水号:" + ET.SerialNo + ")"
// });
// if (shenQingNo < 0)
// {
// return new Tuple(false, "明细入账流水分录保存失败!");
// }
// }
//}
#endregion
}
#endregion
return new Tuple(true,"记账成功!");
}
#endregion
}
}
总结:以上是编辑:【姚沁蕾】整理及AI智能原创关于《预收款开具发票时的会计分录
》优质内容解答希望能帮助到您。