├── app ├── .gitignore ├── google-services.json ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── keys.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── colors.xml │ │ │ │ └── dimens.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_navigation_more_vert.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_navigation_more_vert.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_navigation_more_vert.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_navigation_more_vert.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_action_navigation_more_vert.png │ │ │ ├── drawable │ │ │ │ ├── ripple_accent_white.xml │ │ │ │ ├── ripple_red_white.xml │ │ │ │ ├── ripple_dark_white.xml │ │ │ │ ├── side_nav_bar.xml │ │ │ │ ├── ic_menu_send.xml │ │ │ │ ├── ic_info_black_24dp.xml │ │ │ │ ├── ic_menu_slideshow.xml │ │ │ │ ├── ic_menu_gallery.xml │ │ │ │ ├── ic_menu_manage.xml │ │ │ │ ├── ic_notifications_black_24dp.xml │ │ │ │ ├── ic_sync_black_24dp.xml │ │ │ │ ├── ic_menu_camera.xml │ │ │ │ └── ic_menu_share.xml │ │ │ ├── values-land │ │ │ │ └── dimens.xml │ │ │ ├── values-sw600dp │ │ │ │ └── dimens.xml │ │ │ ├── values-sw600dp-land │ │ │ │ └── dimens.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── menu │ │ │ │ ├── second.xml │ │ │ │ ├── main.xml │ │ │ │ ├── menu_cash_toolbar.xml │ │ │ │ ├── popup_menu_adapter_view_sales_detail.xml │ │ │ │ ├── menu_action_mode.xml │ │ │ │ ├── popup_menu_adapter_view_item_list.xml │ │ │ │ ├── popup_menu_adapter_view_sales_header.xml │ │ │ │ └── activity_main_drawer.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── xml │ │ │ │ ├── pref_general_tax.xml │ │ │ │ ├── pref_general_discount.xml │ │ │ │ └── pref_general_service.xml │ │ │ └── layout │ │ │ │ ├── adapter_each_card_nested_image.xml │ │ │ │ ├── fragment_list_of_users.xml │ │ │ │ ├── fragment_list_of_open_sales_header.xml │ │ │ │ ├── fragment_list_of_paid_sales_header.xml │ │ │ │ ├── fragment_list_of_item_master.xml │ │ │ │ ├── fragment_bar_graph.xml │ │ │ │ ├── adapter_each_card_in_user_list.xml │ │ │ │ ├── adapter_each_card_in_payment.xml │ │ │ │ ├── adapter_each_card_in_item_list.xml │ │ │ │ ├── adapter_each_card_in_mini_lookup.xml │ │ │ │ ├── adapter_each_card_in_item_lookup.xml │ │ │ │ ├── adapter_each_card_in_sales_header.xml │ │ │ │ ├── adapter_each_card_in_sales_detail.xml │ │ │ │ ├── adapter_each_card_in_sales_detail_open.xml │ │ │ │ ├── dialog_mini_item_master.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── adapter_view_mini_lookup.xml │ │ │ │ ├── dialog_lookup_item_master.xml │ │ │ │ ├── fragment_payment.xml │ │ │ │ ├── fragment_list_of_pending_sales.xml │ │ │ │ ├── fragment_list_of_open_sales_detail.xml │ │ │ │ ├── fragment_list_of_paid_sales_detail.xml │ │ │ │ ├── nav_header_main.xml │ │ │ │ ├── activity_payment.xml │ │ │ │ ├── activity_paid_sales_detail.xml │ │ │ │ ├── adapter_view_item_lookup.xml │ │ │ │ ├── activity_open_sales_detail.xml │ │ │ │ ├── activity_settings.xml │ │ │ │ ├── adapter_view_users_list.xml │ │ │ │ ├── view_activity_main.xml │ │ │ │ ├── adapter_view_item_list.xml │ │ │ │ ├── adapter_view_sales_header_list.xml │ │ │ │ ├── activity_second.xml │ │ │ │ ├── adapter_view_sales_detail_list.xml │ │ │ │ └── adapter_view_open_sales_detail_list.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── stockita │ │ │ │ └── stockitapointofsales │ │ │ │ ├── interfaces │ │ │ │ ├── ItemMasterAddEditCallbacks.java │ │ │ │ ├── SalesDetailPendingCallbacks.java │ │ │ │ └── OpenSalesHeaderListCallbacks.java │ │ │ │ ├── Stockita.java │ │ │ │ ├── salespack │ │ │ │ └── paidpack │ │ │ │ │ ├── BarGraph.java │ │ │ │ │ ├── PaymentActivity.java │ │ │ │ │ └── PaidSalesDetailActivity.java │ │ │ │ ├── data │ │ │ │ ├── MonthlySalesModel.java │ │ │ │ ├── ItemImageModel.java │ │ │ │ ├── ItemModel.java │ │ │ │ └── UserModel.java │ │ │ │ ├── zxing │ │ │ │ └── IntentResult.java │ │ │ │ ├── customViews │ │ │ │ ├── AdapterViewMiniLookupItemList.java │ │ │ │ ├── ActivityViewMainActivity.java │ │ │ │ ├── AdapterViewItemLookup.java │ │ │ │ └── AdapterViewPayment.java │ │ │ │ └── utilities │ │ │ │ ├── Constants.java │ │ │ │ └── ManageDateTime.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── stockita │ │ │ └── stockitapointofsales │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── stockita │ │ └── stockitapointofsales │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── README.md ├── .gitignore ├── gradle.properties ├── LICENSE ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/keys.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_action_navigation_more_vert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-hdpi/ic_action_navigation_more_vert.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_action_navigation_more_vert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-mdpi/ic_action_navigation_more_vert.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_action_navigation_more_vert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xhdpi/ic_action_navigation_more_vert.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_action_navigation_more_vert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xxhdpi/ic_action_navigation_more_vert.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_action_navigation_more_vert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hishmad/stockita-point-of-sale/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_action_navigation_more_vert.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ripple_accent_white.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ripple_red_white.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | 6 | 7 | 32dp 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | 6 | 7 | 64dp 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ripple_dark_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Sep 24 10:44:07 WIB 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-sw600dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | true 4 | true 5 | 6 | 7 | 8 | 128dp 9 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # stockita-point-of-sale 2 | Open source Point of Sale, is an Android application with Firebase as backend. 3 | 4 | You can find this app in the Play store, 5 | 6 | I hope this can be useful to any one interested in learning Android. 7 | 8 | Thank you. 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_send.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/second.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_cash_toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_info_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/test/java/com/stockita/stockitapointofsales/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.stockita.stockitapointofsales; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/popup_menu_adapter_view_sales_detail.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_action_mode.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_manage.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/xml/pref_general_tax.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_sync_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/xml/pref_general_discount.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/xml/pref_general_service.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/menu/popup_menu_adapter_view_item_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 11 | 12 | 15 | 16 | 19 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/menu/popup_menu_adapter_view_sales_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 19 | 20 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/hishmadabubakaralamudi/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu_share.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/stockita/stockitapointofsales/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.stockita.stockitapointofsales; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | import com.stockita.stockitapointofsales.utilities.Utility; 7 | 8 | /** 9 | * Testing Fundamentals 10 | */ 11 | public class ApplicationTest extends ApplicationTestCase { 12 | 13 | public ApplicationTest() { 14 | super(Application.class); 15 | 16 | } 17 | 18 | 19 | public void testIsValidEmail() { 20 | 21 | boolean actual = Utility.isEmailValid("hishmad@yahoo.com"); 22 | 23 | boolean expectedResult = true; 24 | 25 | assertEquals(true, actual); 26 | 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | <<<<<<< HEAD 2 | *.iml 3 | .gradle 4 | /local.properties 5 | /.idea/workspace.xml 6 | /.idea/libraries 7 | .DS_Store 8 | /build 9 | /captures 10 | ||||||| merged common ancestors 11 | ======= 12 | # Built application files 13 | *.apk 14 | *.ap_ 15 | 16 | # Files for the ART/Dalvik VM 17 | *.dex 18 | 19 | # Java class files 20 | *.class 21 | 22 | # Generated files 23 | bin/ 24 | gen/ 25 | out/ 26 | 27 | # Gradle files 28 | .gradle/ 29 | build/ 30 | 31 | # Local configuration file (sdk path, etc) 32 | local.properties 33 | 34 | # Proguard folder generated by Eclipse 35 | proguard/ 36 | 37 | # Log Files 38 | *.log 39 | 40 | # Android Studio Navigation editor temp files 41 | .navigation/ 42 | 43 | # Android Studio captures folder 44 | captures/ 45 | 46 | # Intellij 47 | *.iml 48 | .idea/workspace.xml 49 | 50 | # Keystore files 51 | *.jks 52 | >>>>>>> 03aec4ae82db7d913bfe525c722380c913a44c25 53 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 17 | 18 |