Skip to content

Commit

Permalink
Merge pull request #569 from iShafayet/sprint-0.1.7
Browse files Browse the repository at this point in the history
Sprint 0.1.7
  • Loading branch information
iShafayet authored Mar 23, 2019
2 parents 3637b5a + 72c1385 commit b11315f
Show file tree
Hide file tree
Showing 58 changed files with 391 additions and 582 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified client/images/bulk-product-blueprint-instruction/instruction-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
5 changes: 4 additions & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@

<!-- Add any global styles for body, document, etc. -->
<style>
/*
TODO: Remove once certain these are not necessary at all -
@media print {
@page {
size: A4;
Expand All @@ -51,7 +54,7 @@
@page {
margin: 3cm;
}
}
} */

body {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion client/src/elem-additional-payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</paper-dropdown-menu>

<template is="dom-if" if="[[!isPaymentMethodChangeWallet(payment.paymentMethod)]]">
<paper-input class="payment--paidAmount" value="{{payment.paidAmount}}" min="1" on-input="genericPaymentInputChanged" on-change="genericPaymentInputChanged" type="number" required min="0" error-message="[[verses.additionalPayment.paidAmountInputError]]" label="[[verses.additionalPayment.paidAmountInput]]">
<paper-input class="payment--paidAmount" value="{{payment.paidAmount}}" min="1" on-change="genericPaymentInputChanged" type="number" required min="0" error-message="[[verses.additionalPayment.paidAmountInputError]]" label="[[verses.additionalPayment.paidAmountInput]]">
<div slot="suffix">[[app.settings.monetaryUnit]]</div>
</paper-input>
</template>
Expand Down
34 changes: 19 additions & 15 deletions client/src/lang-bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"listIsEmpty": "তালিকা খালি।",
"search": "খোঁজ",
"select": "বাছাই",
"remove": "সরান",
"selected": "বাছাইকৃত",
"deselect": "বাতিল",
"address": "ঠিকানা",
Expand Down Expand Up @@ -377,15 +378,17 @@
"companyProvidedId": "কোম্পানী প্রদত্ত আইডি",
"designation": "পদবী",
"role": "ভূমিকা",
"isEmployeeActive": "বর্তমানে কর্মরত",
"isNotEmployeeActive": "বর্তমানে কর্মরত নয়",
"hireUserEmployee": "ব্যবহারকারীকে কর্মচারী হিসেবে নিয়োগ করুন",
"addUserAsEmployee": "কর্মচারী হিসাবে নতুন ব্যবহারকারী যুক্ত করুন",
"hireUserEmployeeDetail": "আপনার সংস্থার জন্য একজন কর্মচারী নিয়োগ করার জন্য এখানে ক্লিক করুন যিনি ইতিমধ্যেই আমাদের প্ল্যাটফর্মের ব্যবহারকারী।",
"addUserAsEmployeeDetail": "একজন নতুন ব্যবহারকারী যুক্ত করার জন্য এখানে ক্লিক করুন, আপনার সংস্থার জন্য তাকে কর্মচারী হিসাবে নিয়োগ করা হবে।",
"viewEmployeeTitle": "কর্মচারী",
"companyId": "কোম্পানী প্রদত্ত আইডি",
"clickToEditEmployee": "কর্মচারী সম্পাদনা করতে এখানে ক্লিক করুন",
"clickToEditEmployee": "কর্মচারীর তথ্য এবং বিশেষাধিকার পাল্টাতে এখানে ক্লিক করুন",
"editEmployee": "কর্মচারী সম্পাদনা করুন",
"clickToDeleteEmployee": "কর্মচারী মুছে ফেলতে এখানে ক্লিক করুন। একবার মুছে ফেলা কর্মী পুনরুদ্ধার করা যাবে না",
"clickToDeleteEmployee": "কর্মচারীকে চাকরিচ্যুত করতে এখানে ক্লিক করুন।",
"fireEmployee": "কর্মচারীকে চাকরিচ্যুত করুন",
"fireEmployeeQuestion": "চাকরিচ্যুত করা হোক?",
"sureFireThisEmployee": "আপনি কি নিশ্চিত এই কর্মচারীকে চাকরিচ্যুত করতে চান?",
Expand Down Expand Up @@ -619,9 +622,9 @@
"posPageTitle": "নতুন বিক্রয়",
"newSalesAdded": "নতুন বিক্রয় যুক্ত করা হয়েছে।",
"noCustomerSelected": "কোন গ্রাহক নির্বাচন করা হয়নি",
"removeCustomer": "গ্রাহক সরান",
"changeCustomer": "গ্রাহক পরিবর্তন করুন",
"createCustomer": "গ্রাহক যুক্ত করুন",
"removeCustomer": "সরান",
"changeCustomer": "গ্রাহক বাছাই",
"createCustomer": "নতুন গ্রাহক",
"count": "গণনা",
"selectProduct": "পণ্য নির্বাচন করুন",
"discountType": "ছাড় প্রকার",
Expand Down Expand Up @@ -788,9 +791,8 @@
"instructionTwo": "২. পণ্য পরিকল্পনার একটি নাম (Name) দিন যেটি আগে ব্যবহত হয়নি, এভাবে;",
"instructionThree": "৩. পণ্য পরিকল্পনার একটি একক (Unit) দিন, যেমন: কেজি, পিস অথবা বাক্স;",
"instructionFour": "৪. পণ্য পরিকল্পনার কেনা দাম (Purchase Price), বিক্রি দাম (Sale Price) এবং ভ্যাট শতাংশ (VAT) দিন, এভাবে;",
"instructionFive": "৫. ছাড় এর ধরণ দিন Discount Type এর নিচে, শতাংশ ছাড় হলে percent লিখুন, নির্ধারিত অর্থ ছাড় হলে fixed লিখুন। এবং ছাড় এর পরিমান দিন Discount Amount এর নিচে, এভাবে;",
"instructionSix": "৬. Returnable এর নিচে yes (হ্যা) দিন যদি পণ্য ফেরতযোগ্য হয়ে, no (না) দিন যদি নয়;",
"instructionSeven": "৭. সকল স্থান পূরণ থাকতে হবে, নাহলে লিপি ফাইলটি গ্রহণ করবে না;",
"instructionFive": "৫. Returnable এর নিচে yes (হ্যা) দিন যদি পণ্য ফেরতযোগ্য হয়ে, no (না) দিন যদি নয়;",
"instructionSix": "৬. সকল স্থান পূরণ থাকতে হবে, নাহলে লিপি ফাইলটি গ্রহণ করবে না;",
"uploadSectionTip": "পণ্যের পরিকল্পনা ধারণকারী CSV ফাইলটি জমা করুন;",
"uploadButtonLabel": "ফাইল জমা করুন",
"successfullyImported": "ফাইল পড়তে সফল, মোট পণ্যের পরিকল্পনা তৈরি হয়েছে",
Expand Down Expand Up @@ -856,6 +858,7 @@
"noOutletSelected": "কোন দোকান নির্বাচন করা হয়নি",
"noServiceBlueprintSelected": "কোন সেবার সদস্যপদ নির্বাচন করা হয়নি",
"change": "পরিবর্তন",
"select": "বাছাই",
"remove": "সরান",
"serviceMembershipNumber": "সদস্যপদ নং",
"expiringDatetime": "মেয়াদ",
Expand All @@ -869,23 +872,24 @@
"serviceBlueprints": "সেবার সদস্যপদ"
},
"salesReceipt": {
"goodsTitle": "পণ্য / সেবা",
"goodsTitle": "পণ্য/সেবা",
"quantity": "পরিমান",
"receiptTitle": "বিক্রয় রসিদ",
"warnDiscared": "সতর্কবার্তা! এই বিক্রয় রেকর্ড বাতিল করা হয়েছে।",
"returnedCount": "ফেরৎ গণনা",
"totalPaid": "মোট পরিশোধিত",
"payment": "টাকা প্রদান",
"paymentMethod": "মূল্যপরিশোধ পদ্ধতি",
"paymentMethod": "পদ্ধতি",
"printedBy": "প্রিন্ট করেছেন",
"soldBy": "বিক্রয়কারী",
"customerName": "গ্রাহকের নাম",
"totalAmount": "মোট পরিমান",
"vatAmount": "ভ্যাট পরিমান",
"discountedAmount": "ছাড়ের পরিমান",
"totalAmount": "মোট",
"vatAmount": "ভ্যাট",
"discountedAmount": "ছাড়",
"serviceChargeInput": "সার্ভিস চার্জ",
"totalBilled": "মোট বিল",
"paidAmountInput": "পরিশোধিত পরিমান",
"changeAmount": "ফেরত পরিমান",
"paidAmountInput": "পরিশোধিত",
"changeAmount": "ফেরত",
"dueAmount": "বাকি অর্থ"
}
}
40 changes: 22 additions & 18 deletions client/src/lang-en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"listIsEmpty": "List is Empty.",
"search": "Search",
"select": "Select",
"remove": "Remove",
"selected": "Selected",
"deselect": "Deselect",
"address": "Address",
Expand Down Expand Up @@ -375,15 +376,17 @@
"companyProvidedId": "Company Provided Id",
"designation": "Designation",
"role": "Role",
"isEmployeeActive": "Currently Employed",
"isNotEmployeeActive": "Not Currently Employed",
"hireUserEmployee": "Hire User Employee",
"addUserAsEmployee": "Add New User As Employee",
"hireUserEmployeeDetail": "Click here to hire an employee for your organization who is already a user of our platform",
"addUserAsEmployeeDetail": "Click here to add a new user and hire him/her as an employee for your organization",
"viewEmployeeTitle": "Employee",
"companyId": "Company Id",
"clickToEditEmployee": "Click here to edit the employee.",
"clickToEditEmployee": "Click here to update the employee's information and privileges.",
"editEmployee": "Edit Employee",
"clickToDeleteEmployee": "Click here to delete the employee. Be warned that once deleted, an employee can not be restored.",
"clickToDeleteEmployee": "Click here to fire the employee.",
"fireEmployee": "Fire Employee",
"fireEmployeeQuestion": "Fire employee?",
"sureFireThisEmployee": "Are you sure you want to fire this employee?",
Expand Down Expand Up @@ -617,9 +620,9 @@
"posPageTitle": "New Sales",
"newSalesAdded": "New Sales has been added.",
"noCustomerSelected": "No customer selected (Anonymous Sale)",
"removeCustomer": "Remove Customer",
"changeCustomer": "Change Customer",
"createCustomer": "Create Customer",
"removeCustomer": "Remove",
"changeCustomer": "Select Customer",
"createCustomer": "New Customer",
"count": "Count",
"selectProduct": "Select Product",
"discountType": "Discount Type",
Expand Down Expand Up @@ -787,9 +790,8 @@
"instructionTwo": "2. Enter a unique product blueprint Name like so;",
"instructionThree": "3. Enter a Unit of the product blueprint, example: kg, piece or box;",
"instructionFour": "4. Enter Purchase Price, Sale Price and VAT percentage of the product blueprint;",
"instructionFive": "5. Enter either 'percent' or 'fixed' as Discount Type, and the amount under Discount Amount;",
"instructionSix": "6. Under Returnable enter 'yes' if customers can return this product blueprint, 'no' if not;",
"instructionSeven": "7. All the fields must be entered, like below, or else Lipi will not accept this file;",
"instructionFive": "5. Under Returnable enter 'yes' if customers can return this product blueprint, 'no' if not;",
"instructionSix": "6. All the fields must be entered, like below, or else Lipi will not accept this file;",
"uploadSectionTip": "Upload the CSV file containing Product Blueprint data;",
"uploadButtonLabel": "Upload File",
"successfullyImported": "Import Successful, total product blueprints created",
Expand Down Expand Up @@ -855,6 +857,7 @@
"noOutletSelected": "No outlet selected",
"noServiceBlueprintSelected": "No service blueprint selected",
"change": "Change",
"select": "Select",
"remove": "Remove",
"serviceMembershipNumber": "Membership Number",
"expiringDatetime": "Expiry",
Expand All @@ -868,23 +871,24 @@
"serviceBlueprints": "Service Blueprint"
},
"salesReceipt": {
"goodsTitle": "Product / Service",
"goodsTitle": "Item",
"quantity": "Qty",
"receiptTitle": "Sales Receipt ",
"warnDiscared": "WARNING! This sale has been discarded.",
"returnedCount": "Returned Count",
"totalPaid": "Total Paid Amount",
"totalPaid": "Total Paid",
"payment": "Payment",
"paymentMethod": "Payment Method",
"paymentMethod": "Method",
"printedBy": "Printed By",
"soldBy": "Sold By",
"customerName": "Customer Name",
"totalAmount": "Total Amount",
"vatAmount": "Vat Amount",
"discountedAmount": "Discounted Amount",
"serviceChargeInput": "Service Charge Amount",
"totalAmount": "Total",
"vatAmount": "VAT",
"discountedAmount": "Discounted",
"serviceChargeInput": "Service Charge",
"totalBilled": "Total Billed",
"paidAmountInput": "Paid Amount",
"changeAmount": "Change Amount",
"dueAmount": "Due amount"
"paidAmountInput": "Paid",
"changeAmount": "Change",
"dueAmount": "Due"
}
}
13 changes: 7 additions & 6 deletions client/src/page-add-products.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<dom-module id="page-add-products">
<template>
<style include="shared-styles">

.container-card {
border: 1px solid #eee;
background-color: #f7f7f7;
Expand Down Expand Up @@ -55,14 +54,13 @@
margin: 5px;
}

.in-page-header{
.in-page-header {
margin-top: 4px;
margin-bottom: 4px;
font-weight: bold;
/* text-align: center;
text-decoration: underline; */
}

</style>

<elem-not-ready is-ready="[[isReady]]"></elem-not-ready>
Expand Down Expand Up @@ -159,13 +157,13 @@
<div class="horizontal layout item center">
<div class="product-title">[[productBlueprint.name]]</div>
<div class="product-blueprint-numeric">
<paper-input class$="small-input id-[[productBlueprint.id]]" value="{{productBlueprint.count}}" type="number" min="0" on-input="genericNumericInputChanged" on-change="genericNumericInputChanged" label=[[productBlueprint.unit]]></paper-input>
<paper-input class$="small-input id-[[productBlueprint.id]]" value="{{productBlueprint.count}}" type="number" min="0" on-change="genericNumericInputChanged" label=[[productBlueprint.unit]]></paper-input>
</div>
<div class="product-blueprint-numeric">
<paper-input disabled="[[$isDisabled(productBlueprint.count)]]" class="small-input" min="[[productBlueprint.purchasePrice]]" on-input="genericNumericInputChanged" on-change="genericNumericInputChanged" value="{{productBlueprint.salePrice}}" type="number"></paper-input>
<paper-input disabled="[[$isDisabled(productBlueprint.count)]]" class="small-input" min="[[productBlueprint.purchasePrice]]" on-change="genericNumericInputChanged" value="{{productBlueprint.salePrice}}" type="number"></paper-input>
</div>
<div class="product-blueprint-numeric">
<paper-input disabled="[[$isDisabled(productBlueprint.count)]]" class="small-input" min="0" on-input="genericNumericInputChanged" on-change="genericNumericInputChanged" value="{{productBlueprint.purchasePrice}}" type="number"></paper-input>
<paper-input disabled="[[$isDisabled(productBlueprint.count)]]" class="small-input" min="0" on-change="genericNumericInputChanged" value="{{productBlueprint.purchasePrice}}" type="number"></paper-input>
</div>
</div>
</div>
Expand Down Expand Up @@ -352,6 +350,9 @@
productBlueprintInputChanged(e) {
let index = parseInt(String(e.model.index));
let productBlueprint = this.productBlueprintList[index];
if (productBlueprint.count === '') {
productBlueprint.count = '0';
}
this.unshift('selectedProductBlueprintList', productBlueprint);
this.splice('productBlueprintList', index, 1);
window.setTimeout(() => {
Expand Down
9 changes: 0 additions & 9 deletions client/src/page-bulk-import-product-blueprints.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@
</div>
</li>

<li>
[[verses.bulkImportProductBlueprint.instructionSeven]]
<div class="instruction-image-container">
<img class="instruction-image" src="../images/bulk-product-blueprint-instruction/instruction-7.png">
</div>
</li>

</ul>
</div>
</div>
Expand Down Expand Up @@ -216,8 +209,6 @@
"Purchase Price",
"Sale Price",
"VAT",
"Discount Type",
"Discount Amount",
"Returnable"
]
}
Expand Down
Loading

0 comments on commit b11315f

Please sign in to comment.