fixes in division by zero in discount calculation
fixes in division by zero in discount calculation

njmube/erpnext,sagar30051991/ozsmart-erp,indictranstech/vestasi-erpnext,gangadhar-kadam/latestchurcherp,indictranstech/Das_Erpnext,saurabh6790/omni-apps,saurabh6790/med_new_app,pawaranand/phrerp,Drooids/erpnext,saurabh6790/trufil_app,gsnbng/erpnext,suyashphadtare/vestasi-erp-final,pawaranand/phrerp,gangadhar-kadam/verve_test_erp,gangadhar-kadam/hrerp,saurabh6790/omni-apps,mbauskar/sapphire-erpnext,njmube/erpnext,netfirms/erpnext,fuhongliang/erpnext,gangadharkadam/sterp,mbauskar/phrerp,gangadhar-kadam/verve-erp,saurabh6790/aimobilize-app-backup,indictranstech/tele-erpnext,gangadharkadam/v6_erp,treejames/erpnext,Tejal011089/trufil-erpnext,mbauskar/omnitech-demo-erpnext,indictranstech/biggift-erpnext,rohitwaghchaure/New_Theme_Erp,rohitwaghchaure/GenieManager-erpnext,Yellowen/Owrang,indictranstech/fbd_erpnext,saurabh6790/test-erp,SPKian/Testing,gangadharkadam/v5_erp,fuhongliang/erpnext,saurabh6790/omnisys-app,mbauskar/sapphire-erpnext,sheafferusa/erpnext,rohitwaghchaure/GenieManager-erpnext,rohitwaghchaure/erpnext-receipher,pawaranand/phrerp,gangadharkadam/saloon_erp,rohitwaghchaure/New_Theme_Erp,gangadhar-kadam/laganerp,anandpdoshi/erpnext,gangadhar-kadam/adb-erp,fuhongliang/erpnext,suyashphadtare/sajil-erp,gangadhar-kadam/verve_test_erp,Tejal011089/huntercamp_erpnext,gsnbng/erpnext,hanselke/erpnext-1,gmarke/erpnext,shitolepriya/test-erp,gangadharkadam/vlinkerp,saurabh6790/test-med-app,hatwar/buyback-erpnext,Tejal011089/fbd_erpnext,gangadhar-kadam/hrerp,Tejal011089/paypal_erpnext,gangadharkadam/contributionerp,hernad/erpnext,Aptitudetech/ERPNext,pombredanne/erpnext,Suninus/erpnext,saurabh6790/omn-app,suyashphadtare/vestasi-erp-jan-end,meisterkleister/erpnext,Tejal011089/digitales_erpnext,suyashphadtare/gd-erp,saurabh6790/tru_app_back,gangadhar-kadam/verve_erp,rohitwaghchaure/erpnext-receipher,indictranstech/tele-erpnext,Drooids/erpnext,treejames/erpnext,gangadharkadam/vlinkerp,saurabh6790/alert-med-app,rohitwaghchaure/erpnext_smart,shitolepriya/test-erp,geekroot/erpnext,saurabh6790/medsyn-app1,suyashphadtare/gd-erp,gangadhar-kadam/mtn-erpnext,netfirms/erpnext,gangadharkadam/verveerp,gangadhar-kadam/verve_erp,gangadharkadam/v5_erp,gangadharkadam/sher,suyashphadtare/sajil-final-erp,mbauskar/alec_frappe5_erpnext,ShashaQin/erpnext,hanselke/erpnext-1,gsnbng/erpnext,mbauskar/helpdesk-erpnext,SPKian/Testing2,suyashphadtare/vestasi-erp-jan-end,mahabuber/erpnext,gangadharkadam/letzerp,shft117/SteckerApp,indictranstech/biggift-erpnext,Tejal011089/digitales_erpnext,Tejal011089/digitales_erpnext,Tejal011089/huntercamp_erpnext,mbauskar/phrerp,mbauskar/helpdesk-erpnext,gangadharkadam/sher,rohitwaghchaure/digitales_erpnext,shitolepriya/test-erp,gangadhar-kadam/powapp,mahabuber/erpnext,indictranstech/vestasi-erpnext,BhupeshGupta/erpnext,gmarke/erpnext,gangadharkadam/v5_erp,BhupeshGupta/erpnext,indictranstech/Das_Erpnext,indictranstech/trufil-erpnext,indictranstech/erpnext,gangadhar-kadam/sapphire_app,anandpdoshi/erpnext,indictranstech/focal-erpnext,rohitwaghchaure/digitales_erpnext,rohitwaghchaure/New_Theme_Erp,saurabh6790/medsyn-app,rohitwaghchaure/erpnext-receipher,mbauskar/Das_Erpnext,saurabh6790/omnitech-apps,meisterkleister/erpnext,mbauskar/Das_Erpnext,saurabh6790/medsynaptic1-app,indictranstech/reciphergroup-erpnext,aruizramon/alec_erpnext,indictranstech/focal-erpnext,gangadharkadam/vlinkerp,suyashphadtare/vestasi-update-erp,mbauskar/alec_frappe5_erpnext,rohitwaghchaure/GenieManager-erpnext,saurabh6790/medsyn-app1,Tejal011089/osmosis_erpnext,Tejal011089/osmosis_erpnext,suyashphadtare/sajil-final-erp,Tejal011089/osmosis_erpnext,gangadhar-kadam/adb-erp,gangadharkadam/tailorerp,indictranstech/fbd_erpnext,gangadhar-kadam/verve-erp,saurabh6790/omnit-app,indictranstech/reciphergroup-erpnext,mbauskar/helpdesk-erpnext,gangadharkadam/v4_erp,shft117/SteckerApp,sagar30051991/ozsmart-erp,saurabh6790/ON-RISAPP,saurabh6790/medsynaptic-app,indictranstech/internal-erpnext,saurabh6790/aimobilize,saurabh6790/omnitech-apps,saurabh6790/medapp,saurabh6790/alert-med-app,suyashphadtare/vestasi-erp-1,gangadhar-kadam/sapphire_app,ThiagoGarciaAlves/erpnext,tmimori/erpnext,hernad/erpnext,gangadharkadam/contributionerp,hatwar/Das_erpnext,Tejal011089/trufil-erpnext,gangadhar-kadam/powapp,aruizramon/alec_erpnext,gangadhar-kadam/verve_live_erp,indictranstech/phrerp,gangadhar-kadam/verve_live_erp,hernad/erpnext,ShashaQin/erpnext,fuhongliang/erpnext,dieface/erpnext,shft117/SteckerApp,gangadhar-kadam/helpdesk-erpnext,rohitwaghchaure/digitales_erpnext,indictranstech/tele-erpnext,Tejal011089/fbd_erpnext,indictranstech/osmosis-erpnext,saurabh6790/test-med-app,saurabh6790/aimobilize-app-backup,gangadhar-kadam/verve_test_erp,pawaranand/phrerp,saurabh6790/medsyn-app,saurabh6790/medsynaptic1-app,ThiagoGarciaAlves/erpnext,gangadhar-kadam/latestchurcherp,saurabh6790/med_new_app,Tejal011089/huntercamp_erpnext,pombredanne/erpnext,indictranstech/internal-erpnext,gangadharkadam/office_erp,mbauskar/alec_frappe5_erpnext,mbauskar/internal-hr,indictranstech/phrerp,suyashphadtare/sajil-erp,SPKian/Testing,gangadhar-kadam/nassimapp,gangadharkadam/smrterp,gangadharkadam/contributionerp,gangadharkadam/v6_erp,geekroot/erpnext,indictranstech/buyback-erp,mbauskar/Das_Erpnext,anandpdoshi/erpnext,mbauskar/alec_frappe5_erpnext,gangadharkadam/tailorerp,rohitwaghchaure/erpnext_smart,suyashphadtare/vestasi-erp-jan-end,Suninus/erpnext,SPKian/Testing2,indictranstech/osmosis-erpnext,mbauskar/omnitech-erpnext,gangadharkadam/sterp,indictranstech/vestasi-erpnext,geekroot/erpnext,gmarke/erpnext,rohitwaghchaure/digitales_erpnext,Drooids/erpnext,suyashphadtare/test,meisterkleister/erpnext,suyashphadtare/gd-erp,mbauskar/sapphire-erpnext,indictranstech/erpnext,indictranstech/tele-erpnext,saurabh6790/omnit-app,saurabh6790/test-erp,saurabh6790/tru_app_back,gangadhar-kadam/powapp,hatwar/focal-erpnext,suyashphadtare/sajil-erp,saurabh6790/medsynaptic-app,Suninus/erpnext,gangadharkadam/saloon_erp_install,suyashphadtare/test,Tejal011089/trufil-erpnext,mahabuber/erpnext,MartinEnder/erpnext-de,gangadharkadam/contributionerp,netfirms/erpnext,gangadharkadam/v6_erp,sagar30051991/ozsmart-erp,njmube/erpnext,4commerce-technologies-AG/erpnext,MartinEnder/erpnext-de,saurabh6790/omnisys-app,ThiagoGarciaAlves/erpnext,BhupeshGupta/erpnext,gangadhar-kadam/verve_live_erp,Yellowen/Owrang,susuchina/ERPNEXT,saurabh6790/pow-app,indictranstech/Das_Erpnext,susuchina/ERPNEXT,saurabh6790/med_app_rels,gangadharkadam/letzerp,susuchina/ERPNEXT,Tejal011089/med2-app,BhupeshGupta/erpnext,gangadhar-kadam/verve_erp,gangadhar-kadam/church-erpnext,saurabh6790/test_final_med_app,saurabh6790/aimobilize,suyashphadtare/vestasi-erp-jan-end,Tejal011089/fbd_erpnext,indictranstech/biggift-erpnext,saurabh6790/OFF-RISAPP,gangadharkadam/verveerp,sheafferusa/erpnext,gangadhar-kadam/helpdesk-erpnext,4commerce-technologies-AG/erpnext,saurabh6790/pow-app,mbauskar/omnitech-demo-erpnext,gangadhar-kadam/helpdesk-erpnext,indictranstech/erpnext,saurabh6790/trufil_app,gangadhar-kadam/sms-erpnext,hatwar/buyback-erpnext,hatwar/Das_erpnext,suyashphadtare/vestasi-erp-1,treejames/erpnext,4commerce-technologies-AG/erpnext,indictranstech/osmosis-erpnext,dieface/erpnext,saurabh6790/OFF-RISAPP,hatwar/focal-erpnext,tmimori/erpnext,gangadharkadam/smrterp,gangadhar-kadam/verve_live_erp,hanselke/erpnext-1,ShashaQin/erpnext,suyashphadtare/test,gangadhar-kadam/laganerp,gangadharkadam/verveerp,indictranstech/trufil-erpnext,Tejal011089/digitales_erpnext,Suninus/erpnext,saurabh6790/omn-app,indictranstech/reciphergroup-erpnext,SPKian/Testing2,gangadhar-kadam/helpdesk-erpnext,suyashphadtare/sajil-final-erp,Tejal011089/Medsyn2_app,shft117/SteckerApp,gsnbng/erpnext,mahabuber/erpnext,meisterkleister/erpnext,mbauskar/phrerp,gangadharkadam/saloon_erp_install,shitolepriya/test-erp,SPKian/Testing2,mbauskar/omnitech-demo-erpnext,gangadhar-kadam/mic-erpnext,Tejal011089/fbd_erpnext,ShashaQin/erpnext,hernad/erpnext,mbauskar/internal-hr,netfirms/erpnext,indictranstech/focal-erpnext,indictranstech/buyback-erp,hatwar/buyback-erpnext,gangadharkadam/johnerp,mbauskar/phrerp,mbauskar/omnitech-erpnext,indictranstech/phrerp,saurabh6790/test-erp,hanselke/erpnext-1,njmube/erpnext,anandpdoshi/erpnext,indictranstech/trufil-erpnext,indictranstech/erpnext,dieface/erpnext,gangadhar-kadam/mic-erpnext,geekroot/erpnext,gangadhar-kadam/smrterp,hatwar/focal-erpnext,rohitwaghchaure/erpnext-receipher,aruizramon/alec_erpnext,indictranstech/focal-erpnext,rohitwaghchaure/erpnext_smart,mbauskar/omnitech-demo-erpnext,indictranstech/internal-erpnext,gangadharkadam/office_erp,indictranstech/fbd_erpnext,gangadharkadam/v5_erp,indictranstech/buyback-erp,gangadharkadam/saloon_erp,gangadhar-kadam/prjapp,mbauskar/omnitech-erpnext,gangadhar-kadam/verve_erp,Tejal011089/med2-app,Tejal011089/trufil-erpnext,gangadhar-kadam/verve_test_erp,gangadharkadam/saloon_erp,saurabh6790/medapp,suyashphadtare/vestasi-update-erp,gangadharkadam/letzerp,gangadharkadam/v4_erp,gangadharkadam/saloon_erp_install,gangadhar-kadam/verve-erp,indictranstech/phrerp,dieface/erpnext,suyashphadtare/vestasi-update-erp,indictranstech/Das_Erpnext,indictranstech/vestasi-erpnext,saurabh6790/test_final_med_app,sagar30051991/ozsmart-erp,sheafferusa/erpnext,aruizramon/alec_erpnext,MartinEnder/erpnext-de,Tejal011089/Medsyn2_app,rohitwaghchaure/New_Theme_Erp,Tejal011089/paypal_erpnext,hatwar/Das_erpnext,saurabh6790/med_app_rels,gangadharkadam/vlinkerp,pombredanne/erpnext,Tejal011089/paypal_erpnext,gangadhar-kadam/mtn-erpnext,mbauskar/internal-hr,mbauskar/sapphire-erpnext,indictranstech/internal-erpnext,suyashphadtare/vestasi-erp-1,Tejal011089/paypal_erpnext,suyashphadtare/vestasi-erp-final,hatwar/focal-erpnext,saurabh6790/ON-RISAPP,gangadharkadam/saloon_erp_install,gangadharkadam/v4_erp,Tejal011089/huntercamp_erpnext,indictranstech/buyback-erp,indictranstech/fbd_erpnext,gangadhar-kadam/smrterp,MartinEnder/erpnext-de,hatwar/Das_erpnext,hatwar/buyback-erpnext,ThiagoGarciaAlves/erpnext,gangadhar-kadam/latestchurcherp,gangadhar-kadam/sapphire_app,indictranstech/osmosis-erpnext,gangadharkadam/verveerp,gangadharkadam/saloon_erp,suyashphadtare/vestasi-erp-final,SPKian/Testing,tmimori/erpnext,Drooids/erpnext,rohitwaghchaure/GenieManager-erpnext,saurabh6790/test-erp,gangadharkadam/johnerp,sheafferusa/erpnext,gangadharkadam/letzerp,tmimori/erpnext,gangadhar-kadam/nassimapp,indictranstech/reciphergroup-erpnext,gangadharkadam/office_erp,gangadharkadam/v4_erp,mbauskar/helpdesk-erpnext,gangadhar-kadam/church-erpnext,Tejal011089/osmosis_erpnext,gangadhar-kadam/sms-erpnext,gangadhar-kadam/latestchurcherp,gangadharkadam/v6_erp,indictranstech/trufil-erpnext,gmarke/erpnext,gangadhar-kadam/laganerp,susuchina/ERPNEXT,treejames/erpnext,SPKian/Testing,indictranstech/biggift-erpnext,suyashphadtare/gd-erp,mbauskar/omnitech-erpnext,pombredanne/erpnext,gangadhar-kadam/prjapp,mbauskar/Das_Erpnext