AccountGo / accountgo

Accounting System built in ASP.NET DotNetCore, ReactJS, MobX. Don't forget to click STAR if you like this project.
http://accountgo.net
MIT License
385 stars 313 forks source link

Page not working #81

Closed IrfanSamad closed 7 years ago

IrfanSamad commented 7 years ago

Some files are missing and an able to work on application , like unable to make new PO because (purchaseorder.chunk.js) is missing and unable to view ChartOf Account .. its blank page how can i fixit?

thanks

IrfanSamad commented 7 years ago

any update?

mvperez commented 7 years ago

Hi did you follow the instructions in the readme?

IrfanSamad commented 7 years ago

Hi, yes follow the instructions (all db tables has been generated and created successfully) , i just get the blank page of purchase and sales related pages eg. Add Purchase Order have just two line:

i am unable to create new Purchase Order ,Sales Order etc..

is there any this i missed?

jsoques commented 7 years ago

Make sure to do step #8 image

IrfanSamad commented 7 years ago

Hi, josques, i did setp #8 , but i got the error and unable to run webpack scripts

image

IrfanSamad commented 7 years ago

still waiting for solution . any fixit?

codemvp commented 7 years ago

did you install webpack? step no. 4

On Fri, Nov 25, 2016 at 9:58 PM, New Xp notifications@github.com wrote:

still waiting for solution . any fixit?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AccountGo/accountgo/issues/81#issuecomment-262962001, or mute the thread https://github.com/notifications/unsubscribe-auth/AKMkY9KuZfPXRCGHERcPGLyDycDiihmlks5rBumVgaJpZM4K4AI1 .

IrfanSamad commented 7 years ago

Yes, i did some pages are working like image Purchase Invoice are not working eg. image Chart Of Accounts: image

unable to complete Account Receivable cycle.. :(

IrfanSamad commented 7 years ago

any solutions?

IrfanSamad commented 7 years ago

i am waiting for the help .. i am unable to find solutions

goiwebdev commented 7 years ago

Hi Irfan,

I already update the fix in github. What I did is to set an height for the div and that's fix the issue I encounter it in quotations. But for the Create Invoice I'm still investigating the issue.

Here's the fix for the account code but you can pull this to our repo.

goiwebdev commented 7 years ago

Hi Irfan,

I don't know what happen with the new invoice and it's now working to me. What I did is to Isolate the PurchaseInvoice.tsx, remove the components one by one and try to rebuild one at a time (e.g. remove ValidationErrors , PurchaseInvoiceHeader ,PurchaseInvoiceLines ,PurchaseInvoiceTotals , SavePurchaseInvoiceButton , CancelPurchaseInvoiceButton , PostButton and retain EditButton and after that include the second, third , fourth ).

No Idea what's the exact issue on this but I also push it in our github.

IrfanSamad commented 7 years ago

Hi goiwebdev, I already solved the issue my self , its JS files calling issue i jut put in _Layout.chtml and remove "DOCTYPE " line from the top now all pages is working fine. here is my JS list below

<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 2.2.0 -->
<script src="~/plugins/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="~/plugins/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="~/adminLTE/js/app.js"></script>
<!--AG-GRID-->
<script src="~/plugins/ag-grid/dist/ag-grid.js?ignore=notused24"></script>

<!--TODO : this is temporary solution.-->
<script src="~/adminLTE/js/bootstrap-datetimepicker.js"></script>

<script src="~/scripts/vendor.bundle.js"></script> 
IrfanSamad commented 7 years ago

with ASP Core the development time too long and more complex .. ReactJS .. Dome, Dto, Api .etc .. so all issue will resolved but takes time

joaopedromago commented 7 years ago

i've solved the problem, the webpack.config.js must be like this: /// var webpack = require('webpack'); var path = require('path');

var buildDir = path.resolve(dirname, './wwwroot/scripts'); var scriptsDir = path.resolve(dirname, './wwwroot/libs/tsxbuild'); //var scriptsDir = path.resolve(__dirname, './Scripts');

var config = { entry: { home: scriptsDir + '/home' + '/home', "sales/salesorder": scriptsDir + '/sales/salesorder', "quotations/salesquotation": scriptsDir + '/quotations/salesquotation', "sales/salesinvoice": scriptsDir + '/sales/salesinvoice', "purchasing/purchaseorder": scriptsDir + '/purchasing/purchaseorder', "purchasing/purchaseinvoice": scriptsDir + '/purchasing/purchaseinvoice', "financials/journalentry": scriptsDir + '/financials/journalentry', vendor: ['react', 'react-dom'] }, output: { path: buildDir, filename: '[name].chunk.js' }, resolve: { extensions: ['.js', '.jsx', '.tsx'] }, // debug: true, devtool: 'source-map', //module: { // loaders: [ // { // test: /.tsx$/, // loader: 'ts-loader', // exclude: /(node_modules)/ // } // ] //}, plugins: [ new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: 'vendor.bundle.js' }) ], externals: { 'Config': JSON.stringify(process.env.ENV === 'production' ? { apiUrl: "http://accountgo-dev-api.azurewebsites.net/" } : { apiUrl: "http://localhost:5000/" }) } };

module.exports = config;