本文解答了关于《给客户返利的账务处理》相关内容,同时关于1、给客户返利的账务处理,2、给客户返利账务如何处理,3、给客户的返利会计分录,4、给客户返利计入什么科目,5、给客户的返利会计科目,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
给客户返利的账务处理
if (reliefAmount != 0)
{
#region 保存客户返利付款单
returnIncomeBill = new ReturnIncomeBill();
returnIncomeBill.TradeCode = returnIncomeBillManager.GenerateReturnIncomeBillCode();
returnIncomeBill.RegionId = regionId;
returnIncomeBill.OrganizationId = organizationId;
returnIncomeBill.WarehouseId = warehouseId;
returnIncomeBill.ReturnIncomeDate = DateTime.Now;
returnIncomeBill.ReceiveBrethrenId = receiveId; //????????????
returnIncomeBill.Description = description;
returnIncomeBill.TotalReturnMoney = reliefAmount;
returnIncomeBill.CreateDate = DateTime.Now;
returnIncomeBill.CreateUserId = userId;
returnIncomeBill.IsOut = false;
returnIncomeBill.AuditingState = (int)ReturnIncomeBillAuditing.WaitAuditing;
returnIncomeBill.IncomeBillType=ReturnIncomeBillType.其他 ;
returnIncomeBillManager.Add(returnIncomeBill);
#region 保存商品
returnIncomeBillDetail = new ReturnIncomeBillDetail();
returnIncomeBillDetail.ReturnIncomeBillId = returnIncomeBill.ReturnIncomeBillId;
returnIncomeBillDetail.GoodsId = goodsId;
returnIncomeBillDetail.UnitPrice = returnIncomeBillManager.CalculateGoodsUnitPrice(goodsId);
returnIncomeBillDetail.Quantity = orderDetails[0].Quantity;
returnIncomeBillDetail.Units = orderDetails[0].Units;
returnIncomeBillDetail.Description = description;
returnIncomeBillDetailManager.Add(returnIncomeBillDetail);
#endregion
#endregion
#region 更新订单中的优惠费用
order.OtherDiscountMoney += reliefAmount;
#endregion
}
#endregion
#endregion
realTotalRealAmount += order.RealTotalPrice + saleCatalogDetail.PreferentialScale;
////////////////////////
saleOrderManager.Update(saleOrder);
orderManager.Update(order);
}
return realTotalRealAmount;
}
///
/// 根据储备金单据号获得储备金明细
///
///
///
public List GetErrorRepairBillDetail(string paymentBillCode)
{
List billDetails = errorRepairFundsManager.GetErrorRepairBillDetail(paymentBillCode);
decimal amount = 0;
decimal amountOut = 0;
foreach (ErrorAndRepairFundsPaymentBillDetail item in billDetails)
{
amountOut += item.AmountOut;
amount += item.Amount;
}
ErrorAndRepairFundsPaymentBillDetail totalDetail = new ErrorAndRepairFundsPaymentBillDetail()
{
BuildingName = "合计",
Amount = amount,
AmountOut = amountOut
};
billDetails.Add(totalDetail);
return billDetails;
}
}
}
总结:以上是编辑:【伍曾凯】整理及AI智能原创关于《给客户返利的账务处理
》优质内容解答希望能帮助到您。