コード例 #1
0
        public void SyncToERP(Context.SalesOrder dbso, string sod_guid)
        {
            decimal harga = RepoSalesOrder.Harga(dbso);

            Context.SalesOrderOncall dbitem = dbso.SalesOrderOncall;
            string guid = Guid.NewGuid().ToString();

            Reposo_mstr.saveSoMstr(dbso, UserPrincipal.username, guid, dbitem.CustomerId.Value, harga);
            Reposo_mstr.saveSoDet(dbso, UserPrincipal.username, guid, sod_guid);
        }
コード例 #2
0
        public void SyncToERP(Context.SalesOrder dbso, string sod_guid)
        {
            //if (dbso.Status == "save")//save to so_mstr for invoice processing
            decimal harga = RepoSalesOrder.Harga(dbso);

            Context.SalesOrderOncall dbitem = dbso.SalesOrderOncall;
            string guid = Guid.NewGuid().ToString();

            Reposo_mstr.saveSoMstr(dbso, UserPrincipal.username, guid, dbitem.CustomerId.Value, harga);
            Reposo_mstr.saveSoDet(dbso, UserPrincipal.username, guid, sod_guid);
            //Jurnal Piutang blm inv pada penjualan blm inv

/*            Context.ERPConfig erpConfig = RepoERPConfig.FindByFrist();
 *          Repoglt_det.saveFromAc(1, dbso.SalesOrderOncall.SONumber, harga, 0, Repoac_mstr.FindByPk(erpConfig.IdPiutangDagang)); //Piutang blm inv
 *          Repoglt_det.saveFromAc(2, dbso.SalesOrderOncall.SONumber, 0, harga, Repoac_mstr.FindByPk(erpConfig.IdPendapatanUsahaBlmInv)); //Penjualan blm inv
 */     }