Sales Import
@if (unmappedCategories() > 0 || newProducts().length > 0) {
@if (unmappedCategories() > 0) {
{{ unmappedCategories() }} sale category(ies) are not mapped to cost centres. Map them below and save before
importing.
}
@if (newProducts().length > 0) {
{{ newProducts().length }} new product(s) will be created automatically on import.
}
}
@if (loading()) {
}
@if (error(); as err) {
}
@if (preview()) {
Sale Category Mapping
@for (entry of mappingEntries(); track entry.saleCategoryId) {
{{ entry.saleCategoryName ?? entry.saleCategoryId }}
Not mapped
@for (costCentre of costCentres(); track costCentre.id) {
{{ costCentre.name }}
}
}
| Expand |
|
Business Date |
{{ day.businessDate | date: 'dd-MMM-yyyy' }} |
Status |
{{ day.action }}
|
Vouchers |
{{ day.vouchers.length }} |
Amount |
{{ day.amount | number: '1.2-2' }} |
@if (expanded() === day) {
@for (voucher of day.vouchers; track trackVoucher($index, voucher)) {
{{ voucher.saleCategoryName }} → {{ voucher.costCentre.name }}
{{ voucher.action }}
{{ voucher.amount | number: '1.2-2' }}
{{ voucher.narration }}
| Product |
{{ line.name }} ({{ line.units }}) |
Quantity |
{{ line.quantity }} |
Rate |
{{ line.rate | number: '1.2-2' }} |
Tax |
{{ line.taxRate }} |
Discount |
{{ line.discount }} |
Amount |
{{ line.amount | number: '1.2-2' }} |
Happy Hour |
{{ line.isHappyHour ? 'Yes' : '' }} |
}
}
|
}